From patchwork Tue Jan 29 17:55:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Luba X-Patchwork-Id: 10786717 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 C8AFF159A for ; Tue, 29 Jan 2019 17:55:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B52932D5A5 for ; Tue, 29 Jan 2019 17:55:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A903D2D5F5; Tue, 29 Jan 2019 17:55:49 +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=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 27FB42D5AE for ; Tue, 29 Jan 2019 17:55:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727498AbfA2Rza (ORCPT ); Tue, 29 Jan 2019 12:55:30 -0500 Received: from mailout1.w1.samsung.com ([210.118.77.11]:45680 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727706AbfA2Rz3 (ORCPT ); Tue, 29 Jan 2019 12:55:29 -0500 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20190129175528euoutp01b610e9bbd7ea8473ec8744befdb4e017~_Y1KeINv90755407554euoutp01W for ; Tue, 29 Jan 2019 17:55:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20190129175528euoutp01b610e9bbd7ea8473ec8744befdb4e017~_Y1KeINv90755407554euoutp01W DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1548784528; bh=XwvE819PGgCk+v7COODs9vF1APcF4d1ePy+6X2BCL3A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VoSB+mgjGAX1k6XueE6btc/d/8Mmwfd9gQqgYyiJE2rEmZP3DcBNEGzRk+KJCrDW5 bWjL2cSD3NAhTHHiPp5TOYW6RCNLtpnaWFCHlA58bFwjuRolFbcE+odxb0Bv8EbY3N Dmv1bsZI85gPeQ2wK3oybD1hFb/tVJWkBEM/wQg0= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20190129175527eucas1p12fec21b95a387b8037380550df3ecde6~_Y1J0Z8xy2162921629eucas1p1x; Tue, 29 Jan 2019 17:55:27 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 4B.F7.04441.F83905C5; Tue, 29 Jan 2019 17:55:27 +0000 (GMT) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20190129175526eucas1p253dc2e8a0d64b34d95c84d585fb0fac0~_Y1JK5vau0932709327eucas1p2q; Tue, 29 Jan 2019 17:55:26 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20190129175526eusmtrp22d690ab4c64bda3ded7aabef526dadce~_Y1I8C0lP0424104241eusmtrp2c; Tue, 29 Jan 2019 17:55:26 +0000 (GMT) X-AuditID: cbfec7f2-a1ae89c000001159-1c-5c50938f1f89 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 47.EE.04128.E83905C5; Tue, 29 Jan 2019 17:55:26 +0000 (GMT) Received: from AMDC3778.DIGITAL.local (unknown [106.120.51.20]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20190129175526eusmtip1d3eac630f4a785d49679f27b9081360c~_Y1ISuS_z2140821408eusmtip1y; Tue, 29 Jan 2019 17:55:25 +0000 (GMT) From: Lukasz Luba To: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-samsung-soc@vger.kernel.org Cc: b.zolnierkie@samsung.com, krzk@kernel.org, kgene@kernel.org, cw00.choi@samsung.com, kyungmin.park@samsung.com, m.szyprowski@samsung.com, s.nawrocki@samsung.com, myungjoo.ham@samsung.com, Lukasz Luba , Rob Herring , Mark Rutland , linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 6/8] DT: arm: exynos: add DMC device for exynos5422 Date: Tue, 29 Jan 2019 18:55:12 +0100 Message-Id: <1548784514-26649-7-git-send-email-l.luba@partner.samsung.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1548784514-26649-1-git-send-email-l.luba@partner.samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrBKsWRmVeSWpSXmKPExsWy7djP87r9kwNiDL5vlbDYOGM9q8X1L89Z LeYfOcdq0f/4NbPF+fMb2C3ONr1ht7jVIGOx6fE1VovLu+awWXzuPcJoMeP8PiaLtUfuslss vX6RyeJ24wo2i9a9R9gtDr9pZ3UQ8Fgzbw2jx6ZVnWwem5fUexx8t4fJo2/LKkaPz5vkAtii uGxSUnMyy1KL9O0SuDIunp7FXLBUvuLtSZ0GxibJLkZODgkBE4m1f8+ygdhCAisYJQ7tqO1i 5AKyvzBKzPuxhg3C+cwocWHvQuYuRg6wjpkfKyDiyxklHpx7wQTXsWHOD7AiNgE9iR2rCkGm ighUS9y5vp8ZpIZZ4A6TxN6ZS1lAEsICbhK3u1rAbBYBVYmlk18xg9i8Al4S31cvZ4U4T07i 5rlOsDingLdEx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6RUn5haX5qXrJefnbmIExsO2Yz+37GDsehd8iFGAg1GJh5chOCBGiDWxrLgy9xCj BAezkgiv4W//GCHelMTKqtSi/Pii0pzU4kOMpkBHTWSWEk3OB8ZqXkm8oamhuYWlobmxubGZ hZI473mDyighgfTEktTs1NSC1CKYPiYOTqkGRhkr5elPT/e3KTVl3eK12VWUFsGz+Glfaibf IVuPS2d8/qub5Otf7Wc7dsmSX7BIo0FfLq9cZ94T0Yl//I9/O2L184P46VXhWzMkQ1Mi3r2X 4K73nPv0k2bJZonJLWoqkts+K/T0znynucfD2P6089tbHAuqZd9fVPLKXHGy7uLHOQenK5/e qMRSnJFoqMVcVJwIAMLLVz6dAgAA X-CMS-MailID: 20190129175526eucas1p253dc2e8a0d64b34d95c84d585fb0fac0 X-Msg-Generator: CA X-RootMTR: 20190129175526eucas1p253dc2e8a0d64b34d95c84d585fb0fac0 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190129175526eucas1p253dc2e8a0d64b34d95c84d585fb0fac0 References: <1548784514-26649-1-git-send-email-l.luba@partner.samsung.com> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add description of Dynamic Memory Controller and PPMU counters. They are used by exynos5422-dmc driver. CC: Rob Herring CC: Mark Rutland CC: Kukjin Kim CC: Krzysztof Kozlowski CC: devicetree@vger.kernel.org CC: linux-arm-kernel@lists.infradead.org CC: linux-samsung-soc@vger.kernel.org CC: linux-kernel@vger.kernel.org Signed-off-by: Lukasz Luba --- arch/arm/boot/dts/exynos5420.dtsi | 69 +++++++++++++++++++++++++++ arch/arm/boot/dts/exynos5422-odroid-core.dtsi | 22 +++++++++ 2 files changed, 91 insertions(+) diff --git a/arch/arm/boot/dts/exynos5420.dtsi b/arch/arm/boot/dts/exynos5420.dtsi index aaff158..4d76335 100644 --- a/arch/arm/boot/dts/exynos5420.dtsi +++ b/arch/arm/boot/dts/exynos5420.dtsi @@ -235,6 +235,27 @@ status = "disabled"; }; + dmc: memory-controller@10c20000 { + compatible = "samsung,exynos5422-dmc"; + reg = <0x10c20000 0x10000>, <0x10c30000 0x10000>, + <0x10030000 0x1000>, <0x10000000 0x1000>; + clocks = <&clock CLK_FOUT_SPLL>, + <&clock CLK_MOUT_SCLK_SPLL>, + <&clock CLK_FF_DOUT_SPLL2>, + <&clock CLK_FOUT_BPLL>, <&clock CLK_MOUT_BPLL>, + <&clock CLK_SCLK_BPLL>, + <&clock CLK_MOUT_MX_MSPLL_CCORE>, + <&clock CLK_MOUT_MX_MSPLL_CCORE_PHY>, + <&clock CLK_MOUT_MCLK_CDREX>, + <&clock CLK_DOUT_CLK2X_PHY0>, + <&clock CLK_CLKM_PHY0>, <&clock CLK_CLKM_PHY1>; + clock-names = "fout_spll", "mout_sclk_spll", + "ff_dout_spll2", "fout_bpll", "mout_bpll", + "sclk_bpll", "mout_mx_mspll_ccore", + "mout_mx_mspll_ccore_phy", "mout_mclk_cdrex", + "dout_clk2x_phy0", "clkm_phy0", "clkm_phy1"; + }; + nocp_mem0_0: nocp@10ca1000 { compatible = "samsung,exynos5420-nocp"; reg = <0x10CA1000 0x200>; @@ -271,6 +292,54 @@ status = "disabled"; }; + ppmu_dmc0_0: ppmu@10d00000 { + compatible = "samsung,exynos-ppmu"; + reg = <0x10d00000 0x2000>; + clocks = <&clock CLK_PCLK_PPMU_DREX0_0>; + clock-names = "ppmu"; + events { + ppmu_event_dmc0_0: ppmu-event3-dmc0_0 { + event-name = "ppmu-event3-dmc0_0"; + }; + }; + }; + + ppmu_dmc0_1: ppmu@10d10000 { + compatible = "samsung,exynos-ppmu"; + reg = <0x10d10000 0x2000>; + clocks = <&clock CLK_PCLK_PPMU_DREX0_1>; + clock-names = "ppmu"; + events { + ppmu_event_dmc0_1: ppmu-event3-dmc0_1 { + event-name = "ppmu-event3-dmc0_1"; + }; + }; + }; + + ppmu_dmc1_0: ppmu@10d10000 { + compatible = "samsung,exynos-ppmu"; + reg = <0x10d60000 0x2000>; + clocks = <&clock CLK_PCLK_PPMU_DREX1_0>; + clock-names = "ppmu"; + events { + ppmu_event_dmc1_0: ppmu-event3-dmc1_0 { + event-name = "ppmu-event3-dmc1_0"; + }; + }; + }; + + ppmu_dmc1_1: ppmu@10d70000 { + compatible = "samsung,exynos-ppmu"; + reg = <0x10d70000 0x2000>; + clocks = <&clock CLK_PCLK_PPMU_DREX1_1>; + clock-names = "ppmu"; + events { + ppmu_event_dmc1_1: ppmu-event3-dmc1_1 { + event-name = "ppmu-event3-dmc1_1"; + }; + }; + }; + gsc_pd: power-domain@10044000 { compatible = "samsung,exynos4210-pd"; reg = <0x10044000 0x20>; diff --git a/arch/arm/boot/dts/exynos5422-odroid-core.dtsi b/arch/arm/boot/dts/exynos5422-odroid-core.dtsi index bf09eab..e2b59e9 100644 --- a/arch/arm/boot/dts/exynos5422-odroid-core.dtsi +++ b/arch/arm/boot/dts/exynos5422-odroid-core.dtsi @@ -127,6 +127,12 @@ cpu-supply = <&buck2_reg>; }; +&dmc { + devfreq-events = <&ppmu_dmc0_0>, <&ppmu_dmc0_1>, + <&ppmu_dmc1_0>, <&ppmu_dmc1_1>; + status = "okay"; +}; + &hsi2c_4 { status = "okay"; @@ -535,6 +541,22 @@ }; }; +&ppmu_dmc0_0 { + status = "okay"; +}; + +&ppmu_dmc0_1 { + status = "okay"; +}; + +&ppmu_dmc1_0 { + status = "okay"; +}; + +&ppmu_dmc1_1 { + status = "okay"; +}; + &tmu_cpu0 { vtmu-supply = <&ldo7_reg>; };