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>; 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>;