From b265239536f636b2ef95ad7db1f2e73733e61a93 Mon Sep 17 00:00:00 2001 From: Fenglin Wu Date: Wed, 22 Jan 2020 11:40:51 +0800 Subject: [PATCH] bindings: sound: Add swr-haptics binding document The haptics module inside PM8350B has a soundware slave which connects to the audio subsystem. It can receive PCM data from the audio subsystem and use it to play a vibration. Add a binding document for it. Change-Id: I3012ceca7042568957cec12864bef6c2e7a03a29 --- bindings/sound/wcd_codec.txt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/bindings/sound/wcd_codec.txt b/bindings/sound/wcd_codec.txt index c63a05d031bd..02609c4a15c1 100644 --- a/bindings/sound/wcd_codec.txt +++ b/bindings/sound/wcd_codec.txt @@ -439,6 +439,24 @@ wsa883x_0221: wsa883x@02170221 { qcom,cdc-static-supplies = "cdc-vdd-1p8"; }; +Haptics Soundwire slave device as child of Soundwire master in Bolero codec + +Required properties: + - compatible: "qcom,swr-haptics", or "qcom,pm8350b-swr-haptics". + - reg: Specifies the haptics soundwire slave unique device address. + - swr-slave-supply: Specify the phandle of the regulator device to take + haptics soundwire slave out of reset. + - qcom,rx_swr_ch_map: Specify the mapping of soundwire rx slave port configuration. + format: . + +Example: +swr_haptics: swr_haptics@f0170220 { + compatible = "qcom,pm8350b-swr-haptics"; + reg = <0x01 0xf0170220>; + swr-slave-supply = <&hap_swr_slave_reg>; + qcom,rx_swr_ch_map = <0 0x1 0xF 0 PCM_OUT1>; +}; + SWR MIC Soundwire slave device as child of Soundwire master in digital codec Required properties: