linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCHv1 1/2] dt-bindings: max3421-udc: add dt bindings for MAX3420 UDC
@ 2019-12-10  0:31 jassisinghbrar
  2019-12-19 19:40 ` Rob Herring
  0 siblings, 1 reply; 3+ messages in thread
From: jassisinghbrar @ 2019-12-10  0:31 UTC (permalink / raw)
  To: balbi, gregkh, robh+dt, mark.rutland
  Cc: devicetree, linux-usb, linux-kernel, Jassi Brar

From: Jassi Brar <jaswinder.singh@linaro.org>

Add YAML dt bindings for Maxim MAX3420 UDC controller.

Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
---
 .../bindings/usb/maxim,max3420-udc.yaml       | 60 +++++++++++++++++++
 1 file changed, 60 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/usb/maxim,max3420-udc.yaml

diff --git a/Documentation/devicetree/bindings/usb/maxim,max3420-udc.yaml b/Documentation/devicetree/bindings/usb/maxim,max3420-udc.yaml
new file mode 100644
index 000000000000..cf4eec8a618e
--- /dev/null
+++ b/Documentation/devicetree/bindings/usb/maxim,max3420-udc.yaml
@@ -0,0 +1,60 @@
+# SPDX-License-Identifier: GPL-2.0-only
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/usb/maxim,max3420-udc.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: MAXIM MAX3420/1 USB Peripheral Controller
+
+maintainers:
+  - Jassi Brar <jaswinder.singh@linaro.org>
+
+description: |
+  The controller provices USB2.0 compliant FullSpeed peripheral
+  implementation over the  SPI interface.
+
+  Specifications about the part can be found at:
+    http://datasheets.maximintegrated.com/en/ds/MAX3420E.pdf
+
+properties:
+  compatible:
+    enum:
+      - maxim,max3420-udc
+      - maxim,max3421-udc
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    minItems: 1
+    maxItems: 2
+    items:
+      - const: udc
+      - const: vbus
+
+  spi-max-frequency:
+    maximum: 26000000
+
+required:
+  - compatible
+  - reg
+  - interrupts
+  - interrupt-names
+
+examples:
+  - |
+      #include <dt-bindings/gpio/gpio.h>
+      #include <dt-bindings/interrupt-controller/irq.h>
+      spi0 {
+            #address-cells = <1>;
+            #size-cells = <0>;
+
+            udc@0 {
+                  compatible = "maxim,max3420-udc";
+                  reg = <0>;
+                  interrupt-parent = <&gpio>;
+                  interrupts = <0 IRQ_TYPE_EDGE_FALLING>, <10 IRQ_TYPE_EDGE_BOTH>;
+                  interrupt-names = "udc", "vbus";
+                  spi-max-frequency = <12500000>;
+            };
+      };
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCHv1 1/2] dt-bindings: max3421-udc: add dt bindings for MAX3420 UDC
  2019-12-10  0:31 [PATCHv1 1/2] dt-bindings: max3421-udc: add dt bindings for MAX3420 UDC jassisinghbrar
@ 2019-12-19 19:40 ` Rob Herring
  2019-12-23 21:44   ` Jassi Brar
  0 siblings, 1 reply; 3+ messages in thread
From: Rob Herring @ 2019-12-19 19:40 UTC (permalink / raw)
  To: jassisinghbrar
  Cc: balbi, gregkh, mark.rutland, devicetree, linux-usb, linux-kernel,
	Jassi Brar

On Mon, Dec 09, 2019 at 06:31:24PM -0600, jassisinghbrar@gmail.com wrote:
> From: Jassi Brar <jaswinder.singh@linaro.org>
> 
> Add YAML dt bindings for Maxim MAX3420 UDC controller.
> 
> Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
> ---
>  .../bindings/usb/maxim,max3420-udc.yaml       | 60 +++++++++++++++++++
>  1 file changed, 60 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/usb/maxim,max3420-udc.yaml
> 
> diff --git a/Documentation/devicetree/bindings/usb/maxim,max3420-udc.yaml b/Documentation/devicetree/bindings/usb/maxim,max3420-udc.yaml
> new file mode 100644
> index 000000000000..cf4eec8a618e
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/usb/maxim,max3420-udc.yaml
> @@ -0,0 +1,60 @@
> +# SPDX-License-Identifier: GPL-2.0-only

Dual license new bindings please:

(GPL-2.0-only OR BSD-2-Clause)

> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/usb/maxim,max3420-udc.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: MAXIM MAX3420/1 USB Peripheral Controller
> +
> +maintainers:
> +  - Jassi Brar <jaswinder.singh@linaro.org>
> +
> +description: |
> +  The controller provices USB2.0 compliant FullSpeed peripheral
> +  implementation over the  SPI interface.

space                        ^

> +
> +  Specifications about the part can be found at:
> +    http://datasheets.maximintegrated.com/en/ds/MAX3420E.pdf
> +
> +properties:
> +  compatible:
> +    enum:
> +      - maxim,max3420-udc
> +      - maxim,max3421-udc
> +
> +  reg:
> +    maxItems: 1
> +
> +  interrupts:
> +    minItems: 1
> +    maxItems: 2
> +    items:
> +      - const: udc
> +      - const: vbus

interrupts are integers, not strings. Should be interrupt-names?

> +
> +  spi-max-frequency:
> +    maximum: 26000000
> +
> +required:
> +  - compatible
> +  - reg
> +  - interrupts
> +  - interrupt-names

Add:

additionalProperties: false

> +
> +examples:
> +  - |
> +      #include <dt-bindings/gpio/gpio.h>
> +      #include <dt-bindings/interrupt-controller/irq.h>
> +      spi0 {
> +            #address-cells = <1>;
> +            #size-cells = <0>;
> +
> +            udc@0 {
> +                  compatible = "maxim,max3420-udc";
> +                  reg = <0>;
> +                  interrupt-parent = <&gpio>;
> +                  interrupts = <0 IRQ_TYPE_EDGE_FALLING>, <10 IRQ_TYPE_EDGE_BOTH>;
> +                  interrupt-names = "udc", "vbus";
> +                  spi-max-frequency = <12500000>;
> +            };
> +      };
> -- 
> 2.20.1
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCHv1 1/2] dt-bindings: max3421-udc: add dt bindings for MAX3420 UDC
  2019-12-19 19:40 ` Rob Herring
@ 2019-12-23 21:44   ` Jassi Brar
  0 siblings, 0 replies; 3+ messages in thread
From: Jassi Brar @ 2019-12-23 21:44 UTC (permalink / raw)
  To: Rob Herring
  Cc: Felipe Balbi, Greg KH, Mark Rutland, Devicetree List, linux-usb,
	Linux Kernel Mailing List, Jassi Brar

On Thu, Dec 19, 2019 at 1:40 PM Rob Herring <robh@kernel.org> wrote:
>
> On Mon, Dec 09, 2019 at 06:31:24PM -0600, jassisinghbrar@gmail.com wrote:
> > From: Jassi Brar <jaswinder.singh@linaro.org>
> >
> > Add YAML dt bindings for Maxim MAX3420 UDC controller.
> >
> > Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
> > ---
> >  .../bindings/usb/maxim,max3420-udc.yaml       | 60 +++++++++++++++++++
> >  1 file changed, 60 insertions(+)
> >  create mode 100644 Documentation/devicetree/bindings/usb/maxim,max3420-udc.yaml
> >
> > diff --git a/Documentation/devicetree/bindings/usb/maxim,max3420-udc.yaml b/Documentation/devicetree/bindings/usb/maxim,max3420-udc.yaml
> > new file mode 100644
> > index 000000000000..cf4eec8a618e
> > --- /dev/null
> > +++ b/Documentation/devicetree/bindings/usb/maxim,max3420-udc.yaml
> > @@ -0,0 +1,60 @@
> > +# SPDX-License-Identifier: GPL-2.0-only
>
> Dual license new bindings please:
>
> (GPL-2.0-only OR BSD-2-Clause)
>
ok

> > +%YAML 1.2
> > +---
> > +$id: http://devicetree.org/schemas/usb/maxim,max3420-udc.yaml#
> > +$schema: http://devicetree.org/meta-schemas/core.yaml#
> > +
> > +title: MAXIM MAX3420/1 USB Peripheral Controller
> > +
> > +maintainers:
> > +  - Jassi Brar <jaswinder.singh@linaro.org>
> > +
> > +description: |
> > +  The controller provices USB2.0 compliant FullSpeed peripheral
> > +  implementation over the  SPI interface.
>
> space                        ^
>
ok

> > +
> > +  Specifications about the part can be found at:
> > +    http://datasheets.maximintegrated.com/en/ds/MAX3420E.pdf
> > +
> > +properties:
> > +  compatible:
> > +    enum:
> > +      - maxim,max3420-udc
> > +      - maxim,max3421-udc
> > +
> > +  reg:
> > +    maxItems: 1
> > +
> > +  interrupts:
> > +    minItems: 1
> > +    maxItems: 2
> > +    items:
> > +      - const: udc
> > +      - const: vbus
>
> interrupts are integers, not strings. Should be interrupt-names?
>
yes

> > +
> > +  spi-max-frequency:
> > +    maximum: 26000000
> > +
> > +required:
> > +  - compatible
> > +  - reg
> > +  - interrupts
> > +  - interrupt-names
>
> Add:
>
> additionalProperties: false
>
ok

Thanks.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-12-23 21:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-10  0:31 [PATCHv1 1/2] dt-bindings: max3421-udc: add dt bindings for MAX3420 UDC jassisinghbrar
2019-12-19 19:40 ` Rob Herring
2019-12-23 21:44   ` Jassi Brar

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).