Message ID | 20230414-pmi632-v1-8-fe94dc414832@z3ntu.xyz |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp7143vqo; Thu, 13 Apr 2023 16:30:49 -0700 (PDT) X-Google-Smtp-Source: AKy350YN+o4FS1oDOoaeogbQB+Jyli5zqnvAfkINS9T/EGEZAWzlnpmM5+s00O9hHGbwfWOBAjYO X-Received: by 2002:a05:6a20:a028:b0:d9:7a97:a7b9 with SMTP id p40-20020a056a20a02800b000d97a97a7b9mr8274003pzj.6.1681428649099; Thu, 13 Apr 2023 16:30:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681428649; cv=none; d=google.com; s=arc-20160816; b=JwsY9n/GXkTwWHVeJLjIesYjOvWpf7i6mkWwdjVHY19ycPQUIneCAxntO9I2luIxKP 4S7YWNBzu1Z3sDPDCVmy1HuuNMc/ptn7nNcsW9Ml0enJC2oowp73btoGaoya0ohjZTDa rd541Vp4h4BUcuJqKXTFa0Xq3ws1qXUVm+fvWkv4oSUkNbKZ5RikJRCqOHz5bxzjlekN TP5A1xJSm5zjeCinWAd9p5hZnFF+ko3akkAdB+TYJ0D5dlXF6w01mCkZ8gwxXqwAONBS jxiMRT/OhxO451FD36+3girpB2UHMptFr/LXrtra7hd8Yda60uaMynOkrQ3pv5VLfudE HA+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=UEdmha3uSo9Ftj2x1vbRaMyUjT+dbYweOUlZGyMqaqo=; b=vrhOTVsZQUZkJLLe0O+jp+9WqwcNPnr+RLP35RypwsQcQ4Vr+JB3HwvgoV/ADo45R1 9vhVyobWEXPCJel2H3altuQ8s+LBMcryMbG+bsHTBoV5a+r6KibgrQR1TYnlxGKY6kca mLBGRuryoREeWSW42MEQVEntNNg/HlduOIkA2EAp+qWcC2MK17Yue/kuPYw+Bq2O/OXs 9QGnJIBfeexa3ttNhhQxPFiHMjqmGJ+FdlU7jcBKC7JpdQUKnHNB4zeo8i8LKuXvFkNL 9jZj9807VWFyk59rUnW6rHmX31ek0ERDzHb0LUKH0hpjOQWAjcRRvF3pQ7sDsyh8ePWm cfEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@z3ntu.xyz header.s=z3ntu header.b=GA3IvBxp; 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=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h190-20020a6383c7000000b00513f9dbbdb9si3073366pge.275.2023.04.13.16.30.34; Thu, 13 Apr 2023 16:30:49 -0700 (PDT) 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=pass header.i=@z3ntu.xyz header.s=z3ntu header.b=GA3IvBxp; 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=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230495AbjDMXS1 (ORCPT <rfc822;peter110.wang@gmail.com> + 99 others); Thu, 13 Apr 2023 19:18:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49972 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230496AbjDMXST (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 13 Apr 2023 19:18:19 -0400 Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 10A2BE1; Thu, 13 Apr 2023 16:18:18 -0700 (PDT) Received: from [192.168.178.23] (unknown [62.108.10.64]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id 4364BD0C54; Thu, 13 Apr 2023 23:18:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=z3ntu.xyz; s=z3ntu; t=1681427895; bh=w9CMcpt8FL5D9w8gvtXVGIn+tTYwLetgcp8M0Diuyuc=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=GA3IvBxpJAo6GKEnnPNYlKRFUkbIsQmunIxLvJ75WuHm2ku1FsOaOjRJkljxzDczc KZt+DnRj5QkC8FdVou9jI55Hxnb5+mRT7+CQJmgMRSLb685c84gCM67ewZJ2FMhkwX KfNHfnqpak4Sp7t/Dx/NrdpBdH7NfoRmrKD5BA9s= From: Luca Weiss <luca@z3ntu.xyz> Date: Fri, 14 Apr 2023 01:17:52 +0200 Subject: [PATCH 8/8] arm64: dts: qcom: sdm632-fairphone-fp3: Add notification LED MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20230414-pmi632-v1-8-fe94dc414832@z3ntu.xyz> References: <20230414-pmi632-v1-0-fe94dc414832@z3ntu.xyz> In-Reply-To: <20230414-pmi632-v1-0-fe94dc414832@z3ntu.xyz> To: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Andy Gross <agross@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Konrad Dybcio <konrad.dybcio@linaro.org>, Linus Walleij <linus.walleij@linaro.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Pavel Machek <pavel@ucw.cz>, Lee Jones <lee@kernel.org>, Jonathan Cameron <jic23@kernel.org>, Lars-Peter Clausen <lars@metafoo.de>, Stephen Boyd <sboyd@kernel.org> Cc: linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org, linux-iio@vger.kernel.org, Luca Weiss <luca@z3ntu.xyz> X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1288; i=luca@z3ntu.xyz; h=from:subject:message-id; bh=w9CMcpt8FL5D9w8gvtXVGIn+tTYwLetgcp8M0Diuyuc=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBkOI20vqSS20Hu+GzwUyPjrcf5yFn3OwoDcK3SW sCaPClRAjWJAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCZDiNtAAKCRBy2EO4nU3X VvGHEACde5l9XMhZEVg2BizwgTL7EgMa+l/mV+OnlBR0T1B8F5Z/mOM9azW5C1zJDKjzalN1uwT 2mRnvm6OhVPvbtxZei4j2QtPattb1X3aPgz3mqtN+vplnMx+gaAk7XK/0Hq2J9vRyNfmgWhzzC0 mV7gbGAHpnxPDjfnqIsX7rqfMPV4ZAP+ealRuPv/fo+H2tVzQC8UhgmX0ZBjHTDCWZDtWaiSkFz P7A2MqaHylCGawKs3U6rf1URhYIIM7EwWGkOcClWAyNPSb/oefqPUu6LYe5+wzzikG2b5zCsW46 a4I0s1OblXvu7CMETCM6DJ91OAMgN6Qip+cjRnUYW6oiBvkMve5y0u7FkwSN3iwTALZ7L3JtW/g YnEIickkiqu5R2JKvM4UJZHfgQXIVdKJNHirhUKFNxPsXYFzO/ohvWPhjKG0r+ymUyVqbYm6MpO XsVEzCGwnIOBitQEYnAyhyIwb5vINMLDSTR5f4bMgxaShAFQHu4Ht+7ofZouyhsEayoihq8C1yJ zZ0CBwEZYb9xUOOpQSqvWFqJqZqr4pRW+kL6zCTeJsSupgfXLApStp10r//gnLVSFPIS1TmP04s Hoa/fMA0zklHXUqdNQb3sBUSUJOFcEijJGc85k8us+qxKaQGRlanda3yuZrI+utIkUFVxJXs9Ia UZvTK1LJCYvXaVg== X-Developer-Key: i=luca@z3ntu.xyz; a=openpgp; fpr=BD04DA24C971B8D587B2B8D7FAF69CF6CD2D02CD X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=ham 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1763105727337790758?= X-GMAIL-MSGID: =?utf-8?q?1763105727337790758?= |
Series |
Add PMI632 PMIC and RGB LED on sdm632-fairphone-fp3
|
|
Commit Message
Luca Weiss
April 13, 2023, 11:17 p.m. UTC
The phone features a notification LED connected to the pmi632. Configure
the RGB led found on it.
Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
---
arch/arm64/boot/dts/qcom/sdm632-fairphone-fp3.dts | 29 +++++++++++++++++++++++
1 file changed, 29 insertions(+)
Comments
On 14.04.2023 01:17, Luca Weiss wrote: > The phone features a notification LED connected to the pmi632. Configure > the RGB led found on it. > > Signed-off-by: Luca Weiss <luca@z3ntu.xyz> > --- > arch/arm64/boot/dts/qcom/sdm632-fairphone-fp3.dts | 29 +++++++++++++++++++++++ > 1 file changed, 29 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sdm632-fairphone-fp3.dts b/arch/arm64/boot/dts/qcom/sdm632-fairphone-fp3.dts > index 70e683b7e4fc..301eca9a4f31 100644 > --- a/arch/arm64/boot/dts/qcom/sdm632-fairphone-fp3.dts > +++ b/arch/arm64/boot/dts/qcom/sdm632-fairphone-fp3.dts > @@ -4,8 +4,10 @@ > */ > /dts-v1/; > > +#include <dt-bindings/leds/common.h> > #include "sdm632.dtsi" > #include "pm8953.dtsi" > +#include "pmi632.dtsi" > > / { > model = "Fairphone 3"; > @@ -83,6 +85,33 @@ &pm8953_resin { > linux,code = <KEY_VOLUMEDOWN>; > }; > > +&pmi632_lpg { qcom,power-source? Konrad > + status = "okay"; > + > + multi-led { > + color = <LED_COLOR_ID_RGB>; > + function = LED_FUNCTION_STATUS; > + > + #address-cells = <1>; > + #size-cells = <0>; > + > + led@1 { > + reg = <1>; > + color = <LED_COLOR_ID_RED>; > + }; > + > + led@2 { > + reg = <2>; > + color = <LED_COLOR_ID_GREEN>; > + }; > + > + led@3 { > + reg = <3>; > + color = <LED_COLOR_ID_BLUE>; > + }; > + }; > +}; > + > &sdhc_1 { > status = "okay"; > vmmc-supply = <&pm8953_l8>; >
On Fri 2023-04-14 01:17:52, Luca Weiss wrote: > The phone features a notification LED connected to the pmi632. Configure > the RGB led found on it. Could you document the usage in Documentation/leds/well-known-leds.txt so that all phones share the same name for the RGB notification LED? Thanks, Pavel
On Freitag, 14. April 2023 14:24:06 CEST Pavel Machek wrote: > On Fri 2023-04-14 01:17:52, Luca Weiss wrote: > > The phone features a notification LED connected to the pmi632. Configure > > the RGB led found on it. > > Could you document the usage in Documentation/leds/well-known-leds.txt > so that all phones share the same name for the RGB notification LED? This dts results in /sys/class/leds/rgb:status like (presumably) all of these existing in-tree users: * qcom-msm8974-lge-nexus5-hammerhead.dts * qcom-msm8974-sony-xperia-rhine.dtsi * qcom-msm8974pro-fairphone-fp2.dts * qcom-msm8974pro-sony-xperia-shinano-castor.dts * freescale/imx8mq-librem5.dtsi * qcom/msm8996-xiaomi-common.dtsi * qcom/sdm630-sony-xperia-nile.dtsi * qcom/sdm845-shift-axolotl.dts However I can send a patch adding it to this txt doc since it doesn't seem to be there yet. Regards Luca > > Thanks, > Pavel
On Freitag, 14. April 2023 01:36:38 CEST Konrad Dybcio wrote: > On 14.04.2023 01:17, Luca Weiss wrote: > > The phone features a notification LED connected to the pmi632. Configure > > the RGB led found on it. > > > > Signed-off-by: Luca Weiss <luca@z3ntu.xyz> > > --- > > > > arch/arm64/boot/dts/qcom/sdm632-fairphone-fp3.dts | 29 > > +++++++++++++++++++++++ 1 file changed, 29 insertions(+) > > > > diff --git a/arch/arm64/boot/dts/qcom/sdm632-fairphone-fp3.dts > > b/arch/arm64/boot/dts/qcom/sdm632-fairphone-fp3.dts index > > 70e683b7e4fc..301eca9a4f31 100644 > > --- a/arch/arm64/boot/dts/qcom/sdm632-fairphone-fp3.dts > > +++ b/arch/arm64/boot/dts/qcom/sdm632-fairphone-fp3.dts > > @@ -4,8 +4,10 @@ > > > > */ > > > > /dts-v1/; > > > > +#include <dt-bindings/leds/common.h> > > > > #include "sdm632.dtsi" > > #include "pm8953.dtsi" > > > > +#include "pmi632.dtsi" > > > > / { > > > > model = "Fairphone 3"; > > > > @@ -83,6 +85,33 @@ &pm8953_resin { > > > > linux,code = <KEY_VOLUMEDOWN>; > > > > }; > > > > +&pmi632_lpg { > > qcom,power-source? This property is only used if triled_has_src_sel is set in the driver (which it isn't on pmi632), only on pm8941 & pmi8994 it is set. Regards Luca > > Konrad > > > + status = "okay"; > > + > > + multi-led { > > + color = <LED_COLOR_ID_RGB>; > > + function = LED_FUNCTION_STATUS; > > + > > + #address-cells = <1>; > > + #size-cells = <0>; > > + > > + led@1 { > > + reg = <1>; > > + color = <LED_COLOR_ID_RED>; > > + }; > > + > > + led@2 { > > + reg = <2>; > > + color = <LED_COLOR_ID_GREEN>; > > + }; > > + > > + led@3 { > > + reg = <3>; > > + color = <LED_COLOR_ID_BLUE>; > > + }; > > + }; > > +}; > > + > > > > &sdhc_1 { > > > > status = "okay"; > > vmmc-supply = <&pm8953_l8>;
diff --git a/arch/arm64/boot/dts/qcom/sdm632-fairphone-fp3.dts b/arch/arm64/boot/dts/qcom/sdm632-fairphone-fp3.dts index 70e683b7e4fc..301eca9a4f31 100644 --- a/arch/arm64/boot/dts/qcom/sdm632-fairphone-fp3.dts +++ b/arch/arm64/boot/dts/qcom/sdm632-fairphone-fp3.dts @@ -4,8 +4,10 @@ */ /dts-v1/; +#include <dt-bindings/leds/common.h> #include "sdm632.dtsi" #include "pm8953.dtsi" +#include "pmi632.dtsi" / { model = "Fairphone 3"; @@ -83,6 +85,33 @@ &pm8953_resin { linux,code = <KEY_VOLUMEDOWN>; }; +&pmi632_lpg { + status = "okay"; + + multi-led { + color = <LED_COLOR_ID_RGB>; + function = LED_FUNCTION_STATUS; + + #address-cells = <1>; + #size-cells = <0>; + + led@1 { + reg = <1>; + color = <LED_COLOR_ID_RED>; + }; + + led@2 { + reg = <2>; + color = <LED_COLOR_ID_GREEN>; + }; + + led@3 { + reg = <3>; + color = <LED_COLOR_ID_BLUE>; + }; + }; +}; + &sdhc_1 { status = "okay"; vmmc-supply = <&pm8953_l8>;