Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp1305280rwi; Mon, 31 Oct 2022 14:35:00 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4wipsKvJO8bxjwKAkBy0uFwy7Mb6+jfMy9N9Qyv3KHEY/eH6sujv2OQUH5ky0qy+ps1m1s X-Received: by 2002:a17:907:a42c:b0:7aa:97e5:fac6 with SMTP id sg44-20020a170907a42c00b007aa97e5fac6mr14592008ejc.378.1667252100416; Mon, 31 Oct 2022 14:35:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667252100; cv=none; d=google.com; s=arc-20160816; b=UkO8/tCwCGl46BuyJ4/NiKEazLQrKXDbK3ftBuR12IqA8+m7K292JMJFj8OM3v5d4u 4Aij278S9NuLCFrpTpbP888qJwA+7TeNvMZ0uYeRoiUorj48+1IqAO97zQA/3YrW4fW1 /qU5a6U5llYFGu281Kyg27v8ODzfGSR47Nrdli4da+/OKgGqZXX1wsPTAb4FhyQE2gTO U6OiQk8XQFc7QUXYmt4IfBRR8dKvznremgVlNbTJv2oitbSK+nZxKTwaN5TsX67GxVtx wflRduRvsqC1gZlDEmG5sXGS/szh3F+B35hdWDf9T4VAoqh4QtODkLwha7vjo7BNGoSX z7+g== 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=JNOmOnUPtsT1Ts72wwUq8b3wcl36sbKNrHVDGQ2AMVY=; b=d3pChxiVjsKuwFFTKv7E05T1OeaqZgV46y5F4PrKM9LNQ79w4XT5z33K9T3AHxx0mI JgPDViATeLuSvlgV/qyfJAhxmsI9g0/RlK64NHRF7Jf/Coa8sJbWn6Rpdk/nfEOh11PZ bZfUuNczzdMbfDi7INAJvp3vcWbgDFOQLVvqcszvLYu8xB5HMDZ/cOhllxKLDbLqaQ89 069VXEVJx5ptrfJDsLGymAeh4cOQ9ckPNcX7RORZAESTSPbxJrTN4tGhP2AfXmaQZj1Q 9DSL7PMKiGy3mkG56qMH4jsj1Wkk/sVySxMIJ+cubUQy6oddxKGcNTmmC1eFtoPbZlNd kNYg== 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 js12-20020a17090797cc00b007a072b8240csi9969494ejc.927.2022.10.31.14.34.35; Mon, 31 Oct 2022 14:35:00 -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 S230253AbiJaVOC (ORCPT + 98 others); Mon, 31 Oct 2022 17:14:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230226AbiJaVN5 (ORCPT ); Mon, 31 Oct 2022 17:13:57 -0400 Received: from relay08.th.seeweb.it (relay08.th.seeweb.it [IPv6:2001:4b7a:2000:18::169]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 576ECF04; Mon, 31 Oct 2022 14:13:56 -0700 (PDT) Received: from [192.168.1.101] (95.49.29.156.neoplus.adsl.tpnet.pl [95.49.29.156]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by m-r2.th.seeweb.it (Postfix) with ESMTPSA id E124D3EAF0; Mon, 31 Oct 2022 22:13:53 +0100 (CET) Message-ID: <8758e7ee-fda2-ae2e-385d-d58443d64baf@somainline.org> Date: Mon, 31 Oct 2022 22:13:53 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.1 Subject: Re: [PATCH 06/10] arm64: dts: qcom: sm6350-lena: Define pm6350 and pm6150l regulators Content-Language: en-US To: Marijn Suijten , phone-devel@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, AngeloGioacchino Del Regno , Martin Botka , Jami Kettunen , Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Luca Weiss , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20221030073232.22726-1-marijn.suijten@somainline.org> <20221030073232.22726-7-marijn.suijten@somainline.org> From: Konrad Dybcio In-Reply-To: <20221030073232.22726-7-marijn.suijten@somainline.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, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 30.10.2022 08:32, Marijn Suijten wrote: > This regulator configuration was adopted from downstream, and is > identical to the sm7225 FairPhone 4 configuration bar pm6350_l8a. Because both of them are more or less reused reference designs :P > > Signed-off-by: Marijn Suijten > --- Reviewed-by: Konrad Dybcio Konrad > .../qcom/sm6350-sony-xperia-lena-pdx213.dts | 218 ++++++++++++++++++ > 1 file changed, 218 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sm6350-sony-xperia-lena-pdx213.dts b/arch/arm64/boot/dts/qcom/sm6350-sony-xperia-lena-pdx213.dts > index 4512b0bf7fe1..1aaa9612b061 100644 > --- a/arch/arm64/boot/dts/qcom/sm6350-sony-xperia-lena-pdx213.dts > +++ b/arch/arm64/boot/dts/qcom/sm6350-sony-xperia-lena-pdx213.dts > @@ -5,6 +5,7 @@ > /dts-v1/; > > #include > +#include > #include "sm6350.dtsi" > #include "pm6350.dtsi" > > @@ -44,6 +45,223 @@ key-volume-down { > }; > }; > > +&apps_rsc { > + regulators-0 { > + compatible = "qcom,pm6350-rpmh-regulators"; > + qcom,pmic-id = "a"; > + > + pm6350_s1: smps1 { > + regulator-min-microvolt = <1000000>; > + regulator-max-microvolt = <1200000>; > + regulator-initial-mode = ; > + }; > + > + pm6350_s2: smps2 { > + regulator-min-microvolt = <1503000>; > + regulator-max-microvolt = <2048000>; > + regulator-initial-mode = ; > + }; > + > + pm6350_l2: ldo2 { > + regulator-min-microvolt = <1503000>; > + regulator-max-microvolt = <1980000>; > + regulator-initial-mode = ; > + }; > + > + pm6350_l3: ldo3 { > + regulator-min-microvolt = <2700000>; > + regulator-max-microvolt = <3300000>; > + regulator-initial-mode = ; > + }; > + > + pm6350_l4: ldo4 { > + regulator-min-microvolt = <352000>; > + regulator-max-microvolt = <801000>; > + regulator-initial-mode = ; > + }; > + > + pm6350_l5: ldo5 { > + regulator-min-microvolt = <1503000>; > + regulator-max-microvolt = <1980000>; > + regulator-initial-mode = ; > + }; > + > + pm6350_l6: ldo6 { > + regulator-min-microvolt = <1710000>; > + regulator-max-microvolt = <3544000>; > + regulator-initial-mode = ; > + }; > + > + pm6350_l7: ldo7 { > + regulator-min-microvolt = <1620000>; > + regulator-max-microvolt = <1980000>; > + regulator-initial-mode = ; > + }; > + > + pm6350_l8: ldo8 { > + regulator-min-microvolt = <2500000>; > + regulator-max-microvolt = <3544000>; > + regulator-initial-mode = ; > + }; > + > + pm6350_l9: ldo9 { > + regulator-min-microvolt = <1650000>; > + regulator-max-microvolt = <3401000>; > + regulator-initial-mode = ; > + }; > + > + pm6350_l11: ldo11 { > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <2000000>; > + regulator-initial-mode = ; > + }; > + > + pm6350_l12: ldo12 { > + regulator-min-microvolt = <1620000>; > + regulator-max-microvolt = <1980000>; > + regulator-initial-mode = ; > + }; > + > + pm6350_l13: ldo13 { > + regulator-min-microvolt = <570000>; > + regulator-max-microvolt = <650000>; > + regulator-initial-mode = ; > + }; > + > + pm6350_l14: ldo14 { > + regulator-min-microvolt = <1700000>; > + regulator-max-microvolt = <1900000>; > + regulator-initial-mode = ; > + }; > + > + pm6350_l15: ldo15 { > + regulator-min-microvolt = <1100000>; > + regulator-max-microvolt = <1305000>; > + regulator-initial-mode = ; > + }; > + > + pm6350_l16: ldo16 { > + regulator-min-microvolt = <830000>; > + regulator-max-microvolt = <921000>; > + regulator-initial-mode = ; > + }; > + > + pm6350_l18: ldo18 { > + regulator-min-microvolt = <788000>; > + regulator-max-microvolt = <1049000>; > + regulator-initial-mode = ; > + }; > + > + pm6350_l19: ldo19 { > + regulator-min-microvolt = <1080000>; > + regulator-max-microvolt = <1305000>; > + regulator-initial-mode = ; > + }; > + > + pm6350_l20: ldo20 { > + regulator-min-microvolt = <530000>; > + regulator-max-microvolt = <801000>; > + regulator-initial-mode = ; > + }; > + > + pm6350_l21: ldo21 { > + regulator-min-microvolt = <751000>; > + regulator-max-microvolt = <825000>; > + regulator-initial-mode = ; > + }; > + > + pm6350_l22: ldo22 { > + regulator-min-microvolt = <1080000>; > + regulator-max-microvolt = <1305000>; > + regulator-initial-mode = ; > + }; > + }; > + > + regulators-1 { > + compatible = "qcom,pm6150l-rpmh-regulators"; > + qcom,pmic-id = "e"; > + > + pm6150l_s8: smps8 { > + regulator-min-microvolt = <313000>; > + regulator-max-microvolt = <1395000>; > + regulator-initial-mode = ; > + }; > + > + pm6150l_l1: ldo1 { > + regulator-min-microvolt = <1620000>; > + regulator-max-microvolt = <1980000>; > + regulator-initial-mode = ; > + }; > + > + pm6150l_l2: ldo2 { > + regulator-min-microvolt = <1170000>; > + regulator-max-microvolt = <1305000>; > + regulator-initial-mode = ; > + }; > + > + pm6150l_l3: ldo3 { > + regulator-min-microvolt = <1100000>; > + regulator-max-microvolt = <1299000>; > + regulator-initial-mode = ; > + }; > + > + pm6150l_l4: ldo4 { > + regulator-min-microvolt = <1620000>; > + regulator-max-microvolt = <3300000>; > + regulator-initial-mode = ; > + }; > + > + pm6150l_l5: ldo5 { > + regulator-min-microvolt = <1620000>; > + regulator-max-microvolt = <3300000>; > + regulator-initial-mode = ; > + }; > + > + pm6150l_l6: ldo6 { > + regulator-min-microvolt = <1700000>; > + regulator-max-microvolt = <3544000>; > + regulator-initial-mode = ; > + }; > + > + pm6150l_l7: ldo7 { > + regulator-min-microvolt = <2700000>; > + regulator-max-microvolt = <3544000>; > + regulator-initial-mode = ; > + }; > + > + pm6150l_l8: ldo8 { > + regulator-min-microvolt = <1620000>; > + regulator-max-microvolt = <2000000>; > + regulator-initial-mode = ; > + }; > + > + pm6150l_l9: ldo9 { > + regulator-min-microvolt = <2700000>; > + regulator-max-microvolt = <3544000>; > + regulator-initial-mode = ; > + }; > + > + pm6150l_l10: ldo10 { > + regulator-min-microvolt = <3000000>; > + regulator-max-microvolt = <3401000>; > + regulator-initial-mode = ; > + }; > + > + pm6150l_l11: ldo11 { > + regulator-min-microvolt = <3000000>; > + regulator-max-microvolt = <3401000>; > + regulator-initial-mode = ; > + }; > + > + pm6150l_bob: bob { > + regulator-min-microvolt = <1620000>; > + regulator-max-microvolt = <5492000>; > + regulator-initial-mode = ; > + regulator-allow-bypass; > + }; > + }; > +}; > + > &pm6350_gpios { > gpio_keys_state: gpio-keys-state { > key-volume-down-pins {