Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp826930rwe; Thu, 25 Aug 2022 09:45:55 -0700 (PDT) X-Google-Smtp-Source: AA6agR69yZspduM9LVIZVED/0qqvKoWq5TESL+emlMlmVrRZIX0VbOZcbWz4jbRpHJyZZXT58XTM X-Received: by 2002:a17:906:ef8f:b0:731:4a01:7781 with SMTP id ze15-20020a170906ef8f00b007314a017781mr3212842ejb.268.1661445955212; Thu, 25 Aug 2022 09:45:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661445955; cv=none; d=google.com; s=arc-20160816; b=gVl5GsgWgKmF6O0/2fp+fpd4l7uW9WMjonL9gTe8gcy691N3ZlhGmVskouRaLNA+0E 0Y8vXTLLFwvkUZ7x/vrnI1EWjudFlFWnuP7n884V5G1Yqa0NPaqLd2z7ElLEBNUN1sGn aYZVE2ldtZmgLMqEArN9iUpwxXTeMsbZp8PvF56gSxmY86GFPOcTlyLYuxiF3pgnT0KW tU6pXhjDMajzYsEOr6YdembEEZf9RrUf5r79iGB9QIRt5G6ormt2pGrLEOSAO88mTrLz GmgGWq8EcQoHnBkE5v7r6CrFvtJ+BIGjEUP0R8g+ZBpErriCGvpalEwig5NnxIca1OLU cE8g== 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=ijJ2pkBNHuBjJLx62XRRrMsVukQZ0pijiSuWRTmAOcg=; b=Kf0e8xw6w6x/RPYPDIROnYvGCKhCxKxHedOjrPkFM0d/9vrnrlaAD7SEvGplRC7318 rn6xMeWicgsK49qFywCIkzG+lkZXRBZIe0ZidhJndQmOR1HR9b98WxtPn7n2UhbyutlU F3ChppTvwh3mqFhLQ58kcFa2OD9grjYamBWEzzNqPgMkmVKRqvFYWwpWTqKjMAodT3Kt F00nQDvk+CieQd5PVJoxUKnD6vCRLFwOLU69ip/TtGXMxhfoD0sS5xMDbsbZpDZ2jP+4 92LuGzgfrDTNuPIIU9OHTdSNtUWYcrisajPbXFjl6Xr2p78QW14HgUGBR/0NOii3o50U be7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=FpUumiYM; 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 dz14-20020a0564021d4e00b00445eb9dfb3dsi7548373edb.353.2022.08.25.09.45.28; Thu, 25 Aug 2022 09:45:55 -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=FpUumiYM; 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 S243139AbiHYQn3 (ORCPT + 99 others); Thu, 25 Aug 2022 12:43:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243182AbiHYQnA (ORCPT ); Thu, 25 Aug 2022 12:43:00 -0400 Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 97212BB917 for ; Thu, 25 Aug 2022 09:42:33 -0700 (PDT) Received: by mail-pl1-x62c.google.com with SMTP id x23so19001347pll.7 for ; Thu, 25 Aug 2022 09:42:33 -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=ijJ2pkBNHuBjJLx62XRRrMsVukQZ0pijiSuWRTmAOcg=; b=FpUumiYM8PyUzChNl+dISlDVe7Ai2xqr2SdiKrR7DU58rUk32wTu1pmwoOOTmreBFa T0ew/JfVd1fq4tsP+C1diInxwaM4HSRNiRoHIMWkVrQ3/2C4HwULW7jDpKbMJIuEclk9 Z9beSIC5CFYLM911N+vPTLGPsJD/K/tX79q1w= 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=ijJ2pkBNHuBjJLx62XRRrMsVukQZ0pijiSuWRTmAOcg=; b=D3bQ+rzOxdwYYTOptdB9Ya1+MtV/xBCUulqnRJl2h4FZcGr+6+FGI7r7bvmhKCbqAo vPEgS4RmPZxx3Dnv8GOKJCOYD9m9I0tEAT89oV0VObSeSBFLeQbVc3UPyvTJIstSCFz+ WpLAjRPhxEbTACF+0pH0GFIceOYWT9FL1xJeUmU3gAWJjsIZGEi1qaVjv5DZQXMmw+6R MlWkC1xZ5vOW0PSTNoRKOZGUYOFV5ZdCelmgjfLGxg/jU/yZGk35y/uRS9apaB1RpGtK cvKQUgQ5lsNgc9uHWpS9IUAJML2s+QYyMdBFgTvk6xFjYJvPGfsClPfgFAZlmckLCafM ogNg== X-Gm-Message-State: ACgBeo0XuBXZOhWAtKWf8cLZCRrN+ec29KDNlwRg4qM0yrA6IWT1uPCg damyth55RixC+S7oHmDgJxZtOA== X-Received: by 2002:a17:902:ea0e:b0:16f:11bf:efe5 with SMTP id s14-20020a170902ea0e00b0016f11bfefe5mr4648992plg.57.1661445752765; Thu, 25 Aug 2022 09:42:32 -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.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Aug 2022 09:42:32 -0700 (PDT) From: Douglas Anderson To: Bjorn Andersson Cc: Andrew Halaney , Mark Brown , Douglas Anderson , Andy Gross , Bhupesh Sharma , Konrad Dybcio , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/7] arm64: dts: qcom: sa8155p-adp: Specify which LDO modes are allowed Date: Thu, 25 Aug 2022 09:41:59 -0700 Message-Id: <20220825094155.1.Id59c32b560c4662d8b3697de2bd494d08d654806@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: 5b85e8f2225c ("arm64: dts: qcom: sa8155p-adp: Add base dts file") Signed-off-by: Douglas Anderson --- arch/arm64/boot/dts/qcom/sa8155p-adp.dts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sa8155p-adp.dts b/arch/arm64/boot/dts/qcom/sa8155p-adp.dts index ba547ca9fc6b..ddb9cb182152 100644 --- a/arch/arm64/boot/dts/qcom/sa8155p-adp.dts +++ b/arch/arm64/boot/dts/qcom/sa8155p-adp.dts @@ -43,7 +43,6 @@ vreg_s4a_1p8: smps4 { regulator-always-on; regulator-boot-on; - regulator-allow-set-load; vin-supply = <&vreg_3p3>; }; @@ -137,6 +136,9 @@ vreg_l5a_0p88: ldo5 { regulator-max-microvolt = <880000>; regulator-initial-mode = ; regulator-allow-set-load; + regulator-allowed-modes = + ; }; vreg_l7a_1p8: ldo7 { @@ -152,6 +154,9 @@ vreg_l10a_2p96: ldo10 { regulator-max-microvolt = <2960000>; regulator-initial-mode = ; regulator-allow-set-load; + regulator-allowed-modes = + ; }; vreg_l11a_0p8: ldo11 { @@ -258,6 +263,9 @@ vreg_l5c_1p2: ldo5 { regulator-max-microvolt = <1200000>; regulator-initial-mode = ; regulator-allow-set-load; + regulator-allowed-modes = + ; }; vreg_l7c_1p8: ldo7 { @@ -273,6 +281,9 @@ vreg_l8c_1p2: ldo8 { regulator-max-microvolt = <1200000>; regulator-initial-mode = ; regulator-allow-set-load; + regulator-allowed-modes = + ; }; vreg_l10c_3p3: ldo10 { -- 2.37.2.672.g94769d06f0-goog