1 // SPDX-License-Identifier: GPL-2.0
4 #include <dt-bindings/input/input.h>
8 model = "ipTIME A6004MX";
9 compatible = "iptime,a6004mx", "mediatek,mt7629";
13 led-failsafe = &led_cpu;
14 led-running = &led_cpu;
15 led-upgrade = &led_cpu;
20 stdout-path = "serial0:115200n8";
21 bootargs-override = "console=ttyS0,115200n8";
25 compatible = "gpio-leds";
29 gpios = <&pio 57 GPIO_ACTIVE_LOW>;
33 label = "orange:wlan5g";
34 gpios = <&pio 22 GPIO_ACTIVE_LOW>;
35 // linux,default-trigger = "phy0radio";
39 label = "orange:wlan2g";
40 gpios = <&pio 21 GPIO_ACTIVE_LOW>;
41 // linux,default-trigger = "phy1radio";
46 gpios = <&pio 12 GPIO_ACTIVE_HIGH>;
51 compatible = "gpio-keys";
55 linux,code = <KEY_RESTART>;
56 gpios = <&pio 60 GPIO_ACTIVE_LOW>;
61 linux,code = <KEY_WPS_BUTTON>;
62 gpios = <&pio 58 GPIO_ACTIVE_LOW>;
67 device_type = "memory";
68 reg = <0x40000000 0x10000000>;
71 reg_3p3v: regulator-3p3v {
72 compatible = "regulator-fixed";
73 regulator-name = "fixed-3.3V";
74 regulator-min-microvolt = <3300000>;
75 regulator-max-microvolt = <3300000>;
80 reg_5v: regulator-5v {
81 compatible = "regulator-fixed";
82 regulator-name = "fixed-5V";
83 regulator-min-microvolt = <5000000>;
84 regulator-max-microvolt = <5000000>;
91 pinctrl-names = "default";
92 pinctrl-0 = <ð_pins>;
93 pinctrl-1 = <&ephy_leds_pins>;
97 compatible = "mediatek,eth-mac";
99 phy-mode = "2500base-x";
100 nvmem-cells = <&macaddr_factory_4 3>;
101 nvmem-cell-names = "mac-address";
111 compatible = "mediatek,eth-mac";
114 phy-handle = <&phy0>;
115 nvmem-cells = <&macaddr_factory_4 1>;
116 nvmem-cell-names = "mac-address";
120 #address-cells = <1>;
123 phy0: ethernet-phy@0 {
128 compatible = "mediatek,mt7531";
130 reset-gpios = <&pio 28 0>;
131 interrupt-controller;
132 #interrupt-cells = <1>;
133 interrupt-parent = <&pio>;
134 interrupts = <6 IRQ_TYPE_LEVEL_HIGH>;
137 #address-cells = <1>;
163 phy-mode = "2500base-x";
181 pinctrl-names = "default";
182 pinctrl-0 = <&serial_nand_pins>;
185 compatible = "spi-nand";
187 spi-tx-bus-width = <4>;
188 spi-rx-bus-width = <4>;
189 nand-ecc-engine = <&snfi>;
193 compatible = "fixed-partitions";
194 #address-cells = <1>;
198 label = "Bootloader";
199 reg = <0x0 0x100000>;
205 reg = <0x100000 0x40000>;
210 reg = <0x140000 0x80000>;
214 compatible = "fixed-layout";
215 #address-cells = <1>;
218 macaddr_factory_4: macaddr@4 {
219 compatible = "mac-base";
221 #nvmem-cell-cells = <1>;
228 reg = <0x1c0000 0x7400000>;
229 compatible = "denx,fit";
230 openwrt,fit-offset = <0x800>;
244 ephy_leds_pins: ephy-leds-pins {
247 groups = "ephy_leds";
251 /* Serial NAND is shared pin with SPI-NOR */
252 serial_nand_pins: serial-nand-pins {
259 uart0_pins: uart0-pins {
262 groups = "uart0_txd_rxd" ;
266 watchdog_pins: watchdog-pins {
268 function = "watchdog";
275 vusb33-supply = <®_3p3v>;
276 vbus-supply = <®_5v>;
281 pinctrl-names = "default";
282 pinctrl-0 = <&uart0_pins>;
287 pinctrl-names = "default";
288 pinctrl-0 = <&watchdog_pins>;
291 interrupt-controller;
292 #interrupt-cells = <1>;
293 interrupt-parent = <&pio>;
294 interrupts = <GIC_SPI 0x80 IRQ_TYPE_EDGE_FALLING>;