isa1200.txt 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. Imagis ISA1200 Haptics Vibrator
  2. Required properties:
  3. - reg: slave address of bus
  4. - compatible: should be "imagis,isa1200"
  5. - label: name for vibrator directory
  6. - imagis,hap-en-gpio: haptic enable gpio
  7. - imagis,mode-ctrl: mode of the controller, 0 = POWER_DOWN_MODE,
  8. 1 = PWM_INPUT_MODE, 2 = PWM_GEN_MODE, 3 = WAVE_GEN_MODE
  9. - imagis,max-timeout: maximum timeout for vibration
  10. - imagis,chip-en: chip enable
  11. - vcc_i2c-supply: regulator supplying i2c bus
  12. Regulator described as a child of the main device:
  13. - regulator-name: A string used as a descriptive name for regulator outputs,
  14. should match vcc_i2c above
  15. - regulator-min-microvolt: smallest voltage consumers may set
  16. - regulator-max-microvolt: largest voltage consumers may set
  17. - regulator-max-microamp: largest current consumers may set
  18. Optional properties:
  19. - imagis,smart-en: automatically control haptic power based on pwm/clk signal
  20. - imagis,is-erm: controlled by dc motor, use ERM driving method
  21. - imagis,overdrive-high: overdrive high
  22. - imagis,overdrive-en: enable overdrive
  23. - imagis,pwm-freq: pwm frequency (hZ)
  24. - imagis,pwm-ch-id: pwm channel id
  25. - imagis,pwm-div: pwm division to be used for vibration
  26. - imagis,need-pwm-clk: use "pwm_clk"
  27. - imagis,hap-len-gpio: haptic ldo enable gpio
  28. - imagis,etc-clk-en: use external clock
  29. - xyz-supply: to be used if additional regulators are require beyond
  30. "imagis,regulator" above
  31. Any additional regulators are described as child nodes of main device:
  32. - regulator-name: A string used as a descriptive name for regulator outputs,
  33. should match supply "xyz"
  34. - regulator-min-microvolt: smallest voltage consumers may set
  35. - regulator-max-microvolt: largest voltage consumers may set
  36. - regulator-max-microamp: largest current consumers may set
  37. Example:
  38. i2c@f9967000 {
  39. isa1200@48 {
  40. status = "okay";
  41. reg = <0x48>;
  42. vcc_i2c-supply = <&pm8941_s3>;
  43. compatible = "imagis,isa1200";
  44. label = "vibrator";
  45. imagis,chip-en;
  46. imagis,smart-en;
  47. imagis,need-pwm-clk;
  48. imagis,ext-clk-en;
  49. imagis,hap-en-gpio = <&msmgpio 86 0x00>;
  50. imagis,max-timeout = <15000>;
  51. imagis,pwm-div = <256>;
  52. imagis,mode-ctrl = <2>;
  53. imagis,regulator {
  54. regulator-name = "vcc_i2c";
  55. regulator-min-microvolt = <1800000>;
  56. regulator-max-microvolt = <1800000>;
  57. regulator-max-microamp = <9360>;
  58. };
  59. };
  60. };