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,a3002mesh", "mediatek,mt7621-soc";
11 model = "ipTIME A3002MESH";
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 = "jedec,spi-nor";
63 spi-max-frequency = <50000000>;
66 compatible = "fixed-partitions";
76 compatible = "fixed-layout";
80 macaddr_uboot_1fc40: macaddr@1fc40 {
81 compatible = "mac-base";
83 #nvmem-cell-cells = <1>;
90 reg = <0x20000 0x10000>;
96 reg = <0x30000 0x10000>;
100 compatible = "fixed-layout";
101 #address-cells = <1>;
104 eeprom_factory_0: eeprom@0 {
111 compatible = "denx,uimage";
113 reg = <0x40000 0xfc0000>;
120 nvmem-cells = <&macaddr_uboot_1fc40 2>;
121 nvmem-cell-names = "mac-address";
127 phy-handle = <ðphy0>;
129 nvmem-cells = <&macaddr_uboot_1fc40 0>;
130 nvmem-cell-names = "mac-address";
134 ethphy0: ethernet-phy@0 {
159 compatible = "mediatek,mt76";
160 reg = <0x0000 0 0 0 0>;
161 nvmem-cells = <&eeprom_factory_0>;
162 nvmem-cell-names = "eeprom";
168 groups = "i2c", "jtag", "wdt";