File Index
Files and directories
Sign in
FILE

qcom,sm8150-pas.yaml

File preview with syntax highlighting.

linux-6.19.14/Documentation/devicetree/bindings/remoteproc/qcom,sm8150-pas.yaml YAML
  1# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause
  2%YAML 1.2
  3---
  4$id: http://devicetree.org/schemas/remoteproc/qcom,sm8150-pas.yaml#
  5$schema: http://devicetree.org/meta-schemas/core.yaml#
  6
  7title: Qualcomm SM8150/SM8250 Peripheral Authentication Service
  8
  9maintainers:
 10  - Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
 11
 12description:
 13  Qualcomm SM8150/SM8250 SoC Peripheral Authentication Service loads and boots
 14  firmware on the Qualcomm DSP Hexagon cores.
 15
 16properties:
 17  compatible:
 18    oneOf:
 19      - items:
 20          - enum:
 21              - qcom,qcs615-adsp-pas
 22          - const: qcom,sm8150-adsp-pas
 23      - items:
 24          - enum:
 25              - qcom,qcs615-cdsp-pas
 26          - const: qcom,sm8150-cdsp-pas
 27      - enum:
 28          - qcom,sc8180x-adsp-pas
 29          - qcom,sc8180x-cdsp-pas
 30          - qcom,sc8180x-slpi-pas
 31          - qcom,sm8150-adsp-pas
 32          - qcom,sm8150-cdsp-pas
 33          - qcom,sm8150-mpss-pas
 34          - qcom,sm8150-slpi-pas
 35          - qcom,sm8250-adsp-pas
 36          - qcom,sm8250-cdsp-pas
 37          - qcom,sm8250-slpi-pas
 38
 39  reg:
 40    maxItems: 1
 41
 42  clocks:
 43    items:
 44      - description: XO clock
 45
 46  clock-names:
 47    items:
 48      - const: xo
 49
 50  qcom,qmp:
 51    $ref: /schemas/types.yaml#/definitions/phandle
 52    description: Reference to the AOSS side-channel message RAM.
 53
 54  memory-region:
 55    maxItems: 1
 56    description: Reference to the reserved-memory for the Hexagon core
 57
 58  smd-edge: false
 59
 60  firmware-name:
 61    maxItems: 1
 62    description: Firmware name for the Hexagon core
 63
 64required:
 65  - compatible
 66  - reg
 67  - memory-region
 68
 69allOf:
 70  - $ref: /schemas/remoteproc/qcom,pas-common.yaml#
 71  - if:
 72      properties:
 73        compatible:
 74          contains:
 75            enum:
 76              - qcom,sc8180x-adsp-pas
 77              - qcom,sc8180x-cdsp-pas
 78              - qcom,sc8180x-slpi-pas
 79              - qcom,sm8150-adsp-pas
 80              - qcom,sm8150-cdsp-pas
 81              - qcom,sm8150-slpi-pas
 82              - qcom,sm8250-adsp-pas
 83              - qcom,sm8250-cdsp-pas
 84              - qcom,sm8250-slpi-pas
 85    then:
 86      properties:
 87        interrupts:
 88          maxItems: 5
 89        interrupt-names:
 90          maxItems: 5
 91    else:
 92      properties:
 93        interrupts:
 94          minItems: 6
 95        interrupt-names:
 96          minItems: 6
 97
 98  - if:
 99      properties:
100        compatible:
101          contains:
102            enum:
103              - qcom,sc8180x-adsp-pas
104              - qcom,sc8180x-cdsp-pas
105              - qcom,sm8150-adsp-pas
106              - qcom,sm8150-cdsp-pas
107              - qcom,sm8250-cdsp-pas
108    then:
109      properties:
110        power-domains:
111          items:
112            - description: CX power domain
113        power-domain-names:
114          items:
115            - const: cx
116
117  - if:
118      properties:
119        compatible:
120          enum:
121            - qcom,sc8180x-mpss-pas
122            - qcom,sm8150-mpss-pas
123    then:
124      properties:
125        power-domains:
126          items:
127            - description: CX power domain
128            - description: MSS power domain
129        power-domain-names:
130          items:
131            - const: cx
132            - const: mss
133
134  - if:
135      properties:
136        compatible:
137          enum:
138            - qcom,sc8180x-slpi-pas
139            - qcom,sm8150-slpi-pas
140            - qcom,sm8250-adsp-pas
141            - qcom,sm8250-slpi-pas
142    then:
143      properties:
144        power-domains:
145          items:
146            - description: LCX power domain
147            - description: LMX power domain
148        power-domain-names:
149          items:
150            - const: lcx
151            - const: lmx
152
153unevaluatedProperties: false
154
155examples:
156  - |
157    #include <dt-bindings/clock/qcom,rpmh.h>
158    #include <dt-bindings/interrupt-controller/arm-gic.h>
159    #include <dt-bindings/interrupt-controller/irq.h>
160    #include <dt-bindings/power/qcom-rpmpd.h>
161
162    remoteproc@17300000 {
163        compatible = "qcom,sm8150-adsp-pas";
164        reg = <0x17300000 0x4040>;
165
166        clocks = <&rpmhcc RPMH_CXO_CLK>;
167        clock-names = "xo";
168
169        firmware-name = "qcom/sm8150/adsp.mbn";
170
171        interrupts-extended = <&intc GIC_SPI 162 IRQ_TYPE_EDGE_RISING>,
172                              <&adsp_smp2p_in 0 IRQ_TYPE_EDGE_RISING>,
173                              <&adsp_smp2p_in 1 IRQ_TYPE_EDGE_RISING>,
174                              <&adsp_smp2p_in 2 IRQ_TYPE_EDGE_RISING>,
175                              <&adsp_smp2p_in 3 IRQ_TYPE_EDGE_RISING>;
176        interrupt-names = "wdog", "fatal", "ready",
177                          "handover", "stop-ack";
178
179        memory-region = <&adsp_mem>;
180
181        power-domains = <&rpmhpd SM8150_CX>;
182
183        qcom,qmp = <&aoss_qmp>;
184        qcom,smem-states = <&adsp_smp2p_out 0>;
185        qcom,smem-state-names = "stop";
186
187        glink-edge {
188            interrupts = <GIC_SPI 156 IRQ_TYPE_EDGE_RISING>;
189            label = "lpass";
190            qcom,remote-pid = <2>;
191            mboxes = <&apss_shared 8>;
192
193            /* ... */
194
195        };
196    };
~/ Read-only file preview.