ath79: etactica-eg200: fix restore button
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca953x_tplink_tl-wr810n.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /dts-v1/;
3
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6
7 #include "qca953x.dtsi"
8
9 / {
10 chosen {
11 bootargs = "console=ttyS0,115200n8";
12 };
13
14 aliases {
15 led-boot = &led_system;
16 led-failsafe = &led_system;
17 led-running = &led_system;
18 led-upgrade = &led_system;
19 };
20
21 gpio_leds: leds {
22 compatible = "gpio-leds";
23
24 led_system: system {
25 label = "tp-link:blue:system";
26 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
27 };
28 };
29
30 keys {
31 compatible = "gpio-keys";
32
33 reset {
34 label = "Reset button";
35 linux,code = <KEY_RESTART>;
36 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
37 debounce-interval = <60>;
38 };
39
40 switch_b0 {
41 label = "switch_b0";
42 linux,input-type = <EV_SW>;
43 linux,code = <BTN_0>;
44 gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
45 debounce-interval = <60>;
46 };
47
48 switch_b1 {
49 label = "switch_b1";
50 linux,input-type = <EV_SW>;
51 linux,code = <BTN_1>;
52 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
53 debounce-interval = <60>;
54 };
55 };
56 };
57
58 &uart {
59 status = "okay";
60 };
61
62 &spi {
63 status = "okay";
64 num-cs = <1>;
65
66 flash@0 {
67 compatible = "jedec,spi-nor";
68 reg = <0>;
69 spi-max-frequency = <25000000>;
70
71 partitions {
72 compatible = "fixed-partitions";
73 #address-cells = <1>;
74 #size-cells = <1>;
75
76 uboot: partition@0 {
77 label = "u-boot";
78 reg = <0x000000 0x020000>;
79 read-only;
80 };
81
82 partition@20000 {
83 compatible = "tplink,firmware";
84 label = "firmware";
85 reg = <0x020000 0x7d0000>;
86 };
87
88 art: partition@7f0000 {
89 label = "art";
90 reg = <0x7f0000 0x010000>;
91 read-only;
92 };
93 };
94 };
95 };
96
97 &eth1 {
98 mtd-mac-address = <&uboot 0x1fc00>;
99 };
100
101 &eth0 {
102 status = "okay";
103 phy-handle = <&swphy4>;
104
105 mtd-mac-address = <&uboot 0x1fc00>;
106 mtd-mac-address-increment = <1>;
107 };
108
109 &wmac {
110 status = "okay";
111 mtd-cal-data = <&art 0x1000>;
112 mtd-mac-address = <&uboot 0x1fc00>;
113 };