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