qcom-ipq4018-ens620ext.dts 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  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. #include <dt-bindings/soc/qcom,tcsr.h>
  6. / {
  7. model = "EnGenius ENS620EXT";
  8. compatible = "engenius,ens620ext";
  9. memory {
  10. device_type = "memory";
  11. reg = <0x80000000 0x10000000>;
  12. };
  13. aliases {
  14. led-boot = &power;
  15. led-failsafe = &power;
  16. led-running = &power;
  17. led-upgrade = &power;
  18. };
  19. soc {
  20. rng@22000 {
  21. status = "okay";
  22. };
  23. mdio@90000 {
  24. status = "okay";
  25. };
  26. ess-psgmii@98000 {
  27. status = "okay";
  28. };
  29. tcsr@1949000 {
  30. compatible = "qcom,tcsr";
  31. reg = <0x1949000 0x100>;
  32. qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
  33. };
  34. ess_tcsr@1953000 {
  35. compatible = "qcom,tcsr";
  36. reg = <0x1953000 0x1000>;
  37. qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
  38. };
  39. tcsr@1957000 {
  40. compatible = "qcom,tcsr";
  41. reg = <0x1957000 0x100>;
  42. qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
  43. };
  44. crypto@8e3a000 {
  45. status = "okay";
  46. };
  47. watchdog@b017000 {
  48. status = "okay";
  49. };
  50. ess-switch@c000000 {
  51. status = "okay";
  52. };
  53. edma@c080000 {
  54. status = "okay";
  55. };
  56. };
  57. buttons {
  58. compatible = "gpio-keys";
  59. wps {
  60. label = "wps";
  61. gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
  62. linux,code = <KEY_WPS_BUTTON>;
  63. };
  64. };
  65. leds {
  66. compatible = "gpio-leds";
  67. power: power {
  68. label = "ens620ext:amber:power";
  69. gpios = <&tlmm 58 GPIO_ACTIVE_LOW>;
  70. };
  71. lan1 {
  72. label = "ens620ext:green:lan1";
  73. gpios = <&tlmm 1 GPIO_ACTIVE_LOW>;
  74. };
  75. lan2 {
  76. label = "ens620ext:green:lan2";
  77. gpios = <&tlmm 2 GPIO_ACTIVE_LOW>;
  78. };
  79. wlan2G {
  80. label = "ens620ext:green:wlan2G";
  81. gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
  82. };
  83. wlan5G {
  84. label = "ens620ext:green:wlan5G";
  85. gpios = <&tlmm 0 GPIO_ACTIVE_LOW>;
  86. };
  87. };
  88. };
  89. &cryptobam {
  90. status = "okay";
  91. };
  92. &blsp_dma {
  93. status = "okay";
  94. };
  95. &tlmm {
  96. serial_pins: serial_pinmux {
  97. mux {
  98. pins = "gpio60", "gpio61";
  99. function = "blsp_uart0";
  100. bias-disable;
  101. };
  102. };
  103. spi_0_pins: spi_0_pinmux {
  104. mux {
  105. function = "blsp_spi0";
  106. pins = "gpio55", "gpio56", "gpio57";
  107. drive-strength = <12>;
  108. bias-disable;
  109. };
  110. mux_cs {
  111. function = "gpio";
  112. pins = "gpio54";
  113. drive-strength = <2>;
  114. bias-disable;
  115. output-high;
  116. };
  117. };
  118. };
  119. &blsp1_spi1 { /* BLSP1 QUP1 */
  120. pinctrl-0 = <&spi_0_pins>;
  121. pinctrl-names = "default";
  122. status = "okay";
  123. cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
  124. flash@0 {
  125. #address-cells = <1>;
  126. #size-cells = <0>;
  127. compatible = "jedec,spi-nor";
  128. reg = <0>;
  129. spi-max-frequency = <50000000>;
  130. m25p,fast-read;
  131. partitions {
  132. compatible = "fixed-partitions";
  133. #address-cells = <1>;
  134. #size-cells = <1>;
  135. partition@0 {
  136. label = "SBL1";
  137. reg = <0x00000000 0x00040000>;
  138. read-only;
  139. };
  140. partition@40000 {
  141. label = "MIBIB";
  142. reg = <0x00040000 0x00020000>;
  143. read-only;
  144. };
  145. partition@60000 {
  146. label = "QSEE";
  147. reg = <0x00060000 0x00060000>;
  148. read-only;
  149. };
  150. partition@c0000 {
  151. label = "CDT";
  152. reg = <0x000c0000 0x00010000>;
  153. read-only;
  154. };
  155. partition@d0000 {
  156. label = "DDRPARAMS";
  157. reg = <0x000d0000 0x00010000>;
  158. read-only;
  159. };
  160. partition@e0000 {
  161. label = "APPSBLENV"; /* uboot env*/
  162. reg = <0x000e0000 0x00010000>;
  163. read-only;
  164. };
  165. partition@f0000 {
  166. label = "APPSBL"; /* uboot */
  167. reg = <0x000f0000 0x00090000>;
  168. read-only;
  169. };
  170. partition@180000 {
  171. label = "ART";
  172. reg = <0x00180000 0x00010000>;
  173. read-only;
  174. };
  175. partition@190000 {
  176. compatible = "denx,fit";
  177. label = "firmware";
  178. reg = <0x00190000 0x14d0000>;
  179. };
  180. partition@1660000 {
  181. label = "failsafe";
  182. reg = <0x01660000 0x008F0000>;
  183. read-only;
  184. };
  185. partition@1f50000 {
  186. label = "u-boot-env";
  187. reg = <0x01f50000 0x00010000>;
  188. read-only;
  189. };
  190. partition@1f60000 {
  191. label = "userconfig";
  192. reg = <0x01f60000 0x000a0000>;
  193. read-only;
  194. };
  195. };
  196. };
  197. };
  198. &blsp1_uart1 {
  199. pinctrl-0 = <&serial_pins>;
  200. pinctrl-names = "default";
  201. status = "okay";
  202. };
  203. &usb3_ss_phy {
  204. status = "okay";
  205. };
  206. &usb3_hs_phy {
  207. status = "okay";
  208. };
  209. &usb2_hs_phy {
  210. status = "okay";
  211. };
  212. &wifi0 {
  213. status = "okay";
  214. qcom,ath10k-calibration-variant = "EnGenius-ENS620EXT";
  215. };
  216. &wifi1 {
  217. status = "okay";
  218. qcom,ath10k-calibration-variant = "EnGenius-ENS620EXT";
  219. };