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