Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp725728ybp; Fri, 4 Oct 2019 04:05:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqzsIyAdUZph3+PtM2ra2Fdkb0PVcwgAByqEJY1zoFx75exmb4nujrgAsyjlGxyHW0YHUKO+ X-Received: by 2002:a50:fa83:: with SMTP id w3mr14379511edr.262.1570187144481; Fri, 04 Oct 2019 04:05:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570187144; cv=none; d=google.com; s=arc-20160816; b=tsI1vAvszHc5ODPxuUtVD7yY18MgLegb6iouCqu+6GLdeRlXsEpEvyei2e01boD3we x6zNs9sZt/a6qtTQfE7pJOJrbPBvHLh7+EsEHIQg05B8dn/cs427ofiizr5vaoRvGwnd aZeaBvdazmoFkyINpptJpm7KqAEime07HPeS8EFswAUt12VHdwxWbmXkduosBFjQW7z2 Jec51HXW6IkWaHJRGOr9d0BF3TrQEjq4JsaL/HZtZuyCy88Xzaifi/o65G90da7lIHHq AbLwgyDTWiI+qx0zl6AZfoM6nlvsFOOkqeIgmnwafQBTHTwM2TsiVdsnQacl8YnkUifc Pksw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dmarc-filter:dkim-signature:dkim-signature; bh=gsCpTewBjHuBTcJsbwzjXGIJMjqXM9Kkj6JGX3pO88k=; b=o30dEKyNQ1GQ1bbfxE7Xdl3VL/K1uPOP5hRmGcmcK/dDYaRZo+RRda1Mh1WvJrTj/W +NWTWqRYB+B/zKsFr2NZy3GqhLcshPC4gMMUh7dSIaAaw0m3Pjx5FFV/0KCbG3RB31ua bYYWX99dorEi1GMm3yao+xsNAaF5+Z1KFh5QVZpgOAYsLg45bJKbLDYcZ+rbhd/0i2JT GdGQbxY+LrELIF+Cp3ulTxhLf/rs5nGNwIcIc6uN113g/Uu4lH8qPxYOj+rMBhs2HLb1 bFxkb4lUgP38WX/2jJj75aP4Uq7U4JEJpGGsRIVM/owkzIM/kcuQMEI3A0Qw/0gakeG8 FXMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=oXPGDijA; dkim=pass header.i=@codeaurora.org header.s=default header.b="E/0xfFWJ"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g14si3113486edm.407.2019.10.04.04.05.19; Fri, 04 Oct 2019 04:05:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=oXPGDijA; dkim=pass header.i=@codeaurora.org header.s=default header.b="E/0xfFWJ"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730784AbfJDLEN (ORCPT + 99 others); Fri, 4 Oct 2019 07:04:13 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:41634 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725788AbfJDLEM (ORCPT ); Fri, 4 Oct 2019 07:04:12 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 5AE8561A20; Fri, 4 Oct 2019 11:04:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1570187051; bh=okwnO27NbFYjjfsCFRbJqJqJfz8rw0aIBzpv6lhT0QM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oXPGDijA0kx50+E9UIbDxa9MmvYTcHp/+Kbah5NuPLItMqovX/AJJ8R/fMICmRP5g 7yZyaAtRq3aKpxo2dR9fE7vj7L8qMppjF4YCfs+wqjAs9US4cJuottu7fDsRfofyh2 khM60s4RkizhskndU4q/Nzc4g6AAIyXR8TXvkP6Y= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED,SPF_NONE autolearn=no autolearn_force=no version=3.4.0 Received: from kgunda-linux.qualcomm.com (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: kgunda@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 83F7360A37; Fri, 4 Oct 2019 11:04:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1570187050; bh=okwnO27NbFYjjfsCFRbJqJqJfz8rw0aIBzpv6lhT0QM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=E/0xfFWJfhFfy4xz+DBURbyPmCmjjYEZnFHpj8l0A3w59BfmAb/UJ8nd3TRc540UW pjnSe3mMEGZJApW5xz3E/zvE+wJ/Fc33iHlFTt6yTWrfD7O5o+HiQx/Nx9caeX5aKJ /e7cw8RgbV7ZicVGoNOVMCGOPaX2d/p5hjEfiSzs= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 83F7360A37 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=kgunda@codeaurora.org From: Kiran Gunda To: bjorn.andersson@linaro.org, Andy Gross , Rob Herring , Mark Rutland , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Kiran Gunda Subject: [PATCH V2 2/2] ARM: dts: qcom: sc7180-regulator: Add RPMh regulators for SC7180 Date: Fri, 4 Oct 2019 16:33:49 +0530 Message-Id: <1570187029-12470-3-git-send-email-kgunda@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1570187029-12470-1-git-send-email-kgunda@codeaurora.org> References: <1570187029-12470-1-git-send-email-kgunda@codeaurora.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add regulator devices for SC7180 as RPMh regulators. This ensures that consumers are able to modify the physical state of PMIC regulators. Signed-off-by: Kiran Gunda --- arch/arm64/boot/dts/qcom/sc7180-regulator.dtsi | 210 +++++++++++++++++++++++++ 1 file changed, 210 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/sc7180-regulator.dtsi diff --git a/arch/arm64/boot/dts/qcom/sc7180-regulator.dtsi b/arch/arm64/boot/dts/qcom/sc7180-regulator.dtsi new file mode 100644 index 0000000..50a675b --- /dev/null +++ b/arch/arm64/boot/dts/qcom/sc7180-regulator.dtsi @@ -0,0 +1,210 @@ +// SPDX-License-Identifier: GPL-2.0 +// Copyright (c) 2019, The Linux Foundation. All rights reserved. + +#include + +&apps_rsc { + pm6150-rpmh-regulators { + compatible = "qcom,pm6150-rpmh-regulators"; + qcom,pmic-id = "a"; + + vreg_s1a_1p1: smps1 { + regulator-min-microvolt = <1128000>; + regulator-max-microvolt = <1128000>; + }; + + vreg_s4a_1p0: smps4 { + regulator-min-microvolt = <824000>; + regulator-max-microvolt = <1120000>; + }; + + vreg_s5a_2p0: smps5 { + regulator-min-microvolt = <1744000>; + regulator-max-microvolt = <2040000>; + }; + + vreg_l1a_1p2: ldo1 { + regulator-min-microvolt = <1178000>; + regulator-max-microvolt = <1256000>; + regulator-initial-mode = ; + }; + + vreg_l2a_1p0: ldo2 { + regulator-min-microvolt = <944000>; + regulator-max-microvolt = <1056000>; + regulator-initial-mode = ; + }; + + vreg_l3a_1p0: ldo3 { + regulator-min-microvolt = <968000>; + regulator-max-microvolt = <1064000>; + regulator-initial-mode = ; + }; + + vreg_l4a_0p8: ldo4 { + regulator-min-microvolt = <824000>; + regulator-max-microvolt = <928000>; + regulator-initial-mode = ; + }; + + vreg_l5a_2p7: ldo5 { + regulator-min-microvolt = <2496000>; + regulator-max-microvolt = <3000000>; + regulator-initial-mode = ; + }; + + vreg_l6a_0p6: ldo6 { + regulator-min-microvolt = <568000>; + regulator-max-microvolt = <648000>; + regulator-initial-mode = ; + }; + + vreg_l9a_0p6: ldo9 { + regulator-min-microvolt = <488000>; + regulator-max-microvolt = <800000>; + regulator-initial-mode = ; + }; + + vreg_l10a_1p8: ldo10 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1832000>; + regulator-initial-mode = ; + }; + + vreg_l11a_1p8: ldo11 { + regulator-min-microvolt = <1696000>; + regulator-max-microvolt = <1904000>; + regulator-initial-mode = ; + }; + + vreg_l12a_1p8: ldo12 { + regulator-min-microvolt = <1696000>; + regulator-max-microvolt = <1952000>; + regulator-initial-mode = ; + }; + + vreg_l13a_1p8: ldo13 { + regulator-min-microvolt = <1696000>; + regulator-max-microvolt = <1904000>; + regulator-initial-mode = ; + }; + + vreg_l14a_1p8: ldo14 { + regulator-min-microvolt = <1728000>; + regulator-max-microvolt = <1832000>; + regulator-initial-mode = ; + }; + + vreg_l15a_1p8: ldo15 { + regulator-min-microvolt = <1696000>; + regulator-max-microvolt = <1904000>; + regulator-initial-mode = ; + }; + + vreg_l16a_2p7: ldo16 { + regulator-min-microvolt = <2496000>; + regulator-max-microvolt = <3304000>; + regulator-initial-mode = ; + }; + + vreg_l17a_3p0: ldo17 { + regulator-min-microvolt = <2920000>; + regulator-max-microvolt = <3232000>; + regulator-initial-mode = ; + }; + + vreg_l18a_2p8: ldo18 { + regulator-min-microvolt = <2496000>; + regulator-max-microvolt = <3304000>; + regulator-initial-mode = ; + }; + + vreg_l19a_2p9: ldo19 { + regulator-min-microvolt = <2696000>; + regulator-max-microvolt = <3304000>; + regulator-initial-mode = ; + }; + }; + + pm6150l-rpmh-regulators { + compatible = "qcom,pm6150l-rpmh-regulators"; + qcom,pmic-id = "c"; + + vreg_s8c_1p3: smps8 { + regulator-min-microvolt = <1120000>; + regulator-max-microvolt = <1408000>; + }; + + vreg_l1c_1p8: ldo1 { + regulator-min-microvolt = <1616000>; + regulator-max-microvolt = <1984000>; + regulator-initial-mode = ; + }; + + vreg_l2c_1p3: ldo2 { + regulator-min-microvolt = <1168000>; + regulator-max-microvolt = <1304000>; + regulator-initial-mode = ; + }; + + vreg_l3c_1p2: ldo3 { + regulator-min-microvolt = <1144000>; + regulator-max-microvolt = <1304000>; + regulator-initial-mode = ; + }; + + vreg_l4c_1p8: ldo4 { + regulator-min-microvolt = <1648000>; + regulator-max-microvolt = <3304000>; + regulator-initial-mode = ; + }; + + vreg_l5c_1p8: ldo5 { + regulator-min-microvolt = <1648000>; + regulator-max-microvolt = <3304000>; + regulator-initial-mode = ; + }; + + vreg_l6c_2p9: ldo6 { + regulator-min-microvolt = <2696000>; + regulator-max-microvolt = <3304000>; + regulator-initial-mode = ; + }; + + vreg_l7c_3p0: ldo7 { + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3312000>; + regulator-initial-mode = ; + }; + + vreg_l8c_1p8: ldo8 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1904000>; + regulator-initial-mode = ; + }; + + vreg_l9c_2p9: ldo9 { + regulator-min-microvolt = <2952000>; + regulator-max-microvolt = <3304000>; + regulator-initial-mode = ; + }; + + vreg_l10c_3p3: ldo10 { + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3400000>; + regulator-initial-mode = ; + }; + + vreg_l11c_3p3: ldo11 { + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3400000>; + regulator-initial-mode = ; + }; + + vreg_bob: bob { + regulator-min-microvolt = <3008000>; + regulator-max-microvolt = <3960000>; + regulator-initial-mode = ; + }; + }; +}; -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project