xref: /freebsd/sys/contrib/device-tree/Bindings/usb/maxim,max3420-udc.yaml (revision fac71e4e09885bb2afa3d984a0c239a52e1a7418)
1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2c66ec88fSEmmanuel Vadot%YAML 1.2
3c66ec88fSEmmanuel Vadot---
4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/usb/maxim,max3420-udc.yaml#
5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6c66ec88fSEmmanuel Vadot
7c66ec88fSEmmanuel Vadottitle: MAXIM MAX3420/1 USB Peripheral Controller
8c66ec88fSEmmanuel Vadot
9c66ec88fSEmmanuel Vadotmaintainers:
10c66ec88fSEmmanuel Vadot  - Jassi Brar <jaswinder.singh@linaro.org>
11c66ec88fSEmmanuel Vadot
12c66ec88fSEmmanuel Vadotdescription: |
13c66ec88fSEmmanuel Vadot  The controller provices USB2.0 compliant FullSpeed peripheral
14c66ec88fSEmmanuel Vadot  implementation over the SPI interface.
15c66ec88fSEmmanuel Vadot
16c66ec88fSEmmanuel Vadot  Specifications about the part can be found at:
17c66ec88fSEmmanuel Vadot    http://datasheets.maximintegrated.com/en/ds/MAX3420E.pdf
18c66ec88fSEmmanuel Vadot
19c66ec88fSEmmanuel Vadotproperties:
20c66ec88fSEmmanuel Vadot  compatible:
21c66ec88fSEmmanuel Vadot    enum:
22c66ec88fSEmmanuel Vadot      - maxim,max3420-udc
23c66ec88fSEmmanuel Vadot      - maxim,max3421-udc
24c66ec88fSEmmanuel Vadot
25c66ec88fSEmmanuel Vadot  reg:
26c66ec88fSEmmanuel Vadot    maxItems: 1
27c66ec88fSEmmanuel Vadot
28c66ec88fSEmmanuel Vadot  interrupts:
29c66ec88fSEmmanuel Vadot    items:
30c66ec88fSEmmanuel Vadot      - description: usb irq from max3420
31c66ec88fSEmmanuel Vadot      - description: vbus detection irq
32c66ec88fSEmmanuel Vadot    minItems: 1
33c66ec88fSEmmanuel Vadot
34c66ec88fSEmmanuel Vadot  interrupt-names:
35c66ec88fSEmmanuel Vadot    items:
36c66ec88fSEmmanuel Vadot      - const: udc
37c66ec88fSEmmanuel Vadot      - const: vbus
38c66ec88fSEmmanuel Vadot    minItems: 1
39c66ec88fSEmmanuel Vadot
40c66ec88fSEmmanuel Vadot  spi-max-frequency:
41c66ec88fSEmmanuel Vadot    maximum: 26000000
42c66ec88fSEmmanuel Vadot
43c66ec88fSEmmanuel Vadotrequired:
44c66ec88fSEmmanuel Vadot  - compatible
45c66ec88fSEmmanuel Vadot  - reg
46c66ec88fSEmmanuel Vadot  - interrupts
47c66ec88fSEmmanuel Vadot  - interrupt-names
48c66ec88fSEmmanuel Vadot
49c66ec88fSEmmanuel VadotadditionalProperties: false
50c66ec88fSEmmanuel Vadot
51c66ec88fSEmmanuel Vadotexamples:
52c66ec88fSEmmanuel Vadot  - |
53c66ec88fSEmmanuel Vadot      #include <dt-bindings/gpio/gpio.h>
54c66ec88fSEmmanuel Vadot      #include <dt-bindings/interrupt-controller/irq.h>
55*fac71e4eSEmmanuel Vadot      spi {
56c66ec88fSEmmanuel Vadot            #address-cells = <1>;
57c66ec88fSEmmanuel Vadot            #size-cells = <0>;
58c66ec88fSEmmanuel Vadot
59c66ec88fSEmmanuel Vadot            udc@0 {
60c66ec88fSEmmanuel Vadot                  compatible = "maxim,max3420-udc";
61c66ec88fSEmmanuel Vadot                  reg = <0>;
62c66ec88fSEmmanuel Vadot                  interrupt-parent = <&gpio>;
63c66ec88fSEmmanuel Vadot                  interrupts = <0 IRQ_TYPE_EDGE_FALLING>, <10 IRQ_TYPE_EDGE_BOTH>;
64c66ec88fSEmmanuel Vadot                  interrupt-names = "udc", "vbus";
65c66ec88fSEmmanuel Vadot                  spi-max-frequency = <12500000>;
66c66ec88fSEmmanuel Vadot            };
67c66ec88fSEmmanuel Vadot      };
68