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.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;
49 compatible = "qcom,tcsr";
50 reg = <0x1949000 0x100>;
51 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
55 compatible = "qcom,tcsr";
56 reg = <0x194b000 0x100>;
57 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>;
67 compatible = "qcom,tcsr";
68 reg = <0x1957000 0x100>;
69 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
77 pinctrl-0 = <&serial_pins>;
78 pinctrl-names = "default";
92 qcom,ath10k-calibration-variant = "RT-AC58U";
97 qcom,ath10k-calibration-variant = "RT-AC58U";
114 compatible = "gpio-keys";
118 gpios = <&tlmm 4 GPIO_ACTIVE_LOW>;
119 linux,code = <KEY_RESTART>;
124 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
125 linux,code = <KEY_WPS_BUTTON>;
130 compatible = "gpio-leds";
133 label = "rt-ac58u:blue:status";
134 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
138 label = "rt-ac58u:blue:wan";
139 gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
143 label = "rt-ac58u:blue:wlan2G";
144 gpios = <&tlmm 58 GPIO_ACTIVE_HIGH>;
148 label = "rt-ac58u:blue:wlan5G";
149 gpios = <&tlmm 5 GPIO_ACTIVE_HIGH>;
153 label = "rt-ac58u:blue:usb";
154 gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
158 label = "rt-ac58u:blue:lan";
159 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
173 serial_pins: serial_pinmux {
175 pins = "gpio60", "gpio61";
176 function = "blsp_uart0";
181 spi_0_pins: spi_0_pinmux {
183 function = "blsp_spi0";
184 pins = "gpio55", "gpio56", "gpio57";
185 drive-strength = <12>;
191 pins = "gpio54", "gpio59";
192 drive-strength = <2>;
199 &spi_0 { /* BLSP1 QUP1 */
200 pinctrl-0 = <&spi_0_pins>;
201 pinctrl-names = "default";
203 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>,
204 <&tlmm 59 GPIO_ACTIVE_HIGH>;
207 #address-cells = <1>;
210 * U-boot looks for "n25q128a11" node,
211 * if we don't have it, it will spit out the following warning:
212 * "ipq: fdt fixup unable to find compatible node".
214 compatible = "jedec,spi-nor";
216 linux,modalias = "m25p80", "mx25l1606e", "n25q128a11";
217 spi-max-frequency = <24000000>;
220 compatible = "fixed-partitions";
221 #address-cells = <1>;
226 reg = <0x00000000 0x00040000>;
231 reg = <0x00040000 0x00020000>;
236 reg = <0x00060000 0x00060000>;
241 reg = <0x000c0000 0x00010000>;
246 reg = <0x000d0000 0x00010000>;
250 label = "APPSBLENV"; /* uboot env*/
251 reg = <0x000e0000 0x00010000>;
255 label = "APPSBL"; /* uboot */
256 reg = <0x000f0000 0x00080000>;
261 reg = <0x00170000 0x00010000>;
264 /* 0x00180000 - 0x00200000 unused */
269 #address-cells = <1>;
271 compatible = "spinand,mt29f";
273 spi-max-frequency = <24000000>;
276 compatible = "fixed-partitions";
277 #address-cells = <1>;
282 reg = <0x00000000 0x08000000>;