qcom-ipq4018-eap1300.dts 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. // SPDX-License-Identifier: GPL-2.0-or-later
  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 = "EnGenius EAP1300";
  8. compatible = "engenius,eap1300", "qcom,ipq4019";
  9. soc {
  10. mdio@90000 {
  11. status = "okay";
  12. };
  13. ess-psgmii@98000 {
  14. status = "okay";
  15. };
  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. serial@78af000 {
  32. pinctrl-0 = <&serial_pins>;
  33. pinctrl-names = "default";
  34. status = "okay";
  35. };
  36. crypto@8e3a000 {
  37. status = "okay";
  38. };
  39. watchdog@b017000 {
  40. status = "okay";
  41. };
  42. ess-switch@c000000 {
  43. status = "okay";
  44. };
  45. edma@c080000 {
  46. status = "okay";
  47. };
  48. };
  49. gpio-keys {
  50. compatible = "gpio-keys";
  51. reset {
  52. label = "reset";
  53. gpios = <&tlmm 18 GPIO_ACTIVE_HIGH>;
  54. linux,code = <KEY_RESTART>;
  55. };
  56. };
  57. aliases {
  58. led-boot = &power;
  59. led-failsafe = &power;
  60. led-running = &power;
  61. led-upgrade = &power;
  62. };
  63. gpio-leds {
  64. compatible = "gpio-leds";
  65. power: orange {
  66. label = "eap1300:orange:power";
  67. gpios = <&tlmm 58 GPIO_ACTIVE_LOW>;
  68. };
  69. lan {
  70. label = "eap1300:blue:lan";
  71. gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
  72. };
  73. mesh {
  74. label = "eap1300:blue:mesh";
  75. gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
  76. };
  77. wlan2g {
  78. label = "eap1300:blue:wlan2g";
  79. gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
  80. };
  81. wlan5g {
  82. label = "eap1300:yellow:wlan5g";
  83. gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
  84. };
  85. };
  86. };
  87. &tlmm {
  88. serial_pins: serial_pinmux {
  89. mux {
  90. pins = "gpio60", "gpio61";
  91. function = "blsp_uart0";
  92. bias-disable;
  93. };
  94. };
  95. spi_0_pins: spi_0_pinmux {
  96. pin {
  97. function = "blsp_spi0";
  98. pins = "gpio54", "gpio55", "gpio56", "gpio57";
  99. drive-strength = <12>;
  100. bias-disable;
  101. };
  102. pin_cs {
  103. function = "gpio";
  104. pins = "gpio54";
  105. drive-strength = <2>;
  106. bias-disable;
  107. output-high;
  108. };
  109. };
  110. };
  111. &blsp_dma {
  112. status = "okay";
  113. };
  114. &blsp1_spi1 {
  115. pinctrl-0 = <&spi_0_pins>;
  116. pinctrl-names = "default";
  117. status = "okay";
  118. cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
  119. m25p80@0 {
  120. compatible = "jedec,spi-nor";
  121. reg = <0>;
  122. spi-max-frequency = <24000000>;
  123. partitions {
  124. compatible = "fixed-partitions";
  125. #address-cells = <1>;
  126. #size-cells = <1>;
  127. partition@0 {
  128. label = "0:SBL1";
  129. reg = <0x00000000 0x00040000>;
  130. read-only;
  131. };
  132. partition1@40000 {
  133. label = "0:MIBIB";
  134. reg = <0x00040000 0x00020000>;
  135. read-only;
  136. };
  137. partition2@60000 {
  138. label = "0:QSEE";
  139. reg = <0x00060000 0x00060000>;
  140. read-only;
  141. };
  142. partition3@c0000 {
  143. label = "0:CDT";
  144. reg = <0x000c0000 0x00010000>;
  145. read-only;
  146. };
  147. partition4@d0000 {
  148. label = "0:DDRPARAMS";
  149. reg = <0x000d0000 0x00010000>;
  150. read-only;
  151. };
  152. partition5@e0000 {
  153. label = "0:APPSBLENV";
  154. reg = <0x000e0000 0x00010000>;
  155. read-only;
  156. };
  157. partition6@f0000 {
  158. label = "0:APPSBL";
  159. reg = <0x000f0000 0x00090000>;
  160. read-only;
  161. };
  162. partition7@180000 {
  163. label = "0:ART";
  164. reg = <0x00180000 0x00010000>;
  165. read-only;
  166. };
  167. partition8@190000 {
  168. label = "firmware";
  169. reg = <0x190000 0x1dc0000>;
  170. };
  171. partition9@1f50000 {
  172. label = "u-boot-env";
  173. reg = <0x01f50000 0x00010000>;
  174. };
  175. partition10@1f60000 {
  176. label = "userconfig";
  177. reg = <0x01f60000 0x000a0000>;
  178. };
  179. };
  180. };
  181. };
  182. &cryptobam {
  183. status = "okay";
  184. };
  185. &gmac0 {
  186. vlan_tag = <2 0x20>;
  187. };
  188. &gmac1 {
  189. vlan_tag = <1 0x10>;
  190. };
  191. &wifi0 {
  192. status = "okay";
  193. qcom,ath10k-calibration-variant = "EnGenius-EAP1300";
  194. };
  195. &wifi1 {
  196. status = "okay";
  197. qcom,ath10k-calibration-variant = "EnGenius-EAP1300";
  198. };