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