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 model = "Xiaomi AIoT AC2350";
10 compatible = "xiaomi,aiot-ac2350", "qca,qca9563";
13 label-mac-device = ð0;
15 led-boot = &led_system_orange;
16 led-failsafe = &led_system_orange;
17 led-running = &led_system_blue;
18 led-upgrade = &led_system_orange;
22 compatible = "gpio-keys";
26 linux,code = <KEY_RESTART>;
27 gpios = <&gpio 2 GPIO_ACTIVE_HIGH>;
32 compatible = "gpio-leds";
34 led_system_blue: system_blue {
35 label = "blue:system";
36 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
39 led_system_orange: system_orange {
40 label = "orange:system";
41 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
46 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
51 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
56 compatible = "gpio-export";
59 gpio-export,name = "wps";
60 gpio-export,output = <0>;
61 gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
65 gpio-export,name = "usb-reset";
66 gpio-export,output = <0>;
67 gpios = <&gpio 19 GPIO_ACTIVE_HIGH>;
76 compatible = "jedec,spi-nor";
78 spi-max-frequency = <50000000>;
81 compatible = "fixed-partitions";
93 reg = <0x30000 0x10000>;
98 reg = <0x40000 0x10000>;
104 reg = <0x50000 0x10000>;
108 art: partition@60000 {
110 reg = <0x60000 0x10000>;
116 reg = <0x70000 0x20000>;
122 reg = <0x90000 0x170000>;
127 compatible = "denx,uimage";
129 reg = <0x200000 0xe00000>;
138 phy0: ethernet-phy@0 {
142 qca,ar8327-initvals = <
143 0x04 0x00000080 /* PORT0 PAD MODE CTRL */
144 0x08 0x01000000 /* PORT5 PAD MODE CTRL */
145 0x0c 0x00000000 /* PORT6 PAD MODE CTRL */
146 0x10 0x602613a0 /* POWER_ON_STRAP */
147 0x50 0xcf35cf35 /* LED_CTRL0 */
148 0x54 0xca35ca35 /* LED_CTRL1 */
149 0x58 0xc935c935 /* LED_CTRL2 */
150 0x5c 0x03ffff00 /* LED_CTRL3 */
151 0x7c 0x000000fe /* PORT0_STATUS */
152 0x94 0x000010c2 /* PORT6_STATUS */
153 0xe0 0xc74164de /* SGMII_CTRL */
162 phy-handle = <&phy0>;
164 nvmem-cells = <&macaddr_art_0>;
165 nvmem-cell-names = "mac-address";
171 mtd-cal-data = <&art 0x1000>;
179 compatible = "nvmem-cells";
180 #address-cells = <1>;
183 macaddr_art_0: macaddr@0 {