dt-bindings: max3421-udc: add dt bindings for MAX3420 UDC
Subsystems (2)
PATCH 1/2 dt-bindings: max3421-udc: add dt bindings for MAX3420 UDC
From: Jassi Brar <[email protected]>
Add YAML dt bindings for Maxim MAX3420 UDC controller.
--- .../bindings/usb/maxim,max3420-udc.yaml | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/maxim,max3420-udc.yaml
Documentation/devicetree/bindings/usb/maxim,max3420-udc.yaml new file +60 -0
@@ -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 <[email protected]> + +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>; + }; + };
Signature · 1 line
2.20.1
Rob Herring
maintainerQuoted 16 lines · On Mon, Dec 09, 2019 at 06:31:24PM -0600, [email protected] wrote:
From: Jassi Brar <[email protected]>
Add YAML dt bindings for Maxim MAX3420 UDC controller.
Signed-off-by Jassi Brar <[email protected]>--- .../bindings/usb/maxim,max3420-udc.yaml | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/maxim,max3420-udc.yamlDocumentation/devicetree/bindings/usb/maxim,max3420-udc.yaml new file +0
-0
Documentation/devicetree/bindings/usb/maxim,max3420-udc.yaml line 1
Quoted 1 line
Documentation/devicetree/bindings/usb/maxim,max3420-udc.yaml new file +1
-0@@ -0,0 +1,60 @@ +# SPDX-License-Identifier: GPL-2.0-only
Dual license new bindings please:
(GPL-2.0-only OR BSD-2-Clause)
Documentation/devicetree/bindings/usb/maxim,max3420-udc.yaml line 14
Quoted 13 lines
Documentation/devicetree/bindings/usb/maxim,max3420-udc.yaml new file +13
-0+%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 <[email protected]> + +description: | + The controller provices USB2.0 compliant FullSpeed peripheral + implementation over the SPI interface.
space ^
Quoted 9 lines
Documentation/devicetree/bindings/usb/maxim,max3420-udc.yaml new file +9
-0+ + 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
Documentation/devicetree/bindings/usb/maxim,max3420-udc.yaml line 33
Quoted 10 lines
Documentation/devicetree/bindings/usb/maxim,max3420-udc.yaml new file +10
-0+ + reg: + maxItems: 1 + + interrupts: + minItems: 1 + maxItems: 2 + items: + - const: udc + - const: vbus
interrupts are integers, not strings. Should be interrupt-names?
Documentation/devicetree/bindings/usb/maxim,max3420-udc.yaml line 42
Quoted 9 lines
Documentation/devicetree/bindings/usb/maxim,max3420-udc.yaml new file +9
-0+ + spi-max-frequency: + maximum: 26000000 + +required: + - compatible + - reg + - interrupts + - interrupt-names
Add:
additionalProperties: false
Quoted 21 lines
Documentation/devicetree/bindings/usb/maxim,max3420-udc.yaml new file +18
-0+ +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>; + }; + };Signature · 1 line
2.20.1
Quoted 22 lines · Rob Herring
Quoted 16 lines · On Mon, Dec 09, 2019 at 06:31:24PM -0600, [email protected] wrote:
From: Jassi Brar <[email protected]>
Add YAML dt bindings for Maxim MAX3420 UDC controller.
Signed-off-by Jassi Brar <[email protected]>--- .../bindings/usb/maxim,max3420-udc.yaml | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/maxim,max3420-udc.yamlDocumentation/devicetree/bindings/usb/maxim,max3420-udc.yaml new file +0
-0Documentation/devicetree/bindings/usb/maxim,max3420-udc.yaml line 1
Quoted 1 line
Documentation/devicetree/bindings/usb/maxim,max3420-udc.yaml new file +1
-0@@ -0,0 +1,60 @@ +# SPDX-License-Identifier: GPL-2.0-onlyDual license new bindings please:
Quoted 2 lines
(GPL-2.0-only OR BSD-2-Clause)
ok
Quoted 7 lines
Quoted 7 lines
Documentation/devicetree/bindings/usb/maxim,max3420-udc.yaml new file +7
-0+%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 +
Quoted 9 lines
Documentation/devicetree/bindings/usb/maxim,max3420-udc.yaml line 14
Quoted 6 lines
Documentation/devicetree/bindings/usb/maxim,max3420-udc.yaml new file +6
-0+maintainers: + - Jassi Brar <[email protected]> + +description: | + The controller provices USB2.0 compliant FullSpeed peripheral + implementation over the SPI interface.space ^
ok
Quoted 13 lines
Quoted 13 lines
Documentation/devicetree/bindings/usb/maxim,max3420-udc.yaml new file +13
-0+ + 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 +
Quoted 9 lines
Documentation/devicetree/bindings/usb/maxim,max3420-udc.yaml line 33
Quoted 6 lines
Documentation/devicetree/bindings/usb/maxim,max3420-udc.yaml new file +6
-0+ interrupts: + minItems: 1 + maxItems: 2 + items: + - const: udc + - const: vbusinterrupts are integers, not strings. Should be interrupt-names?
yes
Quoted 12 lines
Documentation/devicetree/bindings/usb/maxim,max3420-udc.yaml line 42
Quoted 9 lines
Documentation/devicetree/bindings/usb/maxim,max3420-udc.yaml new file +9
-0+ + spi-max-frequency: + maximum: 26000000 + +required: + - compatible + - reg + - interrupts + - interrupt-namesAdd:
Quoted 2 lines
additionalProperties: false
ok
Thanks.