Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp1078251rwe; Thu, 25 Aug 2022 15:09:02 -0700 (PDT) X-Google-Smtp-Source: AA6agR5I9+4ESXGhkxJ7NHJKPoUJdkVhd+9jtVP6sV4JNBIXS2bg+1VF+XnzFU6nN+21kf/T1awx X-Received: by 2002:a05:6402:388e:b0:43a:d5ff:60f0 with SMTP id fd14-20020a056402388e00b0043ad5ff60f0mr4588364edb.152.1661465342112; Thu, 25 Aug 2022 15:09:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661465342; cv=none; d=google.com; s=arc-20160816; b=YDDcqJdYhaywGzO5+/jHl/HFrwzdObDSjNj+tVs0iq7rajUSglKuiWlNnNEs0BHqIs qXVG7YtaMItXTFONVpIjXYUyVS2mpjVqPi41SFbzkiQ0ZqUUjJXvnnA9iKl5awFR7e5Q XNthR9vAbbX2DY4R9SG/hdWIpdvpXvwjDzKwOvH8mGkZvcNqeyE316cc8J+1qUBDlwU5 TdsDew9RCOAAWtkIkMVbEgk/uuykrXlbRvXvdXpZbACvmhn4sQwLq3X6DjZw7Irs+zUg kQqSsOUnBlFEkmFHbNXKaPTOCkKtaewoOkPSOBMsR2ZbK+Oed7cNc73JGT6OZBVBNMUw F7qg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=JICveRMgrKIohjs6LWwa5w2kG83O8Uzo7FGURzBNI/k=; b=Ys2NhYn8OmosWrv6igiLDvpF1pQ9YFQQx2qT/SkdsvKeENpQvu9OX7h8OsRz1Arrvi xIFWe5e1X/r0UlUzAxT/xu5GB3QnmVyIR13JbkslYQAKzUybdhQaRJWEA8wIOD3EEejQ KK3lPmlTMQPSS6mBZ5V5H4bseiGFz/N2rAySUWZ80c4x9n7+HO8a/3gdsCuEjdfkLcN/ 48YbDJUTprScgOPZIxPiiXg7ahsZTX1X1Heqq3o3DOp54mX768q0mLxd3lseZkOYgP9p lmjDo70i1nlEyihiHHY5vUUMR0fgqrn2JZIhyYZNphiLAUlmZ0qUGrLNs5zeCPY2msZg AKOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="ShM/p42g"; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ho11-20020a1709070e8b00b00730bc26e631si201189ejc.739.2022.08.25.15.08.35; Thu, 25 Aug 2022 15:09:02 -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=@redhat.com header.s=mimecast20190719 header.b="ShM/p42g"; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234827AbiHYVfL (ORCPT + 99 others); Thu, 25 Aug 2022 17:35:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229986AbiHYVfJ (ORCPT ); Thu, 25 Aug 2022 17:35:09 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91E83A61E4 for ; Thu, 25 Aug 2022 14:35:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1661463307; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=JICveRMgrKIohjs6LWwa5w2kG83O8Uzo7FGURzBNI/k=; b=ShM/p42gMksHH+nGmxmbtA/hmxqubeZPARTv5PbW0VM6Bg99XQIG8E5+8KipVNXHzNb6yx 02tjh20SGwfApgkzEXiKKshmz62GdAn2vP+8aimTLWBu6oUMnwckKBuhCzmqyi5oUMcJC2 1myCYxZ8pkE3uY4QaJFT5lOOQbfPesE= Received: from mail-qt1-f200.google.com (mail-qt1-f200.google.com [209.85.160.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-42-qv_SeIBfPjiM9GTWpPEm7w-1; Thu, 25 Aug 2022 17:35:06 -0400 X-MC-Unique: qv_SeIBfPjiM9GTWpPEm7w-1 Received: by mail-qt1-f200.google.com with SMTP id b10-20020a05622a020a00b003437e336ca7so16156484qtx.16 for ; Thu, 25 Aug 2022 14:35:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc; bh=JICveRMgrKIohjs6LWwa5w2kG83O8Uzo7FGURzBNI/k=; b=vkay+Le6pVNSHsbQ6qGTr6RYVQSmSHVgnfVvdt+ExRWZ27F6qAZ5L3ELpJeXT5Bpau mulUgsYlhPAQ6zYU7YUwDLB6Piraiad2njuowxd2AZ1fUcCBxCFCinSqD4bbWxKVWNsW q0gHNek2NBcLIpiJd78tFpSQoWB3aicpYYkzv2K7JNnWU8W72HC/PVLfb1QL6rZAyCPn hCqCJt2Ec3HZOFpChkj/gqkDvaFXI2Qcd0lYuRzbO4bzz1jaKXJmDAWGeIcZH9MENC8l PTBJHs/jDLuXHohReZcBhyHiQ1GZsCnR1rM5S3CfIbgYJlsMZafRKFT6FB1tmwcL7TWV 9LBA== X-Gm-Message-State: ACgBeo1HM0BOBhFQLNPmDsdY81DLDHvekc2CDiNfXOGdUSvEQGdzNURE 4o2ET569/WfUjCJkB7IObgmcXIUPTW14ixdQNhmVoLalTEGlDxX05aHCIrctRhWWGffsek9K7eZ LjFIh3l4/7xi3/UpQSJSKYpRe X-Received: by 2002:a05:622a:2d1:b0:343:6193:3348 with SMTP id a17-20020a05622a02d100b0034361933348mr5387438qtx.633.1661463306176; Thu, 25 Aug 2022 14:35:06 -0700 (PDT) X-Received: by 2002:a05:622a:2d1:b0:343:6193:3348 with SMTP id a17-20020a05622a02d100b0034361933348mr5387423qtx.633.1661463305953; Thu, 25 Aug 2022 14:35:05 -0700 (PDT) Received: from halaneylaptop ([2600:1700:1ff0:d0e0::48]) by smtp.gmail.com with ESMTPSA id h15-20020a05622a170f00b003436103df40sm77411qtk.8.2022.08.25.14.35.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Aug 2022 14:35:05 -0700 (PDT) Date: Thu, 25 Aug 2022 16:35:03 -0500 From: Andrew Halaney To: Douglas Anderson Cc: Bjorn Andersson , Mark Brown , Andy Gross , Johan Hovold , Konrad Dybcio , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/7] arm64: dts: qcom: sc8280xp-crd: Specify which LDO modes are allowed Message-ID: <20220825213503.2appw3rguwnnuxw6@halaneylaptop> References: <20220825164205.4060647-1-dianders@chromium.org> <20220825094155.3.Ie7d2c50d2b42ef2d364f3a0c8e300e5ce1875b79@changeid> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220825094155.3.Ie7d2c50d2b42ef2d364f3a0c8e300e5ce1875b79@changeid> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE,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 Thu, Aug 25, 2022 at 09:42:01AM -0700, 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: ccd3517faf18 ("arm64: dts: qcom: sc8280xp: Add reference device") > Signed-off-by: Douglas Anderson Reviewed-by: Andrew Halaney > --- > > arch/arm64/boot/dts/qcom/sc8280xp-crd.dts | 33 +++++++++++++++++++++++ > 1 file changed, 33 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sc8280xp-crd.dts b/arch/arm64/boot/dts/qcom/sc8280xp-crd.dts > index d6f272c71a47..f64d58e371bd 100644 > --- a/arch/arm64/boot/dts/qcom/sc8280xp-crd.dts > +++ b/arch/arm64/boot/dts/qcom/sc8280xp-crd.dts > @@ -88,6 +88,9 @@ vreg_l3b: ldo3 { > regulator-max-microvolt = <1200000>; > regulator-initial-mode = ; > regulator-allow-set-load; > + regulator-allowed-modes = > + + RPMH_REGULATOR_MODE_HPM>; > regulator-boot-on; > regulator-always-on; > }; > @@ -98,6 +101,9 @@ vreg_l4b: ldo4 { > regulator-max-microvolt = <912000>; > regulator-initial-mode = ; > regulator-allow-set-load; > + regulator-allowed-modes = > + + RPMH_REGULATOR_MODE_HPM>; > }; > > vreg_l6b: ldo6 { > @@ -106,6 +112,9 @@ vreg_l6b: ldo6 { > regulator-max-microvolt = <880000>; > regulator-initial-mode = ; > regulator-allow-set-load; > + regulator-allowed-modes = > + + RPMH_REGULATOR_MODE_HPM>; > regulator-boot-on; > }; > }; > @@ -120,6 +129,9 @@ vreg_l1c: ldo1 { > regulator-max-microvolt = <1800000>; > regulator-initial-mode = ; > regulator-allow-set-load; > + regulator-allowed-modes = > + + RPMH_REGULATOR_MODE_HPM>; > }; > > vreg_l7c: ldo7 { > @@ -128,6 +140,9 @@ vreg_l7c: ldo7 { > regulator-max-microvolt = <2504000>; > regulator-initial-mode = ; > regulator-allow-set-load; > + regulator-allowed-modes = > + + RPMH_REGULATOR_MODE_HPM>; > }; > > vreg_l13c: ldo13 { > @@ -136,6 +151,9 @@ vreg_l13c: ldo13 { > regulator-max-microvolt = <3072000>; > regulator-initial-mode = ; > regulator-allow-set-load; > + regulator-allowed-modes = > + + RPMH_REGULATOR_MODE_HPM>; > }; > }; > > @@ -151,6 +169,9 @@ vreg_l3d: ldo3 { > regulator-max-microvolt = <1200000>; > regulator-initial-mode = ; > regulator-allow-set-load; > + regulator-allowed-modes = > + + RPMH_REGULATOR_MODE_HPM>; > }; > > vreg_l4d: ldo4 { > @@ -159,6 +180,9 @@ vreg_l4d: ldo4 { > regulator-max-microvolt = <1200000>; > regulator-initial-mode = ; > regulator-allow-set-load; > + regulator-allowed-modes = > + + RPMH_REGULATOR_MODE_HPM>; > }; > > vreg_l6d: ldo6 { > @@ -167,6 +191,9 @@ vreg_l6d: ldo6 { > regulator-max-microvolt = <880000>; > regulator-initial-mode = ; > regulator-allow-set-load; > + regulator-allowed-modes = > + + RPMH_REGULATOR_MODE_HPM>; > }; > > vreg_l7d: ldo7 { > @@ -175,6 +202,9 @@ vreg_l7d: ldo7 { > regulator-max-microvolt = <3072000>; > regulator-initial-mode = ; > regulator-allow-set-load; > + regulator-allowed-modes = > + + RPMH_REGULATOR_MODE_HPM>; > }; > > vreg_l9d: ldo9 { > @@ -183,6 +213,9 @@ vreg_l9d: ldo9 { > regulator-max-microvolt = <912000>; > regulator-initial-mode = ; > regulator-allow-set-load; > + regulator-allowed-modes = > + + RPMH_REGULATOR_MODE_HPM>; > }; > }; > }; > -- > 2.37.2.672.g94769d06f0-goog >