ath79: add support for Netgear WNR1000 v2
[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 label-mac-device = &eth1;
20 };
21
22 gpio_leds: leds {
23 compatible = "gpio-leds";
24
25 led_system: system {
26 label = "tp-link:blue:system";
27 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
28 };
29 };
30
31 keys {
32 compatible = "gpio-keys";
33
34 reset {
35 label = "Reset button";
36 linux,code = <KEY_RESTART>;
37 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
38 debounce-interval = <60>;
39 };
40
41 switch_b0 {
42 label = "switch_b0";
43 linux,input-type = <EV_SW>;
44 linux,code = <BTN_0>;
45 gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
46 debounce-interval = <60>;
47 };
48
49 switch_b1 {
50 label = "switch_b1";
51 linux,input-type = <EV_SW>;
52 linux,code = <BTN_1>;
53 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
54 debounce-interval = <60>;
55 };
56 };
57 };
58
59 &uart {
60 status = "okay";
61 };
62
63 &spi {
64 status = "okay";
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 phy-handle = <&swphy4>;
105
106 mtd-mac-address = <&uboot 0x1fc00>;
107 mtd-mac-address-increment = <1>;
108 };
109
110 &wmac {
111 status = "okay";
112 mtd-cal-data = <&art 0x1000>;
113 mtd-mac-address = <&uboot 0x1fc00>;
114 };