Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3819971imu; Mon, 28 Jan 2019 11:22:54 -0800 (PST) X-Google-Smtp-Source: ALg8bN6Vnuh4BxLySNNILUCKH/N1KBQ7mEUwJLGylYPTvuYlDSsIWWc7UI1Qpj+zXGkWXVXSohI3 X-Received: by 2002:a62:a510:: with SMTP id v16mr22966680pfm.18.1548703374036; Mon, 28 Jan 2019 11:22:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548703374; cv=none; d=google.com; s=arc-20160816; b=Dlv2uQjVNZK3rtQex2B/hOsivIVLXkW2GMI4dOF8YZUWDomKuKbIUnx0hJsqj7L7K0 DpkQ9BKuDFS8bi5SSWAqePY5A5CjPT6fwGRC1nZoHdu13Zbs0hruP3il4E2HjhPPNF7q kbMGlOOJVYaXIt+qAzBNZgXH93F9HukfD5TK6PSCF/fp3zf3ExfCdnVDaKbJGGm7gAgZ PP/xwOnuV5HbMtd0+ecpWUTUWgqMdHACxMBIM/QH05npQnZc0IbAeueJu6zgIINKPFMa TPcZdpGqcPhgu1+AYlR2xR1uRCgJg+7x+kNrUcKpPKEzc+8f6qdSsUqG4CNRKS1pxEDn WNJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter; bh=9K981nRjiB/FyipvsylBPKjyPVRXvGVwtGS2MhaFgPU=; b=ZAvcC77rHqTobj81fiXDQitYf4jAMGlP02pnaf7UVVBHJrrYEid6ESpvDFso9i/e93 YzonlDqtpIUNy/KJmZWtHr3q0WhuFgmT23MBqHdwkJ5gTRybljCBpL5M6/rvKKWCwvRl de1jyHBZXx5AqncrESHIhPf9GwHsMLMBEbELdZNJI7DwjrDCWHuUzu1wAe3jPhmtqD39 az0ZOrB4L4CJ5FYf4rm40w4AEXuvThWK4d7LsSQO460aBidp23TKoJ7m1XOQdvLxBDr7 sLHuwLbmsPn+pf3fyHVO0uVyIY9Cu+Zphv7ni84oWc5mfuZXIKEN8X6b//2q4VKSoy9s 9OdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=rQxN7lZh; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q8si12869018pli.284.2019.01.28.11.22.38; Mon, 28 Jan 2019 11:22:54 -0800 (PST) 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=@samsung.com header.s=mail20170921 header.b=rQxN7lZh; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727991AbfA1TWM (ORCPT + 99 others); Mon, 28 Jan 2019 14:22:12 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:34465 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727755AbfA1TV5 (ORCPT ); Mon, 28 Jan 2019 14:21:57 -0500 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20190128192155euoutp0279c45b18db6eb310a46a5792f5ce30bf~_GXXbkQHy2531425314euoutp02Z for ; Mon, 28 Jan 2019 19:21:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20190128192155euoutp0279c45b18db6eb310a46a5792f5ce30bf~_GXXbkQHy2531425314euoutp02Z DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1548703315; bh=9K981nRjiB/FyipvsylBPKjyPVRXvGVwtGS2MhaFgPU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rQxN7lZhMpA7P6rEjwyrgn7XiV9kEHBMdKGf9KunGLZAa2XX7WbNJCt/gdu8/2GHA fQgm6SCiO/g5/L1EOSSaJOeRgqLwT9ICesP70Q58QyVxLzdWwJ79I12zg+I+kOeroU leRcaqgJklA3RUJe0M/M+w4WUPduWB8TdNlj08bE= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20190128192154eucas1p275721ffc91bf12ab89c440b36d529c0a~_GXWgxNBk2500025000eucas1p2Z; Mon, 28 Jan 2019 19:21:54 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 2B.0F.04441.2565F4C5; Mon, 28 Jan 2019 19:21:54 +0000 (GMT) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20190128192154eucas1p2e696de47c5aab0cdb80cff32254daaf9~_GXV0ClXs3041130411eucas1p2s; Mon, 28 Jan 2019 19:21:54 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20190128192153eusmtrp1104d5d2838175378189e407298205005~_GXVlbqio2976329763eusmtrp1P; Mon, 28 Jan 2019 19:21:53 +0000 (GMT) X-AuditID: cbfec7f2-5e3ff70000001159-a0-5c4f56522868 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 8B.2F.04128.1565F4C5; Mon, 28 Jan 2019 19:21:53 +0000 (GMT) Received: from AMDC3778.DIGITAL.local (unknown [106.120.51.20]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20190128192153eusmtip17afefa1541e838bb3704a144abc77b5e~_GXVGaDw80041400414eusmtip1Q; Mon, 28 Jan 2019 19:21:53 +0000 (GMT) From: Lukasz Luba To: devicetree@vger.kernel.org Cc: b.zolnierkie@samsung.com, myungjoo.ham@samsung.com, krzk@kernel.org, Lukasz Luba , Rob Herring , Mark Rutland , Kukjin Kim , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 6/8] DT: arm: exynos: add DMC device for exynos5422 Date: Mon, 28 Jan 2019 20:21:37 +0100 Message-Id: <1548703299-15806-7-git-send-email-l.luba@partner.samsung.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1548703299-15806-1-git-send-email-l.luba@partner.samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFuplleLIzCtJLcpLzFFi42LZduzned2gMP8Yg+5XChYbZ6xntZh/5Byr Rf/j18wW589vYLe41SBjsenxNVaLy7vmsFnMOL+PyWLp9YtMFrcbV7BZtO49wu7A7bFm3hpG j02rOtk8Ni+p9zj4bg+TR9+WVYwenzfJBbBFcdmkpOZklqUW6dslcGV8bnjIVnBFtmLFmSls DYxrxbsYOTkkBEwk3m2cyQZiCwmsYJS4szgUwv7CKDF9E5T9mVGiaQ5QPQdY/ZfNGV2MXEDh 5YwS/z7dY4FwgOovXr3GDFLEJqAnsWNVIUiviICcxM2vd9lAapgFjjFJNM4CaeDgEBZwlji/ zgakhkVAVWLS7OmsIDavgJfEzeU72SFuA+o918kMYnMKeEuc7lvACDJHQmAyu8S7lScZIYpc JNZsfwplC0u8Or4FqllG4vTkHhYIu1jibMcqNgi7RqL95A6oGmuJw8cvsoLcwyygKbF+lz5E 2FFi4e737BD/8knceCsIEmYGMidtm84MEeaV6GgTgqjWkNjSc4EJwhaTWL5mGtRwD4ll33oZ IaEzj1Giq7WbdQKj/CyEZQsYGVcxiqeWFuempxYb5qWW6xUn5ha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eby xNUr7n8f7bh7pmGC2quW+8UX5y7OcC5bOFVtnaSTCMNBm8wjkrvebj0WzNJwK+7H5Deqe9pC 76bU3BXLfGAnf3nlHGO27dwWx3K31a5en56/9JUSS3FGoqEWc1FxIgAdNFethQIAAA== X-CMS-MailID: 20190128192154eucas1p2e696de47c5aab0cdb80cff32254daaf9 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20190128192154eucas1p2e696de47c5aab0cdb80cff32254daaf9 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190128192154eucas1p2e696de47c5aab0cdb80cff32254daaf9 References: <1548703299-15806-1-git-send-email-l.luba@partner.samsung.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add description of Dynamic Memory Controller and PPMU counters. They are used by exynos5-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 | 81 +++++++++++++++++++++++++++ arch/arm/boot/dts/exynos5422-odroid-core.dtsi | 22 ++++++++ 2 files changed, 103 insertions(+) diff --git a/arch/arm/boot/dts/exynos5420.dtsi b/arch/arm/boot/dts/exynos5420.dtsi index aaff158..6880d13 100644 --- a/arch/arm/boot/dts/exynos5420.dtsi +++ b/arch/arm/boot/dts/exynos5420.dtsi @@ -1337,6 +1337,87 @@ opp-hz = /bits/ 64 <400000000>; }; }; + + ppmu_dmc0_0: ppmu_dmc0_0@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_dmc0_1@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_dmc1_0@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_dmc1_1@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"; + }; + }; + }; + + dmc: dmc@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" + ; + }; }; thermal-zones { diff --git a/arch/arm/boot/dts/exynos5422-odroid-core.dtsi b/arch/arm/boot/dts/exynos5422-odroid-core.dtsi index bf09eab..54ee8b2 100644 --- a/arch/arm/boot/dts/exynos5422-odroid-core.dtsi +++ b/arch/arm/boot/dts/exynos5422-odroid-core.dtsi @@ -119,6 +119,28 @@ status = "okay"; }; +&ppmu_dmc0_0 { + status = "okay"; +}; + +&ppmu_dmc0_1 { + status = "okay"; +}; + +&ppmu_dmc1_0 { + status = "okay"; +}; + +&ppmu_dmc1_1 { + status = "okay"; +}; + +&dmc { + devfreq-events = <&ppmu_dmc0_0>, <&ppmu_dmc0_1>, + <&ppmu_dmc1_0>, <&ppmu_dmc1_1>; + status = "okay"; +}; + &cpu0 { cpu-supply = <&buck6_reg>; }; -- 2.7.4