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";
28 label = "Reset button";
29 linux,code = <KEY_RESTART>;
30 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
34 label = "WPS/MI button";
35 linux,code = <KEY_WPS_BUTTON>;
36 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
41 compatible = "gpio-leds";
44 label = "mi-router-4q:red:led";
45 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
48 led_yellow: led_yellow {
49 label = "mi-router-4q:yellow:led";
50 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
54 label = "mi-router-4q:blue:led";
55 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
73 compatible = "jedec,spi-nor";
75 spi-max-frequency = <25000000>;
78 compatible = "fixed-partitions";
84 reg = <0x000000 0x30000>;
90 reg = <0x030000 0x10000>;
96 reg = <0x40000 0x10000>;
102 reg = <0x50000 0x10000>;
106 art: partition@60000 {
108 reg = <0x60000 0x10000>;
114 reg = <0x70000 0x20000>;
120 reg = <0x90000 0x170000>;
125 compatible = "denx,uimage";
127 reg = <0x200000 0xe00000>;
136 phy-handle = <&swphy4>;
137 mtd-mac-address = <&art 0x0>;
143 mtd-mac-address = <&art 0x6>;
149 mtd-cal-data = <&art 0x1000>;
150 mtd-mac-address = <&art 0x0>;
151 mtd-mac-address-increment = <1>;