Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4770164imu; Tue, 29 Jan 2019 07:15:01 -0800 (PST) X-Google-Smtp-Source: ALg8bN57bXkYQSdWeEPuqwEl5c3aiIwVoCe9nhuhtPOfnTSmnAg7VmLRQ1u8888Lg2VVfVloBCPY X-Received: by 2002:a65:6684:: with SMTP id b4mr24112370pgw.55.1548774901403; Tue, 29 Jan 2019 07:15:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548774901; cv=none; d=google.com; s=arc-20160816; b=OGW8uAT/zbb1kjimKhQksZ877GqVKhRjFrEp2UkYk0wDpBJsACWUCUrOqDAhwqNFN3 tyoG52/pLd6bObx2OxHzC49zOT3ucL53Og9yq8Ffa0l1uXtDZOXol1RVAziSZi912MAp hTBu+nwhNk9xSkLinC5mSPQmJY2zxvvRgl+nMZxShrNHlm0IeNLGhXOp8q21TEAGlsJ+ P+TJXfsY412tgWnQsToB9s/LP6ZGIXpBvOMTjy5DviZGXKPkdOuxGivvJOw+WbV9QAsI JYdZzAOcQTodHj4J2PTq3Vumidkic5/WEig1wbWO09VCyaU9r/8RxCisizM7OGckMywW FvBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=cfqqJGQftKfXkZDVPnAvV+L7+WaZC7JzjJRplX1xc7Y=; b=k5sWk2SfKQc+9OCt9XTNYxm6+yjsmwdDexcJSsFfgZZj/RBOx46vfQUwjI9H7jXU/t JdLGYzU6DjwLRO4j5f6nNTb0mlwZXC9sj3DDWa2p5IUsZ4ewoWQMlTRqmuPlAulccSsd O2j4B+6p0/q+oFFTeePQwNp1uQcxkDKhfti3/dPtcnM78hl1rkefx/JOcZ9x2HQoQCra U5zyyjwE8SH2J/zeC75pWccok8sSfkwvJLOecCM5PXcxrT8aDElDqP/ZU4NdmVRzObgV h+V9Y+65vlxa0F1fktg7LrBIqQYpA/5qapFaIHpC8g7gqMk2A5BihLylhZ50oWxWjlxM VqPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=DFfvJuBA; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y20si8607712pgi.50.2019.01.29.07.14.45; Tue, 29 Jan 2019 07:15:01 -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=@kernel.org header.s=default header.b=DFfvJuBA; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728482AbfA2POF (ORCPT + 99 others); Tue, 29 Jan 2019 10:14:05 -0500 Received: from mail.kernel.org ([198.145.29.99]:51416 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726383AbfA2POF (ORCPT ); Tue, 29 Jan 2019 10:14:05 -0500 Received: from mail-lj1-f174.google.com (mail-lj1-f174.google.com [209.85.208.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1CC58214DA; Tue, 29 Jan 2019 15:14:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1548774843; bh=qlHSCtwc7CZA3lrjJGWS5xngOSzHuOiH244mYsIbt80=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=DFfvJuBA+/NxylKGdMVIShV15qaC6hXW6yZIN0fVoWYef4ZAUXbLLiNIwxREi6W1o 6LfRJsZwJ6EUWmir1IjOM0WwC4UFmlYRVg4BBMkCZyfy6syHpsQ7jER8HnM+mNbRpM o873b6+xMj5PrmKxiGfGFMw1tyPS6IacEy1R7JPo= Received: by mail-lj1-f174.google.com with SMTP id g11-v6so17813755ljk.3; Tue, 29 Jan 2019 07:14:03 -0800 (PST) X-Gm-Message-State: AJcUukfx1fj1112MkPAhXrNzW58eYwBi+Qegfd1R4mZd2bGjXUZUViEa 9e5BOmwt7X1lxCsmChrup64NyoVao/7apAlrmrU= X-Received: by 2002:a2e:4a19:: with SMTP id x25-v6mr18632864lja.19.1548774841270; Tue, 29 Jan 2019 07:14:01 -0800 (PST) MIME-Version: 1.0 References: <1548703299-15806-1-git-send-email-l.luba@partner.samsung.com> <1548703299-15806-7-git-send-email-l.luba@partner.samsung.com> In-Reply-To: <1548703299-15806-7-git-send-email-l.luba@partner.samsung.com> From: Krzysztof Kozlowski Date: Tue, 29 Jan 2019 16:13:49 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 6/8] DT: arm: exynos: add DMC device for exynos5422 To: Lukasz Luba Cc: devicetree@vger.kernel.org, =?UTF-8?B?QmFydMWCb21pZWogxbtvxYJuaWVya2lld2ljeg==?= , 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 Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > + 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. > + 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. > + 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. > + clock-names = "fout_spll", > + "mout_sclk_spll", Indent all continued lines with first entry (like in other places in this file). > + "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). > + > +&dmc { The same. 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 >