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 compatible = "fixed-partitions";
73 reg = <0x80000 0x80000>;
77 factory: partition@100000 {
79 reg = <0x100000 0x80000>;
83 compatible = "fixed-layout";
87 eeprom_factory_0: eeprom@0 {
91 macaddr_factory_4: macaddr@4 {
92 compatible = "mac-base";
94 #nvmem-cell-cells = <1>;
97 precal_factory_e10: precal@e10 {
98 reg = <0xe10 0x19c10>;
105 reg = <0x180000 0x7680000>;
107 compatible = "fixed-partitions";
108 #address-cells = <1>;
113 reg = <0x0 0x400000>;
118 reg = <0x400000 0x7280000>;
126 groups = "i2c", "jtag", "wdt";
132 nvmem-cells = <&macaddr_factory_4 3>;
133 nvmem-cell-names = "mac-address";
139 phy-handle = <ðphy0>;
141 nvmem-cells = <&macaddr_factory_4 1>;
142 nvmem-cell-names = "mac-address";
146 ethphy0: ethernet-phy@0 {
181 compatible = "mediatek,mt76";
182 reg = <0x0000 0 0 0 0>;
183 nvmem-cells = <&eeprom_factory_0>, <&precal_factory_e10>;
184 nvmem-cell-names = "eeprom", "precal";