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>
7 #include <dt-bindings/leds/common.h>
10 model = "Xiaomi AIoT AC2350";
11 compatible = "xiaomi,aiot-ac2350", "qca,qca9563";
14 label-mac-device = ð0;
16 led-boot = &led_system_orange;
17 led-failsafe = &led_system_orange;
18 led-running = &led_system_blue;
19 led-upgrade = &led_system_orange;
23 compatible = "gpio-keys";
27 linux,code = <KEY_RESTART>;
28 gpios = <&gpio 2 GPIO_ACTIVE_HIGH>;
33 compatible = "gpio-leds";
35 led_system_blue: system_blue {
36 label = "blue:system";
37 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
40 led_system_orange: system_orange {
41 label = "orange:system";
42 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
46 function = LED_FUNCTION_WAN;
47 color = <LED_COLOR_ID_BLUE>;
48 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
52 function = LED_FUNCTION_WAN;
53 color = <LED_COLOR_ID_ORANGE>;
54 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
59 compatible = "gpio-export";
62 gpio-export,name = "wps";
63 gpio-export,output = <0>;
64 gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
68 gpio-export,name = "usb-reset";
69 gpio-export,output = <0>;
70 gpios = <&gpio 19 GPIO_ACTIVE_HIGH>;
79 compatible = "jedec,spi-nor";
81 spi-max-frequency = <50000000>;
84 compatible = "fixed-partitions";
96 reg = <0x30000 0x10000>;
101 reg = <0x40000 0x10000>;
107 reg = <0x50000 0x10000>;
111 art: partition@60000 {
113 reg = <0x60000 0x10000>;
117 compatible = "fixed-layout";
118 #address-cells = <1>;
121 macaddr_art_0: macaddr@0 {
125 precal_art_5000: pre-calibration@5000 {
126 reg = <0x5000 0x2f20>;
133 reg = <0x70000 0x20000>;
139 reg = <0x90000 0x170000>;
144 compatible = "denx,uimage";
146 reg = <0x200000 0xe00000>;
155 phy0: ethernet-phy@0 {
159 qca,ar8327-initvals = <
160 0x04 0x00000080 /* PORT0 PAD MODE CTRL */
161 0x08 0x01000000 /* PORT5 PAD MODE CTRL */
162 0x0c 0x00000000 /* PORT6 PAD MODE CTRL */
163 0x10 0x602613a0 /* POWER_ON_STRAP */
164 0x50 0xcf35cf35 /* LED_CTRL0 */
165 0x54 0xca35ca35 /* LED_CTRL1 */
166 0x58 0xc935c935 /* LED_CTRL2 */
167 0x5c 0x03ffff00 /* LED_CTRL3 */
168 0x7c 0x000000fe /* PORT0_STATUS */
169 0x94 0x000010c2 /* PORT6_STATUS */
170 0xe0 0xc74164de /* SGMII_CTRL */
179 phy-handle = <&phy0>;
181 nvmem-cells = <&macaddr_art_0>;
182 nvmem-cell-names = "mac-address";
188 mtd-cal-data = <&art 0x1000>;
195 compatible = "qcom,ath10k";
196 reg = <0x0000 0 0 0 0>;
197 nvmem-cells = <&precal_art_5000>;
198 nvmem-cell-names = "pre-calibration";