[PATCH] ramips: define Yuncore AX820 switch LEDs

Rafał Miłecki zajec5 at gmail.com
Mon Aug 29 07:14:52 PDT 2022


On 17.08.2022 19:36, Thibaut VARÈNE wrote:
> This patch defines the two switch LED to bring them under user control
> and cleans up the existing LED definitions: the labels are unnecessary.

It's true that "If omitted, the label is taken from the node name" but
that isn't really a correct solution.

If you check leds-gpio.yaml you will see that nodes should actually be
named like "led-0", "led-1", "led-2", (...). If you follow that rule AND
drop "label"s that will break things.

So what you actually should do is:
1. Use "led-[0-9]" nodes names
2. Drop "label"
3. Use "function" and "color"



More information about the openwrt-devel mailing list