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 compatible = "gpio-keys-polled";
22 poll-interval = <100>;
25 label = "Reset button";
26 linux,code = <KEY_RESTART>;
27 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
31 label = "WPS/MI button";
32 linux,code = <KEY_WPS_BUTTON>;
33 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
38 compatible = "gpio-leds";
41 label = "mi-router-4q:red:led";
42 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
45 led_yellow: led_yellow {
46 label = "mi-router-4q:yellow:led";
47 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
51 label = "mi-router-4q:blue:led";
52 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
70 compatible = "jedec,spi-nor";
72 spi-max-frequency = <25000000>;
75 compatible = "fixed-partitions";
81 reg = <0x000000 0x30000>;
87 reg = <0x030000 0x10000>;
93 reg = <0x40000 0x10000>;
99 reg = <0x50000 0x10000>;
103 art: partition@60000 {
105 reg = <0x60000 0x10000>;
111 reg = <0x70000 0x20000>;
117 reg = <0x90000 0x170000>;
122 compatible = "denx,uimage";
124 reg = <0x200000 0xe00000>;
133 phy-handle = <&swphy4>;
134 mtd-mac-address = <&art 0x0>;
140 mtd-mac-address = <&art 0x6>;
146 mtd-cal-data = <&art 0x1000>;
147 mtd-mac-address = <&art 0x0>;
148 mtd-mac-address-increment = <1>;