lede/target/linux/ath79/dts/qca9558_arris_sbr-ac1750.dts
2022-04-03 13:34:55 +08:00

230 lines
3.5 KiB
Plaintext

// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
/dts-v1/;
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include "qca955x.dtsi"
/ {
model = "Arris SBR-AC1750";
compatible = "arris,sbr-ac1750", "qca,qca9557";
chosen {
bootargs = "console=ttyS0,115200";
};
aliases {
led-boot = &led_wps;
led-failsafe = &led_wps;
led-upgrade = &led_wps;
label-mac-device = &eth0;
};
leds {
compatible = "gpio-leds";
wlan2g {
label = "arris:green:wlan2g";
gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy1tpt";
};
wlan5g {
label = "arris:green:wlan5g";
gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};
usb {
label = "arris:green:usb";
gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
trigger-sources = <&hub_port0>, <&hub_port1>;
linux,default-trigger = "usbport";
};
led_wps: wps {
label = "arris:green:wps";
gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
};
};
keys {
compatible = "gpio-keys";
reset {
linux,code = <KEY_RESTART>;
gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
};
wps {
linux,code = <KEY_WPS_BUTTON>;
gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
};
};
watchdog {
compatible = "linux,wdt-gpio";
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
hw_algo = "toggle";
hw_margin_ms = <1600>;
always-running;
};
};
&pcie0 {
status = "okay";
};
&uart {
status = "okay";
};
&gpio {
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>;
};
};
&nand {
status = "okay";
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "u-boot";
reg = <0x000000 0x100000>;
read-only;
};
partition@100000 {
label = "boot-flag";
reg = <0x100000 0x100000>;
};
partition@200000 {
label = "kernel";
reg = <0x200000 0x400000>;
};
partition@600000 {
label = "ubi";
reg = <0x600000 0x6400000>;
};
ft: partition@6a00000 {
label = "ft";
reg = <0x6a00000 0x100000>;
read-only;
};
partition@6b00000 {
label = "PKI";
reg = <0x6b00000 0x200000>;
read-only;
};
caldata: partition@6d00000 {
label = "caldata";
reg = <0x6d00000 0x100000>;
read-only;
};
};
};
&mdio0 {
status = "okay";
phy0: ethernet-phy@0 {
reg = <0>;
qca,ar8327-initvals = <
0x04 0x87600000 /* PORT0 PAD MODE CTRL */
0x0c 0x00080080 /* PORT6 PAD MODE CTRL */
0x7c 0x0000007e /* PORT0 STATUS */
0x94 0x0000007e /* PORT6 STATUS */
>;
};
};
&eth0 {
status = "okay";
mtd-mac-address = <&ft 0x0>;
nvmem-cells = <&macaddr_ft_0>;
nvmem-cell-names = "mac-address";
pll-data = <0x56000000 0x00000101 0x00001616>;
phy-handle = <&phy0>;
};
&eth1 {
status = "okay";
mtd-mac-address = <&ft 0x6>;
nvmem-cells = <&macaddr_ft_6>;
nvmem-cell-names = "mac-address";
pll-data = <0x03000101 0x00000101 0x00001616>;
fixed-link {
speed = <1000>;
full-duplex;
};
};
&wmac {
status = "okay";
mtd-cal-data = <&caldata 0x1000>;
mtd-mac-address = <&ft 0xc>;
nvmem-cells = <&macaddr_ft_c>;
nvmem-cell-names = "mac-address";
};
&ft {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_ft_0: macaddr@0 {
reg = <0x0 0x6>;
};
macaddr_ft_6: macaddr@6 {
reg = <0x6 0x6>;
};
macaddr_ft_c: macaddr@c {
reg = <0xc 0x6>;
};
};