xref: /freebsd/sys/contrib/device-tree/Bindings/remoteproc/qcom,sm6115-pas.yaml (revision fe75646a0234a261c0013bf1840fdac4acaf0cec)
1# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/remoteproc/qcom,sm6115-pas.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Qualcomm SM6115 Peripheral Authentication Service
8
9maintainers:
10  - Bhupesh Sharma <bhupesh.sharma@linaro.org>
11
12description:
13  Qualcomm SM6115 SoC Peripheral Authentication Service loads and boots
14  firmware on the Qualcomm DSP Hexagon cores.
15
16properties:
17  compatible:
18    enum:
19      - qcom,sm6115-adsp-pas
20      - qcom,sm6115-cdsp-pas
21      - qcom,sm6115-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  memory-region:
35    minItems: 1
36    description: Reference to the reserved-memory for the Hexagon core
37
38  smd-edge: false
39
40  firmware-name:
41    $ref: /schemas/types.yaml#/definitions/string
42    description: Firmware name for the Hexagon core
43
44required:
45  - compatible
46  - reg
47
48allOf:
49  - $ref: /schemas/remoteproc/qcom,pas-common.yaml#
50  - if:
51      properties:
52        compatible:
53          enum:
54            - qcom,sm6115-adsp-pas
55            - qcom,sm6115-cdsp-pas
56    then:
57      properties:
58        interrupts:
59          maxItems: 5
60        interrupt-names:
61          maxItems: 5
62    else:
63      properties:
64        interrupts:
65          minItems: 6
66        interrupt-names:
67          minItems: 6
68
69  - if:
70      properties:
71        compatible:
72          enum:
73            - qcom,sm6115-cdsp-pas
74            - qcom,sm6115-mpss-pas
75    then:
76      properties:
77        power-domains:
78          items:
79            - description: CX power domain
80        power-domain-names:
81          items:
82            - const: cx
83
84  - if:
85      properties:
86        compatible:
87          enum:
88            - qcom,sm6115-adsp-pas
89    then:
90      properties:
91        power-domains:
92          items:
93            - description: LPI CX power domain
94            - description: LPI MX power domain
95        power-domain-names:
96          items:
97            - const: lcx
98            - const: lmx
99
100unevaluatedProperties: false
101
102examples:
103  - |
104    #include <dt-bindings/clock/qcom,rpmcc.h>
105    #include <dt-bindings/interrupt-controller/arm-gic.h>
106    #include <dt-bindings/interrupt-controller/irq.h>
107    #include <dt-bindings/power/qcom-rpmpd.h>
108
109    remoteproc@ab00000 {
110        compatible = "qcom,sm6115-adsp-pas";
111        reg = <0x0ab00000 0x100>;
112
113        clocks = <&rpmcc RPM_SMD_XO_CLK_SRC>;
114        clock-names = "xo";
115
116        firmware-name = "qcom/sm6115/adsp.mdt";
117
118        interrupts-extended = <&intc GIC_SPI 282 IRQ_TYPE_EDGE_RISING>,
119                              <&adsp_smp2p_in 0 IRQ_TYPE_EDGE_RISING>,
120                              <&adsp_smp2p_in 1 IRQ_TYPE_EDGE_RISING>,
121                              <&adsp_smp2p_in 2 IRQ_TYPE_EDGE_RISING>,
122                              <&adsp_smp2p_in 3 IRQ_TYPE_EDGE_RISING>;
123        interrupt-names = "wdog", "fatal", "ready",
124                          "handover", "stop-ack";
125
126        memory-region = <&pil_adsp_mem>;
127
128        power-domains = <&rpmpd SM6115_VDD_LPI_CX>,
129                        <&rpmpd SM6115_VDD_LPI_MX>;
130
131        qcom,smem-states = <&adsp_smp2p_out 0>;
132        qcom,smem-state-names = "stop";
133
134        glink-edge {
135            interrupts = <GIC_SPI 277 IRQ_TYPE_EDGE_RISING>;
136            label = "lpass";
137            qcom,remote-pid = <2>;
138            mboxes = <&apcs_glb 8>;
139
140            /* ... */
141
142        };
143    };
144