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,a3004t", "mediatek,mt7621-soc";
11 model = "ipTIME A3004T";
15 led-failsafe = &led_cpu;
16 led-running = &led_cpu;
17 led-upgrade = &led_cpu;
21 compatible = "gpio-leds";
25 color = <LED_COLOR_ID_AMBER>;
26 function = LED_FUNCTION_CPU;
27 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
31 color = <LED_COLOR_ID_AMBER>;
32 function = LED_FUNCTION_WLAN;
33 function-enumerator = <0>;
34 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
35 linux,default-trigger = "phy0radio";
39 color = <LED_COLOR_ID_AMBER>;
40 function = LED_FUNCTION_WLAN;
41 function-enumerator = <1>;
42 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
43 linux,default-trigger = "phy1radio";
48 compatible = "gpio-keys";
52 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
53 linux,code = <KEY_RESTART>;
62 compatible = "fixed-partitions";
74 reg = <0x80000 0x20000>;
78 factory: partition@a0000 {
79 compatible = "nvmem-cells";
81 reg = <0xa0000 0x20000>;
86 eeprom_factory_0: eeprom@0 {
90 macaddr_factory_4: macaddr@4 {
94 macaddr_factory_8004: macaddr@8004 {
101 reg = <0x140000 0x7e40000>;
103 compatible = "fixed-partitions";
104 #address-cells = <1>;
109 reg = <0x0 0x400000>;
114 reg = <0x400000 0x7a40000>;
121 nvmem-cells = <&macaddr_factory_4>;
122 nvmem-cell-names = "mac-address";
123 mac-address-increment = <(3)>;
129 phy-handle = <ðphy0>;
131 nvmem-cells = <&macaddr_factory_4>;
132 nvmem-cell-names = "mac-address";
133 mac-address-increment = <(1)>;
137 ethphy0: ethernet-phy@0 {
172 compatible = "mediatek,mt76";
173 reg = <0x0000 0 0 0 0>;
174 nvmem-cells = <&eeprom_factory_0>;
175 nvmem-cell-names = "eeprom";
181 groups = "i2c", "jtag", "wdt";