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>
10 led-boot = &led_system;
11 led-failsafe = &led_system;
12 led-running = &led_system;
13 led-upgrade = &led_system;
14 label-mac-device = &ath9k;
18 compatible = "gpio-keys";
22 linux,code = <KEY_RESTART>;
23 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
24 debounce-interval = <60>;
29 linux,code = <KEY_WPS_BUTTON>;
30 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
31 debounce-interval = <60>;
36 compatible = "gpio-leds";
39 label = "green:system";
40 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
45 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
54 compatible = "jedec,spi-nor";
56 spi-max-frequency = <25000000>;
59 compatible = "fixed-partitions";
69 compatible = "fixed-layout";
73 macaddr_uboot_1fc00: macaddr@1fc00 {
80 compatible = "tplink,firmware";
81 reg = <0x20000 0x3d0000>;
86 reg = <0x3f0000 0x10000>;
98 reg = <0x0000 0 0 0 0>;
102 nvmem-cells = <&macaddr_uboot_1fc00>;
103 nvmem-cell-names = "mac-address";
107 ð0 { /* WAN interface, initialized last as eth1 */
110 nvmem-cells = <&macaddr_uboot_1fc00>;
111 nvmem-cell-names = "mac-address";
112 mac-address-increment = <1>;
115 ð1 { /* LAN interface, initialized first as eth0 */
116 nvmem-cells = <&macaddr_uboot_1fc00>;
117 nvmem-cell-names = "mac-address";