phy-cpcap-usb.txt 1.3 KB

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