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