ath79: add support for Compex WPJ531 (16M)
[openwrt/staging/dedeckeh.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 aliases {
10 led-boot = &led_system;
11 led-failsafe = &led_system;
12 led-running = &led_system;
13 led-upgrade = &led_system;
14 label-mac-device = &eth1;
15 };
16
17 leds {
18 compatible = "gpio-leds";
19
20 led_system: system {
21 label = "tp-link:blue:system";
22 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
23 };
24 };
25
26 keys {
27 compatible = "gpio-keys";
28
29 reset {
30 label = "Reset button";
31 linux,code = <KEY_RESTART>;
32 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
33 debounce-interval = <60>;
34 };
35
36 switch_b0 {
37 label = "switch_b0";
38 linux,input-type = <EV_SW>;
39 linux,code = <BTN_0>;
40 gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
41 debounce-interval = <60>;
42 };
43
44 switch_b1 {
45 label = "switch_b1";
46 linux,input-type = <EV_SW>;
47 linux,code = <BTN_1>;
48 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
49 debounce-interval = <60>;
50 };
51 };
52 };
53
54 &uart {
55 status = "okay";
56 };
57
58 &spi {
59 status = "okay";
60
61 num-cs = <1>;
62
63 flash@0 {
64 compatible = "jedec,spi-nor";
65 reg = <0>;
66 spi-max-frequency = <25000000>;
67
68 partitions {
69 compatible = "fixed-partitions";
70 #address-cells = <1>;
71 #size-cells = <1>;
72
73 uboot: partition@0 {
74 label = "u-boot";
75 reg = <0x000000 0x020000>;
76 read-only;
77 };
78
79 partition@20000 {
80 compatible = "tplink,firmware";
81 label = "firmware";
82 reg = <0x020000 0x7d0000>;
83 };
84
85 art: partition@7f0000 {
86 label = "art";
87 reg = <0x7f0000 0x010000>;
88 read-only;
89 };
90 };
91 };
92 };
93
94 &eth1 {
95 mtd-mac-address = <&uboot 0x1fc00>;
96 };
97
98 &eth0 {
99 status = "okay";
100
101 phy-handle = <&swphy4>;
102
103 mtd-mac-address = <&uboot 0x1fc00>;
104 mtd-mac-address-increment = <1>;
105 };
106
107 &wmac {
108 status = "okay";
109
110 mtd-cal-data = <&art 0x1000>;
111 mtd-mac-address = <&uboot 0x1fc00>;
112 };