1 // SPDX-License-Identifier: GPL-2.0-or-later
3 #include "qcom-ipq8065-smb208.dtsi"
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/leds/common.h>
8 model = "Askey RT4230W REV6";
9 compatible = "askey,rt4230w-rev6", "qcom,ipq8065", "qcom,ipq8064";
12 reg = <0x42000000 0x3e000000>;
13 device_type = "memory";
18 led-failsafe = &ledctrl1;
19 led-running = &ledctrl2;
20 led-upgrade = &ledctrl3;
24 bootargs = "rootfstype=squashfs noinitrd";
28 compatible = "gpio-keys";
29 pinctrl-0 = <&button_pins>;
30 pinctrl-names = "default";
34 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
35 linux,code = <KEY_RESTART>;
40 gpios = <&qcom_pinmux 68 GPIO_ACTIVE_LOW>;
41 linux,code = <KEY_WPS_BUTTON>;
46 compatible = "gpio-leds";
47 pinctrl-0 = <&led_pins>;
48 pinctrl-names = "default";
52 gpios = <&qcom_pinmux 22 GPIO_ACTIVE_HIGH>;
57 gpios = <&qcom_pinmux 23 GPIO_ACTIVE_HIGH>;
62 gpios = <&qcom_pinmux 24 GPIO_ACTIVE_HIGH>;
68 button_pins: button_pins {
70 pins = "gpio54", "gpio68";
79 pins = "gpio22", "gpio23", "gpio24";
86 rgmii2_pins: rgmii2-pins {
88 pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31",
89 "gpio51", "gpio52", "gpio59", "gpio60", "gpio61", "gpio62";
96 pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32";
104 drive-strength = <12>;
110 qcom,mode = <GSBI_PROT_SPI>;
116 pinctrl-0 = <&spi_pins>;
117 pinctrl-names = "default";
119 cs-gpios = <&qcom_pinmux 20 GPIO_ACTIVE_HIGH>;
122 compatible = "everspin,mr25h256";
123 #address-cells = <1>;
125 spi-max-frequency = <40000000>;
136 compatible = "qcom,nandcs";
138 nand-ecc-strength = <4>;
139 nand-bus-width = <8>;
140 nand-ecc-step-size = <512>;
142 qcom,boot-partitions = <0x0 0x1180000 0x1340000 0x10c0000>;
145 compatible = "fixed-partitions";
146 #address-cells = <1>;
151 reg = <0x0000000 0x0040000>;
157 reg = <0x0040000 0x0140000>;
163 reg = <0x0180000 0x0140000>;
169 reg = <0x02c0000 0x0280000>;
174 label = "0:DDRCONFIG";
175 reg = <0x0540000 0x0120000>;
181 reg = <0x0660000 0x0120000>;
187 reg = <0x0780000 0x0280000>;
193 reg = <0x0a00000 0x0280000>;
199 reg = <0x0c80000 0x0500000>;
204 label = "0:APPSBLENV";
205 reg = <0x1180000 0x0080000>;
210 reg = <0x1200000 0x0140000>;
212 compatible = "nvmem-cells";
213 #address-cells = <1>;
216 macaddr_ART_0: macaddr@0 {
220 macaddr_ART_6: macaddr@6 {
224 precal_ART_1000: precal@1000 {
225 reg = <0x1000 0x2f20>;
228 precal_ART_5000: precal@5000 {
229 reg = <0x5000 0x2f20>;
234 label = "0:BOOTCONFIG";
235 reg = <0x1340000 0x0060000>;
241 reg = <0x13a0000 0x0140000>;
247 reg = <0x14e0000 0x0280000>;
252 label = "0:DDRCONFIG_1";
253 reg = <0x1760000 0x0120000>;
259 reg = <0x1880000 0x0120000>;
265 reg = <0x19a0000 0x0280000>;
271 reg = <0x1c20000 0x0280000>;
276 label = "0:BOOTCONFIG1";
277 reg = <0x1ea0000 0x0060000>;
282 label = "0:APPSBL_1";
283 reg = <0x1f00000 0x0500000>;
289 reg = <0x2400000 0x1a000000>;
298 pinctrl-0 = <&mdio0_pins>;
299 pinctrl-names = "default";
302 compatible = "qca,qca8337";
303 #address-cells = <1>;
308 #address-cells = <1>;
316 tx-internal-delay-ps = <1000>;
317 rx-internal-delay-ps = <1000>;
328 phy-mode = "internal";
329 phy-handle = <&phy_port1>;
332 #address-cells = <1>;
337 color = <LED_COLOR_ID_GREEN>;
338 function = LED_FUNCTION_WAN;
339 default-state = "keep";
344 color = <LED_COLOR_ID_AMBER>;
345 function = LED_FUNCTION_WAN;
346 default-state = "keep";
354 phy-mode = "internal";
355 phy-handle = <&phy_port2>;
358 #address-cells = <1>;
363 color = <LED_COLOR_ID_GREEN>;
364 function = LED_FUNCTION_LAN;
365 default-state = "keep";
370 color = <LED_COLOR_ID_AMBER>;
371 function = LED_FUNCTION_LAN;
372 default-state = "keep";
380 phy-mode = "internal";
381 phy-handle = <&phy_port3>;
384 #address-cells = <1>;
389 color = <LED_COLOR_ID_GREEN>;
390 function = LED_FUNCTION_LAN;
391 default-state = "keep";
396 color = <LED_COLOR_ID_AMBER>;
397 function = LED_FUNCTION_LAN;
398 default-state = "keep";
406 phy-mode = "internal";
407 phy-handle = <&phy_port4>;
410 #address-cells = <1>;
415 color = <LED_COLOR_ID_GREEN>;
416 function = LED_FUNCTION_LAN;
417 default-state = "keep";
422 color = <LED_COLOR_ID_AMBER>;
423 function = LED_FUNCTION_LAN;
424 default-state = "keep";
432 phy-mode = "internal";
433 phy-handle = <&phy_port5>;
436 #address-cells = <1>;
441 color = <LED_COLOR_ID_GREEN>;
442 function = LED_FUNCTION_LAN;
443 default-state = "keep";
448 color = <LED_COLOR_ID_AMBER>;
449 function = LED_FUNCTION_LAN;
450 default-state = "keep";
460 qca,sgmii-enable-pll;
470 #address-cells = <1>;
501 nvmem-cells = <&macaddr_ART_0>;
502 nvmem-cell-names = "mac-address";
504 pinctrl-0 = <&rgmii2_pins>;
505 pinctrl-names = "default";
518 nvmem-cells = <&macaddr_ART_6>;
519 nvmem-cell-names = "mac-address";
557 reset-gpio = <&qcom_pinmux 3 GPIO_ACTIVE_HIGH>;
558 pinctrl-0 = <&pcie0_pins>;
559 pinctrl-names = "default";
562 reg = <0x00000000 0 0 0 0>;
563 #address-cells = <3>;
568 compatible = "pci168c,0046";
569 reg = <0x00010000 0 0 0 0>;
571 nvmem-cells = <&precal_ART_1000>;
572 nvmem-cell-names = "pre-calibration";
579 reset-gpio = <&qcom_pinmux 48 GPIO_ACTIVE_HIGH>;
580 pinctrl-0 = <&pcie1_pins>;
581 pinctrl-names = "default";
582 max-link-speed = <1>;
585 reg = <0x00000000 0 0 0 0>;
586 #address-cells = <3>;
591 compatible = "pci168c,0046";
592 reg = <0x00010000 0 0 0 0>;
594 nvmem-cells = <&precal_ART_5000>;
595 nvmem-cell-names = "pre-calibration";