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 /delete-property/ bootargs;
15 led-boot = &led_power_blue;
16 led-failsafe = &led_power_blue;
17 led-running = &led_power_blue;
18 led-upgrade = &led_power_blue;
19 label-mac-device = ð1;
23 compatible = "gpio-keys";
25 pinctrl-names = "default";
26 pinctrl-0 = <&jtag_disable_pins &led_lan_wan_blue_pin>;
30 linux,code = <KEY_RESTART>;
31 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
36 compatible = "gpio-leds";
38 led_power_blue: power_blue {
39 function = LED_FUNCTION_POWER;
40 color = <LED_COLOR_ID_BLUE>;
41 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
47 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
48 linux,default-trigger = "phy0tpt";
53 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
57 label = "yellow:wifi";
58 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
62 function = LED_FUNCTION_LAN;
63 color = <LED_COLOR_ID_BLUE>;
64 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
68 function = LED_FUNCTION_WAN;
69 color = <LED_COLOR_ID_BLUE>;
70 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
75 compatible = "linux,wdt-gpio";
76 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
78 /* hw_margin_ms is actually 300s but driver limits it to 60s */
79 hw_margin_ms = <60000>;
85 clock-frequency = <40000000>;
89 led_lan_wan_blue_pin: pinmux_lan_wan_blue_pin {
90 pinctrl-single,bits = <0x10 0x0 0x0000ffff>;
98 compatible = "jedec,spi-nor";
100 spi-max-frequency = <40000000>;
102 /* partitions are passed via bootloader */
104 compatible = "fixed-partitions";
105 #address-cells = <1>;
110 reg = <0x000000 0x040000>;
115 label = "u-boot-env";
116 reg = <0x040000 0x040000>;
121 reg = <0x080000 0x140000>;
127 reg = <0x1c0000 0x700000>;
132 reg = <0x8c0000 0x700000>;
135 art: partition@fc0000 {
137 reg = <0xfc0000 0x040000>;
141 compatible = "fixed-layout";
142 #address-cells = <1>;
145 macaddr_art_0: macaddr@0 {
149 macaddr_art_6: macaddr@6 {
161 phy-handle = <&swphy4>;
163 nvmem-cells = <&macaddr_art_6>;
164 nvmem-cell-names = "mac-address";
168 nvmem-cells = <&macaddr_art_0>;
169 nvmem-cell-names = "mac-address";
175 mtd-cal-data = <&art 0x1000>;