| 1 |
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) |
| 2 |
%YAML 1.2 |
| 3 |
--- |
| 4 |
$id: http://devicetree.org/schemas/usb/ti,twl6030-usb.yaml# |
| 5 |
$schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 |
|
| 7 |
title: Texas Instruments TWL6030 USB Comparator |
| 8 |
|
| 9 |
maintainers: |
| 10 |
- Peter Ujfalusi <[email protected]> |
| 11 |
|
| 12 |
description: |
| 13 |
Bindings for the USB comparator module found within the TWL6030 |
| 14 |
family of companion chips. |
| 15 |
|
| 16 |
properties: |
| 17 |
compatible: |
| 18 |
const: ti,twl6030-usb |
| 19 |
|
| 20 |
interrupts: |
| 21 |
items: |
| 22 |
- description: OTG for ID events in host mode |
| 23 |
- description: USB device mode for VBUS events |
| 24 |
|
| 25 |
usb-supply: |
| 26 |
description: |
| 27 |
Phandle to the VUSB regulator. For TWL6030, this should be the 'vusb' |
| 28 |
regulator. For TWL6032 subclass, it should be the 'ldousb' regulator. |
| 29 |
|
| 30 |
required: |
| 31 |
- compatible |
| 32 |
- interrupts |
| 33 |
- usb-supply |
| 34 |
|
| 35 |
additionalProperties: false |
| 36 |
|
| 37 |
examples: |
| 38 |
- | |
| 39 |
#include <dt-bindings/interrupt-controller/irq.h> |
| 40 |
|
| 41 |
usb { |
| 42 |
compatible = "ti,twl6030-usb"; |
| 43 |
|
| 44 |
interrupts = <4 IRQ_TYPE_LEVEL_HIGH>, <10 IRQ_TYPE_LEVEL_HIGH>; |
| 45 |
interrupt-parent = <&gic>; |
| 46 |
|
| 47 |
usb-supply = <®_vusb>; |
| 48 |
}; |