Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4935415imu; Tue, 29 Jan 2019 09:57:30 -0800 (PST) X-Google-Smtp-Source: ALg8bN7SlvKgjH6WTFbaXDTccwWOIGkelHkhWjH3CfNLBaROrN2YMqrC5/oMKZbWPtrE7VFVuRTq X-Received: by 2002:a17:902:20c6:: with SMTP id v6mr27202878plg.156.1548784650940; Tue, 29 Jan 2019 09:57:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548784650; cv=none; d=google.com; s=arc-20160816; b=k3UU3+GYov3F1H91IXjUeUv5I4Wg/WGfDyCSAvGWG6CBP/Oz8zWVlDmP3zQlCGnaKb cD9cWmt/debWDW8x73/II92Q6LGcZcUk55SdHejAYJOq5CPiVu44MFe47Gl6Jdu9KmYr ZBhe8lQC5C0U6ApmItZt6C/Y8IbjZTAy4POXWHLLzXq74K8YORA7MDzZFUpAiJQRwkKS yz9Ijd+e+lbZhbA4UAmCxK+/25BJIi7SxFdPudM3UJXVfMpGe1YPvzMHi4gKYTZD4a3q U9k5nhedrMQoGGaH8KTe87hr0W6Xo8/rDaLUWrn1b//Z0FFS+HsXGgOT8wwSPvI0ItO4 0Pmw== 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=XwvE819PGgCk+v7COODs9vF1APcF4d1ePy+6X2BCL3A=; b=TLfeQtPqZZlyj0O544qbXWrBIYiLPigGPzRu0YZqzAD3D3YN0PQhQcBy2asdqoWLQP IPxptZfp7FB22qQrJredHnJQH4yhmSMGQ4vUeQilXMSNoupmKzZQTi2DExI2DpjhM/yK Uu6Ap0cxd1reBrlyPmkuh9SYfjK/U9nu+6pfSb6F55SEbaPbqpf+fcIBlBeJiz7JqFeQ MTgBSDcUv0a4ktln5V4k4AKW8Ehc64tkYROxnwPlEQgG7d8tT22S4CY5fO1ESHmg0y9b PQ6P+gogJuFYew4MpAJO+DFw2fDg8jvbqLcUx6OZSlh90w7isIpRxfiM8+WEwI/+a7XG lgdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=VoSB+mgj; 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 1si10938945plk.296.2019.01.29.09.57.15; Tue, 29 Jan 2019 09:57:30 -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=VoSB+mgj; 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 S1729042AbfA2R4C (ORCPT + 99 others); Tue, 29 Jan 2019 12:56:02 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:48951 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728611AbfA2Rz3 (ORCPT ); Tue, 29 Jan 2019 12:55:29 -0500 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20190129175528euoutp026afa38176a185594865bee7651e2e9d4~_Y1Kd1Eys2896328963euoutp02L for ; Tue, 29 Jan 2019 17:55:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20190129175528euoutp026afa38176a185594865bee7651e2e9d4~_Y1Kd1Eys2896328963euoutp02L 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+M7jCCDJAS2sUucPL+ZBaLIReLn3DVMELawxKvjW9ghbBmJ/zvnQ8WLJc52 rGKDsGsk2k/ugKqx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TKqtSi/Pii0pzU4kOMpkBHTWSWEk3OB8ZqXkm8oamhuYWlobmxubGZ hZI473mDyighgfTEktTs1NSC1CKYPiYOTqkGRhkr5elPT/e3KTVl3eK12VWUFsGz+Glfaibf IVuPS2d8/qub5Otf7Wc7dsmSX7BIo0FfLq9cZ94T0Yl//I9/O2L184P46VXhWzMkQ1Mi3r2X 4K73nPv0k2bJZonJLWoqkts+K/T0znynucfD2P6089tbHAuqZd9fVPLKXHGy7uLHOQenK5/e qMRSnJFoqMVcVJwIAMLLVz6dAgAA X-CMS-MailID: 20190129175526eucas1p253dc2e8a0d64b34d95c84d585fb0fac0 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" 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-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 | 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>; }; -- 2.7.4