Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp3346568rwe; Mon, 29 Aug 2022 09:53:25 -0700 (PDT) X-Google-Smtp-Source: AA6agR5dXHTD+uL6BVo5Ms/05C48ZZFH7hzBp3ZTZRLF1odyV5FvfOh25cRS4mBHnSolqXi6Jb7C X-Received: by 2002:a17:90a:94c7:b0:1fd:81a5:48fd with SMTP id j7-20020a17090a94c700b001fd81a548fdmr13475066pjw.97.1661792005451; Mon, 29 Aug 2022 09:53:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661792005; cv=none; d=google.com; s=arc-20160816; b=DreVUk1yIBQUYOTEfVZIjry5WYrDrnmLWuAvAeYxsUY94toBPoB7qBcuSB+fOrKy3Q cPQkutiJD5ZOpxvIXpkVGqgGaLcdtTsRwW88kxwPh/EFYHTNsgEgTG6C3VYRVRHoZ6dI i1JDTy3HjsFmsxI8OcKWQPXBoqjSwyYK47jLAuui4votJCrlyKWVCK95BkcBAaONz84S wrm4i2pmKLKHcTzlkTmAlYDtYknMYLUFm+BbgmdzkyQJYjQY4meyZfNpf7QzwFHfcif3 tH7Ttvdn2HhE1cYfDCFfpnfPUy/7ocDbJlSCZUvb8zZTS9eo122EPX5VLO9DX/SPwKFA xhiA== 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=woneQpwMOMgIO7e0hCdrCZoj4JrbV7vkhMtZpv1/ep8=; b=ame1P5XcWyVd50kCNZuj769BxLp3wSiqpC0lnKgZBL+Q8Tnd1WFEkinCOpdWqxwDKl 2RC6yzl9WTsdHUIxv+NBDs1fTUEhCSc3lf+s87VXz3qnkMD6FZHQWgvcZ6MWv9E8FT1P RNRhnke0LTNZZZe1fKCuZ2EFXCEJr74RyTmNI0/2jbaC7XJilXzhf+AOScPlVlhZ/1f4 cM+XGrJ6UOclgStTga4ootwro+1oXlXAGdgBJT0psSr3szg+FEwQzKIFPGXXZR/G1cHw wnVufz31yFKl7vMRuhavG7e8Y5kAH95ZEiVFCXdEiQSrv2HKj2b9WPiQGvD2S+8gl+uw olvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=kmSDFY9n; 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 l8-20020a170903244800b0016ee7f02a0fsi7220227pls.397.2022.08.29.09.53.12; Mon, 29 Aug 2022 09:53:25 -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=kmSDFY9n; 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 S229587AbiH2QvJ (ORCPT + 99 others); Mon, 29 Aug 2022 12:51:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41326 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230134AbiH2Qup (ORCPT ); Mon, 29 Aug 2022 12:50:45 -0400 Received: from mail-pf1-x430.google.com (mail-pf1-x430.google.com [IPv6:2607:f8b0:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 978877AC0D for ; Mon, 29 Aug 2022 09:50:26 -0700 (PDT) Received: by mail-pf1-x430.google.com with SMTP id y141so8759494pfb.7 for ; Mon, 29 Aug 2022 09:50:25 -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=woneQpwMOMgIO7e0hCdrCZoj4JrbV7vkhMtZpv1/ep8=; b=kmSDFY9nq5Z5Qb5YraZhZdKCocvVR+dWWSurViHAeY24Ijr3xQyq61FPn2WNDBleHT iiG4iERxcptn2BsoT3XiLjGtMjivx/5G9UueB3ywrsSXZxfv5ftP1eSjabPgj4NKMXrh qt8vfKX4rym2utpsMZdYtSymG8SUSMgUAjjAw= 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=woneQpwMOMgIO7e0hCdrCZoj4JrbV7vkhMtZpv1/ep8=; b=cjr6GXw4iLJt0+wJldMdPyLBiuj7v9HMZFeMMyqd6J1jgjWElObC7UQPoWqGmdhHua tGSRdfl1hD2EFD8KFgsHitsxCWsMCJoZUoSPacZYSfwbET+Fa5KF+9TLVq5ylr60YkMI z6Cbt11nRp4y2aRMQ9zQiJg2u+mEU0LyPewrrdObObMvOLPDHyriCpDWXaWQ9tRuwb4w Y+2qgpaAF2UOhZznI22aYysyu++aRIi1YpHjcKJhxsh0s7F6fbDw8G2Ee6WunJn1Nu9y t4dFPJO7XATfGksrXRC8uNRYi8UPBphGAiZrvR+rOSABw/Wxa3gr9qgBRJCp4GY1RZgx D+lw== X-Gm-Message-State: ACgBeo0v7Kx6GxO0IePSn0Jg5KKY+G69PH//vgGQexBl7WMSb9CQ6EHR +kAxgENIyRTAyOg1KbyZ/F+kQw== X-Received: by 2002:a63:6a46:0:b0:41a:3e67:67cd with SMTP id f67-20020a636a46000000b0041a3e6767cdmr14844814pgc.94.1661791825380; Mon, 29 Aug 2022 09:50:25 -0700 (PDT) Received: from tictac2.mtv.corp.google.com ([2620:15c:202:201:3a97:5017:7e33:8964]) by smtp.gmail.com with ESMTPSA id l1-20020a170902f68100b001729db603bcsm7864238plg.126.2022.08.29.09.50.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Aug 2022 09:50:24 -0700 (PDT) From: Douglas Anderson To: Bjorn Andersson Cc: Johan Hovold , Andrew Halaney , Mark Brown , Douglas Anderson , Vinod Koul , Konrad Dybcio , Andy Gross , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 6/6] arm64: dts: qcom: sm8350-hdk: Specify which LDO modes are allowed Date: Mon, 29 Aug 2022 09:49:52 -0700 Message-Id: <20220829094903.v2.6.I6799be85cf36d3b494f803cba767a569080624f5@changeid> X-Mailer: git-send-email 2.37.2.672.g94769d06f0-goog In-Reply-To: <20220829164952.2672848-1-dianders@chromium.org> References: <20220829164952.2672848-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 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 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: Andrew Halaney Reviewed-by: Vinod Koul Reviewed-by: Konrad Dybcio --- (no changes since v1) 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 = + ; }; 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 = + ; }; 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 = + ; }; 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 = + ; }; }; -- 2.37.2.672.g94769d06f0-goog