ath79: drop num-cs for SPI controller
[openwrt/staging/mkresin.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 flash@0 {
98 compatible = "jedec,spi-nor";
99 reg = <0>;
100 spi-max-frequency = <50000000>;
101 m25p,fast-read;
102
103 partitions {
104 compatible = "fixed-partitions";
105 #address-cells = <1>;
106 #size-cells = <1>;
107
108 partition@0 {
109 label = "u-boot";
110 reg = <0x000000 0x030000>;
111 read-only;
112 };
113
114 env: partition@30000 {
115 label = "u-boot-env";
116 reg = <0x030000 0x010000>;
117 };
118
119 partition@40000 {
120 label = "partition-table";
121 reg = <0x040000 0x010000>;
122 read-only;
123 };
124
125 partition@50000 {
126 compatible = "denx,uimage";
127 label = "firmware";
128 reg = <0x050000 0x7a0000>;
129 };
130
131 art: partition@7f0000 {
132 label = "art";
133 reg = <0x7f0000 0x010000>;
134 read-only;
135 };
136 };
137 };
138 };
139
140 &uart {
141 status = "okay";
142 };
143
144 &usb0 {
145 status = "okay";
146 };
147
148 &usb_phy {
149 status = "okay";
150 };
151
152 &wmac {
153 status = "okay";
154
155 mtd-cal-data = <&art 0x1000>;
156 };