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>
7 #include <dt-bindings/leds/common.h>
10 compatible = "iptime,ax2004m", "mediatek,mt7621-soc";
11 model = "ipTIME AX2004M";
15 led-failsafe = &led_cpu;
16 led-running = &led_cpu;
17 led-upgrade = &led_cpu;
21 bootargs = "console=ttyS0,115200";
25 compatible = "gpio-leds";
28 function = LED_FUNCTION_CPU;
29 color = <LED_COLOR_ID_AMBER>;
30 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
34 label = "amber:wlan2g";
35 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
36 linux,default-trigger = "phy0radio";
40 label = "amber:wlan5g";
41 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
42 linux,default-trigger = "phy1radio";
47 compatible = "gpio-keys";
51 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
52 linux,code = <KEY_RESTART>;
61 mediatek,bmt-max-ratio = <1>;
62 mediatek,bmt-max-reserved-blocks = <64>;
63 mediatek,bmt-remap-range = <0x000000 0x580000>;
66 compatible = "fixed-partitions";
78 reg = <0x80000 0x80000>;
84 reg = <0x100000 0x80000>;
88 compatible = "fixed-layout";
92 eeprom_factory_0: eeprom@0 {
96 macaddr_factory_4: macaddr@4 {
97 compatible = "mac-base";
99 #nvmem-cell-cells = <1>;
102 precal_factory_e10: precal@e10 {
103 reg = <0xe10 0x19c10>;
110 reg = <0x180000 0x7680000>;
112 compatible = "fixed-partitions";
113 #address-cells = <1>;
118 reg = <0x0 0x400000>;
123 reg = <0x400000 0x7280000>;
127 /* last 8 MiB is reserved for NMBM bad block table */
133 groups = "i2c", "jtag", "wdt";
139 nvmem-cells = <&macaddr_factory_4 3>;
140 nvmem-cell-names = "mac-address";
146 phy-handle = <ðphy0>;
148 nvmem-cells = <&macaddr_factory_4 1>;
149 nvmem-cell-names = "mac-address";
153 ethphy0: ethernet-phy@0 {
188 compatible = "mediatek,mt76";
189 reg = <0x0000 0 0 0 0>;
190 nvmem-cells = <&eeprom_factory_0>, <&precal_factory_e10>;
191 nvmem-cell-names = "eeprom", "precal";