qcom-ipq4029-ws-ap391x.dts 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344
  1. // SPDX-License-Identifier: GPL-2.0-only OR MIT
  2. #include "qcom-ipq4019.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. #include <dt-bindings/soc/qcom,tcsr.h>
  6. / {
  7. model = "Extreme Networks WS-AP391x";
  8. compatible = "extreme-networks,ws-ap391x";
  9. aliases {
  10. led-boot = &led_system_green;
  11. led-failsafe = &led_system_red;
  12. led-running = &led_system_green;
  13. led-upgrade = &led_system_red;
  14. };
  15. soc {
  16. tcsr@1949000 {
  17. compatible = "qcom,tcsr";
  18. reg = <0x1949000 0x100>;
  19. qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
  20. };
  21. ess_tcsr@1953000 {
  22. compatible = "qcom,tcsr";
  23. reg = <0x1953000 0x1000>;
  24. qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
  25. };
  26. tcsr@1957000 {
  27. compatible = "qcom,tcsr";
  28. reg = <0x1957000 0x100>;
  29. qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
  30. };
  31. };
  32. leds {
  33. compatible = "gpio-leds";
  34. led_system_green: system_green {
  35. label = "system:green";
  36. gpios = <&tlmm 49 GPIO_ACTIVE_LOW>;
  37. };
  38. /*
  39. * system:amber ==> AP3917
  40. * system:red ==> AP3916
  41. * */
  42. led_system_red: system_red {
  43. label = "system:red_or_system:amber";
  44. gpios = <&tlmm 50 GPIO_ACTIVE_LOW>;
  45. };
  46. led_wlan24_green: wlan24_green {
  47. label = "wlan24:green";
  48. gpios = <&tlmm 23 GPIO_ACTIVE_LOW>;
  49. linux,default-trigger = "phy0tpt";
  50. };
  51. /*
  52. * wlan24:amber ==> AP3915/AP3917
  53. * pse:green ==> AP3912
  54. * */
  55. led_wlan24_amber: wlan24_amber {
  56. label = "wlan24:amber_or_pse:green";
  57. gpios = <&tlmm 32 GPIO_ACTIVE_LOW>;
  58. };
  59. led_wlan5_green: wlan5_green {
  60. label = "wlan5:green";
  61. gpios = <&tlmm 22 GPIO_ACTIVE_LOW>;
  62. linux,default-trigger = "phy1tpt";
  63. };
  64. /* iot:blue ==> AP3917 */
  65. led_iot_green: iot_green {
  66. label = "iot:green_or_iot:blue";
  67. gpios = <&tlmm 10 GPIO_ACTIVE_LOW>;
  68. };
  69. /* eth:green ==> only AP3912/AP3916 */
  70. led_eth_green: eth_green {
  71. label = "eth:green";
  72. gpios = <&tlmm 41 GPIO_ACTIVE_LOW>;
  73. };
  74. /*
  75. * eth:amber ==> only AP3912/AP3916
  76. * usb_enable ==> only AP3915e
  77. */
  78. led_eth_amber: eth_amber {
  79. label = "eth:amber_or_usb_enable";
  80. gpios = <&tlmm 52 GPIO_ACTIVE_LOW>;
  81. };
  82. /*
  83. * wlan5:amber ==> AP3915/AP3917
  84. * cam:green ==> only AP3916
  85. */
  86. led_wlan5_amber: wlan5_amber {
  87. label = "wlan5:amber_or_cam:green";
  88. gpios = <&tlmm 26 GPIO_ACTIVE_LOW>;
  89. };
  90. };
  91. keys {
  92. compatible = "gpio-keys";
  93. reset {
  94. label = "reset";
  95. gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
  96. linux,code = <KEY_RESTART >;
  97. };
  98. };
  99. };
  100. &prng {
  101. status = "okay";
  102. };
  103. &mdio {
  104. status = "okay";
  105. pinctrl-0 = <&mdio_pins>;
  106. pinctrl-names = "default";
  107. };
  108. &crypto {
  109. status = "okay";
  110. };
  111. &watchdog {
  112. status = "okay";
  113. };
  114. &usb3_ss_phy {
  115. status = "okay";
  116. };
  117. &usb3_hs_phy {
  118. status = "okay";
  119. };
  120. &usb3 {
  121. status = "okay";
  122. };
  123. &usb2_hs_phy {
  124. status = "okay";
  125. };
  126. &usb2 {
  127. status = "okay";
  128. };
  129. &blsp_dma {
  130. status = "okay";
  131. };
  132. &blsp1_uart1 {
  133. pinctrl-0 = <&serial_pins>;
  134. pinctrl-names = "default";
  135. status = "okay";
  136. };
  137. &cryptobam {
  138. status = "okay";
  139. };
  140. &qpic_bam {
  141. status = "okay";
  142. };
  143. &gmac {
  144. status = "okay";
  145. };
  146. &switch {
  147. status = "okay";
  148. };
  149. &swport1 {
  150. status = "okay";
  151. label = "sw-eth1";
  152. };
  153. &swport2 {
  154. status = "okay";
  155. label = "sw-eth2";
  156. };
  157. &swport3 {
  158. status = "okay";
  159. label = "sw-eth3";
  160. };
  161. /* "GE2" on AP3917/AP3916/WiNG-AP7662 */
  162. &swport4 {
  163. status = "okay";
  164. label = "sw-eth4";
  165. };
  166. /*
  167. * "GE1" on AP3917/AP3916/AP3915/AP7662
  168. * "LAN1" on EXTR-AP3912
  169. */
  170. &swport5 {
  171. status = "okay";
  172. label = "sw-eth5";
  173. };
  174. &tlmm {
  175. mdio_pins: mdio_pinmux {
  176. mux_1 {
  177. pins = "gpio6";
  178. function = "mdio";
  179. bias-pull-up;
  180. };
  181. mux_2 {
  182. pins = "gpio7";
  183. function = "mdc";
  184. bias-pull-up;
  185. };
  186. };
  187. spi_0_pins: spi_0_pinmux {
  188. pin {
  189. function = "blsp_spi0";
  190. pins = "gpio13", "gpio14", "gpio15";
  191. drive-strength = <12>;
  192. bias-disable;
  193. };
  194. pin_cs {
  195. function = "gpio";
  196. pins = "gpio12";
  197. drive-strength = <2>;
  198. bias-disable;
  199. output-high;
  200. };
  201. };
  202. serial_pins: serial_0_pinmux {
  203. mux {
  204. pins = "gpio16", "gpio17";
  205. function = "blsp_uart0";
  206. bias-disable;
  207. };
  208. };
  209. };
  210. &wifi0 {
  211. status = "okay";
  212. qcom,ath10k-calibration-variant = "Extreme-Networks-WS-AP3915i";
  213. };
  214. &wifi1 {
  215. status = "okay";
  216. qcom,ath10k-calibration-variant = "Extreme-Networks-WS-AP3915i";
  217. };
  218. &blsp1_spi1 {
  219. pinctrl-0 = <&spi_0_pins>;
  220. pinctrl-names = "default";
  221. status = "okay";
  222. cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
  223. flash@0 {
  224. compatible = "jedec,spi-nor";
  225. reg = <0>;
  226. spi-max-frequency = <24000000>;
  227. partitions {
  228. compatible = "fixed-partitions";
  229. #address-cells = <1>;
  230. #size-cells = <1>;
  231. /* Layout for 0x0 - 0xe0000 unknown */
  232. partition@e0000 {
  233. label = "CFG1";
  234. compatible = "u-boot,env-redundant-bool";
  235. reg = <0xe0000 0x10000>;
  236. read-only;
  237. };
  238. partition@f0000 {
  239. label = "BootBAK";
  240. reg = <0xf0000 0x70000>;
  241. read-only;
  242. };
  243. partition@160000 {
  244. label = "WINGCFG1";
  245. reg = <0x160000 0x10000>;
  246. read-only;
  247. };
  248. partition@170000 {
  249. label = "ART";
  250. reg = <0x170000 0x10000>;
  251. read-only;
  252. };
  253. partition@180000 {
  254. label = "BootPRI";
  255. reg = <0x180000 0x70000>;
  256. read-only;
  257. };
  258. partition@1f0000 {
  259. label = "WINGCFG2";
  260. reg = <0x1f0000 0x10000>;
  261. read-only;
  262. };
  263. partition@200000 {
  264. label = "FS";
  265. reg = <0x200000 0x80000>;
  266. read-only;
  267. };
  268. partition@280000 {
  269. label = "firmware";
  270. reg = <0x280000 0xeb0000>;
  271. };
  272. partition@1130000 {
  273. label = "firmware2";
  274. reg = <0x1130000 0xeb0000>;
  275. };
  276. partition@1fe0000 {
  277. label = "CFG2";
  278. compatible = "u-boot,env-redundant-bool";
  279. reg = <0x1fe0000 0x10000>;
  280. read-only;
  281. };
  282. };
  283. };
  284. };