qcom-ipq4018-eap1300.dts 3.9 KB

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