qcom-ipq4018-ens620ext.dts 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  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. * Disable the broken restart as a workaround for the buggy
  58. * 3.0.0/3.0.1 U-boots that ship with the device.
  59. * Note: The watchdog is now used to restart this device.
  60. */
  61. restart@4ab000 {
  62. status = "disabled";
  63. };
  64. };
  65. buttons {
  66. compatible = "gpio-keys";
  67. wps {
  68. label = "wps";
  69. gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
  70. linux,code = <KEY_WPS_BUTTON>;
  71. };
  72. };
  73. leds {
  74. compatible = "gpio-leds";
  75. power: power {
  76. label = "amber:power";
  77. gpios = <&tlmm 58 GPIO_ACTIVE_LOW>;
  78. };
  79. lan1 {
  80. label = "green:lan1";
  81. gpios = <&tlmm 1 GPIO_ACTIVE_LOW>;
  82. };
  83. lan2 {
  84. label = "green:lan2";
  85. gpios = <&tlmm 2 GPIO_ACTIVE_LOW>;
  86. };
  87. wlan2g {
  88. label = "green:wlan2g";
  89. gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
  90. };
  91. wlan5g {
  92. label = "green:wlan5g";
  93. gpios = <&tlmm 0 GPIO_ACTIVE_LOW>;
  94. };
  95. };
  96. };
  97. &cryptobam {
  98. status = "okay";
  99. };
  100. &blsp_dma {
  101. status = "okay";
  102. };
  103. &tlmm {
  104. serial_pins: serial_pinmux {
  105. mux {
  106. pins = "gpio60", "gpio61";
  107. function = "blsp_uart0";
  108. bias-disable;
  109. };
  110. };
  111. spi_0_pins: spi_0_pinmux {
  112. mux {
  113. function = "blsp_spi0";
  114. pins = "gpio55", "gpio56", "gpio57";
  115. drive-strength = <12>;
  116. bias-disable;
  117. };
  118. mux_cs {
  119. function = "gpio";
  120. pins = "gpio54";
  121. drive-strength = <2>;
  122. bias-disable;
  123. output-high;
  124. };
  125. };
  126. };
  127. &blsp1_spi1 { /* BLSP1 QUP1 */
  128. pinctrl-0 = <&spi_0_pins>;
  129. pinctrl-names = "default";
  130. status = "okay";
  131. cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
  132. flash@0 {
  133. #address-cells = <1>;
  134. #size-cells = <0>;
  135. compatible = "jedec,spi-nor";
  136. reg = <0>;
  137. spi-max-frequency = <50000000>;
  138. m25p,fast-read;
  139. partitions {
  140. compatible = "fixed-partitions";
  141. #address-cells = <1>;
  142. #size-cells = <1>;
  143. partition@0 {
  144. label = "SBL1";
  145. reg = <0x00000000 0x00040000>;
  146. read-only;
  147. };
  148. partition@40000 {
  149. label = "MIBIB";
  150. reg = <0x00040000 0x00020000>;
  151. read-only;
  152. };
  153. partition@60000 {
  154. label = "QSEE";
  155. reg = <0x00060000 0x00060000>;
  156. read-only;
  157. };
  158. partition@c0000 {
  159. label = "CDT";
  160. reg = <0x000c0000 0x00010000>;
  161. read-only;
  162. };
  163. partition@d0000 {
  164. label = "DDRPARAMS";
  165. reg = <0x000d0000 0x00010000>;
  166. read-only;
  167. };
  168. partition@e0000 {
  169. label = "APPSBLENV"; /* uboot env*/
  170. reg = <0x000e0000 0x00010000>;
  171. read-only;
  172. };
  173. partition@f0000 {
  174. label = "APPSBL"; /* uboot */
  175. reg = <0x000f0000 0x00090000>;
  176. read-only;
  177. };
  178. partition@180000 {
  179. label = "ART";
  180. reg = <0x00180000 0x00010000>;
  181. read-only;
  182. };
  183. partition@190000 {
  184. compatible = "denx,fit";
  185. label = "firmware";
  186. reg = <0x00190000 0x14d0000>;
  187. };
  188. partition@1660000 {
  189. label = "failsafe";
  190. reg = <0x01660000 0x008F0000>;
  191. read-only;
  192. };
  193. partition@1f50000 {
  194. label = "u-boot-env";
  195. reg = <0x01f50000 0x00010000>;
  196. read-only;
  197. };
  198. partition@1f60000 {
  199. label = "userconfig";
  200. reg = <0x01f60000 0x000a0000>;
  201. read-only;
  202. };
  203. };
  204. };
  205. };
  206. &blsp1_uart1 {
  207. pinctrl-0 = <&serial_pins>;
  208. pinctrl-names = "default";
  209. status = "okay";
  210. };
  211. &usb3_ss_phy {
  212. status = "okay";
  213. };
  214. &usb3_hs_phy {
  215. status = "okay";
  216. };
  217. &usb2_hs_phy {
  218. status = "okay";
  219. };
  220. &wifi0 {
  221. status = "okay";
  222. qcom,ath10k-calibration-variant = "EnGenius-ENS620EXT";
  223. };
  224. &wifi1 {
  225. status = "okay";
  226. qcom,ath10k-calibration-variant = "EnGenius-ENS620EXT";
  227. };