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 led-boot = &led_status_red;
12 led-failsafe = &led_status_red;
13 led-running = &led_status_blue;
14 led-upgrade = &led_status_red;
18 compatible = "gpio-keys";
21 label = "Reset Button";
22 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
23 linux,code = <KEY_RESTART>;
26 touch { /* RH6015C touch sensor -> GPIO 14 */
27 label = "Touch Button";
28 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
33 label = "Turbo Button";
34 gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
40 gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
41 linux,code = <KEY_WPS_BUTTON>;
46 compatible = "gpio-leds";
48 led_status_blue: status_blue {
49 function = LED_FUNCTION_POWER;
50 color = <LED_COLOR_ID_BLUE>;
51 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
54 led_status_red: status_red {
55 function = LED_FUNCTION_POWER;
56 color = <LED_COLOR_ID_RED>;
57 gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
61 label = "blue:wifi2g";
62 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
63 linux,default-trigger = "phy0tpt";
76 compatible = "jedec,spi-nor";
78 spi-max-frequency = <40000000>;
81 compatible = "fixed-partitions";
93 reg = <0x30000 0x10000>;
99 reg = <0x40000 0x10000>;
103 compatible = "fixed-layout";
104 #address-cells = <1>;
107 eeprom_factory_0: eeprom@0 {
111 eeprom_factory_8000: eeprom@8000 {
112 reg = <0x8000 0x4da8>;
115 macaddr_factory_e000: macaddr@e000 {
119 macaddr_factory_e006: macaddr@e006 {
126 compatible = "denx,uimage";
128 reg = <0x50000 0xeb0000>;
133 reg = <0xf00000 0x100000>;
146 compatible = "mediatek,mt76";
147 reg = <0x0000 0 0 0 0>;
148 nvmem-cells = <&eeprom_factory_0>;
149 nvmem-cell-names = "eeprom";
155 compatible = "mediatek,mt76";
156 reg = <0x0000 0 0 0 0>;
157 nvmem-cells = <&eeprom_factory_8000>;
158 nvmem-cell-names = "eeprom";
163 pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
167 nvmem-cells = <&macaddr_factory_e000>;
168 nvmem-cell-names = "mac-address";
192 nvmem-cells = <&macaddr_factory_e006>;
193 nvmem-cell-names = "mac-address";
200 groups = "rgmii2", "jtag", "wdt";