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>;
98 compatible = "fixed-layout";
102 macaddr_art_0: macaddr@0 {
106 macaddr_art_6: macaddr@6 {
114 reg = <0x70000 0x20000>;
120 reg = <0x90000 0x170000>;
125 compatible = "denx,uimage";
127 reg = <0x200000 0xe00000>;
136 phy-handle = <&swphy4>;
137 nvmem-cells = <&macaddr_art_0>;
138 nvmem-cell-names = "mac-address";
144 nvmem-cells = <&macaddr_art_6>;
145 nvmem-cell-names = "mac-address";
151 mtd-cal-data = <&art 0x1000>;
152 nvmem-cells = <&macaddr_art_0>;
153 nvmem-cell-names = "mac-address";
154 mac-address-increment = <1>;