bcm6358-huawei-hg556a-b.dts 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  1. // SPDX-License-Identifier: GPL-2.0-or-later
  2. #include "bcm6358.dtsi"
  3. / {
  4. compatible = "huawei,hg556a-b", "brcm,bcm6358";
  5. model = "Huawei EchoLife HG556a (version B)";
  6. aliases {
  7. led-boot = &led_power_red;
  8. led-failsafe = &led_power_red;
  9. led-running = &led_power_red;
  10. led-upgrade = &led_power_red;
  11. led-dsl = &led_dsl_red;
  12. led-usb = &led_hspa_red;
  13. };
  14. keys {
  15. compatible = "gpio-keys-polled";
  16. poll-interval = <100>;
  17. help {
  18. label = "help";
  19. gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
  20. linux,code = <KEY_HELP>;
  21. debounce-interval = <60>;
  22. };
  23. wlan {
  24. label = "wlan";
  25. gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
  26. linux,code = <KEY_WLAN>;
  27. debounce-interval = <60>;
  28. };
  29. restart {
  30. label = "restart";
  31. gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
  32. linux,code = <KEY_RESTART>;
  33. debounce-interval = <60>;
  34. };
  35. reset {
  36. label = "reset";
  37. gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
  38. linux,code = <KEY_CONFIG>;
  39. debounce-interval = <60>;
  40. };
  41. };
  42. leds {
  43. compatible = "gpio-leds";
  44. led@0 {
  45. label = "red:message";
  46. gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
  47. };
  48. led_hspa_red: led@1 {
  49. label = "red:hspa";
  50. gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
  51. };
  52. led_dsl_red: led@2 {
  53. label = "red:dsl";
  54. gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
  55. };
  56. led_power_red: led@3 {
  57. label = "red:power";
  58. gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
  59. };
  60. led@6 {
  61. label = "all";
  62. gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
  63. default-state = "on";
  64. };
  65. led@12 {
  66. label = "green:lan1";
  67. gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
  68. };
  69. led@13 {
  70. label = "red:lan1";
  71. gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
  72. };
  73. led@15 {
  74. label = "green:lan2";
  75. gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
  76. };
  77. led@22 {
  78. label = "red:lan2";
  79. gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
  80. };
  81. led@23 {
  82. label = "green:lan3";
  83. gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
  84. };
  85. led@26 {
  86. label = "red:lan3";
  87. gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
  88. };
  89. led@27 {
  90. label = "green:lan4";
  91. gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
  92. };
  93. led@28 {
  94. label = "red:lan4";
  95. gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
  96. };
  97. };
  98. ath9k-leds {
  99. compatible = "gpio-leds";
  100. wlan {
  101. label = "red:wlan";
  102. gpios = <&ath9k 2 GPIO_ACTIVE_HIGH>;
  103. linux,default-trigger = "phy0tpt";
  104. };
  105. };
  106. };
  107. &ehci {
  108. status = "okay";
  109. };
  110. &ethernet1 {
  111. status = "okay";
  112. nvmem-cells = <&macaddr_cfe_6a0>;
  113. nvmem-cell-names = "mac-address";
  114. phy-mode = "mii";
  115. fixed-link {
  116. speed = <100>;
  117. full-duplex;
  118. };
  119. };
  120. &iudma {
  121. status = "okay";
  122. };
  123. &ohci {
  124. status = "okay";
  125. };
  126. &pci {
  127. status = "okay";
  128. ath9k: wifi@1,0 {
  129. compatible = "pci168c,0029";
  130. reg = <0x0800 0 0 0 0>;
  131. qca,no-eeprom;
  132. nvmem-cells = <&macaddr_cfe_6a0>;
  133. nvmem-cell-names = "mac-address";
  134. mac-address-increment = <1>;
  135. #gpio-cells = <2>;
  136. gpio-controller;
  137. };
  138. };
  139. &pflash {
  140. status = "okay";
  141. partitions {
  142. compatible = "fixed-partitions";
  143. #address-cells = <1>;
  144. #size-cells = <1>;
  145. cfe: partition@0 {
  146. label = "cfe";
  147. reg = <0x000000 0x020000>;
  148. read-only;
  149. };
  150. partition@20000 {
  151. label = "firmware";
  152. reg = <0x020000 0xec0000>;
  153. compatible = "brcm,bcm963xx-imagetag";
  154. };
  155. cal_data: partition@ee0000 {
  156. label = "cal_data";
  157. reg = <0xee0000 0x100000>;
  158. read-only;
  159. };
  160. partition@fe0000 {
  161. label = "nvram";
  162. reg = <0xfe0000 0x020000>;
  163. };
  164. };
  165. };
  166. &uart0 {
  167. status = "okay";
  168. };
  169. &usbh {
  170. status = "okay";
  171. };
  172. &cal_data {
  173. compatible = "nvmem-cells";
  174. #address-cells = <1>;
  175. #size-cells = <1>;
  176. cal_data_1e000: cal@1e000 {
  177. reg = <0x1e000 0xeb8>;
  178. };
  179. };
  180. &cfe {
  181. compatible = "nvmem-cells";
  182. #address-cells = <1>;
  183. #size-cells = <1>;
  184. macaddr_cfe_6a0: macaddr@6a0 {
  185. reg = <0x6a0 0x6>;
  186. };
  187. };