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>;
95 #trigger-source-cells = <0>;
104 #address-cells = <1>;
110 #trigger-source-cells = <0>;
119 compatible = "jedec,spi-nor";
121 spi-max-frequency = <25000000>;
124 compatible = "fixed-partitions";
125 #address-cells = <1>;
130 reg = <0x000000 0x030000>;
136 reg = <0x030000 0x010000>;
141 compatible = "denx,uimage";
143 reg = <0x040000 0xef0000>;
148 reg = <0xf30000 0x030000>;
154 reg = <0xf60000 0x080000>;
158 mac: partition@fe0000 {
160 reg = <0xfe0000 0x010000>;
164 art: partition@ff0000 {
166 reg = <0xff0000 0x010000>;
177 phy0: ethernet-phy@0 {
179 qca,ar8327-initvals = <
180 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
181 0x0c 0x07600000 /* PORT6 PAD MODE CTRL */
182 0x10 0x81000080 /* POWER_ON_STRIP */
183 0x7c 0x0000007e /* PORT0_STATUS */
184 0x94 0x0000007e /* PORT6 STATUS */
192 phy-handle = <&phy0>;
193 pll-data = <0x56000000 0x00000101 0x00001616>;
204 pll-data = <0x03000101 0x00000101 0x00001616>;
215 mtd-cal-data = <&art 0x1000>;