Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6874346imu; Thu, 31 Jan 2019 00:51:18 -0800 (PST) X-Google-Smtp-Source: ALg8bN5cl0Gl8NFb2CYafHddOcVN4yYDfxXhaM3uejH3teVY39Rb85UMTeJ4oCpagBG4dhGYuTdf X-Received: by 2002:a63:fc05:: with SMTP id j5mr31144228pgi.434.1548924678674; Thu, 31 Jan 2019 00:51:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548924678; cv=none; d=google.com; s=arc-20160816; b=HB+hQPdn2WUzE0SUVbvQpjPjt6QtXzobWowbmLLjPInupu002i+W74HAF+EANz62DS faWZ1zbmyzE+lEsDVC2QA8nuCjOO1QWKvF5bzxNcij5hFIPzP/Q3fW5F3HSMvAiAbtYa s9BDwP040msxkZfHh+qVUPhaMC4JaH9Chj7nYdKZ9KKEMLDSr4oFlhgJLhp1r83Y6s/4 Mc4dlYklesvojzhKcrmBT76Fo0Dq3i+TKblTKM8urNQBvEchx7nM8aNndYq+QcxA/ZBJ z656LnYf81ddwWEbvcSQsuAXCUYXUxQsv+nkDOwxeYe4NFe1AybVoMXkUF3XXO8PFtU5 yiew== 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=4mLNlO8kn7enl8xaIirmpn61OEmGZImpqy0vkgZZ1Co=; b=iqdZWwk17F//y/wX/qXXmZGnKzN5XUSkgFV8/mrWyESOOoyVctI0TsPeZWuI7/OC1S ULSOkTJ6208qzuxXJyyHT+i7qnFz7RFk3ck97uwOcbkXPLSDEcq2VUTgh5RKpAOd7H7H Q37kbaF2uYZq8y7272d6ck+d/8TYnEVE0adp4GCswifB8d89Wb9h3SkGCvErMhEeT2C8 Y1UYdEaACWEvzUcARURZYuE2wPcM/Z4vT74uE+pmMCiFW5j2XZxAkZ9Al9CkclRGKUr1 vW1R0l+qzOW3kisQWvu4ub1IfIZxg3qjpnoxH+ZcJYmhe4JiwmDjn0Id1I2ezFluna9M Y2Vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=IDBIwwJa; 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 d18si3768335pgm.212.2019.01.31.00.51.03; Thu, 31 Jan 2019 00:51:18 -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=IDBIwwJa; 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 S1730509AbfAaIuh (ORCPT + 99 others); Thu, 31 Jan 2019 03:50:37 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:50923 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728987AbfAaIuN (ORCPT ); Thu, 31 Jan 2019 03:50:13 -0500 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20190131085010euoutp0283f4cc2d5bdd948a0d3f82d776fef0d1~_4rocngFt1222712227euoutp02L for ; Thu, 31 Jan 2019 08:50:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20190131085010euoutp0283f4cc2d5bdd948a0d3f82d776fef0d1~_4rocngFt1222712227euoutp02L DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1548924610; bh=4mLNlO8kn7enl8xaIirmpn61OEmGZImpqy0vkgZZ1Co=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IDBIwwJaU/10K3CxxdT85q4PsAOcL/wGXQEST1EZOu2TuvbliipTu3hedDCj86S5R armIOsa4xG1zu7ImN4yt8reTRNC28AGbtSZB3GisFAmN8lVMXryP6OdsXAHoVd3Rai Wn9jg1nA2U948nk9Z+elwkS6HkDQ2MD8yTxC3sVQ= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20190131085010eucas1p1971da28de3106ed7e6d860da8798f9e7~_4rnre1xU2722227222eucas1p1l; Thu, 31 Jan 2019 08:50:10 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id B3.2C.04294.1C6B25C5; Thu, 31 Jan 2019 08:50:09 +0000 (GMT) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20190131085009eucas1p14c96bc345bc4c414e6c4d7506f14e69c~_4rmxdRDb1812018120eucas1p1F; 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 20190131085008eusmtrp24140cd3615e2e8ec95200ac70c00c9d9~_4rmiU__P2342023420eusmtrp2w; Thu, 31 Jan 2019 08:50:08 +0000 (GMT) X-AuditID: cbfec7f4-84fff700000010c6-a0-5c52b6c1f32a Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 48.7B.04128.0C6B25C5; Thu, 31 Jan 2019 08:50:08 +0000 (GMT) Received: from AMDC3778.DIGITAL.local (unknown [106.120.51.20]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20190131085008eusmtip16904f54f397eb3d1111dec30c8863863~_4rl1r-db1381713817eusmtip1T; Thu, 31 Jan 2019 08:50:07 +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 5/8] dt-bindings: devfreq: add Exynos5422 DMC device description Date: Thu, 31 Jan 2019 09:49:51 +0100 Message-Id: <1548924594-19084-6-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+NgFlrJKsWRmVeSWpSXmKPExsWy7djP87oHtwXFGMybrmmxccZ6VovrX56z Wsw/co7Vov/xa2aL8+c3sFucbXrDbnGrQcZi0+NrrBaXd81hs/jce4TRYsb5fUwWa4/cZbdY ev0ik8XtxhVsFq17j7BbHH7Tzuog4LFm3hpGj02rOtk8Ni+p9zj4bg+TR9+WVYwenzfJBbBF cdmkpOZklqUW6dslcGXsuLCCraBLreL4/72sDYxN8l2MnBwSAiYS0/9/ZAKxhQRWMEocueII YX9hlJjTpNvFyAVkf2aU+LWigRGmYfGEV6wQieWMEg3LvrJDOEAdv9q2s3UxcnCwCehJ7FhV CNIgIlAtcef6fmaQGmaBO0wSe2cuZQFJCAuESlzu/MYKYrMIqErc/nYZ7AxeAS+JHUc+sUNs k5O4ea6TGcTmFPCWWNL1F2yQhMA2dol1jzZDneQicX13I5QtLPHq+BaoZhmJ/zvnM0HYxRJn O1axQdg1Eu0nd0DVWEscPn6RFeRoZgFNifW79CHCj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nNTiQ4ymQEdNZJYSTc4HxmteSbyhqaG5haWhubG5sZmF kjjveYPKKCGB9MSS1OzU1ILUIpg+Jg5OqQZGWYvb7F9Y36odmN9h+PSgY6Ze1R/nm19OSv4K U3wzeWPxXJNdtf9/SPNfn5dd5pE10Z87QTAuSPjm/oMn6+K6nL5Hp8zri83aGJPrbrnpnfXe D5FlKt0LVLxqF+6smMUf4Jzru3XhIR9GXjFrw7PLI/SzWxQqpmRWZNeIPW3/yvejPYbt6S4l luKMREMt5qLiRADEVGnKnwIAAA== X-CMS-MailID: 20190131085009eucas1p14c96bc345bc4c414e6c4d7506f14e69c X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20190131085009eucas1p14c96bc345bc4c414e6c4d7506f14e69c X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190131085009eucas1p14c96bc345bc4c414e6c4d7506f14e69c 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 The patch adds description for DT binding for a new Exynos5422 Dynamic Memory Controller device. It also contains needed MAINTAINERS file update. CC: MyungJoo Ham CC: Kyungmin Park CC: Chanwoo Choi CC: Rob Herring CC: Mark Rutland CC: Kukjin Kim CC: Krzysztof Kozlowski CC: linux-pm@vger.kernel.org CC: linux-samsung-soc@vger.kernel.org CC: devicetree@vger.kernel.org CC: linux-arm-kernel@lists.infradead.org CC: linux-kernel@vger.kernel.org Signed-off-by: Lukasz Luba --- .../devicetree/bindings/devfreq/exynos5422-dmc.txt | 106 +++++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 107 insertions(+) create mode 100644 Documentation/devicetree/bindings/devfreq/exynos5422-dmc.txt diff --git a/Documentation/devicetree/bindings/devfreq/exynos5422-dmc.txt b/Documentation/devicetree/bindings/devfreq/exynos5422-dmc.txt new file mode 100644 index 0000000..229efba --- /dev/null +++ b/Documentation/devicetree/bindings/devfreq/exynos5422-dmc.txt @@ -0,0 +1,106 @@ +* Exynos5422 frequency and voltage scaling for Dynamic Memory Controller device + +The Samsung Exynos5422 SoC has DMC (Dynamic Memory Controller) to which the DRAM +memory chips are connected. The driver is to monitor the controller in runtime +and switch frequency and voltage. To monitor the usage of the controller in +runtime, the driver uses the PPMU (Platform Performance Monitoring Unit), which +is able to measure the current load of the memory. +When 'userspace' governor is used for the driver, an application is able to +switch the DMC frequency. + +Required properties for DMC device for Exynos5422: +- compatible: Should be "samsung,exynos5422-bus". +- clock-names : the name of clock used by the bus, "bus". +- clocks : phandles for clock specified in "clock-names" property. +- devfreq-events : phandles for PPMU devices connected to this DMC. + +The example definition of a DMC and PPMU devices declared in DT is shown below: + + ppmu_dmc0_0: ppmu@10d00000 { + compatible = "samsung,exynos-ppmu"; + reg = <0x10d00000 0x2000>; + clocks = <&clock CLK_PCLK_PPMU_DREX0_0>; + clock-names = "ppmu"; + status = "okay"; + 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"; + status = "okay"; + 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"; + status = "okay"; + 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"; + status = "okay"; + events { + ppmu_event_dmc1_1: ppmu-event3-dmc1_1 { + event-name = "ppmu-event3-dmc1_1"; + }; + }; + }; + + 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"; + + status = "okay"; + devfreq-events = <&ppmu_dmc0_0>, <&ppmu_dmc0_1>, + <&ppmu_dmc1_0>, <&ppmu_dmc1_1>; + }; + + diff --git a/MAINTAINERS b/MAINTAINERS index e81dfbf..ab0d8a5 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3316,6 +3316,7 @@ L: linux-pm@vger.kernel.org L: linux-samsung-soc@vger.kernel.org S: Maintained F: drivers/devfreq/exynos5422-dmc.c +F: Documentation/devicetree/bindings/devfreq/exynos5422-dmc.txt BUSLOGIC SCSI DRIVER M: Khalid Aziz -- 2.7.4