/Documentation/devicetree/bindings/platform/msm/qpnp-vibrator.txt

https://gitlab.com/webhaikal/SenseiFerrari · Plain Text · 40 lines · 34 code · 6 blank · 0 comment · 0 complexity · 915c2ddc2cc3b44fb0c35b63b6ddee6d MD5 · raw file

  1. QPNP Vibrator
  2. QPNP (Qualcomm Plug N Play) vibrator is a peripheral on
  3. Qualcomm PMICs. The PMIC is connected to Host processor
  4. via SPMI bus.
  5. Required Properties:
  6. - status: default status is set to "disabled. Must be "okay"
  7. - compatible: must be "qcom,qpnp-vibrator"
  8. - label: name which describes the device
  9. - reg: address of device
  10. Optional Properties:
  11. - qcom,vib-timeout-ms: timeout of vibrator, in ms. Default 15000 ms
  12. - qcom,vib-vtg-level-mV: voltage level, in mV. Default 3100 mV
  13. - qcom,mode: mode in which vibrator is operating. It can be one of
  14. "manual", "dtest1", "dtest2" and "dtest3"
  15. - qcom,active-low: boolean to specify if the dtestx is operated
  16. in active low or high
  17. Required Properties for "dtestx" mode:
  18. - qcom,pwm-channel: pwm channel number
  19. - qcom,period-us: period for pwm in micro secs
  20. - qcom,duty-us: duty cycle for pwm in micro secs
  21. Example:
  22. qcom,vib@c000 {
  23. status = "okay";
  24. compatible = "qcom,qpnp-vibrator";
  25. reg = <0xc000 0x100>;
  26. label = "vibrator";
  27. qcom,vib-timeout-ms = <15000>;
  28. qcom,vib-vtg-level-mV = <3100>;
  29. qcom,mode = "dtest3";
  30. qcom,pwm-channel = <5>;
  31. qcom,period-us = <1000>;
  32. qcom,duty-us = <750>;
  33. qcom,active-low;
  34. };