2
0

qcom-ipq4019-map-ac2200.dts 4.9 KB

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