linux-usb.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Rob Herring <robh@kernel.org>
To: Paul Cercueil <paul@crapouillou.net>
Cc: Bin Liu <b-liu@ti.com>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Mark Rutland <mark.rutland@arm.com>,
	od@zcrc.me, linux-usb@vger.kernel.org,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/5] dt-bindings: usb: Convert jz4740-musb doc to YAML
Date: Tue, 21 Jan 2020 17:16:11 -0600	[thread overview]
Message-ID: <20200121231611.GA19164@bogus> (raw)
In-Reply-To: <20200115220008.91445-2-paul@crapouillou.net>

On Wed, Jan 15, 2020 at 07:00:04PM -0300, Paul Cercueil wrote:
> Convert ingenic,jz4740-musb.txt to ingenic,musb.yaml, and add the
> new ingenic,jz4770-musb compatible string in the process.
> 
> Signed-off-by: Paul Cercueil <paul@crapouillou.net>
> ---
>  .../bindings/usb/ingenic,jz4740-musb.txt      | 32 ---------
>  .../devicetree/bindings/usb/ingenic,musb.yaml | 72 +++++++++++++++++++
>  2 files changed, 72 insertions(+), 32 deletions(-)
>  delete mode 100644 Documentation/devicetree/bindings/usb/ingenic,jz4740-musb.txt
>  create mode 100644 Documentation/devicetree/bindings/usb/ingenic,musb.yaml
> 
> diff --git a/Documentation/devicetree/bindings/usb/ingenic,jz4740-musb.txt b/Documentation/devicetree/bindings/usb/ingenic,jz4740-musb.txt
> deleted file mode 100644
> index 16808721f3ff..000000000000
> --- a/Documentation/devicetree/bindings/usb/ingenic,jz4740-musb.txt
> +++ /dev/null
> @@ -1,32 +0,0 @@
> -Ingenic JZ4740 MUSB driver
> -
> -Required properties:
> -
> -- compatible: Must be "ingenic,jz4740-musb"
> -- reg: Address range of the UDC register set
> -- interrupts: IRQ number related to the UDC hardware
> -- interrupt-names: must be "mc"
> -- clocks: phandle to the "udc" clock
> -- clock-names: must be "udc"
> -- phys: phandle to the USB PHY
> -
> -Example:
> -
> -usb_phy: usb-phy@0 {
> -	compatible = "usb-nop-xceiv";
> -	#phy-cells = <0>;
> -};
> -
> -udc: usb@13040000 {
> -	compatible = "ingenic,jz4740-musb";
> -	reg = <0x13040000 0x10000>;
> -
> -	interrupt-parent = <&intc>;
> -	interrupts = <24>;
> -	interrupt-names = "mc";
> -
> -	clocks = <&cgu JZ4740_CLK_UDC>;
> -	clock-names = "udc";
> -
> -	phys = <&usb_phy>;
> -};
> diff --git a/Documentation/devicetree/bindings/usb/ingenic,musb.yaml b/Documentation/devicetree/bindings/usb/ingenic,musb.yaml
> new file mode 100644
> index 000000000000..f8902ee83e56
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/usb/ingenic,musb.yaml
> @@ -0,0 +1,72 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/usb/ingenic,musb.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Ingenic JZ47xx USB IP DT bindings
> +
> +maintainers:
> +  - Paul Cercueil <paul@crapouillou.net>
> +
> +properties:
> +  $nodename:
> +    pattern: '^usb@.*'
> +
> +  compatible:
> +    oneOf:
> +      - const: ingenic,jz4770-musb
> +      - const: ingenic,jz4740-musb

'enum' is preferred over a oneOf + const.

Otherwise,

Reviewed-by: Rob Herring <robh@kernel.org>

> +
> +  reg:
> +    maxItems: 1
> +
> +  clocks:
> +    maxItems: 1
> +
> +  clock-names:
> +    items:
> +      - const: udc
> +
> +  interrupts:
> +    maxItems: 1
> +
> +  interrupt-names:
> +    items:
> +      - const: mc
> +
> +  phys:
> +    description: PHY specifier for the USB PHY
> +
> +required:
> +  - compatible
> +  - reg
> +  - clocks
> +  - clock-names
> +  - interrupts
> +  - interrupt-names
> +  - phys
> +
> +additionalProperties: false
> +
> +examples:
> +  - |
> +    #include <dt-bindings/clock/jz4740-cgu.h>
> +    usb_phy: usb-phy@0 {
> +      compatible = "usb-nop-xceiv";
> +      #phy-cells = <0>;
> +    };
> +
> +    udc: usb@13040000 {
> +      compatible = "ingenic,jz4740-musb";
> +      reg = <0x13040000 0x10000>;
> +
> +      interrupt-parent = <&intc>;
> +      interrupts = <24>;
> +      interrupt-names = "mc";
> +
> +      clocks = <&cgu JZ4740_CLK_UDC>;
> +      clock-names = "udc";
> +
> +      phys = <&usb_phy>;
> +    };
> -- 
> 2.24.1
> 

  reply	other threads:[~2020-01-21 23:16 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-15 22:00 [PATCH 0/5] usb: musb: jz4740-musb driver updates Paul Cercueil
2020-01-15 22:00 ` [PATCH 1/5] dt-bindings: usb: Convert jz4740-musb doc to YAML Paul Cercueil
2020-01-21 23:16   ` Rob Herring [this message]
2020-01-15 22:00 ` [PATCH 2/5] usb: musb: jz4740: Add support for DMA Paul Cercueil
2020-01-15 22:00 ` [PATCH 3/5] usb: musb: jz4740: Register USB role switch Paul Cercueil
2020-01-15 22:00 ` [PATCH 4/5] usb: musb: jz4740: Unconditionally depend on devicetree Paul Cercueil
2020-01-15 22:00 ` [PATCH 5/5] usb: musb: jz4740: Add support for the JZ4770 Paul Cercueil

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=20200121231611.GA19164@bogus \
    --to=robh@kernel.org \
    --cc=b-liu@ti.com \
    --cc=devicetree@vger.kernel.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=od@zcrc.me \
    --cc=paul@crapouillou.net \
    /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).