From 3bea77be4cb15ac291a659bee3f8f6c046ddd456 Mon Sep 17 00:00:00 2001 From: Fenglin Wu Date: Fri, 14 Feb 2020 13:57:29 +0800 Subject: [PATCH 1/2] bindings: input: qcom-hv-haptics: add swr-slave regulator subnode Add a subnode to define a regulator device to control the online status of the SWR slave in haptics module. Change-Id: I2e97a9ab4f4499ab0cce23f626d1834a4f7e90c1 --- bindings/input/qcom-hv-haptics.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/bindings/input/qcom-hv-haptics.txt b/bindings/input/qcom-hv-haptics.txt index 72334b9029f6..c4c1bfe3b678 100644 --- a/bindings/input/qcom-hv-haptics.txt +++ b/bindings/input/qcom-hv-haptics.txt @@ -108,6 +108,12 @@ The following properties are only required when LRA actuator is used: is selected. Please refer to: include/dt-bindings/input/qcom,hv-haptics.h. +A child node named "qcom,hap-swr-slave-reg" can be defined to export a regulator +device which is used for swr-haptics module to control the online status of SWR +slave. The child node should have following property for this regulator device: + +- regulator-name: Please refer to: bindings/regulator/regulator.txt. + The following properties should be specified in child nodes for defining different vibration effects: @@ -222,6 +228,10 @@ Example: qcom,drv-sig-shape = ; qcom,brake-sig-shape = ; + qcom,hap-swr-slave-reg { + regulator-name = "hap-swr-slave-reg"; + }; + effect_0 { /* CLICK effect */ qcom,effect-id = <0>; From 99971b247176d851ebf2da909eea6ab3845f9e5f Mon Sep 17 00:00:00 2001 From: Fenglin Wu Date: Wed, 26 Feb 2020 10:46:57 +0800 Subject: [PATCH 2/2] ARM: dts: msm: Add swr-slave regulator device node in haptics module Add the swr-slave regulator device node in pm8350b haptics module for swr-haptics device to control the SWR slave online status. Change-Id: Ib3ee6fe8f8d4357392a64f06123e482f41ef8308 --- qcom/pm8350b.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qcom/pm8350b.dtsi b/qcom/pm8350b.dtsi index ad52a160c94f..db46136196da 100644 --- a/qcom/pm8350b.dtsi +++ b/qcom/pm8350b.dtsi @@ -60,6 +60,10 @@ qcom,brake-sig-shape = ; status = "disabled"; + hap_swr_slave_reg: qcom,hap-swr-slave-reg { + regulator-name = "hap-swr-slave-reg"; + }; + effect_0 { /* CLICK */ qcom,effect-id = <0>;