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>;
83 compatible = "nvmem-cells";
87 macaddr_factory_4: macaddr@4 {
91 macaddr_factory_8004: macaddr@8004 {
98 reg = <0x140000 0x7e40000>;
100 compatible = "fixed-partitions";
101 #address-cells = <1>;
106 reg = <0x0 0x400000>;
111 reg = <0x400000 0x7a40000>;
118 nvmem-cells = <&macaddr_factory_4>;
119 nvmem-cell-names = "mac-address";
120 mac-address-increment = <(3)>;
126 phy-handle = <ðphy0>;
128 nvmem-cells = <&macaddr_factory_4>;
129 nvmem-cell-names = "mac-address";
130 mac-address-increment = <(1)>;
134 ethphy0: ethernet-phy@0 {
169 compatible = "mediatek,mt76";
170 reg = <0x0000 0 0 0 0>;
171 mediatek,mtd-eeprom = <&factory 0x0>;
177 groups = "i2c", "jtag", "wdt";