1# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/remoteproc/qcom,sc8180x-pas.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Qualcomm SC8180X Peripheral Authentication Service
8
9maintainers:
10  - Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
11
12description:
13  Qualcomm SC8180X SoC Peripheral Authentication Service loads and boots
14  firmware on the Qualcomm DSP Hexagon cores.
15
16properties:
17  compatible:
18    enum:
19      - qcom,sc8180x-adsp-pas
20      - qcom,sc8180x-cdsp-pas
21      - qcom,sc8180x-mpss-pas
22
23  reg:
24    maxItems: 1
25
26  clocks:
27    items:
28      - description: XO clock
29
30  clock-names:
31    items:
32      - const: xo
33
34  qcom,qmp:
35    $ref: /schemas/types.yaml#/definitions/phandle
36    description: Reference to the AOSS side-channel message RAM.
37
38  smd-edge: false
39
40  memory-region:
41    minItems: 1
42    description: Reference to the reserved-memory for the Hexagon core
43
44  firmware-name:
45    $ref: /schemas/types.yaml#/definitions/string
46    description: Firmware name for the Hexagon core
47
48required:
49  - compatible
50  - reg
51
52allOf:
53  - $ref: /schemas/remoteproc/qcom,pas-common.yaml#
54  - if:
55      properties:
56        compatible:
57          enum:
58            - qcom,sc8180x-adsp-pas
59            - qcom,sc8180x-cdsp-pas
60    then:
61      properties:
62        interrupts:
63          maxItems: 5
64        interrupt-names:
65          maxItems: 5
66    else:
67      properties:
68        interrupts:
69          minItems: 6
70        interrupt-names:
71          minItems: 6
72
73  - if:
74      properties:
75        compatible:
76          enum:
77            - qcom,sc8180x-adsp-pas
78            - qcom,sc8180x-cdsp-pas
79    then:
80      properties:
81        power-domains:
82          items:
83            - description: LCX power domain
84            - description: LMX power domain
85        power-domain-names:
86          items:
87            - const: lcx
88            - const: lmx
89    else:
90      properties:
91        # TODO: incomplete
92        power-domains: false
93        power-domain-names: false
94
95unevaluatedProperties: false
96