Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

soc: qcom dt-bindings: Add APR bus bindings

This patch add dt bindings for Qualcomm APR (Asynchronous Packet Router)
bus driver. This bus is used for communicating with DSP which provides
audio and various other services to cpu.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Reviewed-by: Banajit Goswami <bgoswami@codeaurora.org>
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Srinivas Kandagatla and committed by
Mark Brown
8675e8d3 9af8937e

+112
+84
Documentation/devicetree/bindings/soc/qcom/qcom,apr.txt
··· 1 + Qualcomm APR (Asynchronous Packet Router) binding 2 + 3 + This binding describes the Qualcomm APR. APR is a IPC protocol for 4 + communication between Application processor and QDSP. APR is mainly 5 + used for audio/voice services on the QDSP. 6 + 7 + - compatible: 8 + Usage: required 9 + Value type: <stringlist> 10 + Definition: must be "qcom,apr-v<VERSION-NUMBER>", example "qcom,apr-v2" 11 + 12 + - reg 13 + Usage: required 14 + Value type: <u32> 15 + Definition: Destination processor ID. 16 + Possible values are : 17 + 1 - APR simulator 18 + 2 - PC 19 + 3 - MODEM 20 + 4 - ADSP 21 + 5 - APPS 22 + 6 - MODEM2 23 + 7 - APPS2 24 + 25 + = APR SERVICES 26 + Each subnode of the APR node represents service tied to this apr. The name 27 + of the nodes are not important. The properties of these nodes are defined 28 + by the individual bindings for the specific service 29 + - All APR services MUST contain the following property: 30 + 31 + - reg 32 + Usage: required 33 + Value type: <u32> 34 + Definition: APR Service ID 35 + Possible values are : 36 + 3 - DSP Core Service 37 + 4 - Audio Front End Service. 38 + 5 - Voice Stream Manager Service. 39 + 6 - Voice processing manager. 40 + 7 - Audio Stream Manager Service. 41 + 8 - Audio Device Manager Service. 42 + 9 - Multimode voice manager. 43 + 10 - Core voice stream. 44 + 11 - Core voice processor. 45 + 12 - Ultrasound stream manager. 46 + 13 - Listen stream manager. 47 + 48 + = EXAMPLE 49 + The following example represents a QDSP based sound card on a MSM8996 device 50 + which uses apr as communication between Apps and QDSP. 51 + 52 + apr@4 { 53 + compatible = "qcom,apr-v2"; 54 + reg = <APR_DOMAIN_ADSP>; 55 + 56 + q6core@3 { 57 + compatible = "qcom,q6core"; 58 + reg = <APR_SVC_ADSP_CORE>; 59 + }; 60 + 61 + q6afe@4 { 62 + compatible = "qcom,q6afe"; 63 + reg = <APR_SVC_AFE>; 64 + 65 + dais { 66 + #sound-dai-cells = <1>; 67 + hdmi@1 { 68 + reg = <1>; 69 + }; 70 + }; 71 + }; 72 + 73 + q6asm@7 { 74 + compatible = "qcom,q6asm"; 75 + reg = <APR_SVC_ASM>; 76 + ... 77 + }; 78 + 79 + q6adm@8 { 80 + compatible = "qcom,q6adm"; 81 + reg = <APR_SVC_ADM>; 82 + ... 83 + }; 84 + };
+28
include/dt-bindings/soc/qcom,apr.h
··· 1 + /* SPDX-License-Identifier: GPL-2.0 */ 2 + #ifndef __DT_BINDINGS_QCOM_APR_H 3 + #define __DT_BINDINGS_QCOM_APR_H 4 + 5 + /* Domain IDs */ 6 + #define APR_DOMAIN_SIM 0x1 7 + #define APR_DOMAIN_PC 0x2 8 + #define APR_DOMAIN_MODEM 0x3 9 + #define APR_DOMAIN_ADSP 0x4 10 + #define APR_DOMAIN_APPS 0x5 11 + #define APR_DOMAIN_MAX 0x6 12 + 13 + /* ADSP service IDs */ 14 + #define APR_SVC_ADSP_CORE 0x3 15 + #define APR_SVC_AFE 0x4 16 + #define APR_SVC_VSM 0x5 17 + #define APR_SVC_VPM 0x6 18 + #define APR_SVC_ASM 0x7 19 + #define APR_SVC_ADM 0x8 20 + #define APR_SVC_ADSP_MVM 0x09 21 + #define APR_SVC_ADSP_CVS 0x0A 22 + #define APR_SVC_ADSP_CVP 0x0B 23 + #define APR_SVC_USM 0x0C 24 + #define APR_SVC_LSM 0x0D 25 + #define APR_SVC_VIDC 0x16 26 + #define APR_SVC_MAX 0x17 27 + 28 + #endif /* __DT_BINDINGS_QCOM_APR_H */