mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-20 14:13:16 +00:00
621297e867
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>
38 lines
691 B
Plaintext
38 lines
691 B
Plaintext
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
|
|
|
#include "mt7621_mikrotik_routerboard-7xx.dtsi"
|
|
|
|
/ {
|
|
compatible = "mikrotik,routerboard-750gr3", "mediatek,mt7621-soc";
|
|
model = "MikroTik RouterBOARD 750Gr3";
|
|
|
|
aliases {
|
|
led-boot = &led_usr;
|
|
led-failsafe = &led_usr;
|
|
led-running = &led_usr;
|
|
led-upgrade = &led_usr;
|
|
};
|
|
|
|
leds {
|
|
compatible = "gpio-leds";
|
|
|
|
pwr {
|
|
label = "routerboard-750gr3:blue:pwr";
|
|
gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
|
|
default-state = "on";
|
|
};
|
|
|
|
led_usr: usr {
|
|
label = "routerboard-750gr3:green:usr";
|
|
gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&state_default {
|
|
gpio {
|
|
groups = "uart2", "jtag", "wdt";
|
|
function = "gpio";
|
|
};
|
|
};
|