qcom-ipq4018-eap1300.dts 3.9 KB

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