ath79: support for TP-Link EAP225-Wall v2
[openwrt/staging/mkresin.git] / target / linux / ath79 / dts / qca9561_tplink_eap225-wall-v2.dts
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 "qca956x.dtsi"
8
9 / {
10 compatible = "tplink,eap225-wall-v2", "qca,qca9561";
11 model = "TP-Link EAP225-Wall v2";
12
13 aliases {
14 label-mac-device = &eth1;
15 led-boot = &led_status;
16 led-failsafe = &led_status;
17 led-running = &led_status;
18 led-upgrade = &led_status;
19 };
20
21 keys {
22 compatible = "gpio-keys";
23
24 reset {
25 label = "Reset button";
26 linux,code = <KEY_RESTART>;
27 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
28 debounce-interval = <60>;
29 };
30
31 led {
32 label = "LED button";
33 linux,code = <KEY_LIGHTS_TOGGLE>;
34 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
35 debounce-interval = <60>;
36 };
37 };
38
39 leds {
40 compatible = "gpio-leds";
41
42 led_status: status {
43 label = "tp-link:white:status";
44 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
45 default-state = "on";
46 };
47 };
48
49 gpio-export {
50 compatible = "gpio-export";
51
52 poe_passthrough {
53 gpio-export,name = "tp-link:poe-passthrough:enable";
54 gpio-export,output = <0>;
55 gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
56 };
57 };
58 };
59
60 &uart {
61 status = "okay";
62 };
63
64 &pcie {
65 status = "okay";
66 };
67
68 &spi {
69 status = "okay";
70 num-cs = <1>;
71
72 flash@0 {
73 compatible = "jedec,spi-nor";
74 reg = <0>;
75 spi-max-frequency = <25000000>;
76
77 partitions {
78 compatible = "fixed-partitions";
79 #address-cells = <1>;
80 #size-cells = <1>;
81
82 partition@0 {
83 label = "u-boot";
84 reg = <0x000000 0x020000>;
85 read-only;
86 };
87
88 partition@20000 {
89 label = "partition-table";
90 reg = <0x020000 0x010000>;
91 read-only;
92 };
93
94 info: partition@30000 {
95 label = "info";
96 reg = <0x030000 0x010000>;
97 read-only;
98 };
99
100 partition@40000 {
101 compatible = "openwrt,elf";
102 label = "firmware";
103 reg = <0x040000 0xd80000>;
104 };
105
106 partition@dc0000 {
107 label = "config";
108 reg = <0xdc0000 0x030000>;
109 read-only;
110 };
111
112 /* df0000-f30000 undefined in vendor firmware */
113
114 partition@f30000 {
115 label = "mutil-log";
116 reg = <0xf30000 0x080000>;
117 read-only;
118 };
119
120 partition@fb0000 {
121 label = "oops";
122 reg = <0xfb0000 0x040000>;
123 read-only;
124 };
125
126 art: partition@ff0000 {
127 label = "art";
128 reg = <0xff0000 0x010000>;
129 read-only;
130 };
131 };
132 };
133 };
134
135 &eth1 {
136 status = "okay";
137
138 mtd-mac-address = <&info 0x8>;
139 };
140
141 &wmac {
142 status = "okay";
143
144 mtd-cal-data = <&art 0x1000>;
145 mtd-mac-address = <&info 0x8>;
146 };