qcom-ipq4019-map-ac2200.dts 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309
  1. // SPDX-License-Identifier: GPL-2.0+ OR MIT
  2. /dts-v1/;
  3. #include "qcom-ipq4019.dtsi"
  4. #include <dt-bindings/gpio/gpio.h>
  5. #include <dt-bindings/input/input.h>
  6. #include <dt-bindings/soc/qcom,tcsr.h>
  7. / {
  8. model = "ASUS Lyra MAP-AC2200";
  9. compatible = "asus,map-ac2200";
  10. aliases {
  11. led-boot = &led_blue0;
  12. led-failsafe = &led_red0;
  13. led-running = &led_blue0;
  14. led-upgrade = &led_red0;
  15. };
  16. soc {
  17. rng@22000 {
  18. status = "okay";
  19. };
  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. usb2@60f8800 {
  42. status = "okay";
  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. keys {
  58. compatible = "gpio-keys";
  59. reset {
  60. label = "reset";
  61. gpios = <&tlmm 34 GPIO_ACTIVE_LOW>;
  62. linux,code = <KEY_RESTART>;
  63. };
  64. wps {
  65. label = "wps";
  66. gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
  67. linux,code = <KEY_WPS_BUTTON>;
  68. };
  69. };
  70. };
  71. &nand {
  72. pinctrl-0 = <&nand_pins>;
  73. pinctrl-names = "default";
  74. status = "okay";
  75. nand@0 {
  76. partitions {
  77. compatible = "fixed-partitions";
  78. #address-cells = <1>;
  79. #size-cells = <1>;
  80. partition@0 {
  81. label = "SBL1";
  82. reg = <0x0 0x80000>;
  83. read-only;
  84. };
  85. partition@80000 {
  86. label = "MIBIB";
  87. reg = <0x80000 0x80000>;
  88. read-only;
  89. };
  90. partition@100000 {
  91. label = "QSEE";
  92. reg = <0x100000 0x100000>;
  93. read-only;
  94. };
  95. partition@200000 {
  96. label = "CDT";
  97. reg = <0x200000 0x80000>;
  98. read-only;
  99. };
  100. partition@280000 {
  101. label = "APPSBL";
  102. reg = <0x280000 0x140000>;
  103. read-only;
  104. };
  105. partition@3c0000 {
  106. label = "APPSBLENV";
  107. reg = <0x3c0000 0x40000>;
  108. read-only;
  109. };
  110. partition@400000 {
  111. label = "ubi";
  112. reg = <0x400000 0x7c00000>;
  113. };
  114. };
  115. };
  116. };
  117. &tlmm {
  118. i2c_0_pins: i2c_0_pinmux {
  119. pinmux {
  120. function = "blsp_i2c0";
  121. pins = "gpio20", "gpio21";
  122. drive-strength = <16>;
  123. bias-disable;
  124. };
  125. };
  126. serial_pins: serial_pinmux {
  127. mux {
  128. pins = "gpio16", "gpio17";
  129. function = "blsp_uart0";
  130. bias-disable;
  131. };
  132. };
  133. nand_pins: nand_pins {
  134. pullups {
  135. pins = "gpio52", "gpio53", "gpio58",
  136. "gpio59";
  137. function = "qpic";
  138. bias-pull-up;
  139. };
  140. pulldowns {
  141. pins = "gpio54", "gpio55", "gpio56",
  142. "gpio57", "gpio60", "gpio61",
  143. "gpio62", "gpio63", "gpio64",
  144. "gpio65", "gpio66", "gpio67",
  145. "gpio68", "gpio69";
  146. function = "qpic";
  147. bias-pull-down;
  148. };
  149. };
  150. };
  151. &cryptobam {
  152. status = "okay";
  153. };
  154. &blsp_dma {
  155. status = "okay";
  156. };
  157. &qpic_bam {
  158. status = "okay";
  159. };
  160. &wifi0 {
  161. status = "okay";
  162. qcom,ath10k-calibration-variant = "ASUS-MAP-AC2200";
  163. };
  164. &wifi1 {
  165. status = "okay";
  166. qcom,ath10k-calibration-variant = "ASUS-MAP-AC2200";
  167. };
  168. &pcie0 {
  169. status = "okay";
  170. perst-gpio = <&tlmm 38 GPIO_ACTIVE_LOW>;
  171. wake-gpio = <&tlmm 50 GPIO_ACTIVE_LOW>;
  172. bridge@0,0 {
  173. reg = <0x00000000 0 0 0 0>;
  174. #address-cells = <3>;
  175. #size-cells = <2>;
  176. ranges;
  177. wifi2: wifi@1,0 {
  178. compatible = "qcom,ath10k";
  179. status = "okay";
  180. reg = <0x00010000 0 0 0 0>;
  181. qcom,ath10k-calibration-variant = "ASUS-MAP-AC2200";
  182. };
  183. };
  184. };
  185. &usb2_hs_phy {
  186. /* Bluetooth module attached via USB */
  187. status = "okay";
  188. };
  189. &blsp1_i2c3 {
  190. pinctrl-0 = <&i2c_0_pins>;
  191. pinctrl-names = "default";
  192. status = "okay";
  193. led-controller@32 {
  194. /* 9-channel RGB LED controller */
  195. compatible = "national,lp5523";
  196. reg = <0x32>;
  197. clock-mode = [01];
  198. led_blue0: blue0 {
  199. chan-name = "blue0";
  200. label = "map-ac2200:blue:chan0";
  201. led-cur = [fa];
  202. max-cur = [ff];
  203. };
  204. blue1 {
  205. chan-name = "blue1";
  206. label = "map-ac2200:blue:chan1";
  207. led-cur = [fa];
  208. max-cur = [ff];
  209. };
  210. blue2 {
  211. chan-name = "blue2";
  212. label = "map-ac2200:blue:chan2";
  213. led-cur = [fa];
  214. max-cur = [ff];
  215. };
  216. led_green0: green0 {
  217. chan-name = "green0";
  218. label = "map-ac2200:green:chan0";
  219. led-cur = [fa];
  220. max-cur = [ff];
  221. };
  222. green1 {
  223. chan-name = "green1";
  224. label = "map-ac2200:green:chan1";
  225. led-cur = [fa];
  226. max-cur = [ff];
  227. };
  228. green2 {
  229. chan-name = "green2";
  230. label = "map-ac2200:green:chan2";
  231. led-cur = [fa];
  232. max-cur = [ff];
  233. };
  234. led_red0: red0 {
  235. chan-name = "red0";
  236. label = "map-ac2200:red:chan0";
  237. led-cur = [fa];
  238. max-cur = [ff];
  239. };
  240. red1 {
  241. chan-name = "red1";
  242. label = "map-ac2200:red:chan1";
  243. led-cur = [fa];
  244. max-cur = [ff];
  245. };
  246. red2 {
  247. chan-name = "red2";
  248. label = "map-ac2200:red:chan2";
  249. led-cur = [fa];
  250. max-cur = [ff];
  251. };
  252. };
  253. };
  254. &blsp1_uart1 {
  255. pinctrl-0 = <&serial_pins>;
  256. pinctrl-names = "default";
  257. status = "okay";
  258. };