From 3ade60790e9b13307e7b8b6e7629942683265e8c Mon Sep 17 00:00:00 2001 From: Fenglin Wu Date: Tue, 26 May 2020 14:41:15 +0800 Subject: [PATCH 1/2] bindings: input: qcom-hv-haptics: add HBoost register address base Add HBoost register base address so that supported voltage range for haptics peripheral can be read. Change-Id: I00bd50e8ceff44e2ad1fbd2691d93ee3c2cabf0d --- bindings/input/qcom-hv-haptics.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bindings/input/qcom-hv-haptics.txt b/bindings/input/qcom-hv-haptics.txt index bae0beb3f911..39637f64e115 100644 --- a/bindings/input/qcom-hv-haptics.txt +++ b/bindings/input/qcom-hv-haptics.txt @@ -23,7 +23,8 @@ Properties: - reg: Usage: required Value type: - Definition: Register base for HAPTICS_CFG and HAPTICS_PATTERN modules. + Definition: Register base for following haptics modules: HAPTICS_CFG, + HAPTICS_PATTERN, HAPTICS_BOOST. - interrupts: Usage: required @@ -242,7 +243,7 @@ different vibration effects: Example: qcom,hv-haptics@f000 { compatible = "qcom,hv-haptics"; - reg = <0xf000>, <0xf100>; + reg = <0xf000>, <0xf100>, <0xf200>; interrupts = <0x3 0xf0 0x1 IRQ_TYPE_EDGE_BOTH>; interrupt-names = "fifo-empty"; nvmem-cell-names = "hap_cl_brake"; From 1e23d0a098de8a8c5ced1246ac0829c0e6c61ea0 Mon Sep 17 00:00:00 2001 From: Fenglin Wu Date: Tue, 26 May 2020 15:02:41 +0800 Subject: [PATCH 2/2] ARM: dts: msm: add HBoost register address base for PM8350B Add HBoost register address base so that the haptics driver can access the module to get the supported voltage range. Change-Id: Ia19a05d15058121f5d23ba575ad27e8ea6d40e02 --- qcom/pm8350b.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/pm8350b.dtsi b/qcom/pm8350b.dtsi index 65efebaddd26..61fc95571554 100644 --- a/qcom/pm8350b.dtsi +++ b/qcom/pm8350b.dtsi @@ -49,7 +49,7 @@ pm8350b_haptics: qcom,hv-haptics@f000 { compatible = "qcom,hv-haptics"; - reg = <0xf000>, <0xf100>; + reg = <0xf000>, <0xf100>, <0xf200>; interrupts = <0x3 0xf0 0x1 IRQ_TYPE_EDGE_RISING>; interrupt-names = "fifo-empty"; qcom,vmax-mv = <3600>;