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 = "belkin,rt1800", "mediatek,mt7621-soc";
11 model = "Belkin RT1800";
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
21 bootargs = "console=ttyS0,115200";
25 compatible = "gpio-keys";
29 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
30 linux,code = <KEY_RESTART>;
35 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
36 linux,code = <KEY_WPS_BUTTON>;
41 compatible = "gpio-leds";
44 color = <LED_COLOR_ID_AMBER>;
45 function = LED_FUNCTION_WPS;
46 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
49 led_power: led-power {
50 function = LED_FUNCTION_POWER;
51 color = <LED_COLOR_ID_WHITE>;
52 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
57 color = <LED_COLOR_ID_AMBER>;
58 function = LED_FUNCTION_WAN;
59 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
63 color = <LED_COLOR_ID_WHITE>;
64 function = LED_FUNCTION_WAN;
65 gpios = <&switch0 0 GPIO_ACTIVE_LOW>;
74 compatible = "fixed-partitions";
86 reg = <0x80000 0x80000>;
91 reg = <0x100000 0x80000>;
95 compatible = "fixed-layout";
99 eeprom_factory_0: eeprom@0 {
107 reg = <0x180000 0x3000000>;
109 compatible = "fixed-partitions";
110 #address-cells = <1>;
115 reg = <0x0 0x400000>;
120 reg = <0x400000 0x2c00000>;
125 label = "alt_firmware";
126 reg = <0x3180000 0x3000000>;
132 reg = <0x6180000 0x80000>;
135 /* seems to be the end here. Can't read past 0x6200000 */
145 compatible = "mediatek,mt76";
146 reg = <0x0000 0 0 0 0>;
147 nvmem-cells = <&eeprom_factory_0>;
148 nvmem-cell-names = "eeprom";
154 groups = "i2c", "uart3", "jtag", "wdt";
162 phy-handle = <ðphy0>;
166 /delete-property/ interrupts;