qcom-ipq4018-ens620ext.dts 4.3 KB

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