bcm6328-nucom-r5010unv2.dts 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  1. // SPDX-License-Identifier: GPL-2.0-or-later
  2. #include "bcm6328.dtsi"
  3. / {
  4. model = "NuCom R5010UNv2";
  5. compatible = "nucom,r5010unv2", "brcm,bcm6328";
  6. aliases {
  7. led-boot = &led_power_green;
  8. led-failsafe = &led_power_red;
  9. led-running = &led_power_green;
  10. led-upgrade = &led_power_green;
  11. };
  12. keys {
  13. compatible = "gpio-keys-polled";
  14. poll-interval = <100>;
  15. reset {
  16. label = "reset";
  17. gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
  18. linux,code = <KEY_RESTART>;
  19. debounce-interval = <60>;
  20. };
  21. wps {
  22. label = "wps";
  23. gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
  24. linux,code = <KEY_WPS_BUTTON>;
  25. debounce-interval = <60>;
  26. };
  27. };
  28. bcm43217-sprom {
  29. compatible = "brcm,bcma-sprom";
  30. pci-bus = <1>;
  31. pci-dev = <0>;
  32. nvmem-cells = <&macaddr_cfe_6a0 1>;
  33. nvmem-cell-names = "mac-address";
  34. brcm,sprom = "brcm/bcm43217-sprom.bin";
  35. };
  36. };
  37. &ehci {
  38. status = "okay";
  39. };
  40. &ethernet {
  41. status = "okay";
  42. nvmem-cells = <&macaddr_cfe_6a0 0>;
  43. nvmem-cell-names = "mac-address";
  44. };
  45. &hsspi {
  46. status = "okay";
  47. flash@0 {
  48. compatible = "jedec,spi-nor";
  49. spi-max-frequency = <16666667>;
  50. spi-tx-bus-width = <2>;
  51. spi-rx-bus-width = <2>;
  52. reg = <0>;
  53. partitions {
  54. compatible = "fixed-partitions";
  55. #address-cells = <1>;
  56. #size-cells = <1>;
  57. partition@0 {
  58. label = "cfe";
  59. reg = <0x000000 0x010000>;
  60. read-only;
  61. nvmem-layout {
  62. compatible = "fixed-layout";
  63. #address-cells = <1>;
  64. #size-cells = <1>;
  65. macaddr_cfe_6a0: macaddr@6a0 {
  66. compatible = "mac-base";
  67. reg = <0x6a0 0x6>;
  68. #nvmem-cell-cells = <1>;
  69. };
  70. };
  71. };
  72. partition@10000 {
  73. compatible = "brcm,bcm963xx-imagetag";
  74. label = "firmware";
  75. reg = <0x010000 0xfe0000>;
  76. };
  77. partition@ff0000 {
  78. label = "nvram";
  79. reg = <0xff0000 0x010000>;
  80. };
  81. };
  82. };
  83. };
  84. &leds {
  85. status = "okay";
  86. pinctrl-names = "default";
  87. pinctrl-0 = <&pinctrl_ephy0_act_led &pinctrl_ephy1_act_led
  88. &pinctrl_ephy2_act_led &pinctrl_ephy3_act_led
  89. &pinctrl_leds>;
  90. led@1 {
  91. reg = <1>;
  92. active-low;
  93. label = "green:internet";
  94. };
  95. led@2 {
  96. reg = <2>;
  97. active-low;
  98. label = "red:internet";
  99. };
  100. led@3 {
  101. reg = <3>;
  102. active-low;
  103. label = "green:dsl";
  104. };
  105. led_power_green: led@4 {
  106. reg = <4>;
  107. active-low;
  108. function = LED_FUNCTION_POWER;
  109. color = <LED_COLOR_ID_GREEN>;
  110. };
  111. led_power_red: led@5 {
  112. reg = <5>;
  113. active-low;
  114. function = LED_FUNCTION_POWER;
  115. color = <LED_COLOR_ID_RED>;
  116. panic-indicator;
  117. };
  118. led@10 {
  119. reg = <10>;
  120. active-low;
  121. function = LED_FUNCTION_WPS;
  122. color = <LED_COLOR_ID_GREEN>;
  123. };
  124. led@11 {
  125. reg = <11>;
  126. active-low;
  127. function = LED_FUNCTION_USB;
  128. color = <LED_COLOR_ID_GREEN>;
  129. };
  130. };
  131. &ohci {
  132. status = "okay";
  133. };
  134. &pcie {
  135. status = "okay";
  136. };
  137. &pinctrl {
  138. pinctrl_leds: leds {
  139. function = "led";
  140. pins = "gpio1", "gpio2", "gpio3",
  141. "gpio4", "gpio5", "gpio10",
  142. "gpio11";
  143. };
  144. };
  145. &switch0 {
  146. ports {
  147. port@0 {
  148. reg = <0>;
  149. label = "lan1";
  150. phy-handle = <&phy1>;
  151. phy-mode = "mii";
  152. };
  153. port@1 {
  154. reg = <1>;
  155. label = "lan2";
  156. phy-handle = <&phy2>;
  157. phy-mode = "mii";
  158. };
  159. port@2 {
  160. reg = <2>;
  161. label = "lan3";
  162. phy-handle = <&phy3>;
  163. phy-mode = "mii";
  164. };
  165. port@3 {
  166. reg = <3>;
  167. label = "lan4";
  168. phy-handle = <&phy4>;
  169. phy-mode = "mii";
  170. };
  171. };
  172. };
  173. &uart0 {
  174. status = "okay";
  175. };
  176. &usbh {
  177. status = "okay";
  178. };