ath79: remove model name from LED labels
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9531_wallys_dr531.dts
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 model = "Wallys DR531";
10 compatible = "wallys,dr531", "qca,qca9531";
11
12 aliases {
13 label-mac-device = &eth1;
14 led-boot = &led_sig4;
15 led-failsafe = &led_sig4;
16 led-upgrade = &led_sig4;
17 };
18
19 gpio-export {
20 compatible = "gpio-export";
21
22 buzzer {
23 gpio-export,name = "buzzer";
24 gpio-export,output = <0>;
25 gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
26 };
27 };
28
29 keys {
30 compatible = "gpio-keys";
31
32 reset {
33 label = "reset";
34 linux,code = <KEY_RESTART>;
35 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
36 debounce-interval = <60>;
37 };
38 };
39
40 leds {
41 compatible = "gpio-leds";
42
43 lan {
44 label = "green:lan";
45 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
46 };
47
48 led_sig4: sig4 {
49 label = "green:sig4";
50 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
51 };
52
53 sig1 {
54 label = "green:sig1";
55 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
56 };
57
58 sig2 {
59 label = "green:sig2";
60 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
61 };
62
63 sig3 {
64 label = "green:sig3";
65 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
66 };
67
68 wan {
69 label = "green:wan";
70 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
71 };
72 };
73 };
74
75 &eth0 {
76 status = "okay";
77
78 phy-handle = <&swphy4>;
79 mtd-mac-address = <&env 0xf818>;
80 };
81
82 &eth1 {
83 /* Workaround: keep the Ethernet interfaces order/mapping correct
84 * (GMAC0 -> eth0, GMAC1 -> eth1, same as in old ar71xx target) */
85 compatible = "qca,qca9530-eth", "syscon", "simple-mfd";
86
87 mtd-mac-address = <&env 0xf810>;
88 };
89
90 &pcie0 {
91 status = "okay";
92 };
93
94 &spi {
95 status = "okay";
96
97 num-cs = <1>;
98
99 flash@0 {
100 compatible = "jedec,spi-nor";
101 reg = <0>;
102 spi-max-frequency = <50000000>;
103 m25p,fast-read;
104
105 partitions {
106 compatible = "fixed-partitions";
107 #address-cells = <1>;
108 #size-cells = <1>;
109
110 partition@0 {
111 label = "u-boot";
112 reg = <0x000000 0x030000>;
113 read-only;
114 };
115
116 env: partition@30000 {
117 label = "u-boot-env";
118 reg = <0x030000 0x010000>;
119 };
120
121 partition@40000 {
122 label = "partition-table";
123 reg = <0x040000 0x010000>;
124 read-only;
125 };
126
127 partition@50000 {
128 compatible = "denx,uimage";
129 label = "firmware";
130 reg = <0x050000 0x7a0000>;
131 };
132
133 art: partition@7f0000 {
134 label = "art";
135 reg = <0x7f0000 0x010000>;
136 read-only;
137 };
138 };
139 };
140 };
141
142 &uart {
143 status = "okay";
144 };
145
146 &usb0 {
147 status = "okay";
148 };
149
150 &usb_phy {
151 status = "okay";
152 };
153
154 &wmac {
155 status = "okay";
156
157 mtd-cal-data = <&art 0x1000>;
158 };