xref: /freebsd/sys/contrib/device-tree/Bindings/phy/phy-cpcap-usb.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel VadotMotorola CPCAP PMIC USB PHY binding
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotRequired properties:
4*c66ec88fSEmmanuel Vadotcompatible: Shall be either "motorola,cpcap-usb-phy" or
5*c66ec88fSEmmanuel Vadot	    "motorola,mapphone-cpcap-usb-phy"
6*c66ec88fSEmmanuel Vadot#phy-cells: Shall be 0
7*c66ec88fSEmmanuel Vadotinterrupts: CPCAP PMIC interrupts used by the USB PHY
8*c66ec88fSEmmanuel Vadotinterrupt-names: Interrupt names
9*c66ec88fSEmmanuel Vadotio-channels: IIO ADC channels used by the USB PHY
10*c66ec88fSEmmanuel Vadotio-channel-names: IIO ADC channel names
11*c66ec88fSEmmanuel Vadotvusb-supply: Regulator for the PHY
12*c66ec88fSEmmanuel Vadot
13*c66ec88fSEmmanuel VadotOptional properties:
14*c66ec88fSEmmanuel Vadotpinctrl: Optional alternate pin modes for the PHY
15*c66ec88fSEmmanuel Vadotpinctrl-names: Names for optional pin modes
16*c66ec88fSEmmanuel Vadotmode-gpios: Optional GPIOs for configuring alternate modes
17*c66ec88fSEmmanuel Vadot
18*c66ec88fSEmmanuel VadotExample:
19*c66ec88fSEmmanuel Vadotcpcap_usb2_phy: phy {
20*c66ec88fSEmmanuel Vadot	compatible = "motorola,mapphone-cpcap-usb-phy";
21*c66ec88fSEmmanuel Vadot	pinctrl-0 = <&usb_gpio_mux_sel1 &usb_gpio_mux_sel2>;
22*c66ec88fSEmmanuel Vadot	pinctrl-1 = <&usb_ulpi_pins>;
23*c66ec88fSEmmanuel Vadot	pinctrl-2 = <&usb_utmi_pins>;
24*c66ec88fSEmmanuel Vadot	pinctrl-3 = <&uart3_pins>;
25*c66ec88fSEmmanuel Vadot	pinctrl-names = "default", "ulpi", "utmi", "uart";
26*c66ec88fSEmmanuel Vadot	#phy-cells = <0>;
27*c66ec88fSEmmanuel Vadot	interrupts-extended = <
28*c66ec88fSEmmanuel Vadot		&cpcap 15 0 &cpcap 14 0 &cpcap 28 0 &cpcap 19 0
29*c66ec88fSEmmanuel Vadot		&cpcap 18 0 &cpcap 17 0 &cpcap 16 0 &cpcap 49 0
30*c66ec88fSEmmanuel Vadot		&cpcap 48 1
31*c66ec88fSEmmanuel Vadot	>;
32*c66ec88fSEmmanuel Vadot	interrupt-names =
33*c66ec88fSEmmanuel Vadot		"id_ground", "id_float", "se0conn", "vbusvld",
34*c66ec88fSEmmanuel Vadot		"sessvld", "sessend", "se1", "dm", "dp";
35*c66ec88fSEmmanuel Vadot	mode-gpios = <&gpio2 28 GPIO_ACTIVE_HIGH
36*c66ec88fSEmmanuel Vadot		      &gpio1 0 GPIO_ACTIVE_HIGH>;
37*c66ec88fSEmmanuel Vadot	io-channels = <&cpcap_adc 2>, <&cpcap_adc 7>;
38*c66ec88fSEmmanuel Vadot	io-channel-names = "vbus", "id";
39*c66ec88fSEmmanuel Vadot	vusb-supply = <&vusb>;
40*c66ec88fSEmmanuel Vadot};
41