1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "iptime,ax2004m", "mediatek,mt7621-soc";
10 model = "ipTIME AX2004M";
14 led-failsafe = &led_cpu;
15 led-running = &led_cpu;
16 led-upgrade = &led_cpu;
20 bootargs = "console=ttyS0,115200";
24 compatible = "gpio-leds";
28 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
32 label = "amber:wlan2g";
33 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
34 linux,default-trigger = "phy0radio";
38 label = "amber:wlan5g";
39 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
40 linux,default-trigger = "phy1radio";
45 compatible = "gpio-keys";
49 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
50 linux,code = <KEY_RESTART>;
59 compatible = "fixed-partitions";
71 reg = <0x80000 0x80000>;
75 factory: partition@100000 {
77 reg = <0x100000 0x80000>;
81 compatible = "fixed-layout";
85 macaddr_factory_4: macaddr@4 {
93 reg = <0x180000 0x7680000>;
95 compatible = "fixed-partitions";
101 reg = <0x0 0x400000>;
106 reg = <0x400000 0x7280000>;
114 groups = "i2c", "jtag", "wdt";
120 nvmem-cells = <&macaddr_factory_4>;
121 nvmem-cell-names = "mac-address";
122 mac-address-increment = <3>;
128 phy-handle = <ðphy0>;
130 nvmem-cells = <&macaddr_factory_4>;
131 nvmem-cell-names = "mac-address";
132 mac-address-increment = <1>;
136 ethphy0: ethernet-phy@0 {
171 compatible = "mediatek,mt76";
172 reg = <0x0000 0 0 0 0>;
173 mediatek,mtd-eeprom = <&factory 0x0>;