1 // SPDX-License-Identifier: GPL-2.0-or-later
3 #include "qcom-ipq8065.dtsi"
4 #include <dt-bindings/input/input.h>
7 model = "Askey RT4230W REV6";
8 compatible = "askey,rt4230w-rev6", "qcom,ipq8065", "qcom,ipq8064";
11 reg = <0x42000000 0x3e000000>;
12 device_type = "memory";
17 led-failsafe = &ledctrl1;
18 led-running = &ledctrl2;
19 led-upgrade = &ledctrl3;
23 bootargs = "rootfstype=squashfs noinitrd";
27 compatible = "gpio-keys";
28 pinctrl-0 = <&button_pins>;
29 pinctrl-names = "default";
33 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
34 linux,code = <KEY_RESTART>;
39 gpios = <&qcom_pinmux 68 GPIO_ACTIVE_LOW>;
40 linux,code = <KEY_WPS_BUTTON>;
45 compatible = "gpio-leds";
46 pinctrl-0 = <&led_pins>;
47 pinctrl-names = "default";
51 gpios = <&qcom_pinmux 22 GPIO_ACTIVE_HIGH>;
56 gpios = <&qcom_pinmux 23 GPIO_ACTIVE_HIGH>;
61 gpios = <&qcom_pinmux 24 GPIO_ACTIVE_HIGH>;
67 button_pins: button_pins {
69 pins = "gpio54", "gpio68";
78 pins = "gpio22", "gpio23", "gpio24";
85 rgmii2_pins: rgmii2_pins {
87 pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31",
88 "gpio51", "gpio52", "gpio59", "gpio60", "gpio61", "gpio62";
95 pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32";
104 pinctrl-0 = <&nand_pins>;
105 pinctrl-names = "default";
109 compatible = "qcom,nandcs";
111 nand-ecc-strength = <4>;
112 nand-bus-width = <8>;
113 nand-ecc-step-size = <512>;
116 compatible = "fixed-partitions";
117 #address-cells = <1>;
122 reg = <0x0000000 0x0040000>;
127 reg = <0x0040000 0x0140000>;
132 reg = <0x0180000 0x0140000>;
137 reg = <0x02c0000 0x0280000>;
141 label = "0:DDRCONFIG";
142 reg = <0x0540000 0x0120000>;
147 reg = <0x0660000 0x0120000>;
152 reg = <0x0780000 0x0280000>;
157 reg = <0x0a00000 0x0280000>;
162 reg = <0x0c80000 0x0500000>;
166 label = "0:APPSBLENV";
167 reg = <0x1180000 0x0080000>;
169 ART: partition@1200000 {
171 reg = <0x1200000 0x0140000>;
175 label = "0:BOOTCONFIG";
176 reg = <0x1340000 0x0060000>;
181 reg = <0x13a0000 0x0140000>;
186 reg = <0x14e0000 0x0280000>;
190 label = "0:DDRCONFIG_1";
191 reg = <0x1760000 0x0120000>;
196 reg = <0x1880000 0x0120000>;
201 reg = <0x19a0000 0x0280000>;
206 reg = <0x1c20000 0x0280000>;
210 label = "0:BOOTCONFIG1";
211 reg = <0x1ea0000 0x0060000>;
215 label = "0:APPSBL_1";
216 reg = <0x1f00000 0x0500000>;
221 reg = <0x2400000 0x1a000000>;
230 pinctrl-0 = <&mdio0_pins>;
231 pinctrl-names = "default";
233 phy0: ethernet-phy@0 {
235 qca,ar8327-initvals = <
236 0x00004 0x7600000 /* PAD0_MODE */
237 0x00008 0x1000000 /* PAD5_MODE */
238 0x0000c 0x80 /* PAD6_MODE */
239 0x000e4 0xaa545 /* MAC_POWER_SEL */
240 0x000e0 0xc74164de /* SGMII_CTRL */
241 0x0007c 0x4e /* PORT0_STATUS */
242 0x00094 0x4e /* PORT6_STATUS */
243 0x00050 0xcf02cf02 /* LED_CTRL_0 */
244 0x00054 0xc832c832 /* LED_CTRL_1 */
254 nvmem-cells = <&macaddr_ART_0>;
255 nvmem-cell-names = "mac-address";
257 pinctrl-0 = <&rgmii2_pins>;
258 pinctrl-names = "default";
271 nvmem-cells = <&macaddr_ART_6>;
272 nvmem-cell-names = "mac-address";
294 reset-gpio = <&qcom_pinmux 3 GPIO_ACTIVE_HIGH>;
295 pinctrl-0 = <&pcie0_pins>;
296 pinctrl-names = "default";
301 reset-gpio = <&qcom_pinmux 48 GPIO_ACTIVE_HIGH>;
302 pinctrl-0 = <&pcie1_pins>;
303 pinctrl-names = "default";
304 max-link-speed = <1>;
308 compatible = "nvmem-cells";
309 #address-cells = <1>;
312 macaddr_ART_0: macaddr@0 {
316 macaddr_ART_6: macaddr@6 {