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>
10 label-mac-device = &gmac0;
11 led-boot = &led_power_orange;
12 led-failsafe = &led_power_white;
13 led-running = &led_power_white;
14 led-upgrade = &led_net_orange;
18 compatible = "gpio-keys";
22 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
23 linux,code = <KEY_RESTART>;
28 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
29 linux,code = <KEY_WPS_BUTTON>;
34 compatible = "gpio-leds";
36 led_power_orange: power_orange {
37 label = "orange:power";
38 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
41 led_power_white: power_white {
42 label = "white:power";
43 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
46 led_net_orange: net_orange {
48 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
53 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
62 compatible = "fixed-partitions";
74 reg = <0x80000 0x80000>;
78 factory: partition@100000 {
80 reg = <0x100000 0x40000>;
86 reg = <0x140000 0x40000>;
92 compatible = "openwrt,uimage", "denx,uimage";
93 openwrt,padding = <96>;
94 reg = <0x180000 0x2800000>;
99 reg = <0x2980000 0x2000000>;
105 compatible = "openwrt,uimage", "denx,uimage";
106 openwrt,padding = <96>;
107 reg = <0x4980000 0x2800000>;
112 reg = <0x7180000 0x600000>;
118 reg = <0x7780000 0x880000>;
130 compatible = "mediatek,mt76";
131 reg = <0x0000 0 0 0 0>;
132 mediatek,mtd-eeprom = <&factory 0x0000>;
133 ieee80211-freq-limit = <2400000 2500000>;
143 compatible = "mediatek,mt76";
144 reg = <0x0000 0 0 0 0>;
145 mediatek,mtd-eeprom = <&factory 0x8000>;
146 ieee80211-freq-limit = <5000000 6000000>;
155 nvmem-cells = <&macaddr_factory_e000>;
156 nvmem-cell-names = "mac-address";
184 nvmem-cells = <&macaddr_factory_e006>;
185 nvmem-cell-names = "mac-address";
192 groups = "i2c", "uart3", "jtag", "wdt";
198 compatible = "nvmem-cells";
199 #address-cells = <1>;
202 macaddr_factory_e000: macaddr@e000 {
206 macaddr_factory_e006: macaddr@e006 {