Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6874016imu; Thu, 31 Jan 2019 00:50:52 -0800 (PST) X-Google-Smtp-Source: ALg8bN445+3tnpkH7+ATH6QureGRm8fvD1We8EGnyU/DEYtxlXEcEGqWzVLZRNVGyQ/4JDNF13hA X-Received: by 2002:a63:a002:: with SMTP id r2mr30278301pge.212.1548924652184; Thu, 31 Jan 2019 00:50:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548924652; cv=none; d=google.com; s=arc-20160816; b=uorQFXSdd11C4YY1Ie7kyKe8uyJIDhwKBujhDPYsSwzp2KnrXuCGuW2ZoC2AAU/N96 eacWi1jq4bC88d0kBraezvNI5iFYQAoMPYcULjEheF+NF4s876F9FAbyG/3YUGoAnOfi QeT7JM7ywI8bKoZF4alu1kKpowZku3h8KHKEJaoz9St10zLnT192ONKQUjipJAeD1Xo8 qVhtoBugp2nzqSPgf75wiv2piD4vB+NEn7IsnQLPo10yZWZcmevUc0CeLjZjQsB1sfju 24nqKixzqz7yELuZ+jvPDod2J4bdSQA4h9cALK3ZbYv+el8UwMhAyySx1mZ5TgkfiauY 9Cog== 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=XVrdznC9/bIOdsyRV9OXRLLPGrvIyAuOW9k2HCowRn8=; b=cOYiYupHUM6w/KL4vZerKihoFiFhgGuAT4Pe+AggFc+G+qG9KAu6fzVzuNVYsZjFET pCThsmOmY3ikynznN9tbhQay/msHbNoRLeDCTa1n6ir+p/p2fF1+T0qq/zl3gWRha9bn pr+0bLfycoNdfr8+iXo3XAJFVyuY5i6IC/G0VuhaKkW3OhJ9/7o3AIL3fwGAAQqIvHt7 y1RpbzPwlv/Nj/mVVJOYARyl9h091LDjyHza5fgbpAyAbPtdMvCeTSXXUpQPfT5qGmNs 2ywxbaKz9mu+fWNGECgq5p+eugHcI23F3EDUQGfaA5nNJ7ZeRn7DmNeaoOaq9KcetvSx nSMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=CeiJdPVc; 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 m8si4002095plt.171.2019.01.31.00.50.36; Thu, 31 Jan 2019 00:50:52 -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=CeiJdPVc; 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 S1730064AbfAaIuW (ORCPT + 99 others); Thu, 31 Jan 2019 03:50:22 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:50886 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728868AbfAaIuO (ORCPT ); Thu, 31 Jan 2019 03:50:14 -0500 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20190131085011euoutp0247bbc482692fdf5a8ad8ef2c97b7033a~_4rpNnuRF1222712227euoutp02N for ; Thu, 31 Jan 2019 08:50:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20190131085011euoutp0247bbc482692fdf5a8ad8ef2c97b7033a~_4rpNnuRF1222712227euoutp02N DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1548924611; bh=XVrdznC9/bIOdsyRV9OXRLLPGrvIyAuOW9k2HCowRn8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CeiJdPVcnZHSM6W66Dtc5KZT8qE1RTG5cDcP0Qi64DyI3dt40g8v4eI2p1x8EsqGZ WaAbbX+R/mdcXLTz4cQskEmHVclwo5lWrUUc46JmNhZi3cToj0UcCZWdBtVFI+rm/2 8vU1u+lMNzr0WRhkxOJ0V8iyHuzT1P17w05SaALI= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20190131085010eucas1p2b5dfedbaedccd7955093976e76035c79~_4roaKDUh2510125101eucas1p2g; Thu, 31 Jan 2019 08:50:10 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 38.1E.04806.2C6B25C5; Thu, 31 Jan 2019 08:50:10 +0000 (GMT) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20190131085009eucas1p166467551006e54130905ebb5eefdefab~_4rnl3Bf22043220432eucas1p17; Thu, 31 Jan 2019 08:50:09 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20190131085009eusmtrp2b9c31be1a20e30fca7bb74b754bd8b8d~_4rnOJFzf2341223412eusmtrp2g; Thu, 31 Jan 2019 08:50:09 +0000 (GMT) X-AuditID: cbfec7f5-34dff700000012c6-69-5c52b6c23b29 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 79.7B.04128.1C6B25C5; Thu, 31 Jan 2019 08:50:09 +0000 (GMT) Received: from AMDC3778.DIGITAL.local (unknown [106.120.51.20]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20190131085008eusmtip1fcaf91eaa9cac085b93ead996dd5f330~_4rmghq181145511455eusmtip16; Thu, 31 Jan 2019 08:50:08 +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 v3 6/8] DT: arm: exynos: add DMC device for exynos5422 Date: Thu, 31 Jan 2019 09:49:52 +0100 Message-Id: <1548924594-19084-7-git-send-email-l.luba@partner.samsung.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1548924594-19084-1-git-send-email-l.luba@partner.samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrJKsWRmVeSWpSXmKPExsWy7djPc7qHtgXFGLx5LmexccZ6VovrX56z Wsw/co7Vov/xa2aL8+c3sFucbXrDbnGrQcZi0+NrrBaXd81hs/jce4TRYsb5fUwWa4/cZbdY ev0ik8XtxhVsFq17j7BbHH7Tzuog4LFm3hpGj02rOtk8Ni+p9zj4bg+TR9+WVYwenzfJBbBF cdmkpOZklqUW6dslcGU8m7yNtWCFQsWzDc/YGxi7JbsYOTgkBEwk/ky37WLk4hASWMEo8Xrb ViYI5wujxLo/v1ghnM+MEqv/b2XrYuQE6/h6dhobRGI5o8T7mR2scC0HOg+zgcxlE9CT2LGq EKRBRKBa4s71/cwgNcwCd5gk9s5cygKSEBZwk/h2Yg/YVBYBVYmP9yazgti8Al4S05dOY4XY Jidx81wnM4jNKeAtsaTrL9ggCYFt7BJ7L9xlgnjCRWJifxVEvbDEq+Nb2CFsGYn/O+czQdjF Emc7VkF9UCPRfnIHVI21xOHjF1lBxjALaEqs36UPEXaUmL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aVEk/OB8ZpXEm9oamhuYWlobmxubGah JM573qAySkggPbEkNTs1tSC1CKaPiYNTqoGx482S+r79z/qPPbg1/1AqN0tQ/rJ7Ih3VS20+ 3dx57WSfkNmckMW1R9l38/5gO2HX9dmpbNn5V5PUy49rCzbtnXBmnfADoRdTrmf58B9dN1t+ bk3+A2ufOq1TCg8mPZ30mt3izBq5C8+0Qngz1HcFHkldEyHnw9Z+pmqL57ZFTzbqv6xMiejd qsRSnJFoqMVcVJwIAIJtK9efAgAA X-CMS-MailID: 20190131085009eucas1p166467551006e54130905ebb5eefdefab X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20190131085009eucas1p166467551006e54130905ebb5eefdefab X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190131085009eucas1p166467551006e54130905ebb5eefdefab References: <1548924594-19084-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 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 | 78 +++++++++++++++++++++++++++ arch/arm/boot/dts/exynos5422-odroid-core.dtsi | 22 ++++++++ 2 files changed, 100 insertions(+) diff --git a/arch/arm/boot/dts/exynos5420.dtsi b/arch/arm/boot/dts/exynos5420.dtsi index aaff158..574d398 100644 --- a/arch/arm/boot/dts/exynos5420.dtsi +++ b/arch/arm/boot/dts/exynos5420.dtsi @@ -235,6 +235,36 @@ 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 +301,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>; }; -- 2.7.4