Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 1 | # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) |
| 2 | %YAML 1.2 |
| 3 | --- |
| 4 | $id: http://devicetree.org/schemas/usb/nxp,isp1760.yaml# |
| 5 | $schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 | |
| 7 | title: NXP ISP1760 family controller |
| 8 | |
| 9 | maintainers: |
| 10 | - Sebastian Siewior <bigeasy@linutronix.de> |
| 11 | - Laurent Pinchart <laurent.pinchart@ideasonboard.com> |
| 12 | |
| 13 | description: | |
| 14 | NXP ISP1760 family, which includes ISP1760/1761/1763 devicetree controller |
| 15 | bindings |
| 16 | |
| 17 | properties: |
| 18 | compatible: |
| 19 | enum: |
| 20 | - nxp,usb-isp1760 |
| 21 | - nxp,usb-isp1761 |
| 22 | - nxp,usb-isp1763 |
| 23 | reg: |
| 24 | maxItems: 1 |
| 25 | |
| 26 | interrupts: |
| 27 | minItems: 1 |
| 28 | items: |
| 29 | - description: Host controller interrupt |
| 30 | - description: Device controller interrupt in isp1761 |
| 31 | |
| 32 | interrupt-names: |
| 33 | minItems: 1 |
| 34 | items: |
| 35 | - const: host |
| 36 | - const: peripheral |
| 37 | |
| 38 | bus-width: |
| 39 | description: |
| 40 | Number of data lines. |
| 41 | enum: [8, 16, 32] |
| 42 | default: 32 |
| 43 | |
| 44 | dr_mode: |
| 45 | enum: |
| 46 | - host |
| 47 | - peripheral |
| 48 | |
| 49 | required: |
| 50 | - compatible |
| 51 | - reg |
| 52 | - interrupts |
| 53 | |
| 54 | additionalProperties: false |
| 55 | |
| 56 | examples: |
| 57 | - | |
| 58 | #include <dt-bindings/interrupt-controller/arm-gic.h> |
| 59 | usb@40200000 { |
| 60 | compatible = "nxp,usb-isp1763"; |
| 61 | reg = <0x40200000 0x100000>; |
| 62 | interrupts = <GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH>; |
| 63 | bus-width = <16>; |
| 64 | dr_mode = "host"; |
| 65 | }; |
| 66 | |
| 67 | ... |