All of lore.kernel.org
 help / color / mirror / Atom feed
From: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Vinod <vkoul@kernel.org>, Rob Herring <robh+dt@kernel.org>,
	dmaengine <dmaengine@vger.kernel.org>,
	"open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" 
	<devicetree@vger.kernel.org>,
	Linux-Renesas <linux-renesas-soc@vger.kernel.org>
Subject: RE: [PATCH 2/2] dt-bindings: dma: renesas,usb-dmac: convert bindings to json-schema
Date: Thu, 16 Apr 2020 02:04:50 +0000	[thread overview]
Message-ID: <OSAPR01MB452933886B2C83A6E054AE50D8D80@OSAPR01MB4529.jpnprd01.prod.outlook.com> (raw)
In-Reply-To: <CAMuHMdWziQYKFeZZt7ZOCYMEWxD8e3mjqf+x0xsAcA7XDzZHWQ@mail.gmail.com>

Hi Geert-san,

Thank you for your review!

> From: Geert Uytterhoeven, Sent: Wednesday, April 15, 2020 10:56 PM
<snip>
> > --- /dev/null
> > +++ b/Documentation/devicetree/bindings/dma/renesas,usb-dmac.yaml
> > @@ -0,0 +1,99 @@
> > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> > +%YAML 1.2
> > +---
> > +$id: http://devicetree.org/schemas/dma/renesas,usb-dmac.yaml#
> > +$schema: http://devicetree.org/meta-schemas/core.yaml#
> > +
> > +title: Renesas USB DMA Controller
> > +
> > +maintainers:
> > +  - Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
> > +
> > +allOf:
> > +  - $ref: "dma-controller.yaml#"
> > +
> > +properties:
> > +  compatible:
> > +    items:
> > +      - enum:
> > +          - renesas,r8a7743-usb-dmac  # RZ/G1M
> > +          - renesas,r8a7744-usb-dmac  # RZ/G1N
> > +          - renesas,r8a7745-usb-dmac  # RZ/G1E
> > +          - renesas,r8a77470-usb-dmac # RZ/G1C
> > +          - renesas,r8a774a1-usb-dmac # RZ/G2M
> > +          - renesas,r8a774b1-usb-dmac # RZ/G2N
> > +          - renesas,r8a774c0-usb-dmac # RZ/G2E
> > +          - renesas,r8a7790-usb-dmac  # R-Car H2
> > +          - renesas,r8a7791-usb-dmac  # R-Car M2-W
> > +          - renesas,r8a7793-usb-dmac  # R-Car M2-N
> > +          - renesas,r8a7794-usb-dmac  # R-Car E2
> > +          - renesas,r8a7795-usb-dmac  # R-Car H3
> > +          - renesas,r8a7796-usb-dmac  # R-Car M3-W
> > +          - renesas,r8a77961-usb-dmac # R-Car M3-W+
> > +          - renesas,r8a77965-usb-dmac # R-Car M3-N
> > +          - renesas,r8a77990-usb-dmac # R-Car E3
> > +          - renesas,r8a77995-usb-dmac # R-Car D3
> > +      - const: renesas,usb-dmac
> > +
> > +  reg:
> > +    maxItems: 1
> > +
> > +  interrupts:
> > +    maxItems: 2
> 
> Is there a use case for specifying a single interrupt?

No. All USB-DMAC of R-Car Gen2/3 and RZ/Gn has 2 channels.
In case of R-Car Gen3, please refer to the Figure 75.1 USB-DMAC Block Diagram.
These USB-DMACn have CH0 and CH1

> > +
> > +  interrupt-names:
> > +    maxItems: 2
> > +    items:
> > +      - pattern: "^ch[0-1]$"
> > +      - pattern: "^ch[0-1]$"
> 
> Would it make sense to list the (two) actual channel names instead?

I agree. Just using ch0 and ch1 is simpler.

> > +
> > +  clocks:
> > +    maxItems: 1
> > +
> > +  '#dma-cells':
> > +    const: 1
> > +    description:
> > +      The cell specifies the channel number of the DMAC port connected to
> > +      the DMA client.
> > +
> > +  dma-channels:
> > +    maximum: 2
> 
> Is there a use case for specifying a single channel?
> 
> > +
> > +  iommus:
> > +    maxItems: 2
> 
> Likewise?

As I mentioned above, there is not a use case for specifying a single channel.

> > +
> > +  power-domains:
> > +    maxItems: 1
> > +
> > +  resets:
> > +    maxItems: 1
> > +
> > +required:
> > +  - compatible
> > +  - reg
> > +  - interrupts
> > +  - interrupt-names
> > +  - clocks
> > +  - '#dma-cells'
> > +  - dma-channels
> 
> Shouldn't "power-domains" and "resets" be mandatory, too?
> All covered SoCS have them.

Oops. I'll add these properties as required.

Best regards,
Yoshihiro Shimoda

> Gr{oetje,eeting}s,
> 
>                         Geert
> 
> --
> Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
> 
> In personal conversations with technical people, I call myself a hacker. But
> when I'm talking to journalists I just say "programmer" or something like that.
>                                 -- Linus Torvalds

  reply	other threads:[~2020-04-16  2:05 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-10 10:02 [PATCH 0/2] dt-bindings: dma: renesas,{rcar,usb}-dmac: convert to json-schema Yoshihiro Shimoda
2020-04-10 10:02 ` [PATCH 1/2] dt-bindings: dma: renesas,rcar-dmac: convert bindings " Yoshihiro Shimoda
2020-04-15 13:09   ` Geert Uytterhoeven
2020-04-15 13:52     ` Geert Uytterhoeven
2020-04-16  7:48       ` Yoshihiro Shimoda
2020-04-16  7:47     ` Yoshihiro Shimoda
2020-04-10 10:02 ` [PATCH 2/2] dt-bindings: dma: renesas,usb-dmac: " Yoshihiro Shimoda
2020-04-15 13:55   ` Geert Uytterhoeven
2020-04-16  2:04     ` Yoshihiro Shimoda [this message]
2020-04-16  7:49       ` Geert Uytterhoeven
2020-04-16  8:13         ` Yoshihiro Shimoda

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=OSAPR01MB452933886B2C83A6E054AE50D8D80@OSAPR01MB4529.jpnprd01.prod.outlook.com \
    --to=yoshihiro.shimoda.uh@renesas.com \
    --cc=devicetree@vger.kernel.org \
    --cc=dmaengine@vger.kernel.org \
    --cc=geert@linux-m68k.org \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=robh+dt@kernel.org \
    --cc=vkoul@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.