2018-04-19 07:20:58 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
|
|
|
|
|
|
|
#include "mt7620a.dtsi"
|
|
|
|
|
|
|
|
#include <dt-bindings/input/input.h>
|
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
|
|
|
|
|
|
/ {
|
|
|
|
compatible = "dlink,dwr-960", "ralink,mt7620a-soc";
|
|
|
|
model = "D-Link DWR-960";
|
|
|
|
|
|
|
|
aliases {
|
|
|
|
led-boot = &led_status;
|
|
|
|
led-failsafe = &led_status;
|
|
|
|
led-running = &led_status;
|
|
|
|
led-upgrade = &led_status;
|
|
|
|
};
|
|
|
|
|
|
|
|
keys {
|
|
|
|
compatible = "gpio-keys";
|
|
|
|
|
|
|
|
reset {
|
|
|
|
label = "reset";
|
|
|
|
gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
|
|
|
|
linux,code = <KEY_RESTART>;
|
|
|
|
};
|
|
|
|
|
|
|
|
wps {
|
|
|
|
label = "wps";
|
|
|
|
gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
|
|
|
|
linux,code = <KEY_WPS_BUTTON>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
leds {
|
|
|
|
compatible = "gpio-leds";
|
|
|
|
|
|
|
|
led_status: status {
|
2020-09-27 17:40:51 +00:00
|
|
|
label = "green:status";
|
2018-04-19 07:20:58 +00:00
|
|
|
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
|
|
|
|
wan {
|
2020-09-27 17:40:51 +00:00
|
|
|
label = "green:wan";
|
2018-04-19 07:20:58 +00:00
|
|
|
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
|
|
|
|
lan {
|
2020-09-27 17:40:51 +00:00
|
|
|
label = "green:lan";
|
2018-04-19 07:20:58 +00:00
|
|
|
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
|
|
|
|
sms {
|
2020-09-27 17:40:51 +00:00
|
|
|
label = "green:sms";
|
2018-04-19 07:20:58 +00:00
|
|
|
gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
|
|
|
|
signal_green {
|
2020-09-27 17:40:51 +00:00
|
|
|
label = "green:signal";
|
2018-04-19 07:20:58 +00:00
|
|
|
gpios = <&gpio2 0 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
|
|
|
|
signal_red {
|
2020-09-27 17:40:51 +00:00
|
|
|
label = "red:signal";
|
2018-04-19 07:20:58 +00:00
|
|
|
gpios = <&gpio2 1 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
|
|
|
|
4g {
|
2020-09-27 17:40:51 +00:00
|
|
|
label = "green:4g";
|
2018-04-19 07:20:58 +00:00
|
|
|
gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
|
|
|
|
3g {
|
2020-09-27 17:40:51 +00:00
|
|
|
label = "green:3g";
|
2018-04-19 07:20:58 +00:00
|
|
|
gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
|
|
|
|
wlan5g {
|
2020-09-27 17:40:51 +00:00
|
|
|
label = "green:wlan5g";
|
2018-04-19 07:20:58 +00:00
|
|
|
gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
|
|
|
|
linux,default-trigger = "phy0tpt";
|
|
|
|
};
|
|
|
|
|
|
|
|
wlan2g {
|
2020-09-27 17:40:51 +00:00
|
|
|
label = "green:wlan2g";
|
2018-04-19 07:20:58 +00:00
|
|
|
gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
|
|
|
|
linux,default-trigger = "phy1tpt";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
ðernet {
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&rgmii2_pins &mdio_pins>;
|
2020-05-14 13:41:31 +00:00
|
|
|
|
2018-04-19 07:20:58 +00:00
|
|
|
mediatek,portmap = "wllll";
|
|
|
|
|
|
|
|
port@5 {
|
|
|
|
status = "okay";
|
|
|
|
phy-mode = "rgmii-txid";
|
|
|
|
phy-handle = <&phy7>;
|
|
|
|
};
|
|
|
|
|
|
|
|
mdio-bus {
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
phy7: ethernet-phy@7 {
|
|
|
|
reg = <7>;
|
|
|
|
phy-mode = "rgmii-id";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&gpio1 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&gpio2 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&gpio3 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&spi0 {
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
flash@0 {
|
|
|
|
compatible = "jedec,spi-nor";
|
|
|
|
reg = <0>;
|
|
|
|
spi-max-frequency = <50000000>;
|
|
|
|
|
|
|
|
partitions {
|
|
|
|
compatible = "fixed-partitions";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
|
|
|
|
partition@0 {
|
|
|
|
label = "jboot";
|
|
|
|
reg = <0x0 0x10000>;
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
|
|
|
partition@10000 {
|
|
|
|
compatible = "amit,jimage";
|
|
|
|
label = "firmware";
|
|
|
|
reg = <0x10000 0xfe0000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
config: partition@ff0000 {
|
|
|
|
label = "config";
|
|
|
|
reg = <0xff0000 0x10000>;
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&ehci {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&ohci {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&pcie {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&pcie0 {
|
|
|
|
wifi@0,0 {
|
|
|
|
compatible = "mediatek,mt76";
|
|
|
|
reg = <0x0000 0 0 0 0>;
|
|
|
|
ieee80211-freq-limit = <5000000 6000000>;
|
|
|
|
mediatek,mtd-eeprom = <&config 0xe08e>;
|
|
|
|
mtd-mac-address = <&config 0xe50e>;
|
|
|
|
mtd-mac-address-increment = <2>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&state_default {
|
|
|
|
default {
|
2020-04-12 12:58:29 +00:00
|
|
|
groups = "i2c", "wled", "spi refclk", "uartf", "ephy";
|
|
|
|
function = "gpio";
|
2018-04-19 07:20:58 +00:00
|
|
|
};
|
|
|
|
};
|