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>;
214 compatible = "fixed-layout";
215 #address-cells = <1>;
218 macaddr_ART_0: macaddr@0 {
222 macaddr_ART_6: macaddr@6 {
226 precal_ART_1000: precal@1000 {
227 reg = <0x1000 0x2f20>;
230 precal_ART_5000: precal@5000 {
231 reg = <0x5000 0x2f20>;
237 label = "0:BOOTCONFIG";
238 reg = <0x1340000 0x0060000>;
244 reg = <0x13a0000 0x0140000>;
250 reg = <0x14e0000 0x0280000>;
255 label = "0:DDRCONFIG_1";
256 reg = <0x1760000 0x0120000>;
262 reg = <0x1880000 0x0120000>;
268 reg = <0x19a0000 0x0280000>;
274 reg = <0x1c20000 0x0280000>;
279 label = "0:BOOTCONFIG1";
280 reg = <0x1ea0000 0x0060000>;
285 label = "0:APPSBL_1";
286 reg = <0x1f00000 0x0500000>;
292 reg = <0x2400000 0x1a000000>;
301 pinctrl-0 = <&mdio0_pins>;
302 pinctrl-names = "default";
305 compatible = "qca,qca8337";
306 #address-cells = <1>;
311 #address-cells = <1>;
319 tx-internal-delay-ps = <1000>;
320 rx-internal-delay-ps = <1000>;
331 phy-mode = "internal";
332 phy-handle = <&phy_port1>;
335 #address-cells = <1>;
340 color = <LED_COLOR_ID_GREEN>;
341 function = LED_FUNCTION_WAN;
342 default-state = "keep";
347 color = <LED_COLOR_ID_AMBER>;
348 function = LED_FUNCTION_WAN;
349 default-state = "keep";
357 phy-mode = "internal";
358 phy-handle = <&phy_port2>;
361 #address-cells = <1>;
366 color = <LED_COLOR_ID_GREEN>;
367 function = LED_FUNCTION_LAN;
368 default-state = "keep";
373 color = <LED_COLOR_ID_AMBER>;
374 function = LED_FUNCTION_LAN;
375 default-state = "keep";
383 phy-mode = "internal";
384 phy-handle = <&phy_port3>;
387 #address-cells = <1>;
392 color = <LED_COLOR_ID_GREEN>;
393 function = LED_FUNCTION_LAN;
394 default-state = "keep";
399 color = <LED_COLOR_ID_AMBER>;
400 function = LED_FUNCTION_LAN;
401 default-state = "keep";
409 phy-mode = "internal";
410 phy-handle = <&phy_port4>;
413 #address-cells = <1>;
418 color = <LED_COLOR_ID_GREEN>;
419 function = LED_FUNCTION_LAN;
420 default-state = "keep";
425 color = <LED_COLOR_ID_AMBER>;
426 function = LED_FUNCTION_LAN;
427 default-state = "keep";
435 phy-mode = "internal";
436 phy-handle = <&phy_port5>;
439 #address-cells = <1>;
444 color = <LED_COLOR_ID_GREEN>;
445 function = LED_FUNCTION_LAN;
446 default-state = "keep";
451 color = <LED_COLOR_ID_AMBER>;
452 function = LED_FUNCTION_LAN;
453 default-state = "keep";
463 qca,sgmii-enable-pll;
473 #address-cells = <1>;
504 nvmem-cells = <&macaddr_ART_0>;
505 nvmem-cell-names = "mac-address";
507 pinctrl-0 = <&rgmii2_pins>;
508 pinctrl-names = "default";
521 nvmem-cells = <&macaddr_ART_6>;
522 nvmem-cell-names = "mac-address";
560 reset-gpios = <&qcom_pinmux 3 GPIO_ACTIVE_HIGH>;
561 pinctrl-0 = <&pcie0_pins>;
562 pinctrl-names = "default";
565 reg = <0x00000000 0 0 0 0>;
566 #address-cells = <3>;
571 compatible = "pci168c,0046";
572 reg = <0x00010000 0 0 0 0>;
574 nvmem-cells = <&precal_ART_1000>;
575 nvmem-cell-names = "pre-calibration";
582 reset-gpios = <&qcom_pinmux 48 GPIO_ACTIVE_HIGH>;
583 pinctrl-0 = <&pcie1_pins>;
584 pinctrl-names = "default";
585 max-link-speed = <1>;
588 reg = <0x00000000 0 0 0 0>;
589 #address-cells = <3>;
594 compatible = "pci168c,0046";
595 reg = <0x00010000 0 0 0 0>;
597 nvmem-cells = <&precal_ART_5000>;
598 nvmem-cell-names = "pre-calibration";