From nobody Fri Sep 19 01:09:13 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AB6D3C352A1 for ; Wed, 30 Nov 2022 11:34:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235231AbiK3Ld7 (ORCPT ); Wed, 30 Nov 2022 06:33:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55098 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232226AbiK3LdM (ORCPT ); Wed, 30 Nov 2022 06:33:12 -0500 Received: from comms.puri.sm (comms.puri.sm [159.203.221.185]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE3C32B24F; Wed, 30 Nov 2022 03:32:12 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by comms.puri.sm (Postfix) with ESMTP id 964EBF53EF; Wed, 30 Nov 2022 03:31:42 -0800 (PST) Received: from comms.puri.sm ([127.0.0.1]) by localhost (comms.puri.sm [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4wOaUqSW06EL; Wed, 30 Nov 2022 03:31:41 -0800 (PST) From: Martin Kepplinger DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=puri.sm; s=comms; t=1669807901; bh=6x67qmLJQCj3lbasXYSdmsQWomk0eqRrMSoej+wwECc=; h=From:To:Cc:Subject:Date:From; b=LPIC92+jA0DV34i/vgAYFARuJsFlzYZqZ3/qMpv3Dj1r1Ecxm3G8TZTeJxwcFREKU 8nNfMDvRxh4nvRjL5Ifly+VCs4wtRjqFxMYQxxcb4w5uthAmmyHOAAUHFNP8IWxCLL CEWfa9Fbw7TqQwC/R+wE4qEcjzEme1ONwEwpAhPtYc60zphCTYQLlYO8GfAmpaYZ4l dL9jTkfV/3PgEtfvfYIhZW9yu2ZEo2m/y9EkuOfczOuvnhcQUXafp8SVaV8BBXadSg c3nM3Pxb/JxLBqHobW71tLS202C46yNVHX/1+Fl9wRBCGXVwkAbcMvlOAqOlZTpstD xHXHRyKoiyiRw== To: robh@kernel.org, krzysztof.kozlowski@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com Cc: linux-imx@nxp.com, kernel@puri.sm, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, phone-devel@vger.kernel.org, linux-kernel@vger.kernel.org, Martin Kepplinger Subject: [PATCH v1] arm64: dts: imx8mq-librem5: use multicolor leds description for RGB led Date: Wed, 30 Nov 2022 12:31:24 +0100 Message-Id: <20221130113124.1558335-1-martin.kepplinger@puri.sm> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" 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 --- .../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 { }; =20 led-controller { - compatible =3D "pwm-leds"; + compatible =3D "pwm-leds-multicolor"; =20 - led-0 { + multi-led { + color =3D ; function =3D LED_FUNCTION_STATUS; - color =3D ; max-brightness =3D <248>; - pwms =3D <&pwm2 0 50000 0>; - }; =20 - led-1 { - function =3D LED_FUNCTION_STATUS; - color =3D ; - max-brightness =3D <248>; - pwms =3D <&pwm4 0 50000 0>; - }; + led-0 { + color =3D ; + pwms =3D <&pwm2 0 50000 0>; + }; =20 - led-2 { - function =3D LED_FUNCTION_STATUS; - color =3D ; - max-brightness =3D <248>; - pwms =3D <&pwm3 0 50000 0>; + led-1 { + color =3D ; + pwms =3D <&pwm4 0 50000 0>; + }; + + led-2 { + color =3D ; + pwms =3D <&pwm3 0 50000 0>; + }; }; }; =20 --=20 2.30.2