Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp689661rwe; Fri, 26 Aug 2022 12:22:05 -0700 (PDT) X-Google-Smtp-Source: AA6agR4tzL0FjcIuecNcYQYTeLzI1CFhd/UQF/DXp/C+Kj42K8jMxGtuW44nSd1ZHHny0eKrY+85 X-Received: by 2002:a17:90b:4c04:b0:1fb:2d28:bfb5 with SMTP id na4-20020a17090b4c0400b001fb2d28bfb5mr5745357pjb.42.1661541725598; Fri, 26 Aug 2022 12:22:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661541725; cv=none; d=google.com; s=arc-20160816; b=fgFbjGQSXmo1WPBmAoqz/F42dH+szgACii33hZWTLmx3kji2H6Ear3Itrod3VBZVz3 JH4uAFxBhfTMGyRUwMcIiODzW4sgYHwF6QuGznTN4S7/LmmszrZS7wRNZWTV0PWZ3SOP DlETI7Z0KFvJxl4Ot2m52aAvRQGWIIGLugpYpVj+JNlTv0NVrSbhwSpFzNEs4T33vBL9 54ttY2vKRN/JaZw8s/dJFP77E0BNtXNs3oIn1Vo7nzg8C/v1UmTNHQrhorvov3+dAE1m shCF2T9uNI9Lg53je+fGdzy4vgRfErgVAd5sAIWytrbVTZ0LBzhrZZydEJSmEJjslwLq FQYg== 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=vbbCaWjok5RB/05dRC/JGPNLK5hB7U4FRF3+MxgKPog=; b=nhRE2bWh0CPbQzNA0xAgGiEE6WSSpJfgo5DYsHX3erIM4ye+0oCbAfuYxXfBcVTBrr IvftS83x1U6vShK/6FYTwptgyB1l+/HriqB7Yr4U1xkG7cOunR4i5wWSs5BHmf3UJhP/ 5DPbLYXSLKJIja2FuWFl0kQv8qbR67lFosQZrHhBc7eEszgMfKGP6iD03ia5D0sUh/pW mo+4JPgNwIWfUhXffm9QuGXwVHj93fk91Bk6O952vYnX3l/d8OnOSu88vmF2hA4seOPK 08oxib2CPjkfIlu5b2/a3FpmKXhzSBks/fdluBqvU3xKBnHMRrnTyjgpkpJV5kezHDy2 gpmg== 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 pj14-20020a17090b4f4e00b001f4d705dbdcsi2548418pjb.80.2022.08.26.12.21.45; Fri, 26 Aug 2022 12:22:05 -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 S1345274AbiHZSpC (ORCPT + 99 others); Fri, 26 Aug 2022 14:45:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345231AbiHZSoc (ORCPT ); Fri, 26 Aug 2022 14:44:32 -0400 Received: from relay05.th.seeweb.it (relay05.th.seeweb.it [IPv6:2001:4b7a:2000:18::166]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB3D9F0762 for ; Fri, 26 Aug 2022 11:41:32 -0700 (PDT) Received: from [192.168.1.101] (afbd60.neoplus.adsl.tpnet.pl [95.49.29.60]) (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 C6E5F3F766; Fri, 26 Aug 2022 20:41:26 +0200 (CEST) Message-ID: <05aba940-aeab-a480-2c33-e1f9009c99ce@somainline.org> Date: Fri, 26 Aug 2022 20:41:24 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: [PATCH 7/7] arm64: dts: qcom: sm8350-hdk: Specify which LDO modes are allowed Content-Language: en-US To: Douglas Anderson , Bjorn Andersson Cc: Andrew Halaney , Mark Brown , Andy Gross , Krzysztof Kozlowski , Rob Herring , Vinod Koul , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220825164205.4060647-1-dianders@chromium.org> <20220825094155.7.I6799be85cf36d3b494f803cba767a569080624f5@changeid> From: Konrad Dybcio In-Reply-To: <20220825094155.7.I6799be85cf36d3b494f803cba767a569080624f5@changeid> 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=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: X-Mailing-List: linux-kernel@vger.kernel.org On 25.08.2022 18:42, Douglas Anderson wrote: > This board uses RPMH, specifies "regulator-allow-set-load" for LDOs, > but doesn't specify any modes with "regulator-allowed-modes". > > Prior to commit efb0cb50c427 ("regulator: qcom-rpmh: Implement > get_optimum_mode(), not set_load()") the above meant that we were able > to set either LPM or HPM mode. After that commit (and fixes [1]) we'll > be stuck at the initial mode. Discussion of this has resulted in the > decision that the old dts files were wrong and should be fixed to > fully restore old functionality. > > Let's re-enable the old functionality by fixing the dts. > > [1] https://lore.kernel.org/r/20220824142229.RFT.v2.2.I6f77860e5cd98bf5c67208fa9edda4a08847c304@changeid > > Fixes: 9208c19f2124 ("arm64: dts: qcom: Introduce SM8350 HDK") > Signed-off-by: Douglas Anderson > --- Reviewed-by: Konrad Dybcio Konrad > > arch/arm64/boot/dts/qcom/sm8350-hdk.dts | 12 ++++++++++++ > 1 file changed, 12 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sm8350-hdk.dts b/arch/arm64/boot/dts/qcom/sm8350-hdk.dts > index 0fcf5bd88fc7..69ae6503c2f6 100644 > --- a/arch/arm64/boot/dts/qcom/sm8350-hdk.dts > +++ b/arch/arm64/boot/dts/qcom/sm8350-hdk.dts > @@ -107,6 +107,9 @@ vreg_l5b_0p88: ldo5 { > regulator-max-microvolt = <888000>; > regulator-initial-mode = ; > regulator-allow-set-load; > + regulator-allowed-modes = > + + RPMH_REGULATOR_MODE_HPM>; > }; > > vreg_l6b_1p2: ldo6 { > @@ -115,6 +118,9 @@ vreg_l6b_1p2: ldo6 { > regulator-max-microvolt = <1208000>; > regulator-initial-mode = ; > regulator-allow-set-load; > + regulator-allowed-modes = > + + RPMH_REGULATOR_MODE_HPM>; > }; > > vreg_l7b_2p96: ldo7 { > @@ -123,6 +129,9 @@ vreg_l7b_2p96: ldo7 { > regulator-max-microvolt = <2504000>; > regulator-initial-mode = ; > regulator-allow-set-load; > + regulator-allowed-modes = > + + RPMH_REGULATOR_MODE_HPM>; > }; > > vreg_l9b_1p2: ldo9 { > @@ -131,6 +140,9 @@ vreg_l9b_1p2: ldo9 { > regulator-max-microvolt = <1200000>; > regulator-initial-mode = ; > regulator-allow-set-load; > + regulator-allowed-modes = > + + RPMH_REGULATOR_MODE_HPM>; > }; > }; >