Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp3613831pxb; Mon, 21 Feb 2022 01:51:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJzG44mE5Anf+e3nTf8fecgTTW7C25bjAAKN+W8e/Y6uTXgWAKg4mwtK0hvKMcYQkN+dv8Ql X-Received: by 2002:a05:6a00:1a56:b0:4c6:fe0c:2e27 with SMTP id h22-20020a056a001a5600b004c6fe0c2e27mr19324315pfv.65.1645437095677; Mon, 21 Feb 2022 01:51:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645437095; cv=none; d=google.com; s=arc-20160816; b=VyQpkaEej7XmHFPt+MkH6IfhCfeOMP2mNyrGKY+dgT2c0uNTCLeqFoX2AEUBRtLmr6 8xmPZs8XHFZli7poz1fAcBhS3yU1h42sBVi8ou3xOKo/busIUN681DSFUkW+cWqu7y7C u+dJmPFpddb/RvP2FrbauFJaShbcq6a6JdIIYd0wo5fjgQptp9Nh1pTREQhMMmmCCiUU r5fgMq5zEdSytb+t45hoa9CM8mDBVe6oR+ICA8D3ZXHlWv645moyAS9wFRfC/pwpGatp XTBzlGLOrH1CJTPdGBsIAWVS5N6qapWk4Tf48lh99sSuI3p7xcVTEKvz5PtJod6wcqqo JHxg== 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=DfIw1Wv+u7w+NOoCTiKOxl3ZJblT+FZrCAYfERH4o5E=; b=OQgsVWnef7yiq0ADRvBy/yt09dzXIwObLn1mxOtSCC5K5ureWuKBnpmBCXlMNUQVtj HHoSXMzs7HYZ4kBlVzCifiY1uhaGUNDY3nqImotWobBG9IdgQUe31zRQbtA2lTBIWjWd Q87yu+VPK5oXFgUXmATUIauDzb/SmyWmpva2nU7R9wocLB/+4uDAK9f6wzmeJdhe1VAF Re0WzhviK9OdR23A6fceEs/6SiPy6yWjQZypUxVFMS1VUSpUzV6op9DcyToRj3VEjeN1 MNAL7oZBMkH6kdRld5otGU9d5/HQ8U8jwjuZR5KFN2QPKmVZu54Je2cSV+C6YQQRpA6N yAdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@z3ntu.xyz header.s=z3ntu header.b=JAj3RFFH; 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=fail (p=NONE sp=NONE dis=NONE) header.from=z3ntu.xyz Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s80si17213469pgs.657.2022.02.21.01.51.22; Mon, 21 Feb 2022 01:51:35 -0800 (PST) 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=fail header.i=@z3ntu.xyz header.s=z3ntu header.b=JAj3RFFH; 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=fail (p=NONE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245171AbiBTWbM (ORCPT + 99 others); Sun, 20 Feb 2022 17:31:12 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:52898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244739AbiBTWbG (ORCPT ); Sun, 20 Feb 2022 17:31:06 -0500 Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F5734B874; Sun, 20 Feb 2022 14:30:44 -0800 (PST) Received: from localhost.localdomain (ip-213-127-118-180.ip.prioritytelecom.net [213.127.118.180]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id 052BEC83D6; Sun, 20 Feb 2022 22:30:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=z3ntu.xyz; s=z3ntu; t=1645396243; bh=V2nhvOAtYi4w252RToFuWOCUJqBe5w1V1/MDMkrhuKI=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=JAj3RFFH5XFLE8i4H2+ea/NsgZUV+nQ7+/kyGJgwjhIfpWX/Ps2+k3ckg12Al7gwY t7cTeT1x1+mhaKjtEATEY3ij1d46G/XZ7CIFgbnS4nF5bNE5Dxqac39AwJG+PwGai4 vOSndS6s71jbtS8cQi+m7vk/QysCVzDxc1GQoZ0k= From: Luca Weiss To: linux-arm-msm@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Luca Weiss , Andy Gross , Bjorn Andersson , Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/3] ARM: dts: qcom: msm8226: add power domains Date: Sun, 20 Feb 2022 23:30:03 +0100 Message-Id: <20220220223004.507739-3-luca@z3ntu.xyz> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220220223004.507739-1-luca@z3ntu.xyz> References: <20220220223004.507739-1-luca@z3ntu.xyz> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=0.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FROM_SUSPICIOUS_NTLD, PDS_OTHER_BAD_TLD,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 Add a node for the power domain controller found in MSM8226. At the same time remove any existing usages of pm8226_s1 as this regulator is now handled by power domains. Signed-off-by: Luca Weiss --- arch/arm/boot/dts/qcom-apq8026-lg-lenok.dts | 4 --- arch/arm/boot/dts/qcom-msm8226.dtsi | 29 +++++++++++++++++++++ 2 files changed, 29 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/qcom-apq8026-lg-lenok.dts b/arch/arm/boot/dts/qcom-apq8026-lg-lenok.dts index 42467f705b26..2b7e52fda6a7 100644 --- a/arch/arm/boot/dts/qcom-apq8026-lg-lenok.dts +++ b/arch/arm/boot/dts/qcom-apq8026-lg-lenok.dts @@ -105,10 +105,6 @@ &rpm_requests { pm8226-regulators { compatible = "qcom,rpm-pm8226-regulators"; - pm8226_s1: s1 { - regulator-min-microvolt = <500000>; - regulator-max-microvolt = <1275000>; - }; pm8226_s3: s3 { regulator-min-microvolt = <1200000>; regulator-max-microvolt = <1350000>; diff --git a/arch/arm/boot/dts/qcom-msm8226.dtsi b/arch/arm/boot/dts/qcom-msm8226.dtsi index e24e53438b4d..28eca15b5712 100644 --- a/arch/arm/boot/dts/qcom-msm8226.dtsi +++ b/arch/arm/boot/dts/qcom-msm8226.dtsi @@ -73,6 +73,35 @@ rpm { rpm_requests: rpm-requests { compatible = "qcom,rpm-msm8226"; qcom,smd-channels = "rpm_requests"; + + rpmpd: power-controller { + compatible = "qcom,msm8226-rpmpd"; + #power-domain-cells = <1>; + operating-points-v2 = <&rpmpd_opp_table>; + + rpmpd_opp_table: opp-table { + compatible = "operating-points-v2"; + + rpmpd_opp_ret: opp1 { + opp-level = <1>; + }; + rpmpd_opp_svs_krait: opp2 { + opp-level = <2>; + }; + rpmpd_opp_svs_soc: opp3 { + opp-level = <3>; + }; + rpmpd_opp_nom: opp4 { + opp-level = <4>; + }; + rpmpd_opp_turbo: opp5 { + opp-level = <5>; + }; + rpmpd_opp_super_turbo: opp6 { + opp-level = <6>; + }; + }; + }; }; }; }; -- 2.35.1