[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20221130113124.1558335-1-martin.kepplinger@puri.sm>
Date: Wed, 30 Nov 2022 12:31:24 +0100
From: Martin Kepplinger <martin.kepplinger@...i.sm>
To: robh@...nel.org, krzysztof.kozlowski@...aro.org,
shawnguo@...nel.org, s.hauer@...gutronix.de, kernel@...gutronix.de,
festevam@...il.com
Cc: linux-imx@....com, kernel@...i.sm, devicetree@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org, phone-devel@...r.kernel.org,
linux-kernel@...r.kernel.org,
Martin Kepplinger <martin.kepplinger@...i.sm>
Subject: [PATCH v1] arm64: dts: imx8mq-librem5: use multicolor leds description for RGB led
As Documentation/leds/well-known-leds.txt says, "Phones usually have
multi-color status LED." Fix that for the Librem 5 mobile phone board.
Signed-off-by: Martin Kepplinger <martin.kepplinger@...i.sm>
---
.../boot/dts/freescale/imx8mq-librem5.dtsi | 32 +++++++++----------
1 file changed, 16 insertions(+), 16 deletions(-)
diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi b/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi
index ddf0e330dc7c..6895bcc12165 100644
--- a/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi
@@ -56,27 +56,27 @@ key-vol-up {
};
led-controller {
- compatible = "pwm-leds";
+ compatible = "pwm-leds-multicolor";
- led-0 {
+ multi-led {
+ color = <LED_COLOR_ID_RGB>;
function = LED_FUNCTION_STATUS;
- color = <LED_COLOR_ID_BLUE>;
max-brightness = <248>;
- pwms = <&pwm2 0 50000 0>;
- };
- led-1 {
- function = LED_FUNCTION_STATUS;
- color = <LED_COLOR_ID_GREEN>;
- max-brightness = <248>;
- pwms = <&pwm4 0 50000 0>;
- };
+ led-0 {
+ color = <LED_COLOR_ID_BLUE>;
+ pwms = <&pwm2 0 50000 0>;
+ };
- led-2 {
- function = LED_FUNCTION_STATUS;
- color = <LED_COLOR_ID_RED>;
- max-brightness = <248>;
- pwms = <&pwm3 0 50000 0>;
+ led-1 {
+ color = <LED_COLOR_ID_GREEN>;
+ pwms = <&pwm4 0 50000 0>;
+ };
+
+ led-2 {
+ color = <LED_COLOR_ID_RED>;
+ pwms = <&pwm3 0 50000 0>;
+ };
};
};
--
2.30.2
Powered by blists - more mailing lists