1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.h>
10 compatible = "dlink,dir-878-a1", "mediatek,mt7621-soc";
11 model = "D-Link DIR-878 A1";
14 led-boot = &led_power_orange;
15 led-failsafe = &led_power_green;
16 led-running = &led_power_green;
17 led-upgrade = &led_net_orange;
18 label-mac-device = &gmac0;
22 bootargs = "console=ttyS0,57600";
26 compatible = "gpio-leds";
28 led_power_orange: power_orange {
29 label = "dir-878-a1:orange:power";
30 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
33 led_power_green: power_green {
34 label = "dir-878-a1:green:power";
35 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
38 led_net_orange: net_orange {
39 label = "dir-878-a1:orange:net";
40 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
44 label = "dir-878-a1:green:net";
45 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
50 compatible = "gpio-keys";
54 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
55 linux,code = <KEY_RESTART>;
60 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
61 linux,code = <KEY_WPS_BUTTON>;
66 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
67 linux,code = <KEY_RFKILL>;
76 compatible = "jedec,spi-nor";
78 spi-max-frequency = <50000000>;
81 compatible = "fixed-partitions";
93 reg = <0x30000 0x10000>;
97 factory: partition@40000 {
99 reg = <0x40000 0x20000>;
104 compatible = "sge,uimage";
106 reg = <0x60000 0xfa0000>;
118 compatible = "mediatek,mt76";
119 reg = <0x0000 0 0 0 0>;
120 mediatek,mtd-eeprom = <&factory 0x0000>;
121 ieee80211-freq-limit = <2400000 2500000>;
131 compatible = "mediatek,mt76";
132 reg = <0x0000 0 0 0 0>;
133 mediatek,mtd-eeprom = <&factory 0x8000>;
134 ieee80211-freq-limit = <5000000 6000000>;
143 mtd-mac-address = <&factory 0xe000>;
171 mtd-mac-address = <&factory 0xe006>;
178 groups = "i2c", "uart3", "jtag", "wdt";