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";
24 color = <LED_COLOR_ID_AMBER>;
25 function = LED_FUNCTION_CPU;
26 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
30 color = <LED_COLOR_ID_AMBER>;
31 function = LED_FUNCTION_WLAN;
32 function-enumerator = <0>;
33 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
34 linux,default-trigger = "phy0radio";
38 color = <LED_COLOR_ID_AMBER>;
39 function = LED_FUNCTION_WLAN;
40 function-enumerator = <1>;
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 0x20000>;
79 reg = <0xa0000 0x20000>;
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 macaddr_factory_8004: macaddr@8004 {
105 reg = <0x140000 0x7e40000>;
107 compatible = "fixed-partitions";
108 #address-cells = <1>;
113 reg = <0x0 0x400000>;
118 reg = <0x400000 0x7a40000>;
125 nvmem-cells = <&macaddr_factory_4 3>;
126 nvmem-cell-names = "mac-address";
132 phy-handle = <ðphy0>;
134 nvmem-cells = <&macaddr_factory_4 1>;
135 nvmem-cell-names = "mac-address";
139 /delete-property/ interrupts;
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";