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 <dt-bindings/gpio/gpio.h>
19 #include <dt-bindings/input/input.h>
20 #include <dt-bindings/soc/qcom,tcsr.h>
23 model = "ASUS RT-AC58U";
24 compatible = "asus,rt-ac58u", "qcom,ipq4019";
27 device_type = "memory";
28 reg = <0x80000000 0x8000000>;
33 led-failsafe = &power;
39 bootargs-append = " ubi.mtd=UBI_DEV";
52 compatible = "qcom,tcsr";
53 reg = <0x1949000 0x100>;
54 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
58 compatible = "qcom,tcsr";
59 reg = <0x194b000 0x100>;
60 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
64 compatible = "qcom,tcsr";
65 reg = <0x1953000 0x1000>;
66 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
70 compatible = "qcom,tcsr";
71 reg = <0x1957000 0x100>;
72 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
80 pinctrl-0 = <&serial_pins>;
81 pinctrl-names = "default";
95 qcom,ath10k-calibration-variant = "RT-AC58U";
100 qcom,ath10k-calibration-variant = "RT-AC58U";
117 compatible = "gpio-keys";
121 gpios = <&tlmm 4 GPIO_ACTIVE_LOW>;
122 linux,code = <KEY_RESTART>;
127 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
128 linux,code = <KEY_WPS_BUTTON>;
133 compatible = "gpio-leds";
136 label = "rt-ac58u:blue:status";
137 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
141 label = "rt-ac58u:blue:wan";
142 gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
146 label = "rt-ac58u:blue:wlan2G";
147 gpios = <&tlmm 58 GPIO_ACTIVE_HIGH>;
151 label = "rt-ac58u:blue:wlan5G";
152 gpios = <&tlmm 5 GPIO_ACTIVE_HIGH>;
156 label = "rt-ac58u:blue:usb";
157 gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
161 label = "rt-ac58u:blue:lan";
162 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
176 serial_pins: serial_pinmux {
178 pins = "gpio60", "gpio61";
179 function = "blsp_uart0";
184 spi_0_pins: spi_0_pinmux {
186 function = "blsp_spi0";
187 pins = "gpio55", "gpio56", "gpio57";
188 drive-strength = <12>;
194 pins = "gpio54", "gpio59";
195 drive-strength = <2>;
202 &blsp1_spi1 { /* BLSP1 QUP1 */
203 pinctrl-0 = <&spi_0_pins>;
204 pinctrl-names = "default";
206 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>,
207 <&tlmm 59 GPIO_ACTIVE_HIGH>;
210 #address-cells = <1>;
213 * U-boot looks for "n25q128a11" node,
214 * if we don't have it, it will spit out the following warning:
215 * "ipq: fdt fixup unable to find compatible node".
217 compatible = "jedec,spi-nor";
219 linux,modalias = "m25p80", "mx25l1606e", "n25q128a11";
220 spi-max-frequency = <24000000>;
223 compatible = "fixed-partitions";
224 #address-cells = <1>;
229 reg = <0x00000000 0x00040000>;
234 reg = <0x00040000 0x00020000>;
239 reg = <0x00060000 0x00060000>;
244 reg = <0x000c0000 0x00010000>;
249 reg = <0x000d0000 0x00010000>;
253 label = "APPSBLENV"; /* uboot env*/
254 reg = <0x000e0000 0x00010000>;
258 label = "APPSBL"; /* uboot */
259 reg = <0x000f0000 0x00080000>;
264 reg = <0x00170000 0x00010000>;
267 /* 0x00180000 - 0x00200000 unused */
272 #address-cells = <1>;
274 compatible = "spinand,mt29f";
276 spi-max-frequency = <24000000>;
279 compatible = "fixed-partitions";
280 #address-cells = <1>;
285 reg = <0x00000000 0x08000000>;