1 // SPDX-License-Identifier: GPL-2.0
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/leds/common.h>
9 model = "ipTIME A6004MX";
10 compatible = "iptime,a6004mx", "mediatek,mt7629";
14 led-failsafe = &led_cpu;
15 led-running = &led_cpu;
16 led-upgrade = &led_cpu;
21 stdout-path = "serial0:115200n8";
22 bootargs-override = "console=ttyS0,115200n8";
26 compatible = "gpio-leds";
29 function = LED_FUNCTION_CPU;
30 color = <LED_COLOR_ID_ORANGE>;
31 gpios = <&pio 57 GPIO_ACTIVE_LOW>;
35 label = "orange:wlan5g";
36 gpios = <&pio 22 GPIO_ACTIVE_LOW>;
37 // linux,default-trigger = "phy0radio";
41 label = "orange:wlan2g";
42 gpios = <&pio 21 GPIO_ACTIVE_LOW>;
43 // linux,default-trigger = "phy1radio";
47 function = LED_FUNCTION_WAN;
48 color = <LED_COLOR_ID_ORANGE>;
49 gpios = <&pio 12 GPIO_ACTIVE_HIGH>;
54 compatible = "gpio-keys";
58 linux,code = <KEY_RESTART>;
59 gpios = <&pio 60 GPIO_ACTIVE_LOW>;
64 linux,code = <KEY_WPS_BUTTON>;
65 gpios = <&pio 58 GPIO_ACTIVE_LOW>;
70 device_type = "memory";
71 reg = <0x40000000 0x10000000>;
74 reg_3p3v: regulator-3p3v {
75 compatible = "regulator-fixed";
76 regulator-name = "fixed-3.3V";
77 regulator-min-microvolt = <3300000>;
78 regulator-max-microvolt = <3300000>;
83 reg_5v: regulator-5v {
84 compatible = "regulator-fixed";
85 regulator-name = "fixed-5V";
86 regulator-min-microvolt = <5000000>;
87 regulator-max-microvolt = <5000000>;
94 pinctrl-names = "default";
95 pinctrl-0 = <ð_pins>;
96 pinctrl-1 = <&ephy_leds_pins>;
100 compatible = "mediatek,eth-mac";
102 phy-mode = "2500base-x";
103 nvmem-cells = <&macaddr_factory_4 3>;
104 nvmem-cell-names = "mac-address";
114 compatible = "mediatek,eth-mac";
117 phy-handle = <&phy0>;
118 nvmem-cells = <&macaddr_factory_4 1>;
119 nvmem-cell-names = "mac-address";
123 #address-cells = <1>;
126 phy0: ethernet-phy@0 {
131 compatible = "mediatek,mt7531";
133 reset-gpios = <&pio 28 0>;
134 interrupt-controller;
135 #interrupt-cells = <1>;
136 interrupt-parent = <&pio>;
137 interrupts = <6 IRQ_TYPE_LEVEL_HIGH>;
140 #address-cells = <1>;
166 phy-mode = "2500base-x";
184 pinctrl-names = "default";
185 pinctrl-0 = <&serial_nand_pins>;
188 compatible = "spi-nand";
190 spi-tx-bus-width = <4>;
191 spi-rx-bus-width = <4>;
192 nand-ecc-engine = <&snfi>;
196 compatible = "fixed-partitions";
197 #address-cells = <1>;
201 label = "Bootloader";
202 reg = <0x0 0x100000>;
208 reg = <0x100000 0x40000>;
213 reg = <0x140000 0x80000>;
217 compatible = "fixed-layout";
218 #address-cells = <1>;
221 macaddr_factory_4: macaddr@4 {
222 compatible = "mac-base";
224 #nvmem-cell-cells = <1>;
231 reg = <0x1c0000 0x7400000>;
232 compatible = "denx,fit";
233 openwrt,fit-offset = <0x800>;
247 ephy_leds_pins: ephy-leds-pins {
250 groups = "ephy_leds";
254 /* Serial NAND is shared pin with SPI-NOR */
255 serial_nand_pins: serial-nand-pins {
262 uart0_pins: uart0-pins {
265 groups = "uart0_txd_rxd" ;
269 watchdog_pins: watchdog-pins {
271 function = "watchdog";
278 vusb33-supply = <®_3p3v>;
279 vbus-supply = <®_5v>;
284 pinctrl-names = "default";
285 pinctrl-0 = <&uart0_pins>;
290 pinctrl-names = "default";
291 pinctrl-0 = <&watchdog_pins>;
294 interrupt-controller;
295 #interrupt-cells = <1>;
296 interrupt-parent = <&pio>;
297 interrupts = <GIC_SPI 0x80 IRQ_TYPE_EDGE_FALLING>;