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";
40 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
43 led_yellow: led_yellow {
45 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
50 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
63 compatible = "jedec,spi-nor";
65 spi-max-frequency = <25000000>;
68 compatible = "fixed-partitions";
74 reg = <0x000000 0x30000>;
80 reg = <0x030000 0x10000>;
86 reg = <0x40000 0x10000>;
92 reg = <0x50000 0x10000>;
96 art: partition@60000 {
98 reg = <0x60000 0x10000>;
104 reg = <0x70000 0x20000>;
110 reg = <0x90000 0x170000>;
115 compatible = "denx,uimage";
117 reg = <0x200000 0xe00000>;
126 phy-handle = <&swphy4>;
127 mtd-mac-address = <&art 0x0>;
133 mtd-mac-address = <&art 0x6>;
139 mtd-cal-data = <&art 0x1000>;
140 mtd-mac-address = <&art 0x0>;
141 mtd-mac-address-increment = <1>;