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 {
103 compatible = "mac-base";
105 #nvmem-cell-cells = <1>;
108 macaddr_art_6: macaddr@6 {
116 reg = <0x70000 0x20000>;
122 reg = <0x90000 0x170000>;
127 compatible = "denx,uimage";
129 reg = <0x200000 0xe00000>;
138 phy-handle = <&swphy4>;
139 nvmem-cells = <&macaddr_art_0 0>;
140 nvmem-cell-names = "mac-address";
146 nvmem-cells = <&macaddr_art_6>;
147 nvmem-cell-names = "mac-address";
153 mtd-cal-data = <&art 0x1000>;
154 nvmem-cells = <&macaddr_art_0 1>;
155 nvmem-cell-names = "mac-address";