Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1145794imw; Wed, 13 Jul 2022 14:38:07 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tIkzwIyP71t4OiUOSphYISq0J8KfjJT1WzBh1OE2CSq2+ImesXrCW83AFpVA68KEPEP43Z X-Received: by 2002:a17:907:1dc4:b0:72b:4d85:c7c4 with SMTP id og4-20020a1709071dc400b0072b4d85c7c4mr5506190ejc.258.1657748287582; Wed, 13 Jul 2022 14:38:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657748287; cv=none; d=google.com; s=arc-20160816; b=SuWsgXjXkGvFn6rdg/EwRqxQ5FmHtBe223qJbAdAfQ/ewLahwwQtSrK1Kb4SwogeMe bwGrys8ISVcL0Ks0THJG1HgUwSh2+32/wSFEIPPqo27ouj1n/Ia77S/PUYxHU7kibvxx o41b+TKtyI6RMCuZWC36S69Gdv/bLrFQb69Xfci9r0Q2fxdVE5Jni8HUzdKaGT2jxAdG 4+MuF9xItuKdJWx6wR0XDg+T0UHevv6GhOSWwV0DE6EkIgLUl9Wql1MOinLcyZm7YFqG s/QKR77XhGHgwkc9NMceyHGs3qZ1XpoOvSrx/hWxGEAnEeXpKTBGq7xje4qe5JALRTLg G00A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=AhVuglRnsx4NVSrhs2/w8pZX8rjVcCOgCeJ4zhkHszU=; b=Xiw58Mxs42oLBOqnxMIZe3H4O8rYiMFb3kZ8Ehx2oqDvIQa5C4mYJy9PFJtXRv15g9 1YEMtIIJZJCRJxlwSZNT6envf1XgXXLiuJXnvduRs7JYePnSqTvmm/0eFrUQseAYEYTB lJNZ8uqka/Bzh06eNOWYEloZAjn563uBp2AxydSi3H386AATBHlRy1aCKO/xV0cE2TUO C4MgwZ5H0i24KIBBHq103imQ2XspEqCtj1eyVIEwX75klScPQSX3QEQRI8STzhUIZl2j unvnpM05v6KEiBaJMOAGW6Fm7EKb2lLSZLPAignsmNTnTvKvdXfONI/JQdWKY6TX5jDy wNUg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dz20-20020a0564021d5400b0043b0e7c3cfesi4048307edb.556.2022.07.13.14.37.42; Wed, 13 Jul 2022 14:38:07 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237334AbiGMVXI (ORCPT + 99 others); Wed, 13 Jul 2022 17:23:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237373AbiGMVWx (ORCPT ); Wed, 13 Jul 2022 17:22:53 -0400 Received: from relay03.th.seeweb.it (relay03.th.seeweb.it [IPv6:2001:4b7a:2000:18::164]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C0D35F52 for ; Wed, 13 Jul 2022 14:22:47 -0700 (PDT) Received: from [192.168.1.101] (abxj14.neoplus.adsl.tpnet.pl [83.9.3.14]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r1.th.seeweb.it (Postfix) with ESMTPSA id 1D0CC1F89E; Wed, 13 Jul 2022 23:22:45 +0200 (CEST) Message-ID: <5781355d-cb53-4386-f08b-ee6aac6a6e29@somainline.org> Date: Wed, 13 Jul 2022 23:22:44 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH v2 2/2] ARM: dts: qcom: msm8974-sony: Enable LPG Content-Language: en-US To: Bjorn Andersson , Andy Gross Cc: Luca Weiss , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220713212309.130230-1-bjorn.andersson@linaro.org> <20220713212309.130230-3-bjorn.andersson@linaro.org> From: Konrad Dybcio In-Reply-To: <20220713212309.130230-3-bjorn.andersson@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 On 13.07.2022 23:23, Bjorn Andersson wrote: > Both Castor and Honami has RGB LEDs driven by the PM8941 LPG, define > these. > > Signed-off-by: Bjorn Andersson > --- Reviewed-by: Konrad Dybcio Konrad > > Changes since v1: > - Corrected unit addresses and sort order of channels > > .../dts/qcom-msm8974-sony-xperia-rhine.dtsi | 30 +++++++++++++++++++ > ...-msm8974pro-sony-xperia-shinano-castor.dts | 30 +++++++++++++++++++ > 2 files changed, 60 insertions(+) > > diff --git a/arch/arm/boot/dts/qcom-msm8974-sony-xperia-rhine.dtsi b/arch/arm/boot/dts/qcom-msm8974-sony-xperia-rhine.dtsi > index d42b85bda33a..5a70683d9103 100644 > --- a/arch/arm/boot/dts/qcom-msm8974-sony-xperia-rhine.dtsi > +++ b/arch/arm/boot/dts/qcom-msm8974-sony-xperia-rhine.dtsi > @@ -3,6 +3,7 @@ > #include "qcom-pm8841.dtsi" > #include "qcom-pm8941.dtsi" > #include > +#include > #include > > / { > @@ -172,6 +173,35 @@ gpio_keys_pin_a: gpio-keys-active-state { > }; > }; > > +&pm8941_lpg { > + status = "okay"; > + > + qcom,power-source = <1>; > + > + rgb-led { > + color = ; > + function = LED_FUNCTION_STATUS; > + > + #address-cells = <1>; > + #size-cells = <0>; > + > + led@5 { > + reg = <5>; > + color = ; > + }; > + > + led@6 { > + reg = <6>; > + color = ; > + }; > + > + led@7 { > + reg = <7>; > + color = ; > + }; > + }; > +}; > + > &pm8941_wled { > status = "okay"; > > diff --git a/arch/arm/boot/dts/qcom-msm8974pro-sony-xperia-shinano-castor.dts b/arch/arm/boot/dts/qcom-msm8974pro-sony-xperia-shinano-castor.dts > index 9fc696a7399a..3f45f5c5d37b 100644 > --- a/arch/arm/boot/dts/qcom-msm8974pro-sony-xperia-shinano-castor.dts > +++ b/arch/arm/boot/dts/qcom-msm8974pro-sony-xperia-shinano-castor.dts > @@ -3,6 +3,7 @@ > #include "qcom-pm8841.dtsi" > #include "qcom-pm8941.dtsi" > #include > +#include > #include > > / { > @@ -288,6 +289,35 @@ lcd_dcdc_en_pin_a: lcd-dcdc-en-active-state { > > }; > > +&pm8941_lpg { > + status = "okay"; > + > + qcom,power-source = <1>; > + > + rgb-led { > + color = ; > + function = LED_FUNCTION_STATUS; > + > + #address-cells = <1>; > + #size-cells = <0>; > + > + led@5 { > + reg = <5>; > + color = ; > + }; > + > + led@6 { > + reg = <6>; > + color = ; > + }; > + > + led@7 { > + reg = <7>; > + color = ; > + }; > + }; > +}; > + > &rpm_requests { > pm8941-regulators { > compatible = "qcom,rpm-pm8941-regulators";