qcom-ipq4018-rt-ac58u.dts 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301
  1. /* Copyright (c) 2015, The Linux Foundation. All rights reserved.
  2. *
  3. * Permission to use, copy, modify, and/or distribute this software for any
  4. * purpose with or without fee is hereby granted, provided that the above
  5. * copyright notice and this permission notice appear in all copies.
  6. *
  7. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  8. * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  9. * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  10. * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  11. * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  12. * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  13. * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  14. *
  15. */
  16. #include "qcom-ipq4019.dtsi"
  17. #include <dt-bindings/gpio/gpio.h>
  18. #include <dt-bindings/input/input.h>
  19. #include <dt-bindings/soc/qcom,tcsr.h>
  20. / {
  21. model = "ASUS RT-AC58U";
  22. compatible = "asus,rt-ac58u", "qcom,ipq4019";
  23. memory {
  24. device_type = "memory";
  25. reg = <0x80000000 0x8000000>;
  26. };
  27. aliases {
  28. led-boot = &power;
  29. led-failsafe = &power;
  30. led-running = &power;
  31. led-upgrade = &power;
  32. };
  33. chosen {
  34. bootargs-append = " ubi.mtd=UBI_DEV";
  35. };
  36. soc {
  37. mdio@90000 {
  38. status = "okay";
  39. };
  40. ess-psgmii@98000 {
  41. status = "okay";
  42. };
  43. tcsr@1949000 {
  44. compatible = "qcom,tcsr";
  45. reg = <0x1949000 0x100>;
  46. qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
  47. };
  48. tcsr@194b000 {
  49. compatible = "qcom,tcsr";
  50. reg = <0x194b000 0x100>;
  51. qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
  52. };
  53. ess_tcsr@1953000 {
  54. compatible = "qcom,tcsr";
  55. reg = <0x1953000 0x1000>;
  56. qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
  57. };
  58. tcsr@1957000 {
  59. compatible = "qcom,tcsr";
  60. reg = <0x1957000 0x100>;
  61. qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
  62. };
  63. usb2@60f8800 {
  64. status = "okay";
  65. };
  66. serial@78af000 {
  67. pinctrl-0 = <&serial_pins>;
  68. pinctrl-names = "default";
  69. status = "okay";
  70. };
  71. usb3@8af8800 {
  72. status = "okay";
  73. };
  74. crypto@8e3a000 {
  75. status = "okay";
  76. };
  77. wifi@a000000 {
  78. status = "okay";
  79. qcom,ath10k-calibration-variant = "RT-AC58U";
  80. };
  81. wifi@a800000 {
  82. status = "okay";
  83. qcom,ath10k-calibration-variant = "RT-AC58U";
  84. };
  85. watchdog@b017000 {
  86. status = "okay";
  87. };
  88. ess-switch@c000000 {
  89. status = "okay";
  90. };
  91. edma@c080000 {
  92. status = "okay";
  93. };
  94. };
  95. gpio-keys {
  96. compatible = "gpio-keys";
  97. reset {
  98. label = "reset";
  99. gpios = <&tlmm 4 GPIO_ACTIVE_LOW>;
  100. linux,code = <KEY_RESTART>;
  101. };
  102. wps {
  103. label = "wps";
  104. gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
  105. linux,code = <KEY_WPS_BUTTON>;
  106. };
  107. };
  108. gpio-leds {
  109. compatible = "gpio-leds";
  110. power: status {
  111. label = "rt-ac58u:blue:status";
  112. gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
  113. };
  114. wan {
  115. label = "rt-ac58u:blue:wan";
  116. gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
  117. };
  118. wlan2G {
  119. label = "rt-ac58u:blue:wlan2G";
  120. gpios = <&tlmm 58 GPIO_ACTIVE_HIGH>;
  121. };
  122. wan5G {
  123. label = "rt-ac58u:blue:wlan5G";
  124. gpios = <&tlmm 5 GPIO_ACTIVE_HIGH>;
  125. };
  126. usb {
  127. label = "rt-ac58u:blue:usb";
  128. gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
  129. };
  130. lan {
  131. label = "rt-ac58u:blue:lan";
  132. gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
  133. };
  134. };
  135. };
  136. &cryptobam {
  137. status = "okay";
  138. };
  139. &blsp_dma {
  140. status = "okay";
  141. };
  142. &tlmm {
  143. serial_pins: serial_pinmux {
  144. mux {
  145. pins = "gpio60", "gpio61";
  146. function = "blsp_uart0";
  147. bias-disable;
  148. };
  149. };
  150. spi_0_pins: spi_0_pinmux {
  151. mux {
  152. function = "blsp_spi0";
  153. pins = "gpio55", "gpio56", "gpio57";
  154. drive-strength = <12>;
  155. bias-disable;
  156. };
  157. mux_cs {
  158. function = "gpio";
  159. pins = "gpio54", "gpio59";
  160. drive-strength = <2>;
  161. bias-disable;
  162. output-high;
  163. };
  164. };
  165. };
  166. &blsp1_spi1 { /* BLSP1 QUP1 */
  167. pinctrl-0 = <&spi_0_pins>;
  168. pinctrl-names = "default";
  169. status = "okay";
  170. cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>,
  171. <&tlmm 59 GPIO_ACTIVE_HIGH>;
  172. m25p80@0 {
  173. #address-cells = <1>;
  174. #size-cells = <0>;
  175. /*
  176. * U-boot looks for "n25q128a11" node,
  177. * if we don't have it, it will spit out the following warning:
  178. * "ipq: fdt fixup unable to find compatible node".
  179. */
  180. compatible = "jedec,spi-nor";
  181. reg = <0>;
  182. linux,modalias = "m25p80", "mx25l1606e", "n25q128a11";
  183. spi-max-frequency = <24000000>;
  184. partitions {
  185. compatible = "fixed-partitions";
  186. #address-cells = <1>;
  187. #size-cells = <1>;
  188. partition0@0 {
  189. label = "SBL1";
  190. reg = <0x00000000 0x00040000>;
  191. read-only;
  192. };
  193. partition1@40000 {
  194. label = "MIBIB";
  195. reg = <0x00040000 0x00020000>;
  196. read-only;
  197. };
  198. partition2@60000 {
  199. label = "QSEE";
  200. reg = <0x00060000 0x00060000>;
  201. read-only;
  202. };
  203. partition3@c0000 {
  204. label = "CDT";
  205. reg = <0x000c0000 0x00010000>;
  206. read-only;
  207. };
  208. partition4@d0000 {
  209. label = "DDRPARAMS";
  210. reg = <0x000d0000 0x00010000>;
  211. read-only;
  212. };
  213. partition5@e0000 {
  214. label = "APPSBLENV"; /* uboot env*/
  215. reg = <0x000e0000 0x00010000>;
  216. read-only;
  217. };
  218. partition5@f0000 {
  219. label = "APPSBL"; /* uboot */
  220. reg = <0x000f0000 0x00080000>;
  221. read-only;
  222. };
  223. partition5@170000 {
  224. label = "ART";
  225. reg = <0x00170000 0x00010000>;
  226. read-only;
  227. };
  228. /* 0x00180000 - 0x00200000 unused */
  229. };
  230. };
  231. mt29f@1 {
  232. #address-cells = <1>;
  233. #size-cells = <0>;
  234. compatible = "spinand,mt29f";
  235. reg = <1>;
  236. spi-max-frequency = <24000000>;
  237. partitions {
  238. compatible = "fixed-partitions";
  239. #address-cells = <1>;
  240. #size-cells = <1>;
  241. partition0@0 {
  242. label = "ubi";
  243. reg = <0x00000000 0x08000000>;
  244. };
  245. };
  246. };
  247. };
  248. &usb3_ss_phy {
  249. status = "okay";
  250. };
  251. &usb3_hs_phy {
  252. status = "okay";
  253. };
  254. &usb2_hs_phy {
  255. status = "okay";
  256. };