From 07b71e925fdd93b961fc6abbb9cba430da0877ec Mon Sep 17 00:00:00 2001 From: Hui Liu Date: Tue, 19 Jul 2022 20:45:31 +0800 Subject: [PATCH] bindings: qcom-hv-haptics: add "qcom,primitive-id" property Add "qcom,primitive-id" property for effect sub-nodes to identify them as effect primitives. Change-Id: I9d518ed279dc6fdb71f7645aef40a23fad4bdf05 --- bindings/input/qcom-hv-haptics.txt | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/bindings/input/qcom-hv-haptics.txt b/bindings/input/qcom-hv-haptics.txt index ee9fe299..94dbd3ad 100644 --- a/bindings/input/qcom-hv-haptics.txt +++ b/bindings/input/qcom-hv-haptics.txt @@ -175,13 +175,21 @@ The following properties should be specified in child nodes for defining different vibration effects: - qcom,effect-id: - Usage: required + Usage: optional Value type: Definition: Specifies the effect ID that a client can request to play the corresponding effect definition in this child node. The ID is normaly defined and sent from userspace for certain user notification event. +- qcom,primitive-id: + Usage: optional + Value type: + Definition: Specifies the effect primitive ID that a client can request to + play the corresponding primitive definition in this child node. + The ID is normaly defined and sent from userspace for certain + user notification event. + - qcom,wf-vmax-mv: Usage: optional Value type: @@ -337,4 +345,14 @@ Example: qcom,wf-brake-pattern = /bits/ 8 <0x7f 0x5f 0x3f>; qcom,wf-auto-res-disable; }; + + primitive_0 { + qcom,primitive-id = <0>; + qcom,wf-vmax-mv = <8000>; + qcom,wf-pattern-data = <0x0ff S_PERIOD_T_LRA 0>, + <0x07f S_PERIOD_T_LRA 0>, + qcom,wf-pattern-period-us = <5000>; + qcom,wf-brake-pattern = /bits/ 8 <0xff 0x7f 0x3f>; + qcom,wf-auto-res-disable; + } };