Skip to content

Commit f3933e4

Browse files
dolcinigregkh
authored andcommitted
arm64: dts: imx8-apalis: Fix LEDs name collision
[ Upstream commit 92ab53b ] Ixora boards have multiple instances of status leds, to avoid a name collision add the function-enumerator property. This fixes the following Linux kernel warnings: leds-gpio leds: Led green:status renamed to green:status_1 due to name collision leds-gpio leds: Led red:status renamed to red:status_1 due to name collision Fixes: c083131 ("arm64: dts: freescale: add apalis imx8 aka quadmax carrier board support") Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com> Reviewed-by: Frank Li <Frank.Li@nxp.com> Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com> Signed-off-by: Frank Li <Frank.Li@nxp.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent ad0f91b commit f3933e4

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

arch/arm64/boot/dts/freescale/imx8-apalis-ixora-v1.1.dtsi

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
color = <LED_COLOR_ID_GREEN>;
2222
default-state = "off";
2323
function = LED_FUNCTION_STATUS;
24+
function-enumerator = <1>;
2425
gpios = <&lsio_gpio5 27 GPIO_ACTIVE_HIGH>;
2526
};
2627

@@ -29,6 +30,7 @@
2930
color = <LED_COLOR_ID_RED>;
3031
default-state = "off";
3132
function = LED_FUNCTION_STATUS;
33+
function-enumerator = <1>;
3234
gpios = <&lsio_gpio5 29 GPIO_ACTIVE_HIGH>;
3335
};
3436

@@ -37,6 +39,7 @@
3739
color = <LED_COLOR_ID_GREEN>;
3840
default-state = "off";
3941
function = LED_FUNCTION_STATUS;
42+
function-enumerator = <2>;
4043
gpios = <&lsio_gpio5 20 GPIO_ACTIVE_HIGH>;
4144
};
4245

@@ -45,6 +48,7 @@
4548
color = <LED_COLOR_ID_RED>;
4649
default-state = "off";
4750
function = LED_FUNCTION_STATUS;
51+
function-enumerator = <2>;
4852
gpios = <&lsio_gpio5 21 GPIO_ACTIVE_HIGH>;
4953
};
5054
};

arch/arm64/boot/dts/freescale/imx8-apalis-ixora-v1.2.dtsi

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
color = <LED_COLOR_ID_GREEN>;
2222
default-state = "off";
2323
function = LED_FUNCTION_STATUS;
24+
function-enumerator = <1>;
2425
gpios = <&lsio_gpio5 27 GPIO_ACTIVE_HIGH>;
2526
};
2627

@@ -29,6 +30,7 @@
2930
color = <LED_COLOR_ID_RED>;
3031
default-state = "off";
3132
function = LED_FUNCTION_STATUS;
33+
function-enumerator = <1>;
3234
gpios = <&lsio_gpio5 29 GPIO_ACTIVE_HIGH>;
3335
};
3436

@@ -37,6 +39,7 @@
3739
color = <LED_COLOR_ID_GREEN>;
3840
default-state = "off";
3941
function = LED_FUNCTION_STATUS;
42+
function-enumerator = <2>;
4043
gpios = <&lsio_gpio5 20 GPIO_ACTIVE_HIGH>;
4144
};
4245

@@ -45,6 +48,7 @@
4548
color = <LED_COLOR_ID_RED>;
4649
default-state = "off";
4750
function = LED_FUNCTION_STATUS;
51+
function-enumerator = <2>;
4852
gpios = <&lsio_gpio5 21 GPIO_ACTIVE_HIGH>;
4953
};
5054
};

0 commit comments

Comments
 (0)