Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/usb/maxim,max3420-udc.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: MAXIM MAX3420/1 USB Peripheral Controller
0008 
0009 maintainers:
0010   - Jassi Brar <jaswinder.singh@linaro.org>
0011 
0012 description: |
0013   The controller provices USB2.0 compliant FullSpeed peripheral
0014   implementation over the SPI interface.
0015 
0016   Specifications about the part can be found at:
0017     http://datasheets.maximintegrated.com/en/ds/MAX3420E.pdf
0018 
0019 properties:
0020   compatible:
0021     enum:
0022       - maxim,max3420-udc
0023       - maxim,max3421-udc
0024 
0025   reg:
0026     maxItems: 1
0027 
0028   interrupts:
0029     items:
0030       - description: usb irq from max3420
0031       - description: vbus detection irq
0032     minItems: 1
0033 
0034   interrupt-names:
0035     items:
0036       - const: udc
0037       - const: vbus
0038     minItems: 1
0039 
0040   spi-max-frequency:
0041     maximum: 26000000
0042 
0043 required:
0044   - compatible
0045   - reg
0046   - interrupts
0047   - interrupt-names
0048 
0049 additionalProperties: false
0050 
0051 examples:
0052   - |
0053       #include <dt-bindings/gpio/gpio.h>
0054       #include <dt-bindings/interrupt-controller/irq.h>
0055       spi0 {
0056             #address-cells = <1>;
0057             #size-cells = <0>;
0058 
0059             udc@0 {
0060                   compatible = "maxim,max3420-udc";
0061                   reg = <0>;
0062                   interrupt-parent = <&gpio>;
0063                   interrupts = <0 IRQ_TYPE_EDGE_FALLING>, <10 IRQ_TYPE_EDGE_BOTH>;
0064                   interrupt-names = "udc", "vbus";
0065                   spi-max-frequency = <12500000>;
0066             };
0067       };