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>
9 compatible = "totolink,x5000r", "mediatek,mt7621-soc";
10 model = "TOTOLINK X5000R";
14 led-failsafe = &led_sys;
15 led-running = &led_sys;
16 led-upgrade = &led_sys;
17 label-mac-device = &gmac0;
21 stdout-path = "serial0:115200n8";
22 bootargs = "console=ttyS0,115200n8";
26 compatible = "gpio-leds";
30 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
35 compatible = "gpio-keys";
39 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
40 debounce-interval = <60>;
41 linux,code = <KEY_RESTART>;
50 compatible = "jedec,spi-nor";
52 spi-max-frequency = <50000000>;
56 compatible = "fixed-partitions";
68 reg = <0x30000 0x10000>;
72 factory: partition@40000 {
74 reg = <0x40000 0x10000>;
79 compatible = "denx,uimage";
81 reg = <0x50000 0xfb0000>;
93 compatible = "mediatek,mt76";
94 reg = <0x0000 0 0 0 0>;
95 mediatek,mtd-eeprom = <&factory 0x0000>;
100 nvmem-cells = <&macaddr_factory_e000>;
101 nvmem-cell-names = "mac-address";
129 nvmem-cells = <&macaddr_factory_e006>;
130 nvmem-cell-names = "mac-address";
137 groups = "i2c", "wdt";
143 compatible = "nvmem-cells";
144 #address-cells = <1>;
147 macaddr_factory_e000: macaddr@e000 {
151 macaddr_factory_e006: macaddr@e006 {