openwrt/target/linux/ramips/dts/mt7620n_netgear_jwnr2010-v5.dts
Adrian Schmutzler 621297e867 ramips: move dts-v1 statement to top-level DTSI files
The "/dts-v1/;" identifier is supposed to be present once at the
top of a device tree file after the includes have been processed.

In ramips, we therefore requested to have in the DTS files so far,
and omit it in the DTSI files. However, essentially the syntax of
the parent mtxxxx/rtxxxx DTSI files already determines the DTS
version, so putting it into the DTS files is just a useless repetition.

Consequently, this patch puts the dts-v1 statement into the top-level
SoC-based DTSI files, and removes all other occurences.
Since the dts-v1 statement needs to be before any other definitions,
this also moves the includes accordingly where necessary.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-09-25 23:26:40 +02:00

57 lines
1.1 KiB
Plaintext

// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
#include "mt7620n_netgear_n300.dtsi"
/ {
compatible = "netgear,jwnr2010-v5", "ralink,mt7620n-soc";
model = "Netgear JWNR2010 v5";
aliases {
led-boot = &led_power;
led-failsafe = &led_power;
led-running = &led_power;
led-upgrade = &led_power;
label-mac-device = &ethernet;
};
leds {
compatible = "gpio-leds";
led_power: power {
label = "jwnr2010-v5:green:power";
gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
};
wan {
label = "jwnr2010-v5:green:wan";
gpios = <&gpio0 19 GPIO_ACTIVE_HIGH>;
};
wlan {
label = "jwnr2010-v5:green:wlan";
gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0radio";
};
lan1 {
label = "jwnr2010-v5:green:lan1";
gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
};
lan2 {
label = "jwnr2010-v5:green:lan2";
gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
};
lan3 {
label = "jwnr2010-v5:green:lan3";
gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
};
lan4 {
label = "jwnr2010-v5:green:lan4";
gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
};
};
};