qcom-ipq4019-eap2200.dts 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282
  1. // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2. #include "qcom-ipq4019.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. / {
  6. model = "EnGenius EAP2200";
  7. compatible = "engenius,eap2200";
  8. aliases {
  9. led-boot = &led_power;
  10. led-failsafe = &led_power;
  11. led-running = &led_power;
  12. led-upgrade = &led_power;
  13. };
  14. keys {
  15. compatible = "gpio-keys";
  16. wps {
  17. label = "wps";
  18. gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
  19. linux,code = <KEY_WPS_BUTTON>;
  20. };
  21. };
  22. leds {
  23. compatible = "gpio-leds";
  24. led_power: power {
  25. label = "amber:power";
  26. gpios = <&tlmm 43 GPIO_ACTIVE_LOW>;
  27. };
  28. lan1 {
  29. label = "blue:lan1";
  30. gpios = <&tlmm 44 GPIO_ACTIVE_LOW>;
  31. };
  32. lan2 {
  33. label = "blue:lan2";
  34. gpios = <&tlmm 45 GPIO_ACTIVE_LOW>;
  35. };
  36. wlan2g {
  37. label = "blue:wlan2g";
  38. gpios = <&tlmm 46 GPIO_ACTIVE_LOW>;
  39. linux,default-trigger = "phy0tpt";
  40. };
  41. wlan5g {
  42. label = "yellow:wlan5g";
  43. gpios = <&tlmm 47 GPIO_ACTIVE_LOW>;
  44. linux,default-trigger = "phy1tpt";
  45. };
  46. wlan5g2 {
  47. label = "yellow:wlan5g2";
  48. gpios = <&tlmm 48 GPIO_ACTIVE_LOW>;
  49. linux,default-trigger = "phy2tpt";
  50. };
  51. mode {
  52. label = "blue:mode";
  53. gpios = <&tlmm 50 GPIO_ACTIVE_LOW>;
  54. };
  55. };
  56. soc {
  57. rng@22000 {
  58. status = "okay";
  59. };
  60. mdio@90000 {
  61. status = "okay";
  62. };
  63. ess-psgmii@98000 {
  64. status = "okay";
  65. };
  66. crypto@8e3a000 {
  67. status = "okay";
  68. };
  69. watchdog@b017000 {
  70. status = "okay";
  71. };
  72. ess-switch@c000000 {
  73. status = "okay";
  74. switch_lan_bmp = <0x10>;
  75. };
  76. edma@c080000 {
  77. status = "okay";
  78. };
  79. };
  80. };
  81. &blsp_dma {
  82. status = "okay";
  83. };
  84. &blsp1_spi1 {
  85. pinctrl-0 = <&spi_0_pins>;
  86. pinctrl-names = "default";
  87. status = "okay";
  88. cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
  89. flash@0 {
  90. #address-cells = <1>;
  91. #size-cells = <1>;
  92. compatible = "jedec,spi-nor";
  93. reg = <0>;
  94. spi-max-frequency = <24000000>;
  95. partitions {
  96. compatible = "fixed-partitions";
  97. #address-cells = <1>;
  98. #size-cells = <1>;
  99. partition0@0 {
  100. label = "0:SBL1";
  101. reg = <0x00000000 0x00040000>;
  102. read-only;
  103. };
  104. partition1@40000 {
  105. label = "0:MIBIB";
  106. reg = <0x00040000 0x00020000>;
  107. read-only;
  108. };
  109. partition2@60000 {
  110. label = "0:QSEE";
  111. reg = <0x00060000 0x00060000>;
  112. read-only;
  113. };
  114. partition3@c0000 {
  115. label = "0:CDT";
  116. reg = <0x000c0000 0x00010000>;
  117. read-only;
  118. };
  119. partition4@d0000 {
  120. label = "0:DDRPARAMS";
  121. reg = <0x000d0000 0x00010000>;
  122. read-only;
  123. };
  124. partition5@e0000 {
  125. label = "0:APPSBLENV";
  126. reg = <0x000e0000 0x00010000>;
  127. read-only;
  128. };
  129. partition6@f0000 {
  130. label = "0:APPSBL";
  131. reg = <0x000f0000 0x00080000>;
  132. read-only;
  133. };
  134. partition7@170000 {
  135. label = "0:ART";
  136. reg = <0x00170000 0x00010000>;
  137. read-only;
  138. };
  139. };
  140. };
  141. };
  142. &blsp1_uart1 {
  143. pinctrl-0 = <&serial_0_pins>;
  144. pinctrl-names = "default";
  145. status = "okay";
  146. };
  147. &cryptobam {
  148. status = "okay";
  149. };
  150. &gmac0 {
  151. vlan_tag = <1 0x10>;
  152. };
  153. &nand {
  154. pinctrl-0 = <&nand_pins>;
  155. pinctrl-names = "default";
  156. status = "okay";
  157. nand@0 {
  158. partitions {
  159. compatible = "fixed-partitions";
  160. #address-cells = <1>;
  161. #size-cells = <1>;
  162. partition@0 {
  163. label = "rootfs1";
  164. reg = <0x00000000 0x04000000>;
  165. };
  166. partition@40000000 {
  167. label = "ubi";
  168. reg = <0x04000000 0x04000000>;
  169. };
  170. };
  171. };
  172. };
  173. &pcie0 {
  174. status = "okay";
  175. perst-gpio = <&tlmm 38 GPIO_ACTIVE_LOW>;
  176. wake-gpio = <&tlmm 50 GPIO_ACTIVE_LOW>;
  177. bridge@0,0 {
  178. reg = <0x00000000 0 0 0 0>;
  179. #address-cells = <3>;
  180. #size-cells = <2>;
  181. ranges;
  182. wifi2: wifi@1,0 {
  183. compatible = "qcom,ath10k";
  184. reg = <0x00010000 0 0 0 0>;
  185. ieee80211-freq-limit = <5470000 5875000>;
  186. qcom,ath10k-calibration-variant = "EnGenius-EAP2200";
  187. };
  188. };
  189. };
  190. &qpic_bam {
  191. status = "okay";
  192. };
  193. &tlmm {
  194. nand_pins: nand_pins {
  195. pullups {
  196. pins = "gpio53", "gpio58", "gpio59";
  197. function = "qpic";
  198. bias-pull-up;
  199. };
  200. pulldowns {
  201. pins = "gpio54", "gpio55", "gpio56",
  202. "gpio57", "gpio60", "gpio61",
  203. "gpio62", "gpio63", "gpio64",
  204. "gpio65", "gpio66", "gpio67",
  205. "gpio68", "gpio69";
  206. function = "qpic";
  207. bias-pull-down;
  208. };
  209. };
  210. serial_0_pins: serial_pinmux {
  211. mux {
  212. pins = "gpio16", "gpio17";
  213. function = "blsp_uart0";
  214. bias-disable;
  215. };
  216. };
  217. spi_0_pins: spi_0_pinmux {
  218. pinmux {
  219. function = "blsp_spi0";
  220. pins = "gpio13", "gpio14", "gpio15";
  221. drive-strength = <12>;
  222. bias-disable;
  223. };
  224. pinmux_cs {
  225. function = "gpio";
  226. pins = "gpio12";
  227. drive-strength = <2>;
  228. bias-disable;
  229. output-high;
  230. };
  231. };
  232. };
  233. &wifi0 {
  234. status = "okay";
  235. qcom,ath10k-calibration-variant = "EnGenius-EAP2200";
  236. };
  237. &wifi1 {
  238. status = "okay";
  239. ieee80211-freq-limit = <5170000 5350000>;
  240. qcom,ath10k-calibration-variant = "EnGenius-EAP2200";
  241. };