openwrt/target/linux/ramips/dts/mt7621_xiaomi_mi-router-ac2100.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

41 lines
875 B
Plaintext

// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
#include "mt7621_xiaomi_router-ac2100.dtsi"
/ {
compatible = "xiaomi,mi-router-ac2100", "mediatek,mt7621-soc";
model = "Xiaomi Mi Router AC2100";
aliases {
led-boot = &led_status_yellow;
led-failsafe = &led_status_yellow;
led-running = &led_status_blue;
led-upgrade = &led_status_blue;
label-mac-device = &gmac0;
};
leds {
compatible = "gpio-leds";
wan_yellow {
label = "mi-router-ac2100:yellow:wan";
gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
};
wan_blue {
label = "mi-router-ac2100:blue:wan";
gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
};
led_status_yellow: status_yellow {
label = "mi-router-ac2100:yellow:status";
gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
};
led_status_blue: status_blue {
label = "mi-router-ac2100:blue:status";
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
};
};
};