bcm6328-nucom-r5010unv2.dts 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  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. label = "green:power";
  109. };
  110. led_power_red: led@5 {
  111. reg = <5>;
  112. active-low;
  113. label = "red:power";
  114. panic-indicator;
  115. };
  116. led@10 {
  117. reg = <10>;
  118. active-low;
  119. label = "green:wps";
  120. };
  121. led@11 {
  122. reg = <11>;
  123. active-low;
  124. label = "green:usb";
  125. };
  126. };
  127. &ohci {
  128. status = "okay";
  129. };
  130. &pcie {
  131. status = "okay";
  132. };
  133. &pinctrl {
  134. pinctrl_leds: leds {
  135. function = "led";
  136. pins = "gpio1", "gpio2", "gpio3",
  137. "gpio4", "gpio5", "gpio10",
  138. "gpio11";
  139. };
  140. };
  141. &switch0 {
  142. ports {
  143. port@0 {
  144. reg = <0>;
  145. label = "lan1";
  146. phy-handle = <&phy1>;
  147. phy-mode = "mii";
  148. };
  149. port@1 {
  150. reg = <1>;
  151. label = "lan2";
  152. phy-handle = <&phy2>;
  153. phy-mode = "mii";
  154. };
  155. port@2 {
  156. reg = <2>;
  157. label = "lan3";
  158. phy-handle = <&phy3>;
  159. phy-mode = "mii";
  160. };
  161. port@3 {
  162. reg = <3>;
  163. label = "lan4";
  164. phy-handle = <&phy4>;
  165. phy-mode = "mii";
  166. };
  167. };
  168. };
  169. &uart0 {
  170. status = "okay";
  171. };
  172. &usbh {
  173. status = "okay";
  174. };