difos/target/linux/lantiq/files/arch/mips/boot/dts/VR200.dts
Petr Štetiar a4bdae7cf2 lantiq: dts: use generic node names
In DTS Checklist[1] we're now demanding proper generic node names, as
the name of a node should reflect the function of the device and use
generic name for that[2]. Everybody seems to be copy&pasting from DTS
files available in the repository today, so let's unify that naming
there as well and provide proper examples.

1. https://openwrt.org/submitting-patches#dts_checklist
2. https://github.com/devicetree-org/devicetree-specification/blob/master/source/devicetree-basics.rst#generic-names-recommendation

Signed-off-by: Petr Štetiar <ynezz@true.cz>
[split out treewide patch, integrated P2812HNUF1 rename patch]
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
[merged key and led changes, use generic node name for flash, wifi and
gpio]
Signed-off-by: Mathias Kresin <dev@kresin.me>
2019-07-07 11:17:34 +02:00

92 lines
1.7 KiB
Text

/dts-v1/;
#include "VR200.dtsi"
/ {
compatible = "tplink,vr200", "lantiq,xway", "lantiq,vr9";
model = "TP-LINK Archer VR200";
chosen {
bootargs = "console=ttyLTQ0,115200";
};
aliases {
led-boot = &power;
led-failsafe = &power;
led-running = &power;
led-upgrade = &power;
led-dsl = &dsl;
led-internet = &internet;
led-wifi = &wlan5g;
led-usb = &led_usb;
led-usb2 = &led_usb;
};
keys {
compatible = "gpio-keys-polled";
poll-interval = <100>;
reset {
label = "reset";
gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>;
};
wifi {
label = "wifi";
gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
linux,code = <KEY_RFKILL>;
linux,input-type = <EV_SW>;
};
wps {
label = "wps";
gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
linux,code = <KEY_WPS_BUTTON>;
};
led {
label = "led";
gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
linux,code = <KEY_LIGHTS_TOGGLE>;
};
};
leds {
compatible = "gpio-leds";
power: power {
label = "vr200:blue:power";
gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
default-state = "keep";
};
dsl: dsl {
label = "vr200:blue:dsl";
gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
};
internet: internet {
label = "vr200:blue:internet";
gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
};
led_usb: usb {
label = "vr200:blue:usb";
gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
};
eth {
label = "vr200:blue:lan";
gpios = <&gpio 40 GPIO_ACTIVE_LOW>;
};
wlan {
label = "vr200:blue:wlan";
gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
};
wlan5g: wifi {
label = "vr200:blue:wlan5g";
gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
};
led_wps {
label = "vr200:blue:wps";
gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
};
};
};