at91sam9g25-gardena-smart-gateway.dts 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * Device Tree file for the GARDENA smart Gateway (Article No. 19000)
  4. *
  5. * Copyright (C) 2020 GARDENA GmbH
  6. */
  7. /dts-v1/;
  8. #include "at91sam9g25.dtsi"
  9. #include "at91sam9x5ek.dtsi"
  10. #include <dt-bindings/input/input.h>
  11. / {
  12. model = "GARDENA smart Gateway (Article No. 19000)";
  13. compatible = "gardena,smart-gateway-at91sam", "atmel,at91sam9g25", "atmel,at91sam9x5",
  14. "atmel,at91sam9";
  15. aliases {
  16. serial1 = &usart3;
  17. };
  18. gpio-keys {
  19. compatible = "gpio-keys";
  20. button {
  21. label = "USER_BTN1";
  22. gpios = <&pioA 24 GPIO_ACTIVE_LOW>;
  23. linux,code = <KEY_PROG1>;
  24. };
  25. };
  26. 1wire_cm {
  27. status = "disabled";
  28. };
  29. leds {
  30. compatible = "gpio-leds";
  31. power_blue {
  32. label = "smartgw:power:blue";
  33. gpios = <&pioC 21 GPIO_ACTIVE_HIGH>;
  34. default-state = "off";
  35. };
  36. power_green {
  37. label = "smartgw:power:green";
  38. gpios = <&pioC 20 GPIO_ACTIVE_HIGH>;
  39. default-state = "on";
  40. };
  41. power_red {
  42. label = "smartgw:power:red";
  43. gpios = <&pioC 19 GPIO_ACTIVE_HIGH>;
  44. default-state = "off";
  45. };
  46. radio_blue {
  47. label = "smartgw:radio:blue";
  48. gpios = <&pioC 18 GPIO_ACTIVE_HIGH>;
  49. default-state = "off";
  50. };
  51. radio_green {
  52. label = "smartgw:radio:green";
  53. gpios = <&pioC 17 GPIO_ACTIVE_HIGH>;
  54. default-state = "off";
  55. };
  56. radio_red {
  57. label = "smartgw:radio:red";
  58. gpios = <&pioC 16 GPIO_ACTIVE_HIGH>;
  59. default-state = "off";
  60. };
  61. internet_blue {
  62. label = "smartgw:internet:blue";
  63. gpios = <&pioC 15 GPIO_ACTIVE_HIGH>;
  64. default-state = "off";
  65. };
  66. internet_green {
  67. label = "smartgw:internet:green";
  68. gpios = <&pioC 14 GPIO_ACTIVE_HIGH>;
  69. default-state = "off";
  70. };
  71. internet_red {
  72. label = "smartgw:internet:red";
  73. gpios = <&pioC 13 GPIO_ACTIVE_HIGH>;
  74. default-state = "off";
  75. };
  76. heartbeat {
  77. label = "smartgw:heartbeat";
  78. gpios = <&pioB 8 GPIO_ACTIVE_HIGH>;
  79. linux,default-trigger = "heartbeat";
  80. };
  81. pb18 {
  82. status = "disabled";
  83. };
  84. pd21 {
  85. status = "disabled";
  86. };
  87. };
  88. };
  89. &macb0 {
  90. phy-mode = "rmii";
  91. status = "okay";
  92. };
  93. &usart0 {
  94. status = "disabled";
  95. };
  96. &usart2 {
  97. status = "disabled";
  98. };
  99. &usart3 {
  100. status = "okay";
  101. pinctrl-0 = <&pinctrl_usart3
  102. &pinctrl_usart3_rts
  103. &pinctrl_usart3_cts
  104. >;
  105. };
  106. &watchdog {
  107. status = "okay";
  108. };
  109. &mmc0 {
  110. status = "disabled";
  111. };
  112. &mmc1 {
  113. status = "disabled";
  114. };
  115. &spi0 {
  116. status = "disabled";
  117. };
  118. &i2c0 {
  119. status = "disabled";
  120. };
  121. &adc0 {
  122. status = "disabled";
  123. };
  124. &ssc0 {
  125. status = "disabled";
  126. };