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>;
59 compatible = "jedec,spi-nor";
61 spi-max-frequency = <25000000>;
64 compatible = "fixed-partitions";
70 reg = <0x000000 0x30000>;
76 reg = <0x030000 0x10000>;
82 reg = <0x40000 0x10000>;
88 reg = <0x50000 0x10000>;
92 art: partition@60000 {
94 reg = <0x60000 0x10000>;
100 reg = <0x70000 0x20000>;
106 reg = <0x90000 0x170000>;
111 compatible = "denx,uimage";
113 reg = <0x200000 0xe00000>;
122 phy-handle = <&swphy4>;
123 mtd-mac-address = <&art 0x0>;
129 mtd-mac-address = <&art 0x6>;
135 mtd-cal-data = <&art 0x1000>;
136 mtd-mac-address = <&art 0x0>;
137 mtd-mac-address-increment = <1>;