tn3399_openwrt/target/linux
Adrian Schmutzler 6f96a4d043 ath79: remove model name from LED labels
Currently, we request LED labels in OpenWrt to follow the scheme

  modelname:color:function

However, specifying the modelname at the beginning is actually
entirely useless for the devices we support in OpenWrt. On the
contrary, having this part actually introduces inconvenience in
several aspects:

  - We need to ensure/check consistency with the DTS compatible
  - We have various exceptions where not the model name is used,
    but the vendor name (like tp-link), which is hard to track
    and justify even for core-developers
  - Having model-based components will not allow to share
    identical LED definitions in DTSI files
  - The inconsistency in what's used for the model part complicates
    several scripts, e.g. board.d/01_leds or LED migrations from
    ar71xx where this was even more messy

Apart from our needs, upstream has deprecated the label property
entirely and introduced new properties to specify color and
function properties separately. However, the implementation does
not appear to be ready and probably won't become ready and/or
match our requirements in the foreseeable future.

However, the limitation of generic LEDs to color and function
properties follows the same idea pointed out above. Generic LEDs
will get names like "green:status" or "red:indicator" then, and
if a "devicename" is prepended, it will be the one of an internal
device, like "phy1:amber:status".

With this patch, we move into the same direction, and just drop
the boardname from the LED labels. This allows to consolidate
a few definitions in DTSI files (will be much more on ramips),
and to drop a few migrations compared to ar71xx that just changed
the boardname. But mainly, it will liberate us from a completely
useless subject to take care of for device support review and
maintenance.
To also drop the boardname from existing configurations, a simple
migration routine is added unconditionally.

Although this seems unfamiliar at first look, a quick check in kernel
for the arm/arm64 dts files revealed that while 1033 lines have
labels with three parts *:*:*, still 284 actually use a two-part
labelling *:*, and thus is also acceptable and not even rare there.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-10-02 13:51:39 +02:00
..
apm821xx treewide: remove empty default cases 2020-09-17 12:46:19 +02:00
arc770 arc770: drop support for kernel 4.14 2020-09-02 16:29:22 +02:00
archs38 treewide: use wpad-basic-wolfssl as default 2020-08-20 14:19:39 +02:00
armvirt kernel: set WATCHDOG_CORE dependency in kmod-hwmon-sch5627 2020-08-24 14:09:11 +02:00
at91 at91: explicitly set CONFIG_USB_SUPPORT for sam9x subtarget 2020-08-27 16:36:18 +02:00
ath25 ath25: fix preinit Ethernet port configuration 2020-09-10 18:52:15 +02:00
ath79 ath79: remove model name from LED labels 2020-10-02 13:51:39 +02:00
bcm27xx kernel: bump 5.4 to 5.4.67 2020-09-24 18:53:23 +02:00
bcm47xx kernel: bump 5.4 to 5.4.64 2020-09-12 01:28:50 +02:00
bcm53xx bcm53xx: add Cisco Meraki MR32 2020-09-25 19:32:34 +02:00
bcm63xx kernel: bump 5.4 to 5.4.67 2020-09-24 18:53:23 +02:00
gemini gemini: Bring up DSA switches 2020-09-25 19:32:34 +02:00
generic kernel: bump 5.4 to 5.4.68 2020-09-28 16:23:11 +02:00
imx6 kernel: unify CONFIG_GPIO_SYSFS in kernel configs 2020-08-06 12:37:04 +02:00
ipq40xx ipq40xx: tidy up device recipe for Edgecore OAP100 2020-09-26 18:26:19 +02:00
ipq806x ipq806x: fix support of Edgecore ECW5410 support 2020-09-19 13:32:11 +02:00
ipq807x kernel: unify CONFIG_GPIO_SYSFS in kernel configs 2020-08-06 12:37:04 +02:00
kirkwood target: update SPDX license names 2020-09-22 20:58:26 +02:00
lantiq lantiq: move dts-v1 statement to top-level DTSI files 2020-10-01 18:08:17 +02:00
layerscape kernel: bump 5.4 to 5.4.67 2020-09-24 18:53:23 +02:00
malta kernel: set WATCHDOG_CORE dependency in kmod-hwmon-sch5627 2020-08-24 14:09:11 +02:00
mediatek kernel: bump 5.4 to 5.4.67 2020-09-24 18:53:23 +02:00
mpc85xx target: update SPDX license names 2020-09-22 20:58:26 +02:00
mvebu target: update SPDX license names 2020-09-22 20:58:26 +02:00
mxs treewide: make dependency on kmod-usb-net selective 2020-08-10 12:54:30 +02:00
octeon octeon: add support for Itus Shield Router 2020-08-16 02:15:06 +02:00
octeontx kernel: bump 5.4 to 5.4.60 2020-08-24 17:33:58 +02:00
omap treewide: use wpad-basic-wolfssl as default 2020-08-20 14:19:39 +02:00
oxnas target: update SPDX license names 2020-09-22 20:58:26 +02:00
pistachio pistachio: drop support for kernel 4.14 2020-09-02 16:29:22 +02:00
ramips ramips: merge ethernet setup for RT-AC51U/RT-AC54U 2020-09-28 00:20:24 +02:00
rockchip rockchip: rk3328: add compatible to NanoPi R2S ethernet PHY 2020-09-30 00:06:59 +02:00
rtl838x target: update SPDX license names 2020-09-22 20:58:26 +02:00
sunxi treewide: use wpad-basic-wolfssl as default 2020-08-20 14:19:39 +02:00
tegra treewide: use wpad-basic-wolfssl as default 2020-08-20 14:19:39 +02:00
uml uml: update to linux 5.4 2020-08-22 07:02:01 +02:00
x86 kernel: bump 5.4 to 5.4.63 2020-09-06 19:55:19 +02:00
zynq kernel: unify CONFIG_GPIO_SYSFS in kernel configs 2020-08-06 12:37:04 +02:00
Makefile build: add 'make kernel_xconfig' command 2020-07-08 16:07:05 +02:00