1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "qca953x.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
8 #include <dt-bindings/mtd/partitions/uimage.h>
11 compatible = "kuwfi,c910", "qca,qca9533";
15 label-mac-device = ð1;
16 led-boot = &internet_red;
17 led-failsafe = &internet_red;
18 led-upgrade = &internet_red;
22 compatible = "mtd-concat";
23 devices = <&fwconcat0 &fwconcat1>;
26 compatible = "fixed-partitions";
33 compatible = "openwrt,uimage", "denx,uimage";
34 openwrt,ih-magic = <IH_MAGIC_OKLI>;
40 compatible = "gpio-keys";
44 linux,code = <KEY_RESTART>;
45 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
46 debounce-interval = <60>;
51 compatible = "gpio-leds";
54 label = "blue:internet";
55 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
60 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
61 linux,default-trigger = "phy0tpt";
65 label = "green:internet";
66 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
70 function = LED_FUNCTION_WAN;
71 color = <LED_COLOR_ID_WHITE>;
72 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
77 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
80 // gpio 12 enables or disables LTE (Quectel EC200T)
82 internet_red: internet_red {
83 label = "red:internet";
84 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
89 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
98 compatible = "winbond,w25q128", "jedec,spi-nor";
100 spi-max-frequency = <25000000>;
103 compatible = "fixed-partitions";
104 #address-cells = <1>;
109 reg = <0x000000 0x020000>;
114 label = "u-boot-env";
115 reg = <0x020000 0x010000>;
121 reg = <0x030000 0x020000>;
125 fwconcat0: partition@50000 {
127 reg = <0x050000 0xe30000>;
132 reg = <0xe80000 0x10000>;
135 fwconcat1: partition@e90000 {
137 reg = <0xe90000 0x160000>;
142 reg = <0xff0000 0x010000>;
146 compatible = "fixed-layout";
147 #address-cells = <1>;
150 calibration_art_1000: macaddr@1000 {
151 reg = <0x1000 0x440>;
154 macaddr_art_1002: macaddr@1002 {
155 compatible = "mac-base";
157 #nvmem-cell-cells = <1>;
176 phy-handle = <&swphy0>;
178 nvmem-cells = <&macaddr_art_1002 1>;
179 nvmem-cell-names = "mac-address";
183 phy-handle = <&swphy4>;
185 nvmem-cells = <&macaddr_art_1002 0>;
186 nvmem-cell-names = "mac-address";
190 switch-phy-swap = <1>;
197 nvmem-cells = <&calibration_art_1000>;
198 nvmem-cell-names = "calibration";