]> git.kernelconcepts.de Git - karo-tx-linux.git/blob - Documentation/devicetree/bindings/phy/phy-cpcap-usb.txt
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi...
[karo-tx-linux.git] / Documentation / devicetree / bindings / phy / phy-cpcap-usb.txt
1 Motorola CPCAP PMIC USB PHY binding
2
3 Required properties:
4 compatible: Shall be either "motorola,cpcap-usb-phy" or
5             "motorola,mapphone-cpcap-usb-phy"
6 #phy-cells: Shall be 0
7 interrupts: CPCAP PMIC interrupts used by the USB PHY
8 interrupt-names: Interrupt names
9 io-channels: IIO ADC channels used by the USB PHY
10 io-channel-names: IIO ADC channel names
11 vusb-supply: Regulator for the PHY
12
13 Optional properties:
14 pinctrl: Optional alternate pin modes for the PHY
15 pinctrl-names: Names for optional pin modes
16 mode-gpios: Optional GPIOs for configuring alternate modes
17
18 Example:
19 cpcap_usb2_phy: phy {
20         compatible = "motorola,mapphone-cpcap-usb-phy";
21         pinctrl-0 = <&usb_gpio_mux_sel1 &usb_gpio_mux_sel2>;
22         pinctrl-1 = <&usb_ulpi_pins>;
23         pinctrl-2 = <&usb_utmi_pins>;
24         pinctrl-3 = <&uart3_pins>;
25         pinctrl-names = "default", "ulpi", "utmi", "uart";
26         #phy-cells = <0>;
27         interrupts-extended = <
28                 &cpcap 15 0 &cpcap 14 0 &cpcap 28 0 &cpcap 19 0
29                 &cpcap 18 0 &cpcap 17 0 &cpcap 16 0 &cpcap 49 0
30                 &cpcap 48 1
31         >;
32         interrupt-names =
33                 "id_ground", "id_float", "se0conn", "vbusvld",
34                 "sessvld", "sessend", "se1", "dm", "dp";
35         mode-gpios = <&gpio2 28 GPIO_ACTIVE_HIGH
36                       &gpio1 0 GPIO_ACTIVE_HIGH>;
37         io-channels = <&cpcap_adc 2>, <&cpcap_adc 7>;
38         io-channel-names = "vbus", "id";
39         vusb-supply = <&vusb>;
40 };