| .. | .. |
|---|
| 9 | 9 | Value type: <stringlist> |
|---|
| 10 | 10 | Definition: must be "qcom,apr-v<VERSION-NUMBER>", example "qcom,apr-v2" |
|---|
| 11 | 11 | |
|---|
| 12 | | -- reg |
|---|
| 12 | +- qcom,apr-domain |
|---|
| 13 | 13 | Usage: required |
|---|
| 14 | 14 | Value type: <u32> |
|---|
| 15 | 15 | Definition: Destination processor ID. |
|---|
| .. | .. |
|---|
| 45 | 45 | 12 - Ultrasound stream manager. |
|---|
| 46 | 46 | 13 - Listen stream manager. |
|---|
| 47 | 47 | |
|---|
| 48 | +- qcom,protection-domain |
|---|
| 49 | + Usage: optional |
|---|
| 50 | + Value type: <stringlist> |
|---|
| 51 | + Definition: Must list the protection domain service name and path |
|---|
| 52 | + that the particular apr service has a dependency on. |
|---|
| 53 | + Possible values are : |
|---|
| 54 | + "avs/audio", "msm/adsp/audio_pd". |
|---|
| 55 | + "kernel/elf_loader", "msm/modem/wlan_pd". |
|---|
| 56 | + "tms/servreg", "msm/adsp/audio_pd". |
|---|
| 57 | + "tms/servreg", "msm/modem/wlan_pd". |
|---|
| 58 | + "tms/servreg", "msm/slpi/sensor_pd". |
|---|
| 59 | + |
|---|
| 48 | 60 | = EXAMPLE |
|---|
| 49 | 61 | The following example represents a QDSP based sound card on a MSM8996 device |
|---|
| 50 | 62 | which uses apr as communication between Apps and QDSP. |
|---|
| 51 | 63 | |
|---|
| 52 | | - apr@4 { |
|---|
| 64 | + apr { |
|---|
| 53 | 65 | compatible = "qcom,apr-v2"; |
|---|
| 54 | | - reg = <APR_DOMAIN_ADSP>; |
|---|
| 66 | + qcom,apr-domain = <APR_DOMAIN_ADSP>; |
|---|
| 55 | 67 | |
|---|
| 56 | | - q6core@3 { |
|---|
| 68 | + apr-service@3 { |
|---|
| 57 | 69 | compatible = "qcom,q6core"; |
|---|
| 58 | 70 | reg = <APR_SVC_ADSP_CORE>; |
|---|
| 59 | 71 | }; |
|---|
| 60 | 72 | |
|---|
| 61 | | - q6afe@4 { |
|---|
| 73 | + apr-service@4 { |
|---|
| 62 | 74 | compatible = "qcom,q6afe"; |
|---|
| 63 | 75 | reg = <APR_SVC_AFE>; |
|---|
| 64 | 76 | |
|---|
| 65 | 77 | dais { |
|---|
| 66 | 78 | #sound-dai-cells = <1>; |
|---|
| 67 | | - hdmi@1 { |
|---|
| 68 | | - reg = <1>; |
|---|
| 79 | + dai@1 { |
|---|
| 80 | + reg = <HDMI_RX>; |
|---|
| 69 | 81 | }; |
|---|
| 70 | 82 | }; |
|---|
| 71 | 83 | }; |
|---|
| 72 | 84 | |
|---|
| 73 | | - q6asm@7 { |
|---|
| 85 | + apr-service@7 { |
|---|
| 74 | 86 | compatible = "qcom,q6asm"; |
|---|
| 75 | 87 | reg = <APR_SVC_ASM>; |
|---|
| 76 | 88 | ... |
|---|
| 77 | 89 | }; |
|---|
| 78 | 90 | |
|---|
| 79 | | - q6adm@8 { |
|---|
| 91 | + apr-service@8 { |
|---|
| 80 | 92 | compatible = "qcom,q6adm"; |
|---|
| 81 | 93 | reg = <APR_SVC_ADM>; |
|---|
| 82 | 94 | ... |
|---|
| 83 | 95 | }; |
|---|
| 84 | 96 | }; |
|---|
| 97 | + |
|---|
| 98 | += EXAMPLE 2 |
|---|
| 99 | +The following example represents a QDSP based sound card with protection domain |
|---|
| 100 | +dependencies specified. Here some of the apr services are dependent on services |
|---|
| 101 | +running on protection domain hosted on ADSP/SLPI remote processors while others |
|---|
| 102 | +have no such dependency. |
|---|
| 103 | + |
|---|
| 104 | + apr { |
|---|
| 105 | + compatible = "qcom,apr-v2"; |
|---|
| 106 | + qcom,glink-channels = "apr_audio_svc"; |
|---|
| 107 | + qcom,apr-domain = <APR_DOMAIN_ADSP>; |
|---|
| 108 | + |
|---|
| 109 | + apr-service@3 { |
|---|
| 110 | + compatible = "qcom,q6core"; |
|---|
| 111 | + reg = <APR_SVC_ADSP_CORE>; |
|---|
| 112 | + }; |
|---|
| 113 | + |
|---|
| 114 | + q6afe: apr-service@4 { |
|---|
| 115 | + compatible = "qcom,q6afe"; |
|---|
| 116 | + reg = <APR_SVC_AFE>; |
|---|
| 117 | + qcom,protection-domain = "avs/audio", "msm/adsp/audio_pd"; |
|---|
| 118 | + ... |
|---|
| 119 | + }; |
|---|
| 120 | + |
|---|
| 121 | + q6asm: apr-service@7 { |
|---|
| 122 | + compatible = "qcom,q6asm"; |
|---|
| 123 | + reg = <APR_SVC_ASM>; |
|---|
| 124 | + qcom,protection-domain = "tms/servreg", "msm/slpi/sensor_pd"; |
|---|
| 125 | + ... |
|---|
| 126 | + }; |
|---|
| 127 | + |
|---|
| 128 | + q6adm: apr-service@8 { |
|---|
| 129 | + compatible = "qcom,q6adm"; |
|---|
| 130 | + reg = <APR_SVC_ADM>; |
|---|
| 131 | + qcom,protection-domain = "avs/audio", "msm/adsp/audio_pd"; |
|---|
| 132 | + ... |
|---|
| 133 | + }; |
|---|
| 134 | + }; |
|---|