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 {
80 reg = <0xa0000 0x20000>;
84 compatible = "fixed-layout";
88 eeprom_factory_0: eeprom@0 {
92 macaddr_factory_4: macaddr@4 {
93 compatible = "mac-base";
95 #nvmem-cell-cells = <1>;
98 macaddr_factory_8004: macaddr@8004 {
106 reg = <0x140000 0x7e40000>;
108 compatible = "fixed-partitions";
109 #address-cells = <1>;
114 reg = <0x0 0x400000>;
119 reg = <0x400000 0x7a40000>;
126 nvmem-cells = <&macaddr_factory_4 3>;
127 nvmem-cell-names = "mac-address";
133 phy-handle = <ðphy0>;
135 nvmem-cells = <&macaddr_factory_4 1>;
136 nvmem-cell-names = "mac-address";
140 ethphy0: ethernet-phy@0 {
175 compatible = "mediatek,mt76";
176 reg = <0x0000 0 0 0 0>;
177 nvmem-cells = <&eeprom_factory_0>;
178 nvmem-cell-names = "eeprom";
184 groups = "i2c", "jtag", "wdt";