qcom-ipq4019-rt-ac58u.dts 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271
  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-ap.dk01.1.dtsi"
  17. #include "qcom-ipq4019-bus.dtsi"
  18. #include <dt-bindings/gpio/gpio.h>
  19. #include <dt-bindings/input/input.h>
  20. #include <dt-bindings/soc/qcom,tcsr.h>
  21. / {
  22. model = "ASUS RT-AC58U";
  23. compatible = "asus,rt-ac58u", "qcom,ipq4019";
  24. memory {
  25. device_type = "memory";
  26. reg = <0x80000000 0x8000000>;
  27. };
  28. aliases {
  29. led-boot = &power;
  30. led-failsafe = &power;
  31. led-running = &power;
  32. led-upgrade = &power;
  33. };
  34. reserved-memory {
  35. #address-cells = <0x1>;
  36. #size-cells = <0x1>;
  37. ranges;
  38. rsvd1@87E00000 {
  39. reg = <0x87e00000 0x200000>;
  40. no-map;
  41. };
  42. };
  43. soc {
  44. tcsr@194b000 {
  45. /* select hostmode */
  46. compatible = "qcom,tcsr";
  47. reg = <0x194b000 0x100>;
  48. qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
  49. status = "ok";
  50. };
  51. ess_tcsr@1953000 {
  52. compatible = "qcom,tcsr";
  53. reg = <0x1953000 0x1000>;
  54. qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
  55. };
  56. tcsr@1949000 {
  57. compatible = "qcom,tcsr";
  58. reg = <0x1949000 0x100>;
  59. qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
  60. };
  61. tcsr@1957000 {
  62. compatible = "qcom,tcsr";
  63. reg = <0x1957000 0x100>;
  64. qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
  65. };
  66. counter@4a1000 {
  67. compatible = "qcom,qca-gcnt";
  68. reg = <0x4a1000 0x4>;
  69. };
  70. mdio@90000 {
  71. status = "okay";
  72. };
  73. ess-switch@c000000 {
  74. status = "okay";
  75. };
  76. ess-psgmii@98000 {
  77. status = "okay";
  78. };
  79. edma@c080000 {
  80. status = "okay";
  81. };
  82. wifi@a000000 {
  83. status = "okay";
  84. };
  85. wifi@a800000 {
  86. status = "okay";
  87. };
  88. cryptobam: dma@8e04000 {
  89. status = "okay";
  90. };
  91. crypto@8e3a000 {
  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. &spi_0_pins {
  137. pinmux_cs {
  138. function = "gpio";
  139. pins = "gpio54", "gpio59";
  140. };
  141. pinconf_cs {
  142. pins = "gpio54", "gpio59";
  143. drive-strength = <2>;
  144. bias-disable;
  145. output-high;
  146. };
  147. };
  148. &spi_0 { /* BLSP1 QUP1 */
  149. status = "ok";
  150. cs-gpios = <&tlmm 54 0>,
  151. <&tlmm 59 0>;
  152. mx25l25635e@0 {
  153. status = "disabled";
  154. };
  155. m25p80@0 {
  156. #address-cells = <1>;
  157. #size-cells = <0>;
  158. /*
  159. * U-boot looks for "n25q128a11" node,
  160. * if we don't have it, it will spit out the following warning:
  161. * "ipq: fdt fixup unable to find compatible node".
  162. */
  163. compatible = "mx25l1606e", "n25q128a11";
  164. reg = <0>;
  165. linux,modalias = "m25p80", "mx25l1606e", "n25q128a11";
  166. spi-max-frequency = <24000000>;
  167. partitions {
  168. compatible = "fixed-partitions";
  169. #address-cells = <1>;
  170. #size-cells = <1>;
  171. partition0@0 {
  172. label = "SBL1";
  173. reg = <0x00000000 0x00040000>;
  174. read-only;
  175. };
  176. partition1@40000 {
  177. label = "MIBIB";
  178. reg = <0x00040000 0x00020000>;
  179. read-only;
  180. };
  181. partition2@60000 {
  182. label = "QSEE";
  183. reg = <0x00060000 0x00060000>;
  184. read-only;
  185. };
  186. partition3@c0000 {
  187. label = "CDT";
  188. reg = <0x000c0000 0x00010000>;
  189. read-only;
  190. };
  191. partition4@d0000 {
  192. label = "DDRPARAMS";
  193. reg = <0x000d0000 0x00010000>;
  194. read-only;
  195. };
  196. partition5@e0000 {
  197. label = "APPSBLENV"; /* uboot env*/
  198. reg = <0x000e0000 0x00010000>;
  199. read-only;
  200. };
  201. partition5@f0000 {
  202. label = "APPSBL"; /* uboot */
  203. reg = <0x000f0000 0x00080000>;
  204. read-only;
  205. };
  206. partition5@170000 {
  207. label = "ART";
  208. reg = <0x00170000 0x00010000>;
  209. read-only;
  210. };
  211. /* 0x00180000 - 0x00200000 unused */
  212. };
  213. };
  214. mt29f@1 {
  215. #address-cells = <1>;
  216. #size-cells = <0>;
  217. compatible = "spinand,mt29f", "w25n01gv";
  218. reg = <1>;
  219. spi-max-frequency = <24000000>;
  220. partitions {
  221. compatible = "fixed-partitions";
  222. #address-cells = <1>;
  223. #size-cells = <1>;
  224. partition0@0 {
  225. label = "ubi";
  226. reg = <0x00000000 0x08000000>;
  227. };
  228. };
  229. };
  230. };