ath79: add support for Senao Engenius EnStationAC v1
[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 "qca953x.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
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 = "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 flash@0 {
62 compatible = "jedec,spi-nor";
63 reg = <0>;
64 spi-max-frequency = <25000000>;
65
66 partitions {
67 compatible = "fixed-partitions";
68 #address-cells = <1>;
69 #size-cells = <1>;
70
71 uboot: partition@0 {
72 label = "u-boot";
73 reg = <0x000000 0x020000>;
74 read-only;
75 };
76
77 partition@20000 {
78 compatible = "tplink,firmware";
79 label = "firmware";
80 reg = <0x020000 0x7d0000>;
81 };
82
83 art: partition@7f0000 {
84 label = "art";
85 reg = <0x7f0000 0x010000>;
86 read-only;
87 };
88 };
89 };
90 };
91
92 &eth0 {
93 status = "okay";
94
95 phy-handle = <&swphy4>;
96
97 mtd-mac-address = <&uboot 0x1fc00>;
98 mtd-mac-address-increment = <1>;
99 };
100
101 &eth1 {
102 mtd-mac-address = <&uboot 0x1fc00>;
103 };
104
105 &wmac {
106 status = "okay";
107
108 mtd-cal-data = <&art 0x1000>;
109 mtd-mac-address = <&uboot 0x1fc00>;
110 };