1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
7 #include "qca9557.dtsi"
10 compatible = "trendnet,tew-823dru", "qca,qca9558";
11 model = "TRENDNET TEW-823DRU";
14 bootargs = "console=ttyS0,115200n8";
19 led-failsafe = &system;
20 led-running = &system;
21 led-upgrade = &system;
25 compatible = "gpio-leds";
28 label = "trendnet:orange:power";
29 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
33 label = "trendnet:green:power";
34 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
38 label = "trendnet:green:planet";
39 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
43 label = "trendnet:orange:planet";
44 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
49 compatible = "gpio-keys";
52 label = "Reset button";
53 linux,code = <KEY_RESTART>;
54 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
55 debounce-interval = <60>;
60 linux,code = <KEY_WPS_BUTTON>;
61 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
62 debounce-interval = <60>;
94 #trigger-source-cells = <0>;
103 #address-cells = <1>;
109 #trigger-source-cells = <0>;
118 compatible = "jedec,spi-nor";
120 spi-max-frequency = <25000000>;
123 compatible = "fixed-partitions";
124 #address-cells = <1>;
129 reg = <0x000000 0x030000>;
135 reg = <0x030000 0x010000>;
140 compatible = "denx,uimage";
142 reg = <0x040000 0xef0000>;
147 reg = <0xf30000 0x030000>;
153 reg = <0xf60000 0x080000>;
157 mac: partition@fe0000 {
159 reg = <0xfe0000 0x010000>;
163 art: partition@ff0000 {
165 reg = <0xff0000 0x010000>;
175 phy0: ethernet-phy@0 {
177 qca,ar8327-initvals = <
178 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
179 0x0c 0x07600000 /* PORT6 PAD MODE CTRL */
180 0x10 0x81000080 /* POWER_ON_STRIP */
181 0x7c 0x0000007e /* PORT0_STATUS */
182 0x94 0x0000007e /* PORT6 STATUS */
190 phy-handle = <&phy0>;
191 pll-data = <0x56000000 0x00000101 0x00001616>;
202 pll-data = <0x03000101 0x00000101 0x00001616>;
212 mtd-cal-data = <&art 0x1000>;