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>;
114 compatible = "fixed-layout";
115 #address-cells = <1>;
118 macaddr_art_0: macaddr@0 {
122 precal_art_5000: pre-calibration@5000 {
123 reg = <0x5000 0x2f20>;
130 reg = <0x70000 0x20000>;
136 reg = <0x90000 0x170000>;
141 compatible = "denx,uimage";
143 reg = <0x200000 0xe00000>;
152 phy0: ethernet-phy@0 {
156 qca,ar8327-initvals = <
157 0x04 0x00000080 /* PORT0 PAD MODE CTRL */
158 0x08 0x01000000 /* PORT5 PAD MODE CTRL */
159 0x0c 0x00000000 /* PORT6 PAD MODE CTRL */
160 0x10 0x602613a0 /* POWER_ON_STRAP */
161 0x50 0xcf35cf35 /* LED_CTRL0 */
162 0x54 0xca35ca35 /* LED_CTRL1 */
163 0x58 0xc935c935 /* LED_CTRL2 */
164 0x5c 0x03ffff00 /* LED_CTRL3 */
165 0x7c 0x000000fe /* PORT0_STATUS */
166 0x94 0x000010c2 /* PORT6_STATUS */
167 0xe0 0xc74164de /* SGMII_CTRL */
176 phy-handle = <&phy0>;
178 nvmem-cells = <&macaddr_art_0>;
179 nvmem-cell-names = "mac-address";
185 mtd-cal-data = <&art 0x1000>;
192 compatible = "qcom,ath10k";
193 reg = <0x0000 0 0 0 0>;
194 nvmem-cells = <&precal_art_5000>;
195 nvmem-cell-names = "pre-calibration";