Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3980251yba; Tue, 7 May 2019 10:05:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqxx1LBQ47zikisPX8gjuMUycbE94VWGxf9OnLveoRMfkYAdOmr1We7L0Heod5SkptkPYLmS X-Received: by 2002:a62:a503:: with SMTP id v3mr42527548pfm.32.1557248738269; Tue, 07 May 2019 10:05:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557248738; cv=none; d=google.com; s=arc-20160816; b=kd8HXA8fnulFaPWPeyNMBmUl2BRvv88MrnI5wgazUHQFJPvMdTIvou8zpAQPqc6x1A +J2j+Q9mzjjLna5Zktca490BBdnXPXZ7PZ4BI3n1cKllT4ZVBsLNXM42s7zo1h/ZehdM oyo6w+r2oPeqxwXXQG+NVr0SHNhxslx7F+626JY/PuOpaTqRuPxCUngILNfMu9apELvw f8PNZy/1fiDruGdBfhCc7644DZycBE736hqc5ugLiugk9V9EzwABA1k9IxLp+KU6rqpP wZS7r5a3kNm/Pj1AZjkPWJesk8IPKU4B1nnyvaWdekeD6meEOqcJ5pvgOXo48JI2hq1B WbiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=Qof9Nq6m3eIX2nP0Hb5nTkjVTKOQLNCq2yMZEGD0HaI=; b=RXMrosAodzzhekuvMPA9CkjD65WIgbDghBMHQzUla34yOtLUYe6pxxUJMu7LPvCZGa obOaUhVp3b+qcXiJaHFj36D+tF6MGAnQWelEA5JRdEVuNNrpvd/MG+nzEKLtEfVbV04d 9uJWzDx6XGglHjEodQXEZhy3vunX/1yeVJCTJJ7u5FeFXcVzQfh9XU94JkKIdBoj7hra McfSKqqR397JMxK2yxqf28EEmoFXD0WqYotvSS9ra9+Kfte+2O3jCJPbWiWlQgwmuqgK MKH3jGnuiAlhjx0n1jgWN3Gjyrmeko7SPPevnC2+zQPf/97vxp4+5e2GLAV6EnQCWQ7Z bHpg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s4si19498639plp.59.2019.05.07.10.05.21; Tue, 07 May 2019 10:05:38 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727308AbfEGREZ (ORCPT + 99 others); Tue, 7 May 2019 13:04:25 -0400 Received: from mail-ot1-f68.google.com ([209.85.210.68]:33462 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726602AbfEGREZ (ORCPT ); Tue, 7 May 2019 13:04:25 -0400 Received: by mail-ot1-f68.google.com with SMTP id 66so6226577otq.0; Tue, 07 May 2019 10:04:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=Qof9Nq6m3eIX2nP0Hb5nTkjVTKOQLNCq2yMZEGD0HaI=; b=fU3blnO8KGc0e4se6/fUy7GSCouh/Hp7fOe771gW5Qocisbbk/vBu5SdnVcWujEvc4 ohxV7xxMw38HxQeiAgfZXx7rsFLbZkVAcHRdwkeg5WU9gub214GnxYD7cGjuSoa1VubA pwJjuge/ml9k9Hd1pxtDeTc0a20tTknimC2tqC/SvkVZa1kHwrMiLl43AbhUkZLo5oJQ y4yB0Ucr7Oq14NRfLsSpjD78FdHOLUiC0J6wQrWnU8MGlwPvWTfeLRd72hZntlAfQmCm 047YSOeJNMlxvuhrOOeds0lQ55bis2W4fZRIydPU8VG9aZ/z07IjtLRWJJkxX1S9IC3o aPtQ== X-Gm-Message-State: APjAAAXojTy5HbeN2txRK3RrhWgb+heAy/skGUbEb1SH6mWnnz+4iCZ1 a4f8xoyXkO+M7HAVDC3Obg== X-Received: by 2002:a9d:5d03:: with SMTP id b3mr1965330oti.268.1557248664018; Tue, 07 May 2019 10:04:24 -0700 (PDT) Received: from localhost (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id x12sm5190251otq.19.2019.05.07.10.04.23 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 07 May 2019 10:04:23 -0700 (PDT) Date: Tue, 7 May 2019 12:04:22 -0500 From: Rob Herring To: Lukasz Luba Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-samsung-soc@vger.kernel.org, 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, keescook@chromium.org, tony@atomide.com, jroedel@suse.de, treding@nvidia.com, digetx@gmail.com, willy.mh.wolff.ml@gmail.com Subject: Re: [PATCH v7 07/13] dt-bindings: memory-controllers: add Exynos5422 DMC device description Message-ID: <20190507170422.GA25179@bogus> References: <1557155521-30949-1-git-send-email-l.luba@partner.samsung.com> <1557155521-30949-8-git-send-email-l.luba@partner.samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1557155521-30949-8-git-send-email-l.luba@partner.samsung.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 06, 2019 at 05:11:55PM +0200, Lukasz Luba wrote: > The patch adds description for DT binding for a new Exynos5422 Dynamic > Memory Controller device. > > Signed-off-by: Lukasz Luba > --- > .../bindings/memory-controllers/exynos5422-dmc.txt | 74 ++++++++++++++++++++++ > 1 file changed, 74 insertions(+) > create mode 100644 Documentation/devicetree/bindings/memory-controllers/exynos5422-dmc.txt > > diff --git a/Documentation/devicetree/bindings/memory-controllers/exynos5422-dmc.txt b/Documentation/devicetree/bindings/memory-controllers/exynos5422-dmc.txt > new file mode 100644 > index 0000000..be602a9 > --- /dev/null > +++ b/Documentation/devicetree/bindings/memory-controllers/exynos5422-dmc.txt > @@ -0,0 +1,74 @@ > +* 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 and memory frequency. > + > +Required properties for DMC device for Exynos5422: > +- compatible: Should be "samsung,exynos5422-dmc". > +- clock-names : the name of clock used by the controller. > +- clocks : phandles for clock specified in "clock-names" property. Need to enumerate the clocks and their order. > +- devfreq-events : phandles for PPMU devices connected to this DMC. > +- vdd-supply : phandle for voltage regulator which is connected. > +- reg : registers of two CDREX controllers. > +- operating-points-v2 : phandle for OPPs described in v2 definition. > +- device-handle : phandle of the connected DRAM memory device. For more > + information please refer to Documentation Documentation... ? > +- devfreq-events : phandles of the PPMU events used by the controller. > +- samsung,syscon-chipid : phandle of the ChipID used by the controller. > +- samsung,syscon-clk : phandle of the clock register set used by the controller. Looks like a hack. Can't you get this from the clocks property? What is this for? > + > +Example: > + > + 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"; > + }; > + }; > + }; > + > + dmc: memory-controller@10c20000 { > + compatible = "samsung,exynos5422-dmc"; > + reg = <0x10c20000 0x100>, <0x10c30000 0x100>, > + 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"; > + operating-points-v2 = <&dmc_opp_table>; > + devfreq-events = <&ppmu_event3_dmc0_0>, <&ppmu_event3_dmc0_1>, > + <&ppmu_event3_dmc1_0>, <&ppmu_event3_dmc1_1>; > + operating-points-v2 = <&dmc_opp_table>; > + device-handle = <&samsung_K3QF2F20DB>; > + vdd-supply = <&buck1_reg>; > + samsung,syscon-clk = <&clock>; > + samsung,syscon-chipid = <&chipid>; > + }; > -- > 2.7.4 >