qcom-ipq4029-ws-ap3915i.dts 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272
  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-AP3915i";
  8. compatible = "extreme-networks,ws-ap3915i";
  9. aliases {
  10. led-boot = &led_system_green;
  11. led-failsafe = &led_system_amber;
  12. led-running = &led_system_green;
  13. led-upgrade = &led_system_amber;
  14. label-mac-device = &gmac0;
  15. };
  16. soc {
  17. rng@22000 {
  18. status = "okay";
  19. };
  20. mdio@90000 {
  21. status = "okay";
  22. pinctrl-0 = <&mdio_pins>;
  23. pinctrl-names = "default";
  24. };
  25. ess-psgmii@98000 {
  26. status = "okay";
  27. };
  28. tcsr@1949000 {
  29. compatible = "qcom,tcsr";
  30. reg = <0x1949000 0x100>;
  31. qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
  32. };
  33. ess_tcsr@1953000 {
  34. compatible = "qcom,tcsr";
  35. reg = <0x1953000 0x1000>;
  36. qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
  37. };
  38. tcsr@1957000 {
  39. compatible = "qcom,tcsr";
  40. reg = <0x1957000 0x100>;
  41. qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
  42. };
  43. crypto@8e3a000 {
  44. status = "okay";
  45. };
  46. watchdog@b017000 {
  47. status = "okay";
  48. };
  49. ess-switch@c000000 {
  50. status = "okay";
  51. switch_lan_bmp = <0x20>;
  52. switch_wan_bmp = <0x00>;
  53. };
  54. edma@c080000 {
  55. status = "okay";
  56. qcom,num_gmac = <1>;
  57. };
  58. };
  59. leds {
  60. compatible = "gpio-leds";
  61. led_system_green: system_green {
  62. label = "green:system";
  63. gpios = <&tlmm 49 GPIO_ACTIVE_LOW>;
  64. };
  65. led_system_amber: system_amber {
  66. label = "amber:system";
  67. gpios = <&tlmm 50 GPIO_ACTIVE_LOW>;
  68. };
  69. led_wlan24_green: wlan24_green {
  70. label = "green:wlan24";
  71. gpios = <&tlmm 23 GPIO_ACTIVE_LOW>;
  72. linux,default-trigger = "phy0tpt";
  73. };
  74. led_wlan24_amber: wlan24_amber {
  75. label = "amber:wlan24";
  76. gpios = <&tlmm 32 GPIO_ACTIVE_LOW>;
  77. };
  78. led_wlan5_green: wlan5_green {
  79. label = "green:wlan5";
  80. gpios = <&tlmm 22 GPIO_ACTIVE_LOW>;
  81. linux,default-trigger = "phy1tpt";
  82. };
  83. led_wlan5_amber: wlan5_amber {
  84. label = "amber:wlan5";
  85. gpios = <&tlmm 26 GPIO_ACTIVE_LOW>;
  86. };
  87. iot {
  88. label = "blue:iot";
  89. gpios = <&tlmm 10 GPIO_ACTIVE_LOW>;
  90. };
  91. };
  92. keys {
  93. compatible = "gpio-keys";
  94. reset {
  95. label = "reset";
  96. gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
  97. linux,code = <KEY_RESTART >;
  98. };
  99. };
  100. };
  101. &blsp_dma {
  102. status = "okay";
  103. };
  104. &blsp1_uart1 {
  105. pinctrl-0 = <&serial_pins>;
  106. pinctrl-names = "default";
  107. status = "okay";
  108. };
  109. &cryptobam {
  110. status = "okay";
  111. };
  112. &qpic_bam {
  113. status = "okay";
  114. };
  115. &tlmm {
  116. mdio_pins: mdio_pinmux {
  117. mux_1 {
  118. pins = "gpio6";
  119. function = "mdio";
  120. bias-pull-up;
  121. };
  122. mux_2 {
  123. pins = "gpio7";
  124. function = "mdc";
  125. bias-pull-up;
  126. };
  127. };
  128. spi_0_pins: spi_0_pinmux {
  129. pin {
  130. function = "blsp_spi0";
  131. pins = "gpio13", "gpio14", "gpio15";
  132. drive-strength = <12>;
  133. bias-disable;
  134. };
  135. pin_cs {
  136. function = "gpio";
  137. pins = "gpio12";
  138. drive-strength = <2>;
  139. bias-disable;
  140. output-high;
  141. };
  142. };
  143. serial_pins: serial_0_pinmux {
  144. mux {
  145. pins = "gpio16", "gpio17";
  146. function = "blsp_uart0";
  147. bias-disable;
  148. };
  149. };
  150. };
  151. &wifi0 {
  152. status = "okay";
  153. qcom,ath10k-calibration-variant = "Extreme-Networks-WS-AP3915i";
  154. };
  155. &wifi1 {
  156. status = "okay";
  157. qcom,ath10k-calibration-variant = "Extreme-Networks-WS-AP3915i";
  158. };
  159. &blsp1_spi1 {
  160. pinctrl-0 = <&spi_0_pins>;
  161. pinctrl-names = "default";
  162. status = "okay";
  163. cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
  164. flash@0 {
  165. compatible = "jedec,spi-nor";
  166. reg = <0>;
  167. spi-max-frequency = <24000000>;
  168. partitions {
  169. compatible = "fixed-partitions";
  170. #address-cells = <1>;
  171. #size-cells = <1>;
  172. /* Layout for 0x0 - 0xe0000 unknown */
  173. partition@e0000 {
  174. label = "CFG1";
  175. reg = <0xe0000 0x10000>;
  176. read-only;
  177. };
  178. partition@f0000 {
  179. label = "BootBAK";
  180. reg = <0xf0000 0x70000>;
  181. read-only;
  182. };
  183. partition@160000 {
  184. label = "WINGCFG1";
  185. reg = <0x160000 0x10000>;
  186. read-only;
  187. };
  188. partition@170000 {
  189. label = "ART";
  190. reg = <0x170000 0x10000>;
  191. read-only;
  192. };
  193. partition@180000 {
  194. label = "BootPRI";
  195. reg = <0x180000 0x70000>;
  196. read-only;
  197. };
  198. partition@1f0000 {
  199. label = "WINGCFG2";
  200. reg = <0x1f0000 0x10000>;
  201. read-only;
  202. };
  203. partition@200000 {
  204. label = "FS";
  205. reg = <0x200000 0x80000>;
  206. read-only;
  207. };
  208. partition@280000 {
  209. label = "firmware";
  210. reg = <0x280000 0x1d60000>;
  211. };
  212. partition@1fe0000 {
  213. label = "CFG2";
  214. reg = <0x1fe0000 0x10000>;
  215. read-only;
  216. };
  217. };
  218. };
  219. };
  220. &gmac0 {
  221. qcom,phy_mdio_addr = <4>;
  222. qcom,poll_required = <1>;
  223. qcom,forced_speed = <1000>;
  224. qcom,forced_duplex = <1>;
  225. vlan_tag = <1 0x20>;
  226. };