1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "qca955x.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "trendnet,tew-823dru", "qca,qca9558";
10 model = "TRENDNET TEW-823DRU";
13 led-boot = &led_power_green;
14 led-failsafe = &led_power_green;
15 led-running = &led_power_green;
16 led-upgrade = &led_power_green;
20 compatible = "gpio-leds";
23 label = "orange:power";
24 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
27 led_power_green: power_green {
28 label = "green:power";
29 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
33 label = "green:planet";
34 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
38 label = "orange:planet";
39 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
44 compatible = "gpio-keys";
47 label = "Reset button";
48 linux,code = <KEY_RESTART>;
49 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
50 debounce-interval = <60>;
55 linux,code = <KEY_WPS_BUTTON>;
56 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
57 debounce-interval = <60>;
81 #trigger-source-cells = <0>;
96 #trigger-source-cells = <0>;
104 compatible = "jedec,spi-nor";
106 spi-max-frequency = <25000000>;
109 compatible = "fixed-partitions";
110 #address-cells = <1>;
115 reg = <0x000000 0x030000>;
121 reg = <0x030000 0x010000>;
126 compatible = "denx,uimage";
128 reg = <0x040000 0xef0000>;
133 reg = <0xf30000 0x030000>;
139 reg = <0xf60000 0x080000>;
145 reg = <0xfe0000 0x010000>;
149 art: partition@ff0000 {
151 reg = <0xff0000 0x010000>;
161 phy0: ethernet-phy@0 {
163 qca,ar8327-initvals = <
164 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
165 0x0c 0x07600000 /* PORT6 PAD MODE CTRL */
166 0x10 0x81000080 /* POWER_ON_STRAP */
167 0x7c 0x0000007e /* PORT0_STATUS */
168 0x94 0x0000007e /* PORT6 STATUS */
176 phy-handle = <&phy0>;
177 pll-data = <0x56000000 0x00000101 0x00001616>;
188 pll-data = <0x03000101 0x00000101 0x00001616>;
199 mtd-cal-data = <&art 0x1000>;