Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp838200rwe; Thu, 25 Aug 2022 09:59:59 -0700 (PDT) X-Google-Smtp-Source: AA6agR5bz+RM5KsxfyIGT4DCAndTQ0mBPAb0xeCBq7br5jXwf9FCxwXcnr5Dtdc2J7XOm0eJHY/6 X-Received: by 2002:a05:6402:31e7:b0:447:d664:83eb with SMTP id dy7-20020a05640231e700b00447d66483ebmr492849edb.276.1661446799425; Thu, 25 Aug 2022 09:59:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661446799; cv=none; d=google.com; s=arc-20160816; b=Cr5mGYg3Vhxh0xH3mO9g/gFRuDMCPFjAxyW5xBnX9PAqZ8uU/0PSBedeE2QvLqsszR I9/3gvfzLWRZpSo02pgX27xY7ml24+4dC1RCCyi0piPnmGQhMlgF1T29Kezd/p8UXriy Piifpjot8X70C3okrPHOSy16CB0jSGZHWdTOFHZt6ENpYP/dNbifHSKFkJKVYsGYDPR5 SgZ1yAIEjEZlSUx4moVUASDcPdEmq5FiR+vIOCSmfako8aEI5yykUOHbD55Pb7iDvgXl UQ6nrbqNcvfSWX8WENT1bTzr8lLN7gqeoFZ/GWxAi4lw0g3sf5W0geq8V4g9iAIKrEOj g8Jw== 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=0DBKrfU7DKgiI1KvvX+nAyw8m6/xO7rbgXWQBFaRlQ0=; b=t8RGts7XFZAQe5qSAfr+Zkd9Tp+klAxHpmghaMnFDjkx8AWG+Yz3FyVOzuNOyUTSvU yhoAZXNXMWYH9zLhNkE3YUXuXB4iI4f6jPAUfMxshC1VYRSdp44Askx/eR2dd2WzQ9Jm GIovBC48k7n3jIwajdrd2VJP3WFrjv997uoOgFd8TRic4hBSans4hb9JoyDEG7EBxcn3 ZijQXx6VT+1zQqe8c9Kf8XF8cuuByB49he5XQhcOVTb6w4NX2u0UZRlg1gFNiqiOCcvD IiKeMLFMNroyuxp553f6m3oKLI3rjsDA8SbICNfxDr2Jzxb/9LAzukeRyap/8C8AfI/z crww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Szgb9Tcj; 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 h16-20020a170906591000b0073cf33411e5si3684197ejq.401.2022.08.25.09.59.32; Thu, 25 Aug 2022 09:59:59 -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=Szgb9Tcj; 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 S243249AbiHYQoA (ORCPT + 99 others); Thu, 25 Aug 2022 12:44:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243244AbiHYQnS (ORCPT ); Thu, 25 Aug 2022 12:43:18 -0400 Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69031BC101 for ; Thu, 25 Aug 2022 09:42:43 -0700 (PDT) Received: by mail-pj1-x1035.google.com with SMTP id hf17so2260643pjb.3 for ; Thu, 25 Aug 2022 09:42:43 -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=0DBKrfU7DKgiI1KvvX+nAyw8m6/xO7rbgXWQBFaRlQ0=; b=Szgb9TcjMgWUBloz/Bd70+z+Ca4DwaJwdHfO79Q4ccB7TeuASUY6ak87QH11edK4Ar ZhDZbV9bFwyl+XMz2l9Thhddo/w3Bg6h/HLOPzZ8JGBeK1RmCoB7HbjSgexqN/rI1uVS uBDsyK14RegRz4UTjO/Jd1zv1isEVpQUNOkd0= 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=0DBKrfU7DKgiI1KvvX+nAyw8m6/xO7rbgXWQBFaRlQ0=; b=7iVOhsHrAVxvI8Kc4NjvPjvEB9mr5x4AN0avOyEswoYvPSc2IZ0P+MehOGPyJSFyK5 peaAWwKvq41YxRmfHAkuS5oDMs1BMjltVA2XijBmLqwo9krLYQBXJ0ULXWUHhq1ybiDu 4QrbX59hQoIItVjYTbIafznbr2tGETabrKpptbt81KnpTDJR6t2tQFr4LnoRqYXsv5ZD JUrg6dw+d5LF2XcDmaoxfL0MF57It96k6pIfdPdW/UeOx5hnH69UUmpZwLZ043HKgdY6 R12nce4qLFRT9hRZ1u8k7ogSPA9n+ftTJHRHA7u5xumMtjie1/6y2RMETQJwfLoRGxim s+dw== X-Gm-Message-State: ACgBeo0tM7HuswbyNyWGCoqoSItfClOcxy36LDwjTXc84dHRwQ4+tiAY pV+XaPn3ZvXOSuqgNb+UvfmDyQ== X-Received: by 2002:a17:90b:3c82:b0:1fb:8ef:5ddb with SMTP id pv2-20020a17090b3c8200b001fb08ef5ddbmr14404195pjb.11.1661445762064; Thu, 25 Aug 2022 09:42:42 -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.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Aug 2022 09:42:41 -0700 (PDT) From: Douglas Anderson To: Bjorn Andersson Cc: Andrew Halaney , Mark Brown , Douglas Anderson , Andy Gross , Konrad Dybcio , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 6/7] arm64: dts: qcom: sm8250-xperia-edo: Specify which LDO modes are allowed Date: Thu, 25 Aug 2022 09:42:04 -0700 Message-Id: <20220825094155.6.Ie446d5183d8b1e9ec4e32228ca300e604e3315eb@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: 69cdb97ef652 ("arm64: dts: qcom: sm8250: Add support for SONY Xperia 1 II / 5 II (Edo platform)") Signed-off-by: Douglas Anderson --- arch/arm64/boot/dts/qcom/sm8250-sony-xperia-edo.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8250-sony-xperia-edo.dtsi b/arch/arm64/boot/dts/qcom/sm8250-sony-xperia-edo.dtsi index 549e0a2aa9fe..5428aab3058d 100644 --- a/arch/arm64/boot/dts/qcom/sm8250-sony-xperia-edo.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250-sony-xperia-edo.dtsi @@ -317,6 +317,9 @@ vreg_l6c_2p9: ldo6 { regulator-max-microvolt = <2960000>; regulator-initial-mode = ; regulator-allow-set-load; + regulator-allowed-modes = + ; }; vreg_l7c_2p85: ldo7 { @@ -339,6 +342,9 @@ vreg_l9c_2p9: ldo9 { regulator-max-microvolt = <2960000>; regulator-initial-mode = ; regulator-allow-set-load; + regulator-allowed-modes = + ; }; vreg_l10c_3p3: ldo10 { -- 2.37.2.672.g94769d06f0-goog