From patchwork Sat Apr 28 05:42:48 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 10370123 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5046960386 for ; Sat, 28 Apr 2018 05:44:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3D6222952F for ; Sat, 28 Apr 2018 05:44:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2E99E29531; Sat, 28 Apr 2018 05:44:03 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 822C52952F for ; Sat, 28 Apr 2018 05:44:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=hbOejs1TlkleYsrYbKpO3Q1OnVHgsx82J3zK8mXcB7o=; b=T9qhmV5Fm6QBY0m321Jaaodu1p G+3KNKHUohw9qgC4qaBKeg5Fqg4Io8Aen+OveS+Qx2CESLc35KiKmy+/JBaQnEnDAjg3mWeU0Y3SL 7imdP/1CH9n9j7af7fA6TOuF6CDyhxzAb11UDLIgO7cAdL/xV5o6Z0BKAqGhVogFwnkEY3q+DUZbd mCMVinZyitaXvr3BSCshIPUK7uiJwttGtfgHHRX0MexgTgZwRUHxJ2gZSmtYs+KlSnvGJCkkP8IdM psLGvAQ5xE1Z9B6blD7pRqUGgkBYHOyQLSox0Prfa28JdkSwtAHBm/eIjPex6qkfWJl9f0/M2jwQL wEyW/Pew==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fCIeJ-0000JR-8T; Sat, 28 Apr 2018 05:43:55 +0000 Received: from mail-pg0-x243.google.com ([2607:f8b0:400e:c05::243]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fCIdU-0008PF-2n for linux-arm-kernel@lists.infradead.org; Sat, 28 Apr 2018 05:43:05 +0000 Received: by mail-pg0-x243.google.com with SMTP id n9-v6so2980242pgq.5 for ; Fri, 27 Apr 2018 22:42:53 -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:in-reply-to:references; bh=ViNM/nrY7gkZB0tMuu7YUYs+xz9VB5kDYIPk/aipUwM=; b=TlJ6kstlxdc4X9DZmE+1oqZZa3Ud9bEMB2oMBigiE9M3OqvtN5nDykpf0gDXFMtFYx /awBIAo9OA4d/cIxwjHfVBYQxD4LVM36uy1TnwhCx4fn4mSeTXxS1xZRaw0p3lZBHHCO Q3EUY5HP4nATrnZ6jkHv6lVbCfLxCGzsis4kQ= 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:in-reply-to :references; bh=ViNM/nrY7gkZB0tMuu7YUYs+xz9VB5kDYIPk/aipUwM=; b=pAZCItdS4Hh4x9wCkX3VKH+sLUxlNaR4KOmRf6JjmoXkfkuL4Ae6ZRc3SUHgSPCOoE yGFbwjQFyonSMRq7FzN11s4SP8oPHVbAaXbDw8KK3yD2yACcCcBcjFxnVN68S9es5o45 g5HQA0hEc0ehxlHuMnFgZ77piTppyiOBlmj26HvwSWO9F57IHFmCW+jlC3jbZYcJOnUX 8wv8KKFBKP9HxQlnti1O+UUl4xoEymMiCrZrRDhJd/x34Yo+qxbU5tK75yYdcZUs95X2 vdzb333UGEmITEgPCGX+UgykyyOPvPIrmrQPuyhfjDagzn+o2xwOaQj40v1x5e/4wdOC dnsA== X-Gm-Message-State: ALQs6tBnlXlbJk9gRbkgUF5l6kQPiSkANOqN+ezCerR/0HU/P35TFB+l Kj23XCOU8Mobqmpvn0I4oYhhRA== X-Google-Smtp-Source: AB8JxZrdbncqj8l5PDeLQhqGKO1F5kO0iJc0ZwGzO9p2SSqHhIM7KJlne+Kb8qwRF3hXxvJBVCPBdw== X-Received: by 10.98.100.11 with SMTP id y11mr4692944pfb.118.1524894173129; Fri, 27 Apr 2018 22:42:53 -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 x2sm6247625pfk.113.2018.04.27.22.42.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 27 Apr 2018 22:42:52 -0700 (PDT) From: Bjorn Andersson To: Andy Gross Subject: [PATCH v2 2/2] arm64: dts: qcom: msm8998: Add rpm and regulators for MTP Date: Fri, 27 Apr 2018 22:42:48 -0700 Message-Id: <20180428054248.22387-2-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180428054248.22387-1-bjorn.andersson@linaro.org> References: <20180428054248.22387-1-bjorn.andersson@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180427_224304_121676_0E685568 X-CRM114-Status: GOOD ( 11.44 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Stephen Boyd , linux-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This adds the rpm and rpm regulators to the msm8998 platform and mtp. Signed-off-by: Bjorn Andersson --- arch/arm64/boot/dts/qcom/msm8998-mtp.dtsi | 142 ++++++++++++++++++++++++++++++ arch/arm64/boot/dts/qcom/msm8998.dtsi | 83 +++++++++++++++++ 2 files changed, 225 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8998-mtp.dtsi b/arch/arm64/boot/dts/qcom/msm8998-mtp.dtsi index e30c95f63a05..4780751b560e 100644 --- a/arch/arm64/boot/dts/qcom/msm8998-mtp.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8998-mtp.dtsi @@ -18,3 +18,145 @@ status = "okay"; }; }; + +&rpm_glink { + rpm_requests { + pm8998-regulators { + s2 { + regulator-min-microvolt = <1128000>; + regulator-max-microvolt = <1128000>; + }; + s3 { + regulator-min-microvolt = <1352000>; + regulator-max-microvolt = <1352000>; + }; + s4 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + s5 { + regulator-min-microvolt = <1904000>; + regulator-max-microvolt = <2040000>; + }; + s7 { + regulator-min-microvolt = <900000>; + regulator-max-microvolt = <1028000>; + }; + s8 { + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <800000>; + }; + l1 { + regulator-min-microvolt = <880000>; + regulator-max-microvolt = <880000>; + }; + l2 { + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + }; + l3 { + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1000000>; + }; + l5 { + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <800000>; + }; + l6 { + regulator-min-microvolt = <1808000>; + regulator-max-microvolt = <1808000>; + }; + l7 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + l8 { + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + }; + l9 { + regulator-min-microvolt = <1808000>; + regulator-max-microvolt = <2960000>; + }; + l10 { + regulator-min-microvolt = <1808000>; + regulator-max-microvolt = <2960000>; + }; + l11 { + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1000000>; + }; + l12 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + l13 { + regulator-min-microvolt = <1808000>; + regulator-max-microvolt = <2960000>; + }; + l14 { + regulator-min-microvolt = <1880000>; + regulator-max-microvolt = <1880000>; + }; + l15 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + l16 { + regulator-min-microvolt = <2704000>; + regulator-max-microvolt = <2704000>; + }; + l17 { + regulator-min-microvolt = <1304000>; + regulator-max-microvolt = <1304000>; + }; + l18 { + regulator-min-microvolt = <2704000>; + regulator-max-microvolt = <2704000>; + }; + l19 { + regulator-min-microvolt = <3008000>; + regulator-max-microvolt = <3008000>; + }; + l20 { + regulator-min-microvolt = <2960000>; + regulator-max-microvolt = <2960000>; + }; + l21 { + regulator-min-microvolt = <2960000>; + regulator-max-microvolt = <2960000>; + }; + l22 { + regulator-min-microvolt = <2864000>; + regulator-max-microvolt = <2864000>; + }; + l23 { + regulator-min-microvolt = <3312000>; + regulator-max-microvolt = <3312000>; + }; + l24 { + regulator-min-microvolt = <3088000>; + regulator-max-microvolt = <3088000>; + }; + l25 { + regulator-min-microvolt = <3104000>; + regulator-max-microvolt = <3312000>; + }; + l26 { + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + }; + l28 { + regulator-min-microvolt = <3008000>; + regulator-max-microvolt = <3008000>; + }; + }; + + pmi8998-regulators { + bob { + regulator-min-microvolt = <3312000>; + regulator-max-microvolt = <3600000>; + }; + }; + }; +}; diff --git a/arch/arm64/boot/dts/qcom/msm8998.dtsi b/arch/arm64/boot/dts/qcom/msm8998.dtsi index d6665e4f801f..ccbf6347aacb 100644 --- a/arch/arm64/boot/dts/qcom/msm8998.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8998.dtsi @@ -220,6 +220,16 @@ method = "smc"; }; + rpm_glink: rpm-glink { + compatible = "qcom,glink-rpm"; + + interrupts = ; + + qcom,rpm-msg-ram = <&rpm_msg_ram>; + + mboxes = <&apcs_glb 0>; + }; + soc: soc {}; }; @@ -337,4 +347,77 @@ #interrupt-cells = <4>; cell-index = <0>; }; + + rpm_msg_ram: memory@68000 { + compatible = "qcom,rpm-msg-ram"; + reg = <0x778000 0x7000>; + }; + + apcs_glb: mailbox@9820000 { + compatible = "qcom,msm8998-apcs-hmss-global"; + reg = <0x17911000 0x1000>; + + #mbox-cells = <1>; + }; +}; + +&rpm_glink { + rpm_requests { + compatible = "qcom,rpm-msm8998"; + qcom,glink-channels = "rpm_requests"; + + pm8998-regulators { + compatible = "qcom,rpm-pm8998-regulators"; + + pm8998_s1: s1 {}; + pm8998_s2: s2 {}; + pm8998_s3: s3 {}; + pm8998_s4: s4 {}; + pm8998_s5: s5 {}; + pm8998_s6: s6 {}; + pm8998_s7: s7 {}; + pm8998_s8: s8 {}; + pm8998_s9: s9 {}; + pm8998_s10: s10 {}; + pm8998_s11: s11 {}; + pm8998_s12: s12 {}; + pm8998_s13: s13 {}; + pm8998_l1: l1 {}; + pm8998_l2: l2 {}; + pm8998_l3: l3 {}; + pm8998_l4: l4 {}; + pm8998_l5: l5 {}; + pm8998_l6: l6 {}; + pm8998_l7: l7 {}; + pm8998_l8: l8 {}; + pm8998_l9: l9 {}; + pm8998_l10: l10 {}; + pm8998_l11: l11 {}; + pm8998_l12: l12 {}; + pm8998_l13: l13 {}; + pm8998_l14: l14 {}; + pm8998_l15: l15 {}; + pm8998_l16: l16 {}; + pm8998_l17: l17 {}; + pm8998_l18: l18 {}; + pm8998_l19: l19 {}; + pm8998_l20: l20 {}; + pm8998_l21: l21 {}; + pm8998_l22: l22 {}; + pm8998_l23: l23 {}; + pm8998_l24: l24 {}; + pm8998_l25: l25 {}; + pm8998_l26: l26 {}; + pm8998_l27: l27 {}; + pm8998_l28: l28 {}; + pm8998_lvs1: lvs1 {}; + pm8998_lvs2: lvs2 {}; + }; + + pmi8998-regulators { + compatible = "qcom,rpm-pmi8998-regulators"; + + pmi8998_bob: bob {}; + }; + }; };