From patchwork Fri Mar 22 07:11:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Lo X-Patchwork-Id: 10865055 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 794DF1708 for ; Fri, 22 Mar 2019 07:11:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 539EB2A500 for ; Fri, 22 Mar 2019 07:11:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 479662A524; Fri, 22 Mar 2019 07:11:26 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham 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 CDAE22A500 for ; Fri, 22 Mar 2019 07:11:25 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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:In-Reply-To:References: List-Owner; bh=xT1LWZbExRWpKzkhFjuNYLpCi1XzRzqxLu7HzMET1d4=; b=mHW6Z68CqEv+j7 QiPTWaUKyNmcVcbYBCZONQcgDW5QS8xmFNe+CA4zH9k3cB9Aj0vqgvIHSPKfNcDwW9WqGKN0uML7J qJW9A45/MB8OFhCk14/7bdIinUxrAwuNyEpGUvXG07Cm6ucwisLBxtXzSVd4f6MOoNvN4IpY+N8z/ qNhZN8m9ukl/KHMf0LURlWO4hhsLZ1cCjhljtZSY5zQ0NJr9xQ1DumuEMIl+wb2iMTrRTnGaoqG3v LmFdhbA4QUBaF89hLR7g2as1RKc4y11sAv2REdEGwiD4nz46M560B+Q6dcG7BAdHZ8bylwA45dbAH LZZbooQli1nULboe1fPA==; 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 1h7EKk-0000a6-Tn; Fri, 22 Mar 2019 07:11:18 +0000 Received: from hqemgate14.nvidia.com ([216.228.121.143]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h7EKi-0000Zc-8r for linux-arm-kernel@lists.infradead.org; Fri, 22 Mar 2019 07:11:17 +0000 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqemgate14.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Fri, 22 Mar 2019 00:11:18 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Fri, 22 Mar 2019 00:11:15 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Fri, 22 Mar 2019 00:11:15 -0700 Received: from HQMAIL107.nvidia.com (172.20.187.13) by HQMAIL104.nvidia.com (172.18.146.11) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Fri, 22 Mar 2019 07:11:15 +0000 Received: from hqnvemgw02.nvidia.com (172.16.227.111) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Fri, 22 Mar 2019 07:11:15 +0000 Received: from josephl-linux.nvidia.com (Not Verified[10.19.108.132]) by hqnvemgw02.nvidia.com with Trustwave SEG (v7, 5, 8, 10121) id ; Fri, 22 Mar 2019 00:11:14 -0700 From: Joseph Lo To: Thierry Reding , Jonathan Hunter Subject: [PATCH 1/2] arm64: tegra: Add pinmux for PWM-based DFLL support on Shield platform Date: Fri, 22 Mar 2019 15:11:10 +0800 Message-ID: <20190322071111.32432-1-josephl@nvidia.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 X-NVConfidentiality: public DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1553238678; bh=F6WNPiPT4rNg79uGvAABCJ/ch9kdBeNilwZHBQ7u7v4=; h=X-PGP-Universal:From:To:CC:Subject:Date:Message-ID:X-Mailer: MIME-Version:X-NVConfidentiality:Content-Transfer-Encoding: Content-Type; b=JRTYVwHK9u+JjsRokP7PXvkMSNj8NkazmYoKB+Ru+BOGN9bqmQw0550MdE+zmLt98 URU4s0HAubf5wLNxhFaummiXN6+R5boIYEuW+LoQWFrNiRQYgdr7WfV67i/HTueqHY vGsi0eG9Gp48Ajy98zwhyPPOKfNw+/ticoZK2z/Cr+mx6Ymsv4TWbBA0R8geabd3/S rWssBxFJ45o+iA4Jmnotl0toUEJKzKXQ1zMTTF9YkkyqEMv+lrOwDxtHEUalrIJH0Q FEDPC6S0pTQzndY88euYcpjo6ziPB8dqgC8r6lPI7UV39p2Uyl2VEbrw7oQLFCuaAy Matyz+irfVDgg== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190322_001116_318874_5CF60EE8 X-CRM114-Status: UNSURE ( 6.56 ) X-CRM114-Notice: Please train this message. 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: linux-tegra@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Joseph Lo 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 Add pinmux for PWM-based DFLL support on Shield platform. Signed-off-by: Joseph Lo --- arch/arm64/boot/dts/nvidia/tegra210-p2894.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/nvidia/tegra210-p2894.dtsi b/arch/arm64/boot/dts/nvidia/tegra210-p2894.dtsi index 88a4b9333d84..c668f16c8574 100644 --- a/arch/arm64/boot/dts/nvidia/tegra210-p2894.dtsi +++ b/arch/arm64/boot/dts/nvidia/tegra210-p2894.dtsi @@ -1318,6 +1318,20 @@ nvidia,open-drain = ; }; }; + + dvfs_pwm_active_state: dvfs_pwm_active { + dvfs_pwm_pbb1 { + nvidia,pins = "dvfs_pwm_pbb1"; + nvidia,tristate = ; + }; + }; + + dvfs_pwm_inactive_state: dvfs_pwm_inactive { + dvfs_pwm_pbb1 { + nvidia,pins = "dvfs_pwm_pbb1"; + nvidia,tristate = ; + }; + }; }; serial@70006000 { From patchwork Fri Mar 22 07:11:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Lo X-Patchwork-Id: 10865057 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5197E1708 for ; Fri, 22 Mar 2019 07:11:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2AF0C2A500 for ; Fri, 22 Mar 2019 07:11:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1B93E2A524; Fri, 22 Mar 2019 07:11:35 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham 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 AC5082A500 for ; Fri, 22 Mar 2019 07:11:34 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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=HjmWr0o+sHPOESyAze7gi1YlX7SRKAVJAgn5GnJt7BA=; b=sX2MPcOPmxodox c8NL1nCuEEy+Qnasheh3bZi2QtEGyfNpIAvMBOFsB0VPnQ6YL5zDc3qVi0KilHCfm39KYMsnptPsE gIGhaqDWo7DDNRHo2Vy+1yule+gutbUZPbGScWG6z9Q9Sl+8TxBG3zLrDjoGLjfvGYNfk626oGhqm ZwGVFdW6hqNx0YXvRs/B6AmKPjKLrEIYCU0ZvCrUIbiHjBlOtnd67MVzGNO18lLZE2QvM7+PT7zie gUwES+bQW+zFMPWbK2odssljLBwywPgDBRq2FQjUZ2O1qejLwnFdHugna2XF3TQ3rkuNMhH0pmcDf IP1XbAWiUzUub6qZke6A==; 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 1h7EKu-0000lp-Pc; Fri, 22 Mar 2019 07:11:28 +0000 Received: from hqemgate14.nvidia.com ([216.228.121.143]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h7EKj-0000Zu-QV for linux-arm-kernel@lists.infradead.org; Fri, 22 Mar 2019 07:11:19 +0000 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqemgate14.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Fri, 22 Mar 2019 00:11:20 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Fri, 22 Mar 2019 00:11:17 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Fri, 22 Mar 2019 00:11:17 -0700 Received: from HQMAIL107.nvidia.com (172.20.187.13) by HQMAIL108.nvidia.com (172.18.146.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Fri, 22 Mar 2019 07:11:17 +0000 Received: from hqnvemgw02.nvidia.com (172.16.227.111) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Fri, 22 Mar 2019 07:11:17 +0000 Received: from josephl-linux.nvidia.com (Not Verified[10.19.108.132]) by hqnvemgw02.nvidia.com with Trustwave SEG (v7, 5, 8, 10121) id ; Fri, 22 Mar 2019 00:11:17 -0700 From: Joseph Lo To: Thierry Reding , Jonathan Hunter Subject: [PATCH 2/2] arm64: tegra: Enable DFLL clock on Shield platform Date: Fri, 22 Mar 2019 15:11:11 +0800 Message-ID: <20190322071111.32432-2-josephl@nvidia.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190322071111.32432-1-josephl@nvidia.com> References: <20190322071111.32432-1-josephl@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1553238680; bh=TqVGYaqzMSpusdVg8VEPgi5dT7AtH3HfJf+8gjnu5kM=; h=X-PGP-Universal:From:To:CC:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:MIME-Version:X-NVConfidentiality: Content-Transfer-Encoding:Content-Type; b=VOnaMgWSC3Rhtm08EaL4++SysOc0ZlXpLxUBG4UxafQsqm7Vl+3UtFlRCKMvkS2gn MQYvP7qPrk3h8HBEgtsBo0EKkm9MbNMShM9a20X/xxYFySbr73/WYMfqBLXF91GLVe 02FoCMVoXusR4+TCmi6Yj1Qn82TaXcxUzPfpGCS3NcNJ7Aql2xuI0P76sXKMPe/DgQ I3LZ2o2R0hQYy0Yz6XuMiXV9tGL6sd1OhHxFLKFMJwD3Nfz9Wkl2JxFeCNzD2sUDIx ZwFBPSM/B/xbWeXLfipgJTFPAWZn0Abjt5L2Jmi4YHq+J957Bl6zlYqMsNqzvh3J8I 1Zrp87F+5Wu/g== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190322_001117_864991_719E828A X-CRM114-Status: UNSURE ( 7.02 ) X-CRM114-Notice: Please train this message. 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: linux-tegra@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Joseph Lo 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 Enable DFLL clock on Shield platform. Signed-off-by: Joseph Lo --- .../arm64/boot/dts/nvidia/tegra210-p2894.dtsi | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/arch/arm64/boot/dts/nvidia/tegra210-p2894.dtsi b/arch/arm64/boot/dts/nvidia/tegra210-p2894.dtsi index c668f16c8574..5385816a83a9 100644 --- a/arch/arm64/boot/dts/nvidia/tegra210-p2894.dtsi +++ b/arch/arm64/boot/dts/nvidia/tegra210-p2894.dtsi @@ -1600,6 +1600,27 @@ status = "okay"; }; + clock@70110000 { + status = "okay"; + + nvidia,cf = <6>; + nvidia,ci = <0>; + nvidia,cg = <2>; + nvidia,droop-ctrl = <0x00000f00>; + nvidia,force-mode = <1>; + nvidia,sample-rate = <25000>; + + nvidia,pwm-min-microvolts = <708000>; + nvidia,pwm-period-nanoseconds = <2500>; /* 2.5us */ + nvidia,pwm-to-pmic; + nvidia,pwm-tristate-microvolts = <1000000>; + nvidia,pwm-voltage-step-microvolts = <19200>; + + pinctrl-names = "dvfs_pwm_enable", "dvfs_pwm_disable"; + pinctrl-0 = <&dvfs_pwm_active_state>; + pinctrl-1 = <&dvfs_pwm_inactive_state>; + }; + clocks { compatible = "simple-bus"; #address-cells = <1>;