qcom,pm8941-misc.txt 916 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. Qualcomm's PM8941 USB ID Extcon device
  2. Some Qualcomm PMICs have a "misc" module that can be used to detect when
  3. the USB ID pin has been pulled low or high.
  4. PROPERTIES
  5. - compatible:
  6. Usage: required
  7. Value type: <string>
  8. Definition: Should contain "qcom,pm8941-misc" or "qcom,pmd-vbus-det";
  9. - reg:
  10. Usage: required
  11. Value type: <u32>
  12. Definition: Should contain the offset to the misc address space
  13. - interrupts:
  14. Usage: required
  15. Value type: <prop-encoded-array>
  16. Definition: Should contain the usb id interrupt
  17. - interrupt-names:
  18. Usage: required
  19. Value type: <stringlist>
  20. Definition: Should contain the string "usb_id" for the usb id interrupt
  21. Example:
  22. pmic {
  23. usb_id: misc@900 {
  24. compatible = "qcom,pm8941-misc";
  25. reg = <0x900>;
  26. interrupts = <0x0 0x9 0 IRQ_TYPE_EDGE_BOTH>;
  27. interrupt-names = "usb_id";
  28. };
  29. }
  30. usb-controller {
  31. extcon = <&usb_id>;
  32. };