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