From patchwork Sat Sep 1 22:19:53 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 145717 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp950154ljw; Sat, 1 Sep 2018 15:18:18 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYMsNhed1Z954RK6qCJX4UptLk48LTcenfzddR/TTRSxtSDGlxmujHZHTjrSVYiJnyD7cC2 X-Received: by 2002:a63:4f64:: with SMTP id p36-v6mr5461912pgl.210.1535840298375; Sat, 01 Sep 2018 15:18:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535840298; cv=none; d=google.com; s=arc-20160816; b=Ag1S0STidGHmin0MuFAw5VdmIGclbYGdyaxB0/8ntBG5UWNoCOf8zocRfHm0/po8Kq XbNPT8oiHSmZi97F80kbQgSznfGEf1SJLuI+CAyYeb2cFA1yskM3FTxvUFEaN6YzADDV zwAYiRoMe0KWwlupI3NIuMn2HPNofPl+eVt0F7vn3EeoVnpzcF3A1MFH2nXXciMEC1dF h1cyGH7ycfBlKHvvbCDiLurssxcvPUiuLCyqRTfnQhD2g3wUVfztxj3sCJO4fFbNTav2 P7McK+5GJRdszGnAU/lBHf00XDzDvOsY4Ze0x/zsIreA+HPkSV7M8oA+HDD1bW25whjT HM6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=lBFdtHwXwF0rX276ZvcQvukIVcZBkPQKFvyQkSXQl/Y=; b=Er9PCUbAvzorlGReu+v1Pa+UgsHz5i6F4vKZREbqjq+ofYFvhYaGZAEhP1c08MAOL3 DeQpqDRbbJWdGGtNCmxQbxhPIWKD3mm/wx6/ZQ1YGHf+muDoFVjT6laYnuYNsNIeo3Pl YhF15eNJRnCi8eeZHpvw5BgpXmUcD+SLayR1xbvjEdXASqagiwuvVL1u5+5ePnc/IsDx C9ULVExqZoQq/yQnORkBwSr+AFuVFQmMjBwlCei4kp235M3DZq8s7hGRFp4IaIbd4UAH K/A4gRYiiDBGXFnSojxFTkkNOJXjWT1uxoewzF72Ii6YiOqyJEm/QzERNYdwEl3Hb0GF S/kA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eMzOFjzX; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g20-v6si13402628pgb.239.2018.09.01.15.18.17; Sat, 01 Sep 2018 15:18:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-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=@linaro.org header.s=google header.b=eMzOFjzX; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727064AbeIBCbf (ORCPT + 6 others); Sat, 1 Sep 2018 22:31:35 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:45585 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727049AbeIBCbf (ORCPT ); Sat, 1 Sep 2018 22:31:35 -0400 Received: by mail-pl1-f196.google.com with SMTP id j8-v6so6963995pll.12 for ; Sat, 01 Sep 2018 15:18:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=lBFdtHwXwF0rX276ZvcQvukIVcZBkPQKFvyQkSXQl/Y=; b=eMzOFjzX1BKMheKbIND2C6YaFsZFmJ/QRCiYuAv7fPiAZTEfuh8ZARzSysAtsphKtJ /Ob2Iy9n+7Beng+dqyA5B57XFNjpIwmQLsi73DgpZZPVsmTBq5aQa4nKEBLXad7aB9XO Uqqf7USj9ZzUTNl4dO2EmhKMdxxHWdDWms3Gc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=lBFdtHwXwF0rX276ZvcQvukIVcZBkPQKFvyQkSXQl/Y=; b=A6MPfGdmiUSqQrXCVpzD5hpqMh866xzCCy+/Owy+kaL2b0kWz3znINFovL0js4l7y1 j6DezPTF50+SkTrziIhy2ii0NeWgE4QapRPzG/dYhcZAYI5VT0oNjBEQRn5aZeC2i7Eb JHHKExir3mZbBrUDMRQpjG+hc5MqS8hC1kMOOSbwDoNkMMLAuqG+j1CGOx8SNd5dcPZj 8W2mnI7g2+rT5D765ZSg/Y9ftGQoN8z1EunYNuwtx3kkn7ZyfVWoTH8SZxHH1Aa21pV3 4f6OlfIZP0K7VlWKK0TORtGa8PHjYC1IGfYoH9CK+HOL+KFyqMoPYpaqrNnBDw77UE2K fixw== X-Gm-Message-State: APzg51Bh6QISR2NOkI2yHs1iJp6eYxHWNuWxof7Qx+H3CaQJfztEGUKl qtcecuBZcxAwf3Pxcm7+fRz1Jw== X-Received: by 2002:a17:902:925:: with SMTP id 34-v6mr21697072plm.307.1535840290583; Sat, 01 Sep 2018 15:18:10 -0700 (PDT) Received: from localhost.localdomain (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id y128-v6sm19025551pfb.56.2018.09.01.15.18.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 01 Sep 2018 15:18:09 -0700 (PDT) From: Bjorn Andersson To: Andy Gross , David Brown Cc: Rob Herring , Mark Rutland , linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] arm64: dts: qcom: sdm845-mtp: pm8998 and pmi8998 regulators Date: Sat, 1 Sep 2018 15:19:53 -0700 Message-Id: <20180901221953.21666-1-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.18.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add regulator definitions for pm8998 and pmi8998 regulators on the MTP. Signed-off-by: Bjorn Andersson --- arch/arm64/boot/dts/qcom/sdm845-mtp.dts | 216 ++++++++++++++++++++++++ 1 file changed, 216 insertions(+) -- 2.18.0 diff --git a/arch/arm64/boot/dts/qcom/sdm845-mtp.dts b/arch/arm64/boot/dts/qcom/sdm845-mtp.dts index 6d651f314193..d9fbdcb39a4d 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-mtp.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-mtp.dts @@ -7,6 +7,7 @@ /dts-v1/; +#include #include "sdm845.dtsi" / { @@ -20,6 +21,221 @@ chosen { stdout-path = "serial0:115200n8"; }; + + vph_pwr: vph-pwr-regulator { + compatible = "regulator-fixed"; + regulator-name = "vph_pwr"; + regulator-always-on; + regulator-boot-on; + }; + + /* S4 is always-on 1.8V and not controllable through RPMh */ + vreg_s4a_1p8: vreg-s4a-regulator { + compatible = "regulator-fixed"; + regulator-name = "vreg_s4a_1p8"; + + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + + regulator-always-on; + regulator-boot-on; + + vin-supply = <&vph_pwr>; + }; +}; + +&apps_rsc { + pm8998-rpmh-regulators { + compatible = "qcom,pm8998-rpmh-regulators"; + qcom,pmic-id = "a"; + + vdd-s3-supply = <&vph_pwr>; + vdd-s5-supply = <&vph_pwr>; + vdd-s7-supply = <&vph_pwr>; + vdd-l1-l27-supply = <&vreg_s7a_1p025>; + vdd-l10-l23-l25-supply = <&vreg_bob>; + vdd-l13-l19-l21-supply = <&vreg_bob>; + vdd-l16-l28-supply = <&vreg_bob>; + vdd-l18-l22-supply = <&vreg_bob>; + vdd-l2-l8-l17-supply = <&vreg_s3a_1p35>; + vdd-l20-l24-supply = <&vreg_bob>; + vdd-l26-supply = <&vreg_s3a_1p35>; + vdd-l3-l11-supply = <&vreg_s7a_1p025>; + vdd-l4-l5-supply = <&vreg_s7a_1p025>; + vdd-l6-supply = <&vph_pwr>; + vdd-l7-l12-l14-l15-supply = <&vreg_s5a_2p04>; + vdd-l9-supply = <&vreg_bob>; + vin-lvs-1-2-supply = <&vreg_s4a_1p8>; + + vreg_s3a_1p35: smps3 { + regulator-min-microvolt = <1352000>; + regulator-max-microvolt = <1352000>; + }; + + vreg_s5a_2p04: smps5 { + regulator-min-microvolt = <1904000>; + regulator-max-microvolt = <2040000>; + }; + + vreg_s7a_1p025: smps7 { + regulator-min-microvolt = <900000>; + regulator-max-microvolt = <1028000>; + }; + + vreg_l1a_0p875: ldo1 { + regulator-min-microvolt = <880000>; + regulator-max-microvolt = <880000>; + regulator-allow-set-load; + }; + + vreg_l2a_1p2: ldo2 { + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + regulator-always-on; + }; + + vreg_l3a_1p0: ldo3 { + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1000000>; + }; + + vreg_l5a_0p8: ldo5 { + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <800000>; + }; + + vreg_l6a_1p8: ldo6 { + regulator-min-microvolt = <1856000>; + regulator-max-microvolt = <1856000>; + }; + + vreg_l7a_1p8: ldo7 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + vreg_l8a_1p2: ldo8 { + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1248000>; + }; + + vreg_l9a_1p8: ldo9 { + regulator-min-microvolt = <1704000>; + regulator-max-microvolt = <2928000>; + }; + + vreg_l10a_1p8: ldo10 { + regulator-min-microvolt = <1704000>; + regulator-max-microvolt = <2928000>; + }; + + vreg_l11a_1p0: ldo11 { + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1048000>; + }; + + vreg_12a_1p8: ldo12 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + vreg_l13a_2p95: ldo13 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <2960000>; + }; + + vreg_l14a_1p88: ldo14 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1880000>; + }; + + vreg_l15a_1p8: ldo15 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + vreg_l16a_2p7: ldo16 { + regulator-min-microvolt = <2704000>; + regulator-max-microvolt = <2704000>; + }; + + vreg_l17a_1p3: ldo17 { + regulator-min-microvolt = <1304000>; + regulator-max-microvolt = <1304000>; + }; + + vreg_l18a_2p7: ldo18 { + regulator-min-microvolt = <2704000>; + regulator-max-microvolt = <2960000>; + }; + + vreg_l19a_3p0: ldo19 { + regulator-min-microvolt = <2856000>; + regulator-max-microvolt = <3104000>; + }; + + vreg_l20a_2p95: ldo20 { + regulator-min-microvolt = <2704000>; + regulator-max-microvolt = <2960000>; + }; + + vreg_l21a_2p95: ldo21 { + regulator-min-microvolt = <2704000>; + regulator-max-microvolt = <2960000>; + }; + + vreg_l22a_2p95: ldo22 { + regulator-min-microvolt = <2864000>; + regulator-max-microvolt = <3312000>; + }; + + vreg_l23a_3p3: ldo23 { + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3312000>; + }; + + vreg_l24a_3p075: ldo24 { + regulator-min-microvolt = <3088000>; + regulator-max-microvolt = <3088000>; + }; + + vreg_l25_3p075: ldo25 { + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3312000>; + }; + + vreg_l26a_1p2: ldo26 { + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + }; + + vreg_l28a_3p0: ldo28 { + regulator-min-microvolt = <2856000>; + regulator-max-microvolt = <3008000>; + }; + + vreg_lvs1a_1p8: lvs1 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + vreg_lvs2a_1p8: lvs2 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + }; + + pmi8998-rpmh-regulators { + compatible = "qcom,pmi8998-rpmh-regulators"; + qcom,pmic-id = "b"; + + vdd-bob-supply = <&vph_pwr>; + + vreg_bob: bob { + regulator-min-microvolt = <3312000>; + regulator-max-microvolt = <3600000>; + }; + }; }; &i2c10 {