mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-30 10:39:04 +00:00
c846dd91f0
Like in the previous patch for ath79 target, this will remove the "devicename" from LED labels in ramips as well. The devicename is removed in DTS files and 01_leds, consolidation of definitions into DTSI files is done where (easily) possible, and migration scripts are updated. For the latter, all existing definitions were actually just devicename migrations anyway. Therefore, those are removed and a common migration file is created in target base-files. This is actually another example of how the devicename removal makes things easier. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
38 lines
653 B
Plaintext
38 lines
653 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 = "blue:pwr";
|
|
gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
|
|
default-state = "on";
|
|
};
|
|
|
|
led_usr: usr {
|
|
label = "green:usr";
|
|
gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&state_default {
|
|
gpio {
|
|
groups = "uart2", "jtag", "wdt";
|
|
function = "gpio";
|
|
};
|
|
};
|