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>
11 label-mac-device = &gmac0;
12 led-boot = &led_power_orange;
13 led-failsafe = &led_power_white;
14 led-running = &led_power_white;
15 led-upgrade = &led_net_orange;
19 compatible = "gpio-keys";
23 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
24 linux,code = <KEY_RESTART>;
29 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
30 linux,code = <KEY_WPS_BUTTON>;
35 compatible = "gpio-leds";
37 led_power_orange: power_orange {
38 function = LED_FUNCTION_POWER;
39 color = <LED_COLOR_ID_ORANGE>;
40 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
43 led_power_white: power_white {
44 function = LED_FUNCTION_POWER;
45 color = <LED_COLOR_ID_WHITE>;
46 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
49 led_net_orange: net_orange {
51 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
56 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
65 compatible = "fixed-partitions";
77 reg = <0x80000 0x80000>;
83 reg = <0x100000 0x40000>;
87 compatible = "fixed-layout";
91 eeprom_factory_0: eeprom@0 {
95 eeprom_factory_8000: eeprom@8000 {
96 reg = <0x8000 0x4da8>;
99 macaddr_factory_e000: macaddr@e000 {
100 compatible = "mac-base";
102 #nvmem-cell-cells = <1>;
109 reg = <0x140000 0x40000>;
115 compatible = "openwrt,uimage", "denx,uimage";
116 openwrt,padding = <96>;
117 reg = <0x180000 0x2800000>;
122 reg = <0x2980000 0x2000000>;
128 reg = <0x4980000 0x2800000>;
133 reg = <0x7180000 0x600000>;
139 reg = <0x7780000 0x880000>;
151 compatible = "mediatek,mt76";
152 reg = <0x0000 0 0 0 0>;
153 nvmem-cells = <&eeprom_factory_0>, <&macaddr_factory_e000 1>;
154 nvmem-cell-names = "eeprom", "mac-address";
155 ieee80211-freq-limit = <2400000 2500000>;
165 compatible = "mediatek,mt76";
166 reg = <0x0000 0 0 0 0>;
167 nvmem-cells = <&eeprom_factory_8000>, <&macaddr_factory_e000 2>;
168 nvmem-cell-names = "eeprom", "mac-address";
169 ieee80211-freq-limit = <5000000 6000000>;
178 nvmem-cells = <&macaddr_factory_e000 0>;
179 nvmem-cell-names = "mac-address";
185 phy-handle = <ðphy4>;
187 nvmem-cells = <&macaddr_factory_e000 3>;
188 nvmem-cell-names = "mac-address";
192 ethphy4: ethernet-phy@4 {
223 groups = "i2c", "uart3", "jtag", "wdt";