2019-09-26 15:21:25 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
|
|
|
|
|
|
|
#include "mt7620a_iptime.dtsi"
|
|
|
|
|
|
|
|
/ {
|
|
|
|
compatible = "iptime,a1004ns", "ralink,mt7620a-soc";
|
|
|
|
model = "ipTIME A1004ns";
|
|
|
|
|
|
|
|
aliases {
|
|
|
|
led-boot = &led_cpu;
|
|
|
|
led-failsafe = &led_cpu;
|
|
|
|
led-running = &led_cpu;
|
|
|
|
led-upgrade = &led_cpu;
|
|
|
|
};
|
|
|
|
|
|
|
|
leds {
|
|
|
|
compatible = "gpio-leds";
|
|
|
|
|
|
|
|
led_cpu: cpu {
|
2020-09-27 17:40:51 +00:00
|
|
|
label = "blue:cpu";
|
2019-09-26 15:21:25 +00:00
|
|
|
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
|
|
|
|
usb {
|
2020-09-27 17:40:51 +00:00
|
|
|
label = "blue:usb";
|
2019-09-26 15:21:25 +00:00
|
|
|
gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
|
|
|
|
trigger-sources = <&ohci_port1>, <&ehci_port1>;
|
|
|
|
linux,default-trigger = "usbport";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
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>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&firmware {
|
|
|
|
reg = <0x30000 0xfd0000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&state_default {
|
|
|
|
gpio {
|
2020-04-18 13:47:34 +00:00
|
|
|
groups = "i2c", "uartf", "spi refclk";
|
|
|
|
function = "gpio";
|
2019-09-26 15:21:25 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
ðernet {
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&rgmii1_pins &mdio_pins>;
|
|
|
|
|
|
|
|
port@5 {
|
|
|
|
status = "okay";
|
|
|
|
mediatek,fixed-link = <1000 1 1 1>;
|
|
|
|
phy-mode = "rgmii";
|
|
|
|
};
|
|
|
|
|
|
|
|
mdio-bus {
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
ethernet-phy@0 {
|
|
|
|
reg = <0>;
|
|
|
|
phy-mode = "rgmii";
|
|
|
|
};
|
|
|
|
|
|
|
|
ethernet-phy@1 {
|
|
|
|
reg = <1>;
|
|
|
|
phy-mode = "rgmii";
|
|
|
|
};
|
|
|
|
|
|
|
|
ethernet-phy@2 {
|
|
|
|
reg = <2>;
|
|
|
|
phy-mode = "rgmii";
|
|
|
|
};
|
|
|
|
|
|
|
|
ethernet-phy@3 {
|
|
|
|
reg = <3>;
|
|
|
|
phy-mode = "rgmii";
|
|
|
|
};
|
|
|
|
|
|
|
|
ethernet-phy@4 {
|
|
|
|
reg = <4>;
|
|
|
|
phy-mode = "rgmii";
|
|
|
|
};
|
|
|
|
|
|
|
|
ethernet-phy@1f {
|
|
|
|
reg = <0x1f>;
|
|
|
|
phy-mode = "rgmii";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2021-04-03 18:42:51 +00:00
|
|
|
|
|
|
|
&gsw {
|
|
|
|
mediatek,ephy-base = /bits/ 8 <12>;
|
|
|
|
};
|