ecb427029db0272d39b1a1826554d433e78d8222
[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 &pcie {
60 status = "okay";
61 };
62
63 &spi {
64 status = "okay";
65
66 flash@0 {
67 compatible = "jedec,spi-nor";
68 reg = <0>;
69 spi-max-frequency = <25000000>;
70
71 partitions {
72 compatible = "fixed-partitions";
73 #address-cells = <1>;
74 #size-cells = <1>;
75
76 partition@0 {
77 label = "u-boot";
78 reg = <0x000000 0x020000>;
79 read-only;
80 };
81
82 partition@20000 {
83 label = "partition-table";
84 reg = <0x020000 0x010000>;
85 read-only;
86 };
87
88 info: partition@30000 {
89 label = "info";
90 reg = <0x030000 0x010000>;
91 read-only;
92 };
93
94 partition@40000 {
95 compatible = "openwrt,elf";
96 label = "firmware";
97 reg = <0x040000 0xd80000>;
98 };
99
100 partition@dc0000 {
101 label = "config";
102 reg = <0xdc0000 0x030000>;
103 read-only;
104 };
105
106 /* df0000-f30000 undefined in vendor firmware */
107
108 partition@f30000 {
109 label = "mutil-log";
110 reg = <0xf30000 0x080000>;
111 read-only;
112 };
113
114 partition@fb0000 {
115 label = "oops";
116 reg = <0xfb0000 0x040000>;
117 read-only;
118 };
119
120 art: partition@ff0000 {
121 label = "art";
122 reg = <0xff0000 0x010000>;
123 read-only;
124 };
125 };
126 };
127 };
128
129 &eth1 {
130 status = "okay";
131
132 nvmem-cells = <&macaddr_info_8>;
133 nvmem-cell-names = "mac-address";
134 };
135
136 &wmac {
137 status = "okay";
138
139 mtd-cal-data = <&art 0x1000>;
140 nvmem-cells = <&macaddr_info_8>;
141 nvmem-cell-names = "mac-address";
142 };
143
144 &info {
145 compatible = "nvmem-cells";
146 #address-cells = <1>;
147 #size-cells = <1>;
148
149 macaddr_info_8: macaddr@8 {
150 reg = <0x8 0x6>;
151 };
152 };