From 589c5662ebccdd013658c25560a3bce20ea0cfdd Mon Sep 17 00:00:00 2001 From: sasevs Date: Thu, 20 May 2021 10:26:01 +0530 Subject: [PATCH] ARM: dts: qcom: add ipc and codec cdev nodes Add audio-cc-ipc and cc-codec cdev nodes in slate.dtsi. Change-Id: I5d8a18108689ee899142002a5cd211648d72e46d --- .../soc/qcom/qcom,glink-slatecom-xprt.txt | 49 +++++++++++++++++++ qcom/slate.dtsi | 22 +++++++++ 2 files changed, 71 insertions(+) diff --git a/bindings/soc/qcom/qcom,glink-slatecom-xprt.txt b/bindings/soc/qcom/qcom,glink-slatecom-xprt.txt index b4ae09def9b2..769317af654b 100644 --- a/bindings/soc/qcom/qcom,glink-slatecom-xprt.txt +++ b/bindings/soc/qcom/qcom,glink-slatecom-xprt.txt @@ -22,3 +22,52 @@ The following example reprsents a glink_slatecom node. compatible = "qcom,glink-slatecom-xprt"; label = "slate"; }; + += AUDIO_CC_IPC_NODE +Each subnode of the glink_slatecom_xprt is a device node exposed to user space +by the audio-cc-ipc driver for sending ipc packets between the ipc clients. +Maximum nodes supported is 2. +- Each node defined should contain following property + +- compatible: + Usage: required + Value type: + Definition: must be "qcom,audio_cc_ipc" + +- qcom,glink-channels: + Usage: required + Value type: + +- reg: + Usage: required + Value type: + +- cdev_name: + Usage: required + Value type: + += CC_CODEC_NODE +Audio_cc_ipc nodes can have a cc_codec child node. This node will act as an +interface for proxy codec, to manage the communication to its counter part +through ipc. +- Each node defined should contain following property + +- compatible: + Usage: required + Value type: + Definition: must be "qcom,cc-codec" + += EXAMPLE +The following example represents the audio-cc-ipc node having a codec child node + + audio_ipc1: qcom,audio_cc_ipc1 { + compatible = "qcom,audio_cc_ipc"; + qcom,glink-channels = "custom_cc_apps"; + qcom,intents = <0x2000 2>; + reg = ; + cdev_name = "nongpr_channel"; + + cc_codec: qcom,cc-codec { + compatible = "qcom, cc-codec"; + }; + }; diff --git a/qcom/slate.dtsi b/qcom/slate.dtsi index a6f170802464..435f05a8083f 100644 --- a/qcom/slate.dtsi +++ b/qcom/slate.dtsi @@ -1,3 +1,5 @@ +#include "dt-bindings/sound/qcom,gpr.h" + &soc { qupv3_se4_spi: spi@4a90000 { /* BLSP4 QUP3*/ status = "ok"; @@ -127,5 +129,25 @@ qcom,intents = <0x2710 2 0x3E8 2>; }; + + audio_ipc: qcom,audio_cc_ipc { + compatible = "qcom,audio_cc_ipc"; + qcom,glink-channels = "gpr_cc_apps"; + qcom,intents = <0x2000 2>; + reg = ; + cdev_name = "gpr_channel"; + }; + + audio_ipc1: qcom,audio_cc_ipc1 { + compatible = "qcom,audio_cc_ipc"; + qcom,glink-channels = "custom_cc_apps"; + qcom,intents = <0x2000 2>; + reg = ; + cdev_name = "nongpr_channel"; + + cc_codec: qcom,cc-codec { + compatible = "qcom,cc-codec"; + }; + }; }; };