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