1 // SPDX-License-Identifier: GPL-2.0-or-later 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>;
65 compatible = "jedec,spi-nor";
67 spi-max-frequency = <25000000>;
70 compatible = "fixed-partitions";
76 reg = <0x000000 0x30000>;
82 reg = <0x030000 0x10000>;
88 reg = <0x40000 0x10000>;
94 reg = <0x50000 0x10000>;
98 art: partition@60000 {
100 reg = <0x60000 0x10000>;
106 reg = <0x70000 0x20000>;
112 reg = <0x90000 0x170000>;
117 compatible = "denx,uimage";
119 reg = <0x200000 0xe00000>;
128 phy-handle = <&swphy4>;
129 mtd-mac-address = <&art 0x0>;
135 mtd-mac-address = <&art 0x6>;
141 mtd-cal-data = <&art 0x1000>;
142 mtd-mac-address = <&art 0x0>;
143 mtd-mac-address-increment = <1>;