From 55aac8463f182567c4a716f878206b30e4681d0a Mon Sep 17 00:00:00 2001 From: Adrian Schmutzler Date: Sat, 10 Oct 2020 19:44:02 +0200 Subject: bcm63xx: remove model name from LED labels Like in the previous patches for various targets, this will remove the "devicename" from LED labels in bcm63xx, as it's useless and only creates complexity. The devicename is removed in DTS files and 01_leds, merging several cases on the way. A migration script is added for existing configurations. Note that a few labels were using "model::function" scheme without color specified, those were converting to just "function" and the necessary migrations were added to the migration script. Signed-off-by: Adrian Schmutzler --- .../dts/bcm6358-huawei-echolife-hg556a-c.dts | 24 +++++++++++----------- 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'target/linux/bcm63xx/dts/bcm6358-huawei-echolife-hg556a-c.dts') diff --git a/target/linux/bcm63xx/dts/bcm6358-huawei-echolife-hg556a-c.dts b/target/linux/bcm63xx/dts/bcm6358-huawei-echolife-hg556a-c.dts index 7fcd50269f..fe2e5efff4 100644 --- a/target/linux/bcm63xx/dts/bcm6358-huawei-echolife-hg556a-c.dts +++ b/target/linux/bcm63xx/dts/bcm6358-huawei-echolife-hg556a-c.dts @@ -59,52 +59,52 @@ compatible = "gpio-leds"; lan1_green { - label = "HW556:green:lan1"; + label = "green:lan1"; gpios = <&pinctrl 0 1>; }; lan2_green { - label = "HW556:green:lan2"; + label = "green:lan2"; gpios = <&pinctrl 1 1>; }; dsl_red { - label = "HW556:red:dsl"; + label = "red:dsl"; gpios = <&pinctrl 2 1>; }; led_power_red: power_red { - label = "HW556:red:power"; + label = "red:power"; gpios = <&pinctrl 3 1>; default-state = "on"; }; message_red { - label = "HW556:red:message"; + label = "red:message"; gpios = <&pinctrl 12 1>; }; lan1_red { - label = "HW556:red:lan1"; + label = "red:lan1"; gpios = <&pinctrl 13 1>; }; hspa_red { - label = "HW556:red:hspa"; + label = "red:hspa"; gpios = <&pinctrl 15 1>; }; lan2_red { - label = "HW556:red:lan2"; + label = "red:lan2"; gpios = <&pinctrl 22 1>; }; lan3_green { - label = "HW556:green:lan3"; + label = "green:lan3"; gpios = <&pinctrl 23 1>; }; lan3_red { - label = "HW556:red:lan3"; + label = "red:lan3"; gpios = <&pinctrl 26 1>; }; lan4_green { - label = "HW556:green:lan4"; + label = "green:lan4"; gpios = <&pinctrl 27 1>; }; lan4_red { - label = "HW556:red:lan4"; + label = "red:lan4"; gpios = <&pinctrl 28 1>; }; }; -- cgit v1.2.3