From 758431eff1682e9a98259ae5d1c980a355b9facd Mon Sep 17 00:00:00 2001 From: Fenglin Wu Date: Mon, 20 Jul 2020 15:22:52 +0800 Subject: [PATCH] bindings: qcom-hv-haptics: add nvmem device for haptics configuration Add nvmem device for haptics module to configure some settings in SDAM module. Change-Id: I441069a1a5ada86abca89a27ed28e0ad21179b0c --- bindings/input/qcom-hv-haptics.txt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/bindings/input/qcom-hv-haptics.txt b/bindings/input/qcom-hv-haptics.txt index 39637f64e115..cea8fc575603 100644 --- a/bindings/input/qcom-hv-haptics.txt +++ b/bindings/input/qcom-hv-haptics.txt @@ -100,6 +100,18 @@ Properties: calibration settings. Please refer to nvmem bindings as described in bindings/nvmem/nvmem.txt. +- nvmem-names: + Usage: optional + Value type: + Definition: The nvmem device name of the SDAM module used for haptics + configuration. It must be "hap_cfg_sdam". + +- nvmem: + Usage: optional + Value type: + Definition: Phandle of the nvmem device used for haptics configuration. + Please refer to nvmem bindings as described in bindings/nvmem/nvmem.txt. + The following properties are only required when LRA actuator is used: - qcom,lra-period-us: @@ -248,6 +260,8 @@ Example: interrupt-names = "fifo-empty"; nvmem-cell-names = "hap_cl_brake"; nvmem-cells = <&hap_cl_brake>; + nvmem-names = "hap_cfg_sdam"; + nvmem = <&pmk8350_sdam_46>; qcom,vmax-mv = <900>; qcom,brake-mode = ; qcom,brake-pattern = /bits/ 8 <0xff 0x3f 0x1f>;