Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4885819imu; Tue, 29 Jan 2019 09:07:22 -0800 (PST) X-Google-Smtp-Source: ALg8bN6NAf6z7IZoyIY5QJhDoVM2I2Vo/ohaHw8L4hblS1S/rKhQUpuNl3trAMOWRNgCj/T8VV09 X-Received: by 2002:a17:902:981:: with SMTP id 1mr26052736pln.142.1548781642012; Tue, 29 Jan 2019 09:07:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548781641; cv=none; d=google.com; s=arc-20160816; b=roSWywW9uuD+i2q1S30CvZSu06yn3bBP6rcoiYwUStPJ7A6hRRAK2+usJN2QPUI2Hm g5Gtn28fPMQDeUqF3JPon7M/yjWDJimWyJrfWORi7tuyslwamplKhPAZ9n/m5tyInPBR wns9hcP/zUhW+8QeJPWLebNWr1IC3BpdfcF8pMSCYP74VHj47kNLCcUN4HzzSkxAqNbT H2ft2RibpiSXnOjIQkiMfTYkf+5mdHEuAJDz5+mwDck6JgV7FjLB0CmYoJ42JSWUqAlX TgZj8CV8keZ2E+guOjMHBj1x7kU2tpKbrDNBgJHdNMQGFeT4uBEHrP8qLoHxI/VfMIfQ A7bg== 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 :content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:cc:to:subject:dkim-signature :dkim-filter; bh=uwfQPmhCNFdmrQ5L8QC0pH38Sc5WAR1dJ3Ttyjn+XPA=; b=A8sYD6LiNlvla2dvO+NafHPmGgLT7sOuaqDHwgLiXgFOE2khfw0L48xW9KcXw6pxtN NKLajzV2LymnV0JdSm6jTKCRB0aARKfD8KC1ClPsooNEdkRngv3Zp+lzD1ZQnSKowxeR Dg5xgsGAgqJ8QQ0ABa1FSrgRAJ8oMTwJr8QZka2UThu/0PVB5KH4nLHbxatTcuqWM/0x 2vEAb86u+YrPaAFTPXDAoztWfM+ntg1+hFH03DK9pc1qAhu+pZKIXA7Gfg3GmTUoyYWV Y9sLPdYriEAd/922xD/tJnkCwe9f9ZrMQGjKgR8Vx7FCEt0qg5rMVndziqCxpVkuJCeY DdRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=ox0VGu8p; 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 n8si17691550plk.9.2019.01.29.09.07.05; Tue, 29 Jan 2019 09:07:21 -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=ox0VGu8p; 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 S1728553AbfA2RG5 (ORCPT + 99 others); Tue, 29 Jan 2019 12:06:57 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:40456 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727100AbfA2RG5 (ORCPT ); Tue, 29 Jan 2019 12:06:57 -0500 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20190129170655euoutp02670f908ebf42c1b3f277f2bbc11d4c31~_YKxY7AeT0668906689euoutp02c for ; Tue, 29 Jan 2019 17:06:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20190129170655euoutp02670f908ebf42c1b3f277f2bbc11d4c31~_YKxY7AeT0668906689euoutp02c DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1548781615; bh=uwfQPmhCNFdmrQ5L8QC0pH38Sc5WAR1dJ3Ttyjn+XPA=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=ox0VGu8pyoLcyq3HZMgobo2QGUBBNTb8lqQjZKyAArBNz4w85IaKRAFl+Nd32QQ5P L+9DHY1NrkAhFpfspPyw2JpB1vG+BVW0u13P/oHfDQka1f4FlPClyndKAXF7RESwnI ej4d0n/4Yk2+qcflHIeWv7obiX3kcvdoWANT7d30= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20190129170654eucas1p171168199fd8d4f943ced81556e6a6c77~_YKwcV87d2894628946eucas1p1b; Tue, 29 Jan 2019 17:06:54 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 1D.CD.04294.D28805C5; Tue, 29 Jan 2019 17:06:53 +0000 (GMT) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20190129170653eucas1p1b1561cbfdd3488c5ec3df5232b992e0f~_YKvtp-uL2839628396eucas1p1o; Tue, 29 Jan 2019 17:06:53 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20190129170653eusmtrp1d668519339b9d5df85d7b8124eda421d~_YKvfGUEC1764917649eusmtrp1b; Tue, 29 Jan 2019 17:06:53 +0000 (GMT) X-AuditID: cbfec7f4-835ff700000010c6-2b-5c50882d5614 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id DE.26.04284.D28805C5; Tue, 29 Jan 2019 17:06:53 +0000 (GMT) Received: from [106.120.51.20] (unknown [106.120.51.20]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20190129170652eusmtip1ed35c096d806ddd6126d4ba12a04d84b~_YKvAtvhA0884208842eusmtip1h; Tue, 29 Jan 2019 17:06:52 +0000 (GMT) Subject: Re: [PATCH 6/8] DT: arm: exynos: add DMC device for exynos5422 To: Krzysztof Kozlowski Cc: devicetree@vger.kernel.org, =?UTF-8?Q?Bart=c5=82omiej_=c5=bbo=c5=82nierkiewicz?= , myungjoo.ham@samsung.com, Rob Herring , Mark Rutland , Kukjin Kim , linux-arm-kernel@lists.infradead.org, "linux-samsung-soc@vger.kernel.org" , linux-kernel@vger.kernel.org From: Lukasz Luba Message-ID: <0daee320-1494-172a-9500-8b60dbdda3b7@partner.samsung.com> Date: Tue, 29 Jan 2019 18:06:51 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrGKsWRmVeSWpSXmKPExsWy7djP87q6HQExBt8/mVhsnLGe1WL+kXOs Fv2PXzNbnD+/gd1i0+NrrBaXd81hs5hxfh+TxdLrF5ksbjeuYLNo3XuE3YHLY828NYwem1Z1 snlsXlLv0bdlFaPH501yAaxRXDYpqTmZZalF+nYJXBkPvxxlK2iwrHh7sryB8bx8FyMnh4SA icSM/1PYuhi5OIQEVjBKNDS+Z4RwvjBKdL5+ygThfGaUWHDnDzNMy7mn89hAbCGB5YwSbx6l QBS9ZZQ42NPKCJIQFnCXuLhyOliRiICmxPW/31lBipgFOpglFrceYu9i5OBgE9CT2LGqEKSG V8BN4nA3xFAWAVWJRZfOsIDYogIREod73zFC1AhKnJz5BCzOKRAosaW3D8xmFhCXuPVkPhOE LS+x/e0cZpBdEgLH2CU2rdnGCnG1i8Tj76ehbGGJV8e3sEPYMhKnJ/ewQNjFEmc7VrFB2D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YfYhTgYFTi4WUI DogRYk0sK67MPcQowcGsJMJr+Ns/Rog3JbGyKrUoP76oNCe1+BCjKdBzE5mlRJPzgckiryTe 0NTQ3MLS0NzY3NjMQkmc97xBZZSQQHpiSWp2ampBahFMHxMHp1QDY1HW6hlP3k8W+hdVs/l2 1/G9+pseLlWY8dQjKHbixuNNtVd8XD86BrIZfVvQPT0l3LHKRuzpp0p+Vaaoqg725RsKtu5d ZJN+S1m/WmRGoNFOzhOPll+YGH3+X+yVnDPJ938veDu95HCkBpOi36d2Y9cJS643JP1yV/NR M758jmv/2YpluY3vnZVYijMSDbWYi4oTAcB3foLeAgAA X-CMS-MailID: 20190129170653eucas1p1b1561cbfdd3488c5ec3df5232b992e0f X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20190128192154eucas1p2e696de47c5aab0cdb80cff32254daaf9 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190128192154eucas1p2e696de47c5aab0cdb80cff32254daaf9 References: <1548703299-15806-1-git-send-email-l.luba@partner.samsung.com> <1548703299-15806-7-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 Hi Krzysztof, On 1/29/19 4:13 PM, Krzysztof Kozlowski wrote: > On Mon, 28 Jan 2019 at 20:21, Lukasz Luba wrote: >> >> Add description of Dynamic Memory Controller and PPMU counters. >> They are used by exynos5-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 | 81 +++++++++++++++++++++++++++ >> arch/arm/boot/dts/exynos5422-odroid-core.dtsi | 22 ++++++++ >> 2 files changed, 103 insertions(+) >> >> diff --git a/arch/arm/boot/dts/exynos5420.dtsi b/arch/arm/boot/dts/exynos5420.dtsi >> index aaff158..6880d13 100644 >> --- a/arch/arm/boot/dts/exynos5420.dtsi >> +++ b/arch/arm/boot/dts/exynos5420.dtsi >> @@ -1337,6 +1337,87 @@ >> opp-hz = /bits/ 64 <400000000>; >> }; >> }; >> + >> + ppmu_dmc0_0: ppmu_dmc0_0@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"; >> + }; >> + }; >> + }; >> + >> + > > No need for double line. Agree > >> + ppmu_dmc0_1: ppmu_dmc0_1@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_dmc1_0@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_dmc1_1@10d70000 { > > 1. Generic node name, e.g. "ppmu". > 2. Please put all ppmu nodes after nocp nodes to group everything logically. OK > >> + 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"; >> + }; >> + }; >> + }; >> + >> + dmc: dmc@10c20000 { > > 1. Node name: memory-controller. > 2. Put it before nocp nodes. OK > >> + compatible = "samsung,exynos5422-dmc"; >> + reg = <0x10c20000 0x10000>, <0x10c30000 0x10000>, >> + <0x10030000 0x1000>, <0x10000000 0x1000>; >> + clocks = <&clock CLK_FOUT_SPLL>, > > Weird indentation. > >> + <&clock CLK_MOUT_SCLK_SPLL>, >> + <&clock CLK_FF_DOUT_SPLL2>, > > Indent all continued lines with first entry (like in other places in this file) > >> + <&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> >> + ; > > Join the trailing semicolon with previous lines. OK > >> + clock-names = "fout_spll", >> + "mout_sclk_spll", > > Indent all continued lines with first entry (like in other places in this file). OK and all the entries will be compacted where possible for 80lines. > >> + "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" >> + ; > > Join the trailing semicolon with previous lines. >> + }; >> }; >> >> thermal-zones { >> diff --git a/arch/arm/boot/dts/exynos5422-odroid-core.dtsi b/arch/arm/boot/dts/exynos5422-odroid-core.dtsi >> index bf09eab..54ee8b2 100644 >> --- a/arch/arm/boot/dts/exynos5422-odroid-core.dtsi >> +++ b/arch/arm/boot/dts/exynos5422-odroid-core.dtsi >> @@ -119,6 +119,28 @@ >> status = "okay"; >> }; >> >> +&ppmu_dmc0_0 { >> + status = "okay"; >> +}; >> + >> +&ppmu_dmc0_1 { >> + status = "okay"; >> +}; >> + >> +&ppmu_dmc1_0 { >> + status = "okay"; >> +}; >> + >> +&ppmu_dmc1_1 { >> + status = "okay"; >> +}; > > Put the new entries respecting alphabetical order (order of label name). OK > >> + >> +&dmc { > > The same. Thank you for review, in v2 it will be fixed. Regards, Lukasz > > Best regards, > Krzysztof > >> + devfreq-events = <&ppmu_dmc0_0>, <&ppmu_dmc0_1>, >> + <&ppmu_dmc1_0>, <&ppmu_dmc1_1>; >> + status = "okay"; >> +}; >> + >> &cpu0 { >> cpu-supply = <&buck6_reg>; >> }; >> -- >> 2.7.4 >> > >