2
0

bcm6328-sercomm-ad1018.dts 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315
  1. // SPDX-License-Identifier: GPL-2.0-or-later
  2. #include "bcm6328.dtsi"
  3. / {
  4. model = "Sercomm AD1018";
  5. compatible = "sercomm,ad1018", "brcm,bcm6328";
  6. aliases {
  7. led-boot = &led_power_green;
  8. led-failsafe = &led_power_green;
  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. wps {
  16. label = "wps";
  17. gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
  18. linux,code = <KEY_WPS_BUTTON>;
  19. debounce-interval = <60>;
  20. };
  21. wlan {
  22. label = "wlan";
  23. gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
  24. linux,code = <KEY_WLAN>;
  25. debounce-interval = <60>;
  26. };
  27. reset {
  28. label = "reset";
  29. gpios = <&gpio 31 GPIO_ACTIVE_LOW>;
  30. linux,code = <KEY_RESTART>;
  31. debounce-interval = <60>;
  32. };
  33. };
  34. bcm432217-sprom {
  35. compatible = "brcm,bcma-sprom";
  36. pci-bus = <1>;
  37. pci-dev = <0>;
  38. nvmem-cells = <&macaddr_cferom_6a0 1>;
  39. nvmem-cell-names = "mac-address";
  40. brcm,sprom = "brcm/bcm43217-sprom.bin";
  41. brcm,sprom-fixups = <6 0x1c00>,
  42. <65 0x1256>,
  43. <96 0x2046>,
  44. <97 0xfe69>,
  45. <98 0x1726>,
  46. <99 0xfa5c>,
  47. <112 0x2046>,
  48. <113 0xfea8>,
  49. <114 0x1978>,
  50. <115 0xfa26>,
  51. <161 0x2222>,
  52. <169 0x2222>,
  53. <171 0x2222>,
  54. <173 0x2222>,
  55. <174 0x4444>,
  56. <175 0x2222>,
  57. <176 0x4444>;
  58. };
  59. };
  60. &ehci {
  61. status = "okay";
  62. };
  63. &ethernet {
  64. status = "okay";
  65. nvmem-cells = <&macaddr_cferom_6a0 0>;
  66. nvmem-cell-names = "mac-address";
  67. };
  68. &leds {
  69. status = "okay";
  70. pinctrl-names = "default";
  71. pinctrl-0 = <&pinctrl_leds &pinctrl_serial_led
  72. &pinctrl_ephy0_spd_led &pinctrl_ephy1_act_led
  73. &pinctrl_ephy2_act_led &pinctrl_ephy3_act_led>;
  74. brcm,serial-leds;
  75. brcm,serial-shift-inv;
  76. brcm,serial-dat-low;
  77. led@0 {
  78. reg = <0>;
  79. active-low;
  80. label = "red:internet";
  81. };
  82. led@1 {
  83. reg = <1>;
  84. active-low;
  85. label = "green:internet";
  86. };
  87. led_power_green: led@8 {
  88. reg = <8>;
  89. active-low;
  90. function = LED_FUNCTION_POWER;
  91. color = <LED_COLOR_ID_GREEN>;
  92. };
  93. led@10 {
  94. reg = <10>;
  95. active-low;
  96. label = "green:adsl";
  97. };
  98. led@11 {
  99. reg = <11>;
  100. active-low;
  101. label = "red:adsl";
  102. };
  103. led@12 {
  104. reg = <12>;
  105. active-low;
  106. label = "green:phone";
  107. };
  108. led@13 {
  109. reg = <13>;
  110. active-low;
  111. function = LED_FUNCTION_WPS;
  112. color = <LED_COLOR_ID_GREEN>;
  113. };
  114. led@14 {
  115. reg = <14>;
  116. active-low;
  117. label = "green:wifi";
  118. };
  119. led@15 {
  120. reg = <15>;
  121. active-low;
  122. function = LED_FUNCTION_USB;
  123. color = <LED_COLOR_ID_GREEN>;
  124. };
  125. led@17 {
  126. /* EPHY0 Spd */
  127. reg = <17>;
  128. brcm,hardware-controlled;
  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 = "gpio0", "gpio1";
  141. };
  142. };
  143. &nflash {
  144. status = "okay";
  145. nandcs@0 {
  146. compatible = "brcm,nandcs";
  147. reg = <0>;
  148. nand-ecc-step-size = <512>;
  149. nand-ecc-strength = <15>;
  150. nand-on-flash-bbt;
  151. #address-cells = <1>;
  152. #size-cells = <1>;
  153. partitions {
  154. compatible = "fixed-partitions";
  155. #address-cells = <1>;
  156. #size-cells = <1>;
  157. partition@0 {
  158. label = "cferom";
  159. reg = <0x0000000 0x0020000>;
  160. read-only;
  161. nvmem-layout {
  162. compatible = "fixed-layout";
  163. #address-cells = <1>;
  164. #size-cells = <1>;
  165. macaddr_cferom_6a0: macaddr@6a0 {
  166. compatible = "mac-base";
  167. reg = <0x6a0 0x6>;
  168. #nvmem-cell-cells = <1>;
  169. };
  170. };
  171. };
  172. partition@20000 {
  173. label = "mmap";
  174. reg = <0x0020000 0x00a0000>;
  175. read-only;
  176. };
  177. partition@c0000 {
  178. label = "cferam1";
  179. reg = <0x00c0000 0x0140000>;
  180. read-only;
  181. };
  182. partition@200000 {
  183. label = "cferam2";
  184. reg = <0x0200000 0x0140000>;
  185. read-only;
  186. };
  187. partition@340000 {
  188. label = "serial";
  189. reg = <0x0340000 0x00a0000>;
  190. read-only;
  191. };
  192. partition@3e0000 {
  193. label = "protect";
  194. reg = <0x03e0000 0x0140000>;
  195. read-only;
  196. };
  197. partition@6920000 {
  198. label = "bootflag1";
  199. reg = <0x6920000 0x0140000>;
  200. read-only;
  201. };
  202. partition@6a60000 {
  203. label = "bootflag2";
  204. reg = <0x6a60000 0x0140000>;
  205. read-only;
  206. };
  207. partition@520000 {
  208. compatible = "sercomm,wfi";
  209. label = "wfi";
  210. reg = <0x0520000 0x6400000>;
  211. };
  212. partition@6ba0000 {
  213. label = "xml_cfg";
  214. reg = <0x6ba0000 0x0280000>;
  215. read-only;
  216. };
  217. partition@6e20000 {
  218. label = "app_dat";
  219. reg = <0x6e20000 0x0280000>;
  220. read-only;
  221. };
  222. };
  223. };
  224. };
  225. &switch0 {
  226. ports {
  227. port@0 {
  228. reg = <0>;
  229. label = "fibre";
  230. phy-handle = <&phy1>;
  231. phy-mode = "mii";
  232. };
  233. port@1 {
  234. reg = <1>;
  235. label = "lan3";
  236. phy-handle = <&phy2>;
  237. phy-mode = "mii";
  238. };
  239. port@2 {
  240. reg = <2>;
  241. label = "lan2";
  242. phy-handle = <&phy3>;
  243. phy-mode = "mii";
  244. };
  245. port@3 {
  246. reg = <3>;
  247. label = "lan1";
  248. phy-handle = <&phy4>;
  249. phy-mode = "mii";
  250. };
  251. };
  252. };
  253. &uart0 {
  254. status = "okay";
  255. };
  256. &usbh {
  257. status = "okay";
  258. };