Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp844287rwe; Thu, 25 Aug 2022 10:04:47 -0700 (PDT) X-Google-Smtp-Source: AA6agR61D7tWpisFy+PK18hcHD15zauBjAcZ5wS97E2+VjLpc5ckTzT9Gq8u7E0Nfl19rwHz9agH X-Received: by 2002:a17:902:d50f:b0:172:d4f4:91b8 with SMTP id b15-20020a170902d50f00b00172d4f491b8mr4566696plg.17.1661447086765; Thu, 25 Aug 2022 10:04:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661447086; cv=none; d=google.com; s=arc-20160816; b=WFPR4ggvC8TQRJGAjvS9TLxK2ffXf+QbvQMsUePNEQEahPoxS/jWFi/fPute32HA2b LDDXwOcHyvwC7nN/rNQuqGYxG2tJOsN3F/IipKf9pRo8CfTnbQesySccEK4aUxFY/r/J 4pXQSUQ+AWvmfZaczKMcrpiyqFxghOmslX7T2M9UOko6p7n9yIegzxWY3nPxveTatM0l 8ppha+EShIXT7qc5dq6JkNhlySNr0eMJl6F2UFdikc+fY4X1j5USY3TuFJ5wfhhpVz73 LCeDs3CM9BUEgsN5KvYgX/ZBrqe/KxxEqA6+OZ0KWA71eUIx7laLJJD6mYZvlNVOBfjE gK4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=d4UI1F2bYQXxMhQ+dzwb24OzDE0AWn6jHagvx1unuTc=; b=LRjNNgknBv78MglOowBXArZZ3q9txxk16rmZy487w5mX1TR3fUnoDgZY+UA40FObmS MtzxMI7hsSrtmXplnZtx5nNSKd++PbCPjOC+/PNFysyX5wZ9KO+jktVfP2qoKQ6XZ3kz 93NIp36DSpf1+xRaxdu8TWcXXV6q5HKuYDsBUEraqjswBNT3/eo++ILJA29nPctC/Px3 4MVSFQKCpx5Autt2KHjkd6p2ke8JZxOF5RmWdW6TOm4F4/nAO3w/q+3L2Bg0h00M3Tmx tZbkiS9IdQpo3D59cSNP+n/1qyI+J7+Q53uNb2liQ7SwkEtkkJxDYfZgBqxT1aSyWB+h OS9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=j2TmCgWo; 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=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y9-20020a17090322c900b00172f12565c5si10558719plg.228.2022.08.25.10.04.34; Thu, 25 Aug 2022 10:04:46 -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=@chromium.org header.s=google header.b=j2TmCgWo; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243065AbiHYQnn (ORCPT + 99 others); Thu, 25 Aug 2022 12:43:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243069AbiHYQnL (ORCPT ); Thu, 25 Aug 2022 12:43:11 -0400 Received: from mail-pg1-x533.google.com (mail-pg1-x533.google.com [IPv6:2607:f8b0:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B771BBA54 for ; Thu, 25 Aug 2022 09:42:39 -0700 (PDT) Received: by mail-pg1-x533.google.com with SMTP id s206so18385441pgs.3 for ; Thu, 25 Aug 2022 09:42:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=d4UI1F2bYQXxMhQ+dzwb24OzDE0AWn6jHagvx1unuTc=; b=j2TmCgWoyZB+Cpo//y2pL0iJWB6+3zKzqNBOT20pGN+dgBTtvknEH0+UTM8TAdCzVh dysJKTPjXyAB3UBpzQ2T3oOwomVdTHtN+4gQjAY5UA/sRo5XCxJETvStIXM8Incpygzr R7nZ1AFZAw2wD44wIiNTkupLmmp6c+QtnnQ4Y= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=d4UI1F2bYQXxMhQ+dzwb24OzDE0AWn6jHagvx1unuTc=; b=f4uZoOHfWX/pr8OP6KG5LFD9BmSwFiLf/kbOrWTHxbOEI+n0YI9q0NmrH4g+9nIr4v yGhqjhHNnb8Z7jqgQ37Ctrl2emJtXX9BBz5NynSGCj1P+MicATF4JM1XjkvPsIA+iOmM mtjU0UNglPp4070XtHtID84QBwqlPCPs+v3/Fv7WMt9CgwyuRuFUfuCQ7zDWXAS4i4Rf Ynzre7bf37n125SFDYzk92Y+l+nZWwufeX8z4W5haQsBhR9NAfOxZ2QnfH/yms/bWOCz 0nCO2i4mnwV5nY+04RzpDTwJ1sKQOQKp/U1b+XFDr6HPqh6w+M1Dlh8kMfckHu1egkn5 xehg== X-Gm-Message-State: ACgBeo2yAr76BFnozM/dXk68ejDaAYPEb0BLZ5G0+s1EBpFJ8L1FKz0b ieJ2DAJKXBmzNOfU4FMdLrhUdQ== X-Received: by 2002:a65:6e82:0:b0:41a:9b73:f0e6 with SMTP id bm2-20020a656e82000000b0041a9b73f0e6mr4049513pgb.371.1661445758192; Thu, 25 Aug 2022 09:42:38 -0700 (PDT) Received: from tictac2.mtv.corp.google.com ([2620:15c:202:201:b7f2:d739:e847:6e53]) by smtp.gmail.com with ESMTPSA id y13-20020a17090a154d00b001f2ef3c7956sm3775799pja.25.2022.08.25.09.42.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Aug 2022 09:42:37 -0700 (PDT) From: Douglas Anderson To: Bjorn Andersson Cc: Andrew Halaney , Mark Brown , Douglas Anderson , 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: [PATCH 4/7] arm64: dts: qcom: sc8280xp-thinkpad-x13s: Specify which LDO modes are allowed Date: Thu, 25 Aug 2022 09:42:02 -0700 Message-Id: <20220825094155.4.I897770a7ac41f8dc3e37dfed12102bacdbf9da56@changeid> X-Mailer: git-send-email 2.37.2.672.g94769d06f0-goog In-Reply-To: <20220825164205.4060647-1-dianders@chromium.org> References: <20220825164205.4060647-1-dianders@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 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: 32c231385ed4 ("arm64: dts: qcom: sc8280xp: add Lenovo Thinkpad X13s devicetree") Signed-off-by: Douglas Anderson --- .../qcom/sc8280xp-lenovo-thinkpad-x13s.dts | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts b/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts index 16c6e4d920bb..0c2534b4ec24 100644 --- a/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts +++ b/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts @@ -80,6 +80,9 @@ vreg_l3b: ldo3 { regulator-max-microvolt = <1200000>; regulator-initial-mode = ; regulator-allow-set-load; + regulator-allowed-modes = + ; regulator-boot-on; }; @@ -89,6 +92,9 @@ vreg_l4b: ldo4 { regulator-max-microvolt = <912000>; regulator-initial-mode = ; regulator-allow-set-load; + regulator-allowed-modes = + ; }; vreg_l6b: ldo6 { @@ -97,6 +103,9 @@ vreg_l6b: ldo6 { regulator-max-microvolt = <880000>; regulator-initial-mode = ; regulator-allow-set-load; + regulator-allowed-modes = + ; regulator-boot-on; regulator-always-on; // FIXME: VDD_A_EDP_0_0P9 }; @@ -112,6 +121,9 @@ vreg_l1c: ldo1 { regulator-max-microvolt = <1800000>; regulator-initial-mode = ; regulator-allow-set-load; + regulator-allowed-modes = + ; }; vreg_l12c: ldo12 { @@ -120,6 +132,9 @@ vreg_l12c: ldo12 { regulator-max-microvolt = <1800000>; regulator-initial-mode = ; regulator-allow-set-load; + regulator-allowed-modes = + ; }; vreg_l13c: ldo13 { @@ -128,6 +143,9 @@ vreg_l13c: ldo13 { regulator-max-microvolt = <3072000>; regulator-initial-mode = ; regulator-allow-set-load; + regulator-allowed-modes = + ; }; }; @@ -143,6 +161,9 @@ vreg_l3d: ldo3 { regulator-max-microvolt = <1200000>; regulator-initial-mode = ; regulator-allow-set-load; + regulator-allowed-modes = + ; }; vreg_l4d: ldo4 { @@ -151,6 +172,9 @@ vreg_l4d: ldo4 { regulator-max-microvolt = <1200000>; regulator-initial-mode = ; regulator-allow-set-load; + regulator-allowed-modes = + ; }; vreg_l7d: ldo7 { @@ -159,6 +183,9 @@ vreg_l7d: ldo7 { regulator-max-microvolt = <3072000>; regulator-initial-mode = ; regulator-allow-set-load; + regulator-allowed-modes = + ; }; vreg_l9d: ldo9 { @@ -167,6 +194,9 @@ vreg_l9d: ldo9 { regulator-max-microvolt = <912000>; regulator-initial-mode = ; regulator-allow-set-load; + regulator-allowed-modes = + ; }; }; }; -- 2.37.2.672.g94769d06f0-goog