1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "qca956x.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "xiaomi,mi-router-4q", "qca,qca9560";
10 model = "Xiaomi Mi Router 4Q";
13 led-boot = &led_yellow;
14 led-failsafe = &led_red;
15 led-running = &led_blue;
16 led-upgrade = &led_red;
20 compatible = "gpio-keys";
23 label = "Reset button";
24 linux,code = <KEY_RESTART>;
25 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
29 label = "WPS/MI button";
30 linux,code = <KEY_WPS_BUTTON>;
31 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
36 compatible = "gpio-leds";
39 label = "mi-router-4q:red:led";
40 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
43 led_yellow: led_yellow {
44 label = "mi-router-4q:yellow:led";
45 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
49 label = "mi-router-4q:blue:led";
50 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
64 compatible = "jedec,spi-nor";
66 spi-max-frequency = <25000000>;
69 compatible = "fixed-partitions";
75 reg = <0x000000 0x30000>;
81 reg = <0x030000 0x10000>;
87 reg = <0x40000 0x10000>;
93 reg = <0x50000 0x10000>;
97 art: partition@60000 {
99 reg = <0x60000 0x10000>;
105 reg = <0x70000 0x20000>;
111 reg = <0x90000 0x170000>;
116 compatible = "denx,uimage";
118 reg = <0x200000 0xe00000>;
127 phy-handle = <&swphy4>;
128 mtd-mac-address = <&art 0x0>;
134 mtd-mac-address = <&art 0x6>;
140 mtd-cal-data = <&art 0x1000>;
141 mtd-mac-address = <&art 0x0>;
142 mtd-mac-address-increment = <1>;