2
0

br200-wp.dts 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372
  1. // SPDX-License-Identifier: GPL-2.0-or-later
  2. /*
  3. * Aerohive BR200-WP Device Tree Source
  4. *
  5. * Based on: Aerohive HiveAP-330 Device Tree Source
  6. *
  7. * Copyright (C) 2017 Chris Blake <[email protected]>
  8. * Copyright (C) 2023 Pawel Dembicki <[email protected]>
  9. */
  10. #include <dt-bindings/leds/common.h>
  11. #include <dt-bindings/input/input.h>
  12. #include <dt-bindings/gpio/gpio.h>
  13. /include/ "fsl/p1020si-pre.dtsi"
  14. / {
  15. model = "Aerohive BR200-WP";
  16. compatible = "aerohive,br200-wp";
  17. chosen {
  18. bootargs = "console=ttyS0,9600";
  19. bootargs-override = "console=ttyS0,9600 noinitrd";
  20. };
  21. aliases {
  22. led-boot = &led_attention;
  23. led-failsafe = &led_attention;
  24. led-running = &led_status;
  25. led-upgrade = &led_status;
  26. label-mac-device = &enet0;
  27. };
  28. memory {
  29. device_type = "memory";
  30. };
  31. cpus {
  32. /delete-property/ PowerPC,P1020@1; /* P1011 have one core only */
  33. };
  34. board_lbc: lbc: localbus@ffe05000 {
  35. reg = <0 0xffe05000 0 0x1000>;
  36. ranges = <0x0 0x0 0x0 0xec000000 0x4000000>;
  37. nor@0,0 {
  38. #address-cells = <1>;
  39. #size-cells = <1>;
  40. compatible = "cfi-flash";
  41. reg = <0x0 0x0 0x4000000>;
  42. bank-width = <2>;
  43. device-width = <1>;
  44. partitions {
  45. compatible = "fixed-partitions";
  46. #address-cells = <1>;
  47. #size-cells = <1>;
  48. partition@0 {
  49. reg = <0x0 0x40000>;
  50. label = "dtb";
  51. };
  52. partition@40000 {
  53. reg = <0x40000 0x40000>;
  54. label = "initramfs";
  55. };
  56. partition@80000 {
  57. reg = <0x80000 0x27c0000>;
  58. label = "rootfs";
  59. };
  60. partition@2840000 {
  61. reg = <0x2840000 0x800000>;
  62. label = "kernel";
  63. };
  64. partition@3040000 {
  65. reg = <0x3040000 0xec0000>;
  66. label = "stock-jffs2";
  67. read-only;
  68. };
  69. partition@3f00000 {
  70. reg = <0x3f00000 0x20000>;
  71. label = "hw-info";
  72. read-only;
  73. nvmem-layout {
  74. compatible = "fixed-layout";
  75. #address-cells = <1>;
  76. #size-cells = <1>;
  77. macaddr_hwinfo_0: macaddr@0 {
  78. compatible = "mac-base";
  79. reg = <0x0 0x6>;
  80. #nvmem-cell-cells = <1>;
  81. };
  82. };
  83. };
  84. partition@3f20000 {
  85. reg = <0x3f20000 0x20000>;
  86. label = "boot-info";
  87. read-only;
  88. };
  89. partition@3f40000 {
  90. reg = <0x3f40000 0x20000>;
  91. label = "boot-info-backup";
  92. read-only;
  93. };
  94. partition@3f60000 {
  95. reg = <0x3f60000 0x20000>;
  96. label = "u-boot-env";
  97. };
  98. partition@3f80000 {
  99. reg = <0x3f80000 0x80000>;
  100. label = "u-boot";
  101. read-only;
  102. };
  103. firmware@0 {
  104. reg = <0x0 0x3040000>;
  105. label = "firmware";
  106. };
  107. };
  108. };
  109. };
  110. board_soc: soc: soc@ffe00000 {
  111. ranges = <0x0 0x0 0xffe00000 0x100000>;
  112. mdio@24000 {
  113. phy_port1: phy@0 {
  114. reg = <0>;
  115. };
  116. phy_port2: phy@1 {
  117. reg = <1>;
  118. };
  119. phy_port3: phy@2 {
  120. reg = <2>;
  121. };
  122. phy_port4: phy@3 {
  123. reg = <3>;
  124. };
  125. phy_port5: phy@4 {
  126. reg = <4>;
  127. };
  128. switch@10 {
  129. compatible = "qca,qca8327";
  130. #address-cells = <1>;
  131. #size-cells = <0>;
  132. reg = <0x10>;
  133. reset-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
  134. ports {
  135. #address-cells = <1>;
  136. #size-cells = <0>;
  137. port@1 {
  138. reg = <1>;
  139. label = "lan1";
  140. phy-handle = <&phy_port1>;
  141. nvmem-cells = <&macaddr_hwinfo_0 2>;
  142. nvmem-cell-names = "mac-address";
  143. };
  144. port@2 {
  145. reg = <2>;
  146. label = "lan2";
  147. phy-handle = <&phy_port2>;
  148. nvmem-cells = <&macaddr_hwinfo_0 3>;
  149. nvmem-cell-names = "mac-address";
  150. };
  151. port@3 {
  152. reg = <3>;
  153. label = "lan3";
  154. phy-handle = <&phy_port3>;
  155. nvmem-cells = <&macaddr_hwinfo_0 4>;
  156. nvmem-cell-names = "mac-address";
  157. };
  158. port@4 {
  159. reg = <4>;
  160. label = "lan4";
  161. phy-handle = <&phy_port4>;
  162. nvmem-cells = <&macaddr_hwinfo_0 5>;
  163. nvmem-cell-names = "mac-address";
  164. };
  165. port@5 {
  166. reg = <5>;
  167. label = "wan";
  168. phy-handle = <&phy_port5>;
  169. nvmem-cells = <&macaddr_hwinfo_0 0>;
  170. nvmem-cell-names = "mac-address";
  171. };
  172. port@6 {
  173. reg = <6>;
  174. ethernet = <&enet0>;
  175. phy-mode = "rgmii-id";
  176. fixed-link {
  177. speed = <1000>;
  178. full-duplex;
  179. };
  180. };
  181. };
  182. };
  183. };
  184. mdio@25000 {
  185. status = "disabled";
  186. };
  187. mdio@26000 {
  188. status = "disabled";
  189. };
  190. enet0: ethernet@b0000 {
  191. status = "okay";
  192. phy-connection-type = "rgmii-id";
  193. nvmem-cells = <&macaddr_hwinfo_0 0>;
  194. nvmem-cell-names = "mac-address";
  195. fixed-link {
  196. speed = <1000>;
  197. full-duplex;
  198. };
  199. };
  200. enet1: ethernet@b1000 {
  201. status = "disabled";
  202. };
  203. enet2: ethernet@b2000 {
  204. status = "disabled";
  205. };
  206. gpio0: gpio-controller@fc00 {
  207. };
  208. usb@22000 {
  209. phy_type = "ulpi";
  210. dr_mode = "host";
  211. };
  212. usb@23000 {
  213. status = "disabled";
  214. };
  215. };
  216. pci0: pcie@ffe09000 {
  217. status = "disabled";
  218. };
  219. pci1: pcie@ffe0a000 {
  220. reg = <0x0 0xffe0a000 0x0 0x1000>;
  221. ranges = <0x2000000 0x0 0xc0000000 0x0 0xc0000000 0x0 0x20000000
  222. 0x1000000 0x0 0x00000000 0x0 0xffc20000 0x0 0x10000>;
  223. reset-gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
  224. pcie@0 {
  225. ranges = <0x2000000 0x0 0xc0000000
  226. 0x2000000 0x0 0xc0000000
  227. 0x0 0x20000000
  228. 0x1000000 0x0 0x0
  229. 0x1000000 0x0 0x0
  230. 0x0 0x100000>;
  231. ath9k: wifi@0,0 {
  232. reg = <0x0000 0 0 0 0>;
  233. #gpio-cells = <2>;
  234. gpio-controller;
  235. nvmem-cells = <&macaddr_hwinfo_0 16>;
  236. nvmem-cell-names = "mac-address";
  237. };
  238. };
  239. };
  240. leds {
  241. compatible = "gpio-leds";
  242. led_attention: led-0 {
  243. gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
  244. label = "amber:status";
  245. color = <LED_COLOR_ID_AMBER>;
  246. function = LED_FUNCTION_STATUS;
  247. };
  248. led_status: led-1 {
  249. gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
  250. label = "white:status";
  251. color = <LED_COLOR_ID_WHITE>;
  252. function = LED_FUNCTION_STATUS;
  253. };
  254. };
  255. buttons {
  256. compatible = "gpio-keys";
  257. reset {
  258. label = "Reset button";
  259. gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
  260. linux,code = <KEY_RESTART>;
  261. };
  262. };
  263. };
  264. /include/ "fsl/p1020si-post.dtsi"
  265. / {
  266. chosen {
  267. stdout-path = "/soc@ffe00000/serial@4500";
  268. };
  269. cpus {
  270. PowerPC,P1020@0 {
  271. i-cache-sets = <0x80>;
  272. i-cache-size = <0x8000>;
  273. i-cache-block-size = <0x20>;
  274. d-cache-sets = <0x80>;
  275. d-cache-size = <0x8000>;
  276. d-cache-block-size = <0x20>;
  277. clock-frequency = <0x2756cd00>;
  278. bus-frequency = <0x13ab6680>;
  279. timebase-frequency = <0x2756cd0>;
  280. };
  281. };
  282. memory {
  283. reg = <0x00 0x00 0x00 0x10000000>;
  284. };
  285. localbus@ffe05000 {
  286. bus-frequency = <0x13ab668>;
  287. };
  288. soc@ffe00000 {
  289. bus-frequency = <0x13ab6680>;
  290. serial@4500 {
  291. clock-frequency = <0x13ab6680>;
  292. };
  293. serial@4600 {
  294. clock-frequency = <0x13ab6680>;
  295. };
  296. };
  297. pcie@ffe09000 {
  298. clock-frequency = <0x1fca055>;
  299. };
  300. pcie@ffe0a000 {
  301. clock-frequency = <0x1fca055>;
  302. };
  303. };