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