xref: /freebsd/sys/contrib/device-tree/Bindings/phy/phy-cpcap-usb.txt (revision 517e52b6c21ccff22c46df0dcd15c19baee3d86c)
1Motorola CPCAP PMIC USB PHY binding
2
3Required properties:
4compatible: Shall be either "motorola,cpcap-usb-phy" or
5	    "motorola,mapphone-cpcap-usb-phy"
6#phy-cells: Shall be 0
7interrupts: CPCAP PMIC interrupts used by the USB PHY
8interrupt-names: Interrupt names
9io-channels: IIO ADC channels used by the USB PHY
10io-channel-names: IIO ADC channel names
11vusb-supply: Regulator for the PHY
12
13Optional properties:
14pinctrl: Optional alternate pin modes for the PHY
15pinctrl-names: Names for optional pin modes
16mode-gpios: Optional GPIOs for configuring alternate modes
17
18Example:
19cpcap_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};
41