| 1 |
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) |
| 2 |
%YAML 1.2 |
| 3 |
--- |
| 4 |
$id: http://devicetree.org/schemas/phy/motorola,cpcap-usb-phy.yaml# |
| 5 |
$schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 |
|
| 7 |
title: Motorola CPCAP PMIC USB PHY |
| 8 |
|
| 9 |
maintainers: |
| 10 |
- Tony Lindgren <[email protected]> |
| 11 |
|
| 12 |
properties: |
| 13 |
compatible: |
| 14 |
enum: |
| 15 |
- motorola,cpcap-usb-phy |
| 16 |
- motorola,mapphone-cpcap-usb-phy |
| 17 |
|
| 18 |
'#phy-cells': |
| 19 |
const: 0 |
| 20 |
|
| 21 |
interrupts: |
| 22 |
description: CPCAP PMIC interrupts used by the USB PHY |
| 23 |
items: |
| 24 |
- description: id_ground interrupt |
| 25 |
- description: id_float interrupt |
| 26 |
- description: se0conn interrupt |
| 27 |
- description: vbusvld interrupt |
| 28 |
- description: sessvld interrupt |
| 29 |
- description: sessend interrupt |
| 30 |
- description: se1 interrupt |
| 31 |
- description: dm interrupt |
| 32 |
- description: dp interrupt |
| 33 |
|
| 34 |
interrupt-names: |
| 35 |
description: Interrupt names |
| 36 |
items: |
| 37 |
- const: id_ground |
| 38 |
- const: id_float |
| 39 |
- const: se0conn |
| 40 |
- const: vbusvld |
| 41 |
- const: sessvld |
| 42 |
- const: sessend |
| 43 |
- const: se1 |
| 44 |
- const: dm |
| 45 |
- const: dp |
| 46 |
|
| 47 |
io-channels: |
| 48 |
description: IIO ADC channels used by the USB PHY |
| 49 |
items: |
| 50 |
- description: vbus channel |
| 51 |
- description: id channel |
| 52 |
|
| 53 |
io-channel-names: |
| 54 |
items: |
| 55 |
- const: vbus |
| 56 |
- const: id |
| 57 |
|
| 58 |
vusb-supply: true |
| 59 |
|
| 60 |
pinctrl-names: |
| 61 |
items: |
| 62 |
- const: default |
| 63 |
- const: ulpi |
| 64 |
- const: utmi |
| 65 |
- const: uart |
| 66 |
|
| 67 |
mode-gpios: |
| 68 |
description: Optional GPIOs for configuring alternate modes |
| 69 |
items: |
| 70 |
- description: mode selection GPIO#0 |
| 71 |
- description: mode selection GPIO#1 |
| 72 |
|
| 73 |
required: |
| 74 |
- compatible |
| 75 |
- '#phy-cells' |
| 76 |
- interrupts-extended |
| 77 |
- interrupt-names |
| 78 |
- io-channels |
| 79 |
- io-channel-names |
| 80 |
- vusb-supply |
| 81 |
|
| 82 |
additionalProperties: false |
| 83 |
|
| 84 |
examples: |
| 85 |
- | |
| 86 |
#include <dt-bindings/gpio/gpio.h> |
| 87 |
|
| 88 |
phy { |
| 89 |
compatible = "motorola,mapphone-cpcap-usb-phy"; |
| 90 |
#phy-cells = <0>; |
| 91 |
interrupts-extended = < |
| 92 |
&cpcap 15 0 &cpcap 14 0 &cpcap 28 0 &cpcap 19 0 |
| 93 |
&cpcap 18 0 &cpcap 17 0 &cpcap 16 0 &cpcap 49 0 |
| 94 |
&cpcap 48 1 |
| 95 |
>; |
| 96 |
interrupt-names = "id_ground", "id_float", "se0conn", "vbusvld", |
| 97 |
"sessvld", "sessend", "se1", "dm", "dp"; |
| 98 |
io-channels = <&cpcap_adc 2>, <&cpcap_adc 7>; |
| 99 |
io-channel-names = "vbus", "id"; |
| 100 |
vusb-supply = <&vusb>; |
| 101 |
pinctrl-0 = <&usb_gpio_mux_sel1 &usb_gpio_mux_sel2>; |
| 102 |
pinctrl-1 = <&usb_ulpi_pins>; |
| 103 |
pinctrl-2 = <&usb_utmi_pins>; |
| 104 |
pinctrl-3 = <&uart3_pins>; |
| 105 |
pinctrl-names = "default", "ulpi", "utmi", "uart"; |
| 106 |
mode-gpios = <&gpio2 28 GPIO_ACTIVE_HIGH>, <&gpio1 0 GPIO_ACTIVE_HIGH>; |
| 107 |
}; |