1 // SPDX-License-Identifier: GPL-2.0+ OR MIT
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
7 #include "qca956x.dtsi"
10 compatible = "xiaomi,mi-router-4q", "qca,qca9560";
11 model = "Xiaomi Mi Router 4Q";
14 led-boot = &led_yellow;
15 led-failsafe = &led_red;
16 led-running = &led_blue;
17 led-upgrade = &led_red;
21 compatible = "gpio-keys";
24 label = "Reset button";
25 linux,code = <KEY_RESTART>;
26 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
30 label = "WPS/MI button";
31 linux,code = <KEY_WPS_BUTTON>;
32 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
37 compatible = "gpio-leds";
40 label = "mi-router-4q:red:led";
41 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
44 led_yellow: led_yellow {
45 label = "mi-router-4q:yellow:led";
46 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
50 label = "mi-router-4q:blue:led";
51 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
69 compatible = "jedec,spi-nor";
71 spi-max-frequency = <25000000>;
74 compatible = "fixed-partitions";
80 reg = <0x000000 0x30000>;
86 reg = <0x030000 0x10000>;
92 reg = <0x40000 0x10000>;
98 reg = <0x50000 0x10000>;
102 art: partition@60000 {
104 reg = <0x60000 0x10000>;
110 reg = <0x70000 0x20000>;
116 reg = <0x90000 0x170000>;
121 compatible = "denx,uimage";
123 reg = <0x200000 0xe00000>;
132 phy-handle = <&swphy4>;
133 mtd-mac-address = <&art 0x0>;
139 mtd-mac-address = <&art 0x6>;
145 mtd-cal-data = <&art 0x1000>;
146 mtd-mac-address = <&art 0x0>;
147 mtd-mac-address-increment = <1>;