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,a3004ns-dual", "mediatek,mt7621-soc";
11 model = "ipTIME A3004NS-dual";
15 led-failsafe = &led_cpu;
16 led-running = &led_cpu;
17 led-upgrade = &led_cpu;
21 compatible = "gpio-leds";
24 function = LED_FUNCTION_CPU;
25 color = <LED_COLOR_ID_BLUE>;
26 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
30 function = LED_FUNCTION_USB;
31 color = <LED_COLOR_ID_BLUE>;
32 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
33 trigger-sources = <&xhci_ehci_port1>;
34 linux,default-trigger = "usbport";
39 compatible = "gpio-keys";
43 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
44 linux,code = <KEY_RESTART>;
49 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
50 linux,code = <KEY_WPS_BUTTON>;
59 compatible = "jedec,spi-nor";
61 spi-max-frequency = <50000000>;
64 compatible = "fixed-partitions";
74 compatible = "fixed-layout";
78 macaddr_uboot_1fc20: macaddr@1fc20 {
82 macaddr_uboot_1fc40: macaddr@1fc40 {
90 reg = <0x20000 0x10000>;
94 factory: partition@30000 {
96 reg = <0x30000 0x10000>;
100 compatible = "fixed-layout";
101 #address-cells = <1>;
104 eeprom_factory_0: eeprom@0 {
108 eeprom_factory_8000: eeprom@8000 {
109 reg = <0x8000 0x200>;
116 reg = <0x40000 0xfc0000>;
117 compatible = "denx,uimage";
124 nvmem-cells = <&macaddr_uboot_1fc20>;
125 nvmem-cell-names = "mac-address";
131 phy-handle = <ðphy0>;
133 nvmem-cells = <&macaddr_uboot_1fc40>;
134 nvmem-cell-names = "mac-address";
138 ethphy0: ethernet-phy@0 {
173 compatible = "mediatek,mt76";
174 reg = <0x0000 0 0 0 0>;
175 nvmem-cells = <&eeprom_factory_8000>;
176 nvmem-cell-names = "eeprom";
177 ieee80211-freq-limit = <5000000 6000000>;
188 compatible = "mediatek,mt76";
189 reg = <0x0000 0 0 0 0>;
190 nvmem-cells = <&eeprom_factory_0>;
191 nvmem-cell-names = "eeprom";
192 ieee80211-freq-limit = <2400000 2500000>;
203 groups = "wdt", "i2c", "uart3";