uclient: update to Git HEAD (2024-04-19)
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca953x_tplink_tl-wr810n.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 #include "qca953x.dtsi"
7
8 / {
9 chosen {
10 bootargs = "console=ttyS0,115200n8";
11 };
12
13 aliases {
14 led-boot = &led_system;
15 led-failsafe = &led_system;
16 led-running = &led_system;
17 led-upgrade = &led_system;
18 label-mac-device = &eth1;
19 };
20
21 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
65 num-cs = <1>;
66
67 flash@0 {
68 compatible = "jedec,spi-nor";
69 reg = <0>;
70 spi-max-frequency = <25000000>;
71
72 partitions {
73 compatible = "fixed-partitions";
74 #address-cells = <1>;
75 #size-cells = <1>;
76
77 uboot: partition@0 {
78 label = "u-boot";
79 reg = <0x000000 0x020000>;
80 read-only;
81 };
82
83 partition@20000 {
84 compatible = "tplink,firmware";
85 label = "firmware";
86 reg = <0x020000 0x7d0000>;
87 };
88
89 art: partition@7f0000 {
90 label = "art";
91 reg = <0x7f0000 0x010000>;
92 read-only;
93 };
94 };
95 };
96 };
97
98 &eth1 {
99 mtd-mac-address = <&uboot 0x1fc00>;
100 };
101
102 &eth0 {
103 status = "okay";
104
105 phy-handle = <&swphy4>;
106
107 mtd-mac-address = <&uboot 0x1fc00>;
108 mtd-mac-address-increment = <1>;
109 };
110
111 &wmac {
112 status = "okay";
113
114 mtd-cal-data = <&art 0x1000>;
115 mtd-mac-address = <&uboot 0x1fc00>;
116 };