nx30p6093.txt 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. Binding for NXP NX30P6093 moisture detection module
  2. NX30P6093 is an I2C controlled module and features an input impedance detection
  3. function, along with OVP protection upto 29V. The impedance detection can detect
  4. moisture or dust on USB lines and report the same to system to take necessary
  5. steps to avoid circuit damage to the Type-C port power supply pin.
  6. =======================
  7. Supported Properties
  8. =======================
  9. - compatible
  10. Usage: required
  11. Value type: <string>
  12. Definition: should be "nxp,nx30p6093".
  13. - reg
  14. Usage: required
  15. Value type: <u32>
  16. Definition: The device 8-bit I2C address.
  17. - interrupts
  18. Usage: required
  19. Value type: <prop-encoded-array>
  20. Definition: Moisture detect interrupt specifier.
  21. - nxp,always-on-detect
  22. Usage: optional
  23. Value type: <boolean>
  24. Definition: If specified, the NX30P6093 is configured to perform
  25. mositure detection on every detection duty cycle configured
  26. in "nxp,always-on-tduty-val" property.
  27. - nxp,always-on-tduty-ms
  28. Usage: required if "nxp,always-on-detect" specified
  29. Value type: <u32>
  30. Definition: The detection duty cycle (Tduty) in milliseconds.
  31. Supported values are 10, 20, 50, 100, 200, 500, 1000,
  32. 2000, 3000, 6000, 12000, 30000, 60000, 120000 and 300000.
  33. If this property is not specified a default value of
  34. 300000 milliseconds is used.
  35. - nxp,long-wakeup-sec
  36. Usage: required if "nxp,always-on-detect" not specified.
  37. Value type: <u32>
  38. Definition: A longer time interval in seconds maintained between
  39. moisture detection events after a previous moisture
  40. detection event resulted in a good impedance detected
  41. on USB lines. If this property is not specified a default
  42. value of 28800 seconds (8 hrs) is used.
  43. - nxp,short-wakeup-ms
  44. Usage: required if "nxp,always-on-detect" not specified.
  45. Value type: <u32>
  46. Definition: A shorter time interval in milliseconds maintained
  47. between moisture detection events after a previous
  48. moisture detection event resulted in a bad impedance
  49. detected on USB lines. If this property is not specified
  50. a default value of 180000 milliseconds (3 mins) is used.
  51. =======
  52. Example
  53. =======
  54. nx30p6093@0 {
  55. compatible = "nxp,nx30p6093";
  56. reg = <0x36>;
  57. interrupt-parent = <&tlmm>;
  58. interrupts = <5 IRQ_TYPE_NONE>;
  59. nxp,long-wakeup-sec = <28800>; /* 8 hours */
  60. nxp,short-wakeup-ms = <180000>; /* 3 mins */
  61. };