qcom-ipq4019-e2600ac.dtsi 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266
  1. /* SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2. *
  3. * Copyright (c) 2018 Peng Zhang <[email protected]>
  4. *
  5. */
  6. #include "qcom-ipq4019.dtsi"
  7. #include <dt-bindings/gpio/gpio.h>
  8. #include <dt-bindings/input/input.h>
  9. #include <dt-bindings/soc/qcom,tcsr.h>
  10. / {
  11. model = "Qxwlan E2600AC";
  12. compatible = "qcom,ipq4019";
  13. memory {
  14. device_type = "memory";
  15. reg = <0x80000000 0x10000000>; /* 256MB */
  16. };
  17. soc {
  18. rng@22000 {
  19. status = "okay";
  20. };
  21. mdio@90000 {
  22. status = "okay";
  23. pinctrl-0 = <&mdio_pins>;
  24. pinctrl-names = "default";
  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. tcsr@194b000 {
  35. /* select hostmode */
  36. compatible = "qcom,tcsr";
  37. reg = <0x194b000 0x100>;
  38. qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
  39. status = "okay";
  40. };
  41. ess_tcsr@1953000 {
  42. compatible = "qcom,tcsr";
  43. reg = <0x1953000 0x1000>;
  44. qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
  45. };
  46. tcsr@1957000 {
  47. compatible = "qcom,tcsr";
  48. reg = <0x1957000 0x100>;
  49. qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
  50. };
  51. usb2: usb2@60f8800 {
  52. status = "okay";
  53. dwc3@6000000 {
  54. #address-cells = <1>;
  55. #size-cells = <0>;
  56. usb2_port1: port@1 {
  57. reg = <1>;
  58. #trigger-source-cells = <0>;
  59. };
  60. };
  61. };
  62. serial@78af000 {
  63. pinctrl-0 = <&serial_0_pins>;
  64. pinctrl-names = "default";
  65. status = "okay";
  66. };
  67. serial@78b0000 {
  68. pinctrl-0 = <&serial_1_pins>;
  69. pinctrl-names = "default";
  70. status = "okay";
  71. };
  72. i2c@78b7000 { /* BLSP1 QUP2 */
  73. pinctrl-0 = <&i2c_0_pins>;
  74. pinctrl-names = "default";
  75. status = "okay";
  76. };
  77. usb3: usb3@8af8800 {
  78. status = "okay";
  79. dwc3@8a00000 {
  80. #address-cells = <1>;
  81. #size-cells = <0>;
  82. usb3_port1: port@1 {
  83. reg = <1>;
  84. #trigger-source-cells = <0>;
  85. };
  86. usb3_port2: port@2 {
  87. reg = <2>;
  88. #trigger-source-cells = <0>;
  89. };
  90. };
  91. };
  92. crypto@8e3a000 {
  93. status = "okay";
  94. };
  95. watchdog@b017000 {
  96. status = "okay";
  97. };
  98. ess-switch@c000000 {
  99. status = "okay";
  100. };
  101. edma@c080000 {
  102. status = "okay";
  103. };
  104. leds {
  105. compatible = "gpio-leds";
  106. led1 {
  107. label = "green:wlan0";
  108. gpios = <&tlmm 50 GPIO_ACTIVE_LOW>;
  109. };
  110. led2 {
  111. label = "green:wlan1";
  112. gpios = <&tlmm 36 GPIO_ACTIVE_LOW>;
  113. };
  114. led3 {
  115. label = "green:usb";
  116. gpios = <&tlmm 32 GPIO_ACTIVE_LOW>;
  117. trigger-sources = <&usb2_port1>, <&usb3_port1>, <&usb3_port2>;
  118. linux,default-trigger = "usbport";
  119. };
  120. led4 {
  121. label = "green:ctrl1";
  122. gpios = <&tlmm 51 GPIO_ACTIVE_LOW>;
  123. };
  124. led5 {
  125. label = "green:ctrl2";
  126. gpios = <&tlmm 30 GPIO_ACTIVE_LOW>;
  127. };
  128. led6 {
  129. label = "green:ctrl3";
  130. gpios = <&tlmm 31 GPIO_ACTIVE_LOW>;
  131. };
  132. };
  133. keys {
  134. compatible = "gpio-keys";
  135. reset {
  136. label = "reset";
  137. gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
  138. linux,code = <KEY_RESTART>;
  139. };
  140. };
  141. };
  142. };
  143. &blsp_dma {
  144. status = "okay";
  145. };
  146. &cryptobam {
  147. status = "okay";
  148. };
  149. &qpic_bam {
  150. status = "okay";
  151. };
  152. &tlmm {
  153. i2c_0_pins: i2c-0-pinmux {
  154. mux {
  155. pins = "gpio20", "gpio21";
  156. function = "blsp_i2c0";
  157. bias-disable;
  158. };
  159. };
  160. mdio_pins: mdio_pinmux {
  161. mux_1 {
  162. pins = "gpio6";
  163. function = "mdio";
  164. bias-pull-up;
  165. };
  166. mux_2 {
  167. pins = "gpio7";
  168. function = "mdc";
  169. bias-pull-up;
  170. };
  171. };
  172. serial_0_pins: serial0-pinmux {
  173. mux {
  174. pins = "gpio16", "gpio17";
  175. function = "blsp_uart0";
  176. bias-disable;
  177. };
  178. };
  179. serial_1_pins: serial1_pinmux {
  180. mux {
  181. pins = "gpio8", "gpio9";
  182. function = "blsp_uart1";
  183. bias-disable;
  184. };
  185. };
  186. spi_0_pins: spi_0_pinmux {
  187. pinmux {
  188. function = "blsp_spi0";
  189. pins = "gpio13", "gpio14", "gpio15";
  190. drive-strength = <12>;
  191. bias-disable;
  192. };
  193. pinmux_cs {
  194. function = "gpio";
  195. pins = "gpio12";
  196. drive-strength = <2>;
  197. bias-disable;
  198. output-high;
  199. };
  200. };
  201. };
  202. &usb3_ss_phy {
  203. status = "okay";
  204. };
  205. &usb3_hs_phy {
  206. status = "okay";
  207. };
  208. &usb2_hs_phy {
  209. status = "okay";
  210. };
  211. &wifi0 {
  212. status = "okay";
  213. qcom,ath10k-calibration-variant = "Qxwlan-E2600AC";
  214. };
  215. &wifi1 {
  216. status = "okay";
  217. qcom,ath10k-calibration-variant = "Qxwlan-E2600AC";
  218. };