devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Simon Horman <horms@verge.net.au>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Mark Rutland <mark.rutland@arm.com>,
	"open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS"
	<devicetree@vger.kernel.org>, Magnus Damm <magnus.damm@gmail.com>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Linux-Renesas <linux-renesas-soc@vger.kernel.org>,
	Rob Herring <robh+dt@kernel.org>,
	Jacopo Mondi <jacopo+renesas@jmondi.org>,
	linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH 05/15] ARM64: dts: Add R-Car Salvator-x M3-N support
Date: Thu, 15 Feb 2018 16:38:44 +0100	[thread overview]
Message-ID: <20180215153843.b33svmvuhofstw4e@verge.net.au> (raw)
In-Reply-To: <CAMuHMdW0SYdwNNWfzNttY8xdfnB-oLR4MvhWpO7Pks-WY76=3g@mail.gmail.com>

On Wed, Feb 14, 2018 at 02:58:34PM +0100, Geert Uytterhoeven wrote:
> Hi Jacopo,
> 
> On Tue, Feb 13, 2018 at 10:45 AM, Jacopo Mondi
> <jacopo+renesas@jmondi.org> wrote:
> > Add initial support for R-Car M3-N Salvator-x and r8a77965 SoC in
> > device tree with cpg-mssr, reset and clock nodes.
> >
> > Add place-holder device nodes for all nodes referred by
> > "salvator-common.dtsi"
> >
> > Signed-off-by: Jacopo Mondi <jacopo+renesas@jmondi.org>
> 
> Thanks for your patch!
> 
> Looks mostly fine to me.
> 
> P.S. scripts/dtc/dtx_diff arch/arm64/boot/dts/renesas/r8a7796{,5}-salvator-x.dtb
>      is your friend.
> 
> >  arch/arm64/Kconfig.platforms                       |   6 +
> >  arch/arm64/boot/dts/renesas/Makefile               |   1 +
> >  .../arm64/boot/dts/renesas/r8a77965-salvator-x.dts |  30 ++
> >  arch/arm64/boot/dts/renesas/r8a77965.dtsi          | 495 +++++++++++++++++++++
> >  4 files changed, 532 insertions(+)
> >  create mode 100644 arch/arm64/boot/dts/renesas/r8a77965-salvator-x.dts
> >  create mode 100644 arch/arm64/boot/dts/renesas/r8a77965.dtsi
> 
> The maintainer will probably ask you to split this in three parts:
>   - ARCH_R8A77965
>   - r8a77965.dtsi
>   - r8a77965-salvator-x.dts

Yes, I would like to ask for that.

> > --- /dev/null
> > +++ b/arch/arm64/boot/dts/renesas/r8a77965-salvator-x.dts
> > @@ -0,0 +1,30 @@
> > +// SPDX-License-Identifier: GPL-2.
> > +/*
> > + * Device Tree Source for the Salvator-X board
> 
> with R-Car M3-N
> 
> > + *
> > + * Copyright (C) 2018 Jacopo Mondi <jacopo+renesas@jmondi.org>
> > + */
> > +
> > +/dts-v1/;
> > +#include "r8a77965.dtsi"
> > +#include "salvator-x.dtsi"
> > +
> > +/ {
> > +       model = "Renesas Salvator-X board based on r8a77965";
> > +       compatible = "renesas,salvator-x", "renesas,r8a77965";
> > +
> > +       aliases {
> > +               serial0 = &scif2;
> > +       };
> > +
> > +       chosen {
> > +               bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp";
> > +               stdout-path = "serial0:115200n8";
> > +       };
> 
> Both aliases and chosen are already defined in salvator-common.dtsi,
> included via salvator-x.dtsi.
> 
> > --- /dev/null
> > +++ b/arch/arm64/boot/dts/renesas/r8a77965.dtsi
> > @@ -0,0 +1,495 @@
> > +// SPDX-License-Identifier: GPL-2.
> > +/*
> > + * Device Tree Source for the r8a77965 SoC
> > + *
> > + * Copyright (C) 2018 Jacopo Mondi <jacopo+renesas@jmondi.org>
> > + *
> > + * Based on r8a7796.dtsi
> > + * Copyright (C) 2016 Renesas Electronics Corp.
> > + */
> > +
> > +#include <dt-bindings/clock/r8a77965-cpg-mssr.h>
> > +#include <dt-bindings/interrupt-controller/arm-gic.h>
> > +#include <dt-bindings/power/r8a77965-sysc.h>
> > +
> > +#define CPG_AUDIO_CLK_I                R8A77965_CLK_S0D4
> > +
> > +/ {
> 
> > +       soc {
> > +               compatible = "simple-bus";
> > +               interrupt-parent = <&gic>;
> > +               #address-cells = <2>;
> > +               #size-cells = <2>;
> > +               ranges;
> 
> > +               timer {
> > +                       compatible = "arm,armv8-timer";
> > +                       interrupts = <GIC_PPI 13
> > +                                       (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>,
> > +                                    <GIC_PPI 14
> > +                                       (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>,
> > +                                    <GIC_PPI 11
> > +                                       (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>,
> > +                                    <GIC_PPI 10
> > +                                       (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>;
> > +               };
> 
> Please move the timer out of the soc node, as it does't have a unit address
> and a reg property.
> 
> > +               pmu_a57 {
> > +                       compatible = "arm,cortex-a57-pmu";
> > +                       interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>,
> > +                                    <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
> > +                       interrupt-affinity = <&a57_0>,
> > +                                            <&a57_1>;
> > +               };
> 
> Please move the pmu out of the soc node, as it does't have a unit address
> and a reg property.

Please refer to one of the upstream Gen3 dtsi files for examples of the
above.

  parent reply	other threads:[~2018-02-15 15:38 UTC|newest]

Thread overview: 59+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-13  9:45 [PATCH 00/15] R-Car M3-N initial support Jacopo Mondi
2018-02-13  9:45 ` [PATCH 01/15] Documentation: devicetree: R-Car M3-N SoC DT bindings Jacopo Mondi
2018-02-14 10:01   ` Simon Horman
2018-02-19  2:52     ` Rob Herring
2018-02-19  9:19       ` Simon Horman
     [not found]   ` <1518515162-23663-2-git-send-email-jacopo+renesas-AW8dsiIh9cEdnm+yROfE0A@public.gmane.org>
2018-02-14 10:36     ` Geert Uytterhoeven
2018-02-13  9:45 ` [PATCH 02/15] clk: renesas: cpg-msr: Add support for R-Car M3-N Jacopo Mondi
2018-02-13 11:48   ` Kieran Bingham
2018-02-14 11:03   ` Geert Uytterhoeven
2018-02-15 15:31   ` Simon Horman
     [not found]     ` <20180215153110.zq2zosepbxmpa3kb-/R6kz+dDXgpPR4JQBCEnsQ@public.gmane.org>
2018-02-16  9:03       ` Geert Uytterhoeven
2018-02-19  2:53   ` Rob Herring
2018-02-13  9:45 ` [PATCH 03/15] soc: renesas: Add R-Car M3-N support Jacopo Mondi
     [not found]   ` <1518515162-23663-4-git-send-email-jacopo+renesas-AW8dsiIh9cEdnm+yROfE0A@public.gmane.org>
2018-02-14 12:48     ` Geert Uytterhoeven
2018-02-15 15:34       ` Simon Horman
2018-02-20 10:10       ` jacopo mondi
2018-02-13  9:45 ` [PATCH 04/15] pinctrl: sh-pfc: Initial " Jacopo Mondi
     [not found]   ` <1518515162-23663-5-git-send-email-jacopo+renesas-AW8dsiIh9cEdnm+yROfE0A@public.gmane.org>
2018-02-14 13:37     ` Geert Uytterhoeven
     [not found]       ` <CAMuHMdUpEjnNa4kru7mUnvhTu2YoofoopuCvUp=AGdRJqfaNEw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-02-14 13:53         ` jacopo mondi
2018-02-14 14:25           ` Geert Uytterhoeven
2018-02-19  2:57   ` Rob Herring
2018-02-13  9:45 ` [PATCH 05/15] ARM64: dts: Add R-Car Salvator-x " Jacopo Mondi
2018-02-14 13:58   ` Geert Uytterhoeven
2018-02-14 21:22     ` Philippe Ombredanne
2018-02-15 15:38     ` Simon Horman [this message]
2018-02-16  9:20   ` Geert Uytterhoeven
     [not found]   ` <1518515162-23663-6-git-send-email-jacopo+renesas-AW8dsiIh9cEdnm+yROfE0A@public.gmane.org>
2018-02-16  9:36     ` Geert Uytterhoeven
2018-02-13  9:45 ` [PATCH 06/15] Documentation: devicetree: dma: Add r8a77965 dmac Jacopo Mondi
2018-02-14 13:59   ` Geert Uytterhoeven
2018-02-15 15:39   ` Simon Horman
2018-02-15 15:56     ` Simon Horman
2018-02-16  9:01       ` Geert Uytterhoeven
2018-02-16 13:40         ` Simon Horman
2018-02-19  2:58       ` Rob Herring
2018-02-13  9:45 ` [PATCH 07/15] ARM64: dts: r8a77965: Add dmac device nods Jacopo Mondi
2018-02-14 14:08   ` Geert Uytterhoeven
2018-02-13  9:45 ` [PATCH 08/15] Documentation: devicetree: renesas,sci: Add r8a77965 Jacopo Mondi
2018-02-14 14:03   ` Geert Uytterhoeven
2018-02-15 15:47   ` Simon Horman
2018-02-19  2:59     ` Rob Herring
2018-02-13  9:45 ` [PATCH 09/15] pinctrl: sh-pfc: r8a77965: Add SCIFs groups/functions Jacopo Mondi
2018-02-14 14:42   ` Geert Uytterhoeven
2018-02-13  9:45 ` [PATCH 10/15] ARM64: dts: r8a77965: Add SCIF device nodes Jacopo Mondi
2018-02-14 14:13   ` Geert Uytterhoeven
2018-02-13  9:45 ` [PATCH 11/15] gpio: rcar: Add R-Car M3-N compatible string Jacopo Mondi
2018-02-14 14:05   ` Geert Uytterhoeven
2018-02-20 13:35     ` jacopo mondi
2018-02-20 13:40       ` Geert Uytterhoeven
2018-02-13  9:45 ` [PATCH 12/15] ARM64: dts: r8a77965: Add GPIO nodes Jacopo Mondi
     [not found]   ` <1518515162-23663-13-git-send-email-jacopo+renesas-AW8dsiIh9cEdnm+yROfE0A@public.gmane.org>
2018-02-14 14:10     ` Geert Uytterhoeven
2018-02-13  9:46 ` [PATCH 13/15] Documentation: devicetree: ravb: Add r8a77965 Jacopo Mondi
     [not found]   ` <1518515162-23663-14-git-send-email-jacopo+renesas-AW8dsiIh9cEdnm+yROfE0A@public.gmane.org>
2018-02-14 14:06     ` Geert Uytterhoeven
2018-02-14 15:02   ` Sergei Shtylyov
2018-02-15 15:45   ` Simon Horman
2018-02-19  3:01     ` Rob Herring
2018-02-13  9:46 ` [PATCH 14/15] pinctrl: sh-pfc: r8a77965: Add EtherAVB groups/functions Jacopo Mondi
2018-02-14 14:47   ` Geert Uytterhoeven
2018-02-13  9:46 ` [PATCH 15/15] ARM64: dts: r8a77965: Add EtherAVB device node Jacopo Mondi
2018-02-14 14:48   ` Geert Uytterhoeven

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180215153843.b33svmvuhofstw4e@verge.net.au \
    --to=horms@verge.net.au \
    --cc=devicetree@vger.kernel.org \
    --cc=geert@linux-m68k.org \
    --cc=jacopo+renesas@jmondi.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=magnus.damm@gmail.com \
    --cc=mark.rutland@arm.com \
    --cc=robh+dt@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).