Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4934582imu; Tue, 29 Jan 2019 09:56:31 -0800 (PST) X-Google-Smtp-Source: ALg8bN6zr1C1SU5W6R4I41Pgxbn3R/33nwZoIFE4duGH1nZGcDDp3x2LB852BwF5ZR/LTemV8PUi X-Received: by 2002:a63:ef04:: with SMTP id u4mr24782660pgh.197.1548784591532; Tue, 29 Jan 2019 09:56:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548784591; cv=none; d=google.com; s=arc-20160816; b=KWWU9xgLdrOFQPWROYZuU7pUse/wM6xo9pzbH3QCbTRyDRzoMDidYpJhrsgsto7HiN 7dGYdl3vcq4Mmt46LaLMtCjqn0R6VWnhROkg6AEBIo6l9jFQuw0U9WP92E4MIZDjJUZ+ k8SNtT3RF+spOUeyjH2AYTRy3Bnx3TXamTq9SwyZa68xvvCx31CJqG0n2PxqfrIuWebC G33QD2JW/MCf0wa2crdH9zhiODA+54+0BmHl95W6uSvBQheZi0sjjBpDHxCJWXlmBWFZ v1s0tRKOAtjnTW6fhlYphaIzfwx6APl9mKLnJIsmt1UoP92dWUPgPol+/Utggq7Z9JCf Gvjg== 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=j3vDp5riDKJ05JmIoptZxvDtd2JEpVM7ozS+GkqW4AGNZndc2j169ETTif6j5RdPQs uB4f6C5t7RowSZ69X3Uh0FhkUFaLWt5oPE7G5YpzadQKr78XHSpnERNPNad6BIcDwGcK naO6wrJtBuJ5xgN6TwXaQ3EAcRxPZtjoWglbI9VsGZa+ywJ2UwBMGTCMaoOkECWiQO+c oR2UkDfeb19ixyVKtezXpTvMuH45Gi2jKLIDkLKoL+Gp5N2bCRJvGRVZKKWhDI5pXRvr SBIXxqIihL98lx+djRdkqDMtBkTszJnuwg7GFbsjtKu3A1TPB1myVQUYVLbjQ5ufuCn9 TKVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=NdURfDCv; 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 a11si37840927pln.78.2019.01.29.09.56.16; Tue, 29 Jan 2019 09:56:31 -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=NdURfDCv; 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 S1729007AbfA2Rzz (ORCPT + 99 others); Tue, 29 Jan 2019 12:55:55 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:48963 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728616AbfA2Rza (ORCPT ); Tue, 29 Jan 2019 12:55:30 -0500 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20190129175528euoutp02048eb717e378430bd30ab1976d52b004~_Y1KK2Uvk3063230632euoutp02E for ; Tue, 29 Jan 2019 17:55:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20190129175528euoutp02048eb717e378430bd30ab1976d52b004~_Y1KK2Uvk3063230632euoutp02E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1548784528; bh=4mLNlO8kn7enl8xaIirmpn61OEmGZImpqy0vkgZZ1Co=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NdURfDCvckgOzNRSLSaLr+rb2+z9eAAhX4f2Oq4/B4EijpvW+vkX2pyrSNhf4UCF4 hZ4cHheJikou5nEyc1/Qpg27j1pPm6VDFljOxgp/q8FSOZ6sOjsK42cP5S5DZlEANQ fQmRAkvmTaFD21pB3IB/64OpPFMLLwwoprksB1eo= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20190129175527eucas1p189d7c136bb9ff6845b5a7b1fd59ea1ec~_Y1JcdOp52455524555eucas1p1Z; Tue, 29 Jan 2019 17:55:27 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 1A.F7.04441.E83905C5; Tue, 29 Jan 2019 17:55:26 +0000 (GMT) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20190129175526eucas1p197f5db6208ee52e25fecd58fe7c608e4~_Y1IlJeFG2431324313eucas1p1U; Tue, 29 Jan 2019 17:55:26 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20190129175526eusmtrp26d893244c35d860c6c408b6a9e249dee~_Y1IWPi3e0424104241eusmtrp2b; Tue, 29 Jan 2019 17:55:26 +0000 (GMT) X-AuditID: cbfec7f2-5c9ff70000001159-1a-5c50938e980d Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id E9.09.04284.D83905C5; Tue, 29 Jan 2019 17:55:25 +0000 (GMT) Received: from AMDC3778.DIGITAL.local (unknown [106.120.51.20]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20190129175525eusmtip168a03d84198eddbe7d27127b05513acf~_Y1HouIv72139021390eusmtip1H; 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 5/8] dt-bindings: devfreq: add Exynos5422 DMC device description Date: Tue, 29 Jan 2019 18:55:11 +0100 Message-Id: <1548784514-26649-6-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+NgFlrFKsWRmVeSWpSXmKPExsWy7djPc7p9kwNiDL7dtLbYOGM9q8X1L89Z LeYfOcdq0f/4NbPF+fMb2C3ONr1ht7jVIGOx6fE1VovLu+awWXzuPcJoMeP8PiaLtUfuslss vX6RyeJ24wo2i9a9R9gtDr9pZ3UQ8Fgzbw2jx6ZVnWwem5fUexx8t4fJo2/LKkaPz5vkAtii uGxSUnMyy1KL9O0SuDJ2XFjBVtClVnH8/17WBsYm+S5GTg4JAROJlZNesHQxcnEICaxglHi8 4TErhPOFUWLz/NuMEM5nRokvnd+BMhxgLQ8muEHElzNKvPjUidBxvHkhI0gRm4CexI5VhSAr RASqJe5c388MUsMscIdJYu/MpSwgCWGBUIl5/Q+ZQWwWAVWJf8dWgdm8Al4SC3ftZYW4T07i 5rlOsDingLdEx+M7YBdJCGxjlzi77z0jRJGLxJ1Hr9khbGGJV8e3QNkyEv93zmeCsIslznas YoOwayTaT+6AqrGWOHz8IthnzAKaEut36UOEHSXeLJ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dNZFZSjQ5HxiteSXxhqaG5haWhubG5sZm FkrivOcNKqOEBNITS1KzU1MLUotg+pg4OKUaGJP4Uqd9m3lsfaUMU47ZthiWgzZLci8IrGTd Xjt3jZGdrcrRSKufzl+O7v5bmfanhvFPvWtVYdONuBmKluXhZeFWbW4iN7V/ySh80mHI/RQf mX1l3YWF1/mOCyucEVeJWepWu9jDm9nwVH1i28MFlmKdqZMt9msYXZy4eJfOzdVvnEqZld2d lViKMxINtZiLihMB+hS2yp4CAAA= X-CMS-MailID: 20190129175526eucas1p197f5db6208ee52e25fecd58fe7c608e4 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20190129175526eucas1p197f5db6208ee52e25fecd58fe7c608e4 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190129175526eucas1p197f5db6208ee52e25fecd58fe7c608e4 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 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