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 bootargs = "console=ttyS0,115200n8";
25 compatible = "gpio-keys-polled";
26 poll-interval = <100>;
29 label = "Reset button";
30 linux,code = <KEY_RESTART>;
31 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
35 label = "WPS/MI button";
36 linux,code = <KEY_WPS_BUTTON>;
37 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
42 compatible = "gpio-leds";
45 label = "mi-router-4q:red:led";
46 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
49 led_yellow: led_yellow {
50 label = "mi-router-4q:yellow:led";
51 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
55 label = "mi-router-4q:blue:led";
56 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
74 compatible = "jedec,spi-nor";
76 spi-max-frequency = <25000000>;
79 compatible = "fixed-partitions";
85 reg = <0x000000 0x30000>;
91 reg = <0x030000 0x10000>;
97 reg = <0x40000 0x10000>;
103 reg = <0x50000 0x10000>;
107 art: partition@60000 {
109 reg = <0x60000 0x10000>;
115 reg = <0x70000 0x20000>;
121 reg = <0x90000 0x170000>;
126 compatible = "denx,uimage";
128 reg = <0x200000 0xe00000>;
137 phy-handle = <&swphy4>;
138 mtd-mac-address = <&art 0x0>;
144 mtd-mac-address = <&art 0x6>;
150 mtd-cal-data = <&art 0x1000>;
151 mtd-mac-address = <&art 0x0>;
152 mtd-mac-address-increment = <1>;