Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2241300rwb; Wed, 30 Nov 2022 04:23:27 -0800 (PST) X-Google-Smtp-Source: AA0mqf7BXraziXZO7Ad6S731Uanvp6JxBSb+YJPTFLLea2JoKEjwiEIyA6cHaLVwPAPJq4leJgfv X-Received: by 2002:a17:90a:c006:b0:219:158d:b19a with SMTP id p6-20020a17090ac00600b00219158db19amr25404368pjt.152.1669811006793; Wed, 30 Nov 2022 04:23:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669811006; cv=none; d=google.com; s=arc-20160816; b=AGkazqIYz0pkEiMJDrIx5HWLaNc9VLTDB1zh0xuf3Ajr3gwIMEHCO2e1AmgogyqfDU YCk+dbG4KKBgFD9/ftrRtkdI7AjK0+Y/rSl7aVxtAo8MEh0GQed90LOvWtjBsHDpc/0c dALsmgz45DWdc5Me6yHsdWYco3ChQDmXzAe0u5nagBErh5jgylE02dAh6q95ra+CvQrV QRDoMJ2G/lnIMpg+Ok94d7X1uoUcAoB21XhQHFPtSJ6p5db+ZPNkV+tY8sEH/ysO14Xt XAtn9BGg416VzVk5G1bjT388TS3nV683vmW3J5NEbhC30NbCW4nA+uYJ0eHXmCdQqmlm QwJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:dkim-signature:from; bh=3Il/v0fSahozX3OE4nOO2BgrF2Nc8EAv6j5rz98A9Ig=; b=SPJXuxqA/EDH7yL3mzk6t6fFc+HIrZWKCPc1AAAVjyYCcW/ICLGWoZmq39LbyDCBzQ u6sVCPfsjVvjg28If6pMONENqqgFESMjak0QR0F5iYQEPl/+8kQO63EVD3VO3T+0k2ZH +p7UnpY7bsEVoJD4e/nhqaPzjAukYik/EGmDCwc4Ul8R+30GgPh2kovxan1N/Pi/AWlu Zxz8U/PKzGdsy2Yl1pbY3GxsBCMNzuDovv7AXDluWwwPETNDUy3DowV0KmQu45xx/Eue NlGbVOBjhCebEamcRU4zyzL5zc9UiVPN9ARSadXYEdOD+7JNNplG8DeP6lSuQZBiU6wH AhiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@puri.sm header.s=comms header.b=LPIC92+j; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=puri.sm Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b4-20020a621b04000000b0056381876081si1429285pfb.328.2022.11.30.04.23.16; Wed, 30 Nov 2022 04:23:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@puri.sm header.s=comms header.b=LPIC92+j; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=puri.sm Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234912AbiK3Ldx (ORCPT + 84 others); Wed, 30 Nov 2022 06:33:53 -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: 8bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 { }; led-controller { - compatible = "pwm-leds"; + compatible = "pwm-leds-multicolor"; - led-0 { + multi-led { + color = ; function = LED_FUNCTION_STATUS; - color = ; max-brightness = <248>; - pwms = <&pwm2 0 50000 0>; - }; - led-1 { - function = LED_FUNCTION_STATUS; - color = ; - max-brightness = <248>; - pwms = <&pwm4 0 50000 0>; - }; + led-0 { + color = ; + pwms = <&pwm2 0 50000 0>; + }; - led-2 { - function = LED_FUNCTION_STATUS; - color = ; - max-brightness = <248>; - pwms = <&pwm3 0 50000 0>; + led-1 { + color = ; + pwms = <&pwm4 0 50000 0>; + }; + + led-2 { + color = ; + pwms = <&pwm3 0 50000 0>; + }; }; }; -- 2.30.2