ath79: drop num-cs for SPI controller
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9561_xiaomi_mi-router-4q.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 = "xiaomi,mi-router-4q", "qca,qca9560";
10 model = "Xiaomi Mi Router 4Q";
11
12 aliases {
13 led-boot = &led_yellow;
14 led-failsafe = &led_red;
15 led-running = &led_blue;
16 led-upgrade = &led_red;
17 };
18
19 keys {
20 compatible = "gpio-keys";
21
22 reset {
23 label = "Reset button";
24 linux,code = <KEY_RESTART>;
25 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
26 };
27
28 wps {
29 label = "WPS/MI button";
30 linux,code = <KEY_WPS_BUTTON>;
31 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
32 };
33 };
34
35 leds {
36 compatible = "gpio-leds";
37
38 led_red: led_red {
39 label = "red:led";
40 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
41 };
42
43 led_yellow: led_yellow {
44 label = "yellow:led";
45 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
46 };
47
48 led_blue: led_blue {
49 label = "blue:led";
50 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
51 };
52 };
53 };
54
55 &uart {
56 status = "okay";
57 };
58
59 &spi {
60 status = "okay";
61
62 flash@0 {
63 compatible = "jedec,spi-nor";
64 reg = <0>;
65 spi-max-frequency = <25000000>;
66
67 partitions {
68 compatible = "fixed-partitions";
69 #address-cells = <1>;
70 #size-cells = <1>;
71
72 partition@0 {
73 label = "u-boot";
74 reg = <0x000000 0x30000>;
75 read-only;
76 };
77
78 partition@30000 {
79 label = "nvram";
80 reg = <0x030000 0x10000>;
81 read-only;
82 };
83
84 partition@40000 {
85 label = "boarddata";
86 reg = <0x40000 0x10000>;
87 read-only;
88 };
89
90 partition@50000 {
91 label = "crash";
92 reg = <0x50000 0x10000>;
93 read-only;
94 };
95
96 art: partition@60000 {
97 label = "art";
98 reg = <0x60000 0x10000>;
99 read-only;
100 };
101
102 partition@70000 {
103 label = "cfg_bak";
104 reg = <0x70000 0x20000>;
105 read-only;
106 };
107
108 partition@90000 {
109 label = "overlay";
110 reg = <0x90000 0x170000>;
111 read-only;
112 };
113
114 partition@200000 {
115 compatible = "denx,uimage";
116 label = "firmware";
117 reg = <0x200000 0xe00000>;
118 };
119 };
120 };
121 };
122
123 &eth0 {
124 status = "okay";
125
126 phy-handle = <&swphy4>;
127 mtd-mac-address = <&art 0x0>;
128 };
129
130 &eth1 {
131 status = "okay";
132
133 mtd-mac-address = <&art 0x6>;
134 };
135
136 &wmac {
137 status = "okay";
138
139 mtd-cal-data = <&art 0x1000>;
140 mtd-mac-address = <&art 0x0>;
141 mtd-mac-address-increment = <1>;
142 };