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;
40 #address-cells = <0x1>;
45 reg = <0x87e00000 0x080000>;
50 reg = <0x87e80000 0x180000>;
65 compatible = "qcom,tcsr";
66 reg = <0x1949000 0x100>;
67 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
71 compatible = "qcom,tcsr";
72 reg = <0x194b000 0x100>;
73 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
77 compatible = "qcom,tcsr";
78 reg = <0x1953000 0x1000>;
79 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
83 compatible = "qcom,tcsr";
84 reg = <0x1957000 0x100>;
85 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
93 pinctrl-0 = <&serial_pins>;
94 pinctrl-names = "default";
108 qcom,ath10k-calibration-variant = "ASUS-RT-AC58U";
113 qcom,ath10k-calibration-variant = "ASUS-RT-AC58U";
130 compatible = "gpio-keys";
134 gpios = <&tlmm 4 GPIO_ACTIVE_LOW>;
135 linux,code = <KEY_RESTART>;
140 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
141 linux,code = <KEY_WPS_BUTTON>;
146 compatible = "gpio-leds";
149 label = "rt-ac58u:blue:status";
150 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
154 label = "rt-ac58u:blue:wan";
155 gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
159 label = "rt-ac58u:blue:wlan2G";
160 gpios = <&tlmm 58 GPIO_ACTIVE_HIGH>;
164 label = "rt-ac58u:blue:wlan5G";
165 gpios = <&tlmm 5 GPIO_ACTIVE_HIGH>;
169 label = "rt-ac58u:blue:usb";
170 gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
174 label = "rt-ac58u:blue:lan";
175 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
189 serial_pins: serial_pinmux {
191 pins = "gpio60", "gpio61";
192 function = "blsp_uart0";
197 spi_0_pins: spi_0_pinmux {
199 function = "blsp_spi0";
200 pins = "gpio55", "gpio56", "gpio57";
201 drive-strength = <12>;
207 pins = "gpio54", "gpio59";
208 drive-strength = <2>;
215 &spi_0 { /* BLSP1 QUP1 */
216 pinctrl-0 = <&spi_0_pins>;
217 pinctrl-names = "default";
219 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>,
220 <&tlmm 59 GPIO_ACTIVE_HIGH>;
223 #address-cells = <1>;
226 * U-boot looks for "n25q128a11" node,
227 * if we don't have it, it will spit out the following warning:
228 * "ipq: fdt fixup unable to find compatible node".
230 compatible = "jedec,spi-nor";
232 linux,modalias = "m25p80", "mx25l1606e", "n25q128a11";
233 spi-max-frequency = <24000000>;
236 compatible = "fixed-partitions";
237 #address-cells = <1>;
242 reg = <0x00000000 0x00040000>;
247 reg = <0x00040000 0x00020000>;
252 reg = <0x00060000 0x00060000>;
257 reg = <0x000c0000 0x00010000>;
262 reg = <0x000d0000 0x00010000>;
266 label = "APPSBLENV"; /* uboot env*/
267 reg = <0x000e0000 0x00010000>;
271 label = "APPSBL"; /* uboot */
272 reg = <0x000f0000 0x00080000>;
277 reg = <0x00170000 0x00010000>;
280 /* 0x00180000 - 0x00200000 unused */
285 #address-cells = <1>;
287 compatible = "spinand,mt29f";
289 spi-max-frequency = <24000000>;
292 compatible = "fixed-partitions";
293 #address-cells = <1>;
298 reg = <0x00000000 0x08000000>;