2019-07-05 17:45:19 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
|
|
|
/dts-v1/;
|
|
|
|
|
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
|
|
#include <dt-bindings/input/input.h>
|
|
|
|
|
2020-04-17 00:05:23 +00:00
|
|
|
#include "qca955x.dtsi"
|
2019-07-05 17:45:19 +00:00
|
|
|
|
|
|
|
/ {
|
|
|
|
compatible = "trendnet,tew-823dru", "qca,qca9558";
|
|
|
|
model = "TRENDNET TEW-823DRU";
|
|
|
|
|
|
|
|
aliases {
|
2019-11-05 18:23:33 +00:00
|
|
|
led-boot = &led_power_green;
|
|
|
|
led-failsafe = &led_power_green;
|
|
|
|
led-running = &led_power_green;
|
|
|
|
led-upgrade = &led_power_green;
|
2019-07-05 17:45:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
leds {
|
|
|
|
compatible = "gpio-leds";
|
|
|
|
|
|
|
|
power_orange {
|
|
|
|
label = "trendnet:orange:power";
|
|
|
|
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
|
2019-11-05 18:23:33 +00:00
|
|
|
led_power_green: power_green {
|
2019-07-05 17:45:19 +00:00
|
|
|
label = "trendnet:green:power";
|
|
|
|
gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
|
|
|
|
planet_green {
|
|
|
|
label = "trendnet:green:planet";
|
|
|
|
gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
|
|
|
|
planet_orange {
|
|
|
|
label = "trendnet:orange:planet";
|
|
|
|
gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
keys {
|
|
|
|
compatible = "gpio-keys";
|
|
|
|
|
|
|
|
reset {
|
|
|
|
label = "Reset button";
|
|
|
|
linux,code = <KEY_RESTART>;
|
|
|
|
gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
|
|
|
|
debounce-interval = <60>;
|
|
|
|
};
|
|
|
|
|
|
|
|
wps {
|
|
|
|
label = "WPS button";
|
|
|
|
linux,code = <KEY_WPS_BUTTON>;
|
|
|
|
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
|
|
|
|
debounce-interval = <60>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&pcie0 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&pcie1 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&uart {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&usb_phy0 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&usb0 {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
hub_port0: port@1 {
|
|
|
|
reg = <1>;
|
|
|
|
#trigger-source-cells = <0>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&usb_phy1 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&usb1 {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
hub_port1: port@1 {
|
|
|
|
reg = <1>;
|
|
|
|
#trigger-source-cells = <0>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&spi {
|
|
|
|
status = "okay";
|
2019-11-05 18:23:33 +00:00
|
|
|
|
2019-07-05 17:45:19 +00:00
|
|
|
num-cs = <1>;
|
|
|
|
|
|
|
|
flash@0 {
|
|
|
|
compatible = "jedec,spi-nor";
|
|
|
|
reg = <0>;
|
|
|
|
spi-max-frequency = <25000000>;
|
|
|
|
|
|
|
|
partitions {
|
|
|
|
compatible = "fixed-partitions";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
|
2019-11-05 18:23:33 +00:00
|
|
|
partition@0 {
|
2019-07-05 17:45:19 +00:00
|
|
|
label = "u-boot";
|
|
|
|
reg = <0x000000 0x030000>;
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
|
|
|
partition@30000 {
|
|
|
|
label = "nvram";
|
|
|
|
reg = <0x030000 0x010000>;
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
|
|
|
partition@40000 {
|
|
|
|
compatible = "denx,uimage";
|
|
|
|
label = "firmware";
|
|
|
|
reg = <0x040000 0xef0000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
partition@f30000 {
|
|
|
|
label = "lang";
|
|
|
|
reg = <0xf30000 0x030000>;
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
|
|
|
partition@f60000 {
|
|
|
|
label = "my-dlink";
|
|
|
|
reg = <0xf60000 0x080000>;
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
2019-11-05 18:23:33 +00:00
|
|
|
partition@fe0000 {
|
2019-07-05 17:45:19 +00:00
|
|
|
label = "mac";
|
|
|
|
reg = <0xfe0000 0x010000>;
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
|
|
|
art: partition@ff0000 {
|
|
|
|
label = "art";
|
|
|
|
reg = <0xff0000 0x010000>;
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&mdio0 {
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
phy0: ethernet-phy@0 {
|
|
|
|
reg = <0>;
|
|
|
|
qca,ar8327-initvals = <
|
|
|
|
0x04 0x00080080 /* PORT0 PAD MODE CTRL */
|
|
|
|
0x0c 0x07600000 /* PORT6 PAD MODE CTRL */
|
|
|
|
0x10 0x81000080 /* POWER_ON_STRIP */
|
|
|
|
0x7c 0x0000007e /* PORT0_STATUS */
|
|
|
|
0x94 0x0000007e /* PORT6 STATUS */
|
|
|
|
>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
ð0 {
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
phy-handle = <&phy0>;
|
|
|
|
pll-data = <0x56000000 0x00000101 0x00001616>;
|
|
|
|
|
|
|
|
gmac-config {
|
|
|
|
device = <&gmac>;
|
|
|
|
rgmii-enabled = <1>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
ð1 {
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
pll-data = <0x03000101 0x00000101 0x00001616>;
|
|
|
|
|
|
|
|
fixed-link {
|
|
|
|
speed = <1000>;
|
|
|
|
full-duplex;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&wmac {
|
|
|
|
status = "okay";
|
2019-11-05 18:23:33 +00:00
|
|
|
|
2019-07-05 17:45:19 +00:00
|
|
|
mtd-cal-data = <&art 0x1000>;
|
|
|
|
};
|