1 /* Copyright (c) 2015, The Linux Foundation. All rights reserved.
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.
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.
17 #include "qcom-ipq4019-ap.dk01.1.dtsi"
18 #include "qcom-ipq4019-bus.dtsi"
19 #include <dt-bindings/gpio/gpio.h>
20 #include <dt-bindings/input/input.h>
21 #include <dt-bindings/soc/qcom,tcsr.h>
24 model = "ASUS RT-AC58U";
25 compatible = "asus,rt-ac58u", "qcom,ipq4019";
28 device_type = "memory";
29 reg = <0x80000000 0x8000000>;
34 led-failsafe = &power;
40 #address-cells = <0x1>;
45 reg = <0x87e00000 0x200000>;
54 compatible = "qcom,tcsr";
55 reg = <0x194b000 0x100>;
56 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
61 compatible = "qcom,tcsr";
62 reg = <0x1953000 0x1000>;
63 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
68 compatible = "qcom,tcsr";
69 reg = <0x1949000 0x100>;
70 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
74 compatible = "qcom,tcsr";
75 reg = <0x1957000 0x100>;
76 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
80 compatible = "qcom,qca-gcnt";
110 compatible = "gpio-keys";
114 gpios = <&tlmm 4 GPIO_ACTIVE_LOW>;
115 linux,code = <KEY_RESTART>;
120 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
121 linux,code = <KEY_WPS_BUTTON>;
126 compatible = "gpio-leds";
129 label = "rt-ac58u:blue:status";
130 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
134 label = "rt-ac58u:blue:wan";
135 gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
139 label = "rt-ac58u:blue:wlan2G";
140 gpios = <&tlmm 58 GPIO_ACTIVE_HIGH>;
144 label = "rt-ac58u:blue:wlan5G";
145 gpios = <&tlmm 5 GPIO_ACTIVE_HIGH>;
149 label = "rt-ac58u:blue:usb";
150 gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
154 label = "rt-ac58u:blue:lan";
155 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
163 pins = "gpio54", "gpio59";
166 pins = "gpio54", "gpio59";
167 drive-strength = <2>;
174 &spi_0 { /* BLSP1 QUP1 */
176 cs-gpios = <&tlmm 54 0>,
184 #address-cells = <1>;
187 * U-boot looks for "n25q128a11" node,
188 * if we don't have it, it will spit out the following warning:
189 * "ipq: fdt fixup unable to find compatible node".
191 compatible = "mx25l1606e", "n25q128a11";
193 linux,modalias = "m25p80", "mx25l1606e", "n25q128a11";
194 spi-max-frequency = <24000000>;
197 compatible = "fixed-partitions";
198 #address-cells = <1>;
203 reg = <0x00000000 0x00040000>;
208 reg = <0x00040000 0x00020000>;
213 reg = <0x00060000 0x00060000>;
218 reg = <0x000c0000 0x00010000>;
223 reg = <0x000d0000 0x00010000>;
227 label = "APPSBLENV"; /* uboot env*/
228 reg = <0x000e0000 0x00010000>;
232 label = "APPSBL"; /* uboot */
233 reg = <0x000f0000 0x00080000>;
238 reg = <0x00170000 0x00010000>;
241 /* 0x00180000 - 0x00200000 unused */
246 #address-cells = <1>;
248 compatible = "spinand,mt29f", "w25n01gv";
250 spi-max-frequency = <24000000>;
253 compatible = "fixed-partitions";
254 #address-cells = <1>;
259 reg = <0x00000000 0x08000000>;