196 lines
3.2 KiB
Plaintext
196 lines
3.2 KiB
Plaintext
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
|
|
|
/dts-v1/;
|
|
|
|
#include "ipq8074.dtsi"
|
|
#include "ipq8074-hk-cpu.dtsi"
|
|
#include "ipq8074-ess.dtsi"
|
|
#include <dt-bindings/input/input.h>
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
|
|
/ {
|
|
model = "Netgear WAX620";
|
|
compatible = "netgear,wax620", "qcom,ipq8074";
|
|
|
|
aliases {
|
|
serial0 = &blsp1_uart5;
|
|
ethernet0 = &dp6;
|
|
led-boot = &led_system_blue;
|
|
led-failsafe = &led_system_red;
|
|
led-running = &led_system_green;
|
|
led-upgrade = &led_system_blue;
|
|
};
|
|
|
|
chosen {
|
|
stdout-path = "serial0:115200n8";
|
|
/*
|
|
* Netgear's U-Boot adds "ubi.mtd=rootfs root=mtd:ubi_rootfs"
|
|
* That fails to create a UBI block device, so add it here.
|
|
*/
|
|
bootargs-append = " root=/dev/ubiblock0_1";
|
|
};
|
|
|
|
keys {
|
|
compatible = "gpio-keys";
|
|
|
|
reset {
|
|
label = "reset";
|
|
gpios = <&tlmm 52 GPIO_ACTIVE_LOW>;
|
|
linux,code = <KEY_RESTART>;
|
|
};
|
|
};
|
|
|
|
led_spi {
|
|
compatible = "spi-gpio";
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
sck-gpios = <&tlmm 18 GPIO_ACTIVE_HIGH>;
|
|
mosi-gpios = <&tlmm 19 GPIO_ACTIVE_HIGH>;
|
|
|
|
led_gpio: led_gpio@0 {
|
|
compatible = "fairchild,74hc595";
|
|
reg = <0>;
|
|
gpio-controller;
|
|
#gpio-cells = <2>;
|
|
registers-number = <1>;
|
|
enable-gpios = <&tlmm 20 GPIO_ACTIVE_HIGH>;
|
|
spi-max-frequency = <1000000>;
|
|
};
|
|
};
|
|
|
|
leds {
|
|
compatible = "gpio-leds";
|
|
|
|
led_system_red: system-red {
|
|
label = "system:red";
|
|
gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
|
|
led_system_green: system-green {
|
|
label = "system:green";
|
|
gpios = <&tlmm 55 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
|
|
led_system_blue: system-blue {
|
|
label = "system:blue";
|
|
gpios = <&tlmm 56 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
|
|
led_lan_g {
|
|
label = "lan:green";
|
|
gpios = <&led_gpio 0 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
|
|
led_lan_o {
|
|
label = "lan:orange";
|
|
gpios = <&led_gpio 1 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
|
|
led_2g_b {
|
|
label = "wlan2g:blue";
|
|
gpios = <&led_gpio 2 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
|
|
led_2g_g {
|
|
label = "wlan2g:green";
|
|
gpios = <&led_gpio 3 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
|
|
led_5g_b {
|
|
label = "wlan5g:blue";
|
|
gpios = <&led_gpio 4 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
|
|
led_5g_g {
|
|
label = "wlan5g:green";
|
|
gpios = <&led_gpio 5 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&edma {
|
|
status = "okay";
|
|
};
|
|
|
|
&switch {
|
|
status = "okay";
|
|
|
|
switch_lan_bmp = <ESS_PORT6>;
|
|
switch_mac_mode = <MAC_MODE_PSGMII>;
|
|
switch_mac_mode2 = <MAC_MODE_SGMII_CHANNEL0>;
|
|
|
|
qcom,port_phyinfo {
|
|
port@6 {
|
|
port_id = <6>;
|
|
phy_address = <28>;
|
|
port_mac_sel = "QGMAC_PORT";
|
|
};
|
|
};
|
|
};
|
|
|
|
&tlmm {
|
|
mdio_pins: mdio-pins {
|
|
mdc {
|
|
pins = "gpio68";
|
|
function = "mdc";
|
|
drive-strength = <8>;
|
|
bias-pull-up;
|
|
};
|
|
|
|
mdio {
|
|
pins = "gpio69";
|
|
function = "mdio";
|
|
drive-strength = <8>;
|
|
bias-pull-up;
|
|
};
|
|
};
|
|
};
|
|
|
|
&mdio {
|
|
status = "okay";
|
|
|
|
pinctrl-0 = <&mdio_pins>;
|
|
pinctrl-names = "default";
|
|
reset-gpios = <&tlmm 44 GPIO_ACTIVE_LOW>;
|
|
|
|
qca8081_28: ethernet-phy@28 {
|
|
reg = <28>;
|
|
};
|
|
};
|
|
|
|
&dp6 {
|
|
status = "okay";
|
|
phy-handle = <&qca8081_28>;
|
|
label = "lan";
|
|
};
|
|
|
|
&qpic_bam {
|
|
status = "okay";
|
|
};
|
|
|
|
&qpic_nand {
|
|
status = "okay";
|
|
|
|
nand@0 {
|
|
reg = <0>;
|
|
nand-ecc-strength = <4>;
|
|
nand-ecc-step-size = <512>;
|
|
nand-bus-width = <8>;
|
|
|
|
partitions {
|
|
compatible = "qcom,smem-part";
|
|
};
|
|
};
|
|
};
|
|
|
|
&blsp1_uart5 {
|
|
status = "okay";
|
|
};
|
|
|
|
&wifi {
|
|
status = "okay";
|
|
|
|
qcom,ath11k-calibration-variant = "Netgear-WAX620";
|
|
};
|