qcom-ipq4018-ens620ext.dts 4.2 KB

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