mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-01 16:58:22 +00:00
ath79: dts: Unify naming of gpio-led nodes
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 up, removed entries where it could clash due to ath9k-leds] Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
This commit is contained in:
parent
a012b3dfa8
commit
89afabf9f8
@ -25,7 +25,7 @@
|
|||||||
clock-frequency = <40000000>;
|
clock-frequency = <40000000>;
|
||||||
};
|
};
|
||||||
|
|
||||||
gpio-leds {
|
leds {
|
||||||
compatible = "gpio-leds";
|
compatible = "gpio-leds";
|
||||||
|
|
||||||
rf: rf_green {
|
rf: rf_green {
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
gpio-leds {
|
leds {
|
||||||
compatible = "gpio-leds";
|
compatible = "gpio-leds";
|
||||||
power: power {
|
power: power {
|
||||||
label = "netgear:green:power";
|
label = "netgear:green:power";
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
gpio-leds {
|
leds {
|
||||||
compatible = "gpio-leds";
|
compatible = "gpio-leds";
|
||||||
|
|
||||||
led_system: system {
|
led_system: system {
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
gpio-leds {
|
leds {
|
||||||
compatible = "gpio-leds";
|
compatible = "gpio-leds";
|
||||||
|
|
||||||
system: system {
|
system: system {
|
||||||
|
@ -37,7 +37,7 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
gpio-leds {
|
leds {
|
||||||
compatible = "gpio-leds";
|
compatible = "gpio-leds";
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
pinctrl-0 = <&switch_led_pins>;
|
pinctrl-0 = <&switch_led_pins>;
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
compatible = "ubnt,nanostation-ac","ubnt,wa", "qca,ar9342";
|
compatible = "ubnt,nanostation-ac","ubnt,wa", "qca,ar9342";
|
||||||
model = "Ubiquiti Nanostation AC (WA)";
|
model = "Ubiquiti Nanostation AC (WA)";
|
||||||
|
|
||||||
gpio-leds {
|
leds {
|
||||||
compatible = "gpio-leds";
|
compatible = "gpio-leds";
|
||||||
|
|
||||||
rssi0 {
|
rssi0 {
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
led-failsafe = &system;
|
led-failsafe = &system;
|
||||||
};
|
};
|
||||||
|
|
||||||
gpio-leds {
|
leds {
|
||||||
compatible = "gpio-leds";
|
compatible = "gpio-leds";
|
||||||
|
|
||||||
link1 {
|
link1 {
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
bootargs = "console=ttyS0,115200n8";
|
bootargs = "console=ttyS0,115200n8";
|
||||||
};
|
};
|
||||||
|
|
||||||
gpio-leds {
|
leds {
|
||||||
compatible = "gpio-leds";
|
compatible = "gpio-leds";
|
||||||
|
|
||||||
power: power {
|
power: power {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user