xref: /freebsd/sys/contrib/device-tree/Bindings/remoteproc/qcom,sm6350-pas.yaml (revision aa1a8ff2d6dbc51ef058f46f3db5a8bb77967145)
1cb7aa33aSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause
2cb7aa33aSEmmanuel Vadot%YAML 1.2
3cb7aa33aSEmmanuel Vadot---
4cb7aa33aSEmmanuel Vadot$id: http://devicetree.org/schemas/remoteproc/qcom,sm6350-pas.yaml#
5cb7aa33aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6cb7aa33aSEmmanuel Vadot
7cb7aa33aSEmmanuel Vadottitle: Qualcomm SM6350 Peripheral Authentication Service
8cb7aa33aSEmmanuel Vadot
9cb7aa33aSEmmanuel Vadotmaintainers:
10cb7aa33aSEmmanuel Vadot  - Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
11cb7aa33aSEmmanuel Vadot
12cb7aa33aSEmmanuel Vadotdescription:
13cb7aa33aSEmmanuel Vadot  Qualcomm SM6350 SoC Peripheral Authentication Service loads and boots
14cb7aa33aSEmmanuel Vadot  firmware on the Qualcomm DSP Hexagon cores.
15cb7aa33aSEmmanuel Vadot
16cb7aa33aSEmmanuel Vadotproperties:
17cb7aa33aSEmmanuel Vadot  compatible:
18cb7aa33aSEmmanuel Vadot    enum:
19cb7aa33aSEmmanuel Vadot      - qcom,sm6350-adsp-pas
20cb7aa33aSEmmanuel Vadot      - qcom,sm6350-cdsp-pas
21cb7aa33aSEmmanuel Vadot      - qcom,sm6350-mpss-pas
22cb7aa33aSEmmanuel Vadot
23cb7aa33aSEmmanuel Vadot  reg:
24cb7aa33aSEmmanuel Vadot    maxItems: 1
25cb7aa33aSEmmanuel Vadot
26cb7aa33aSEmmanuel Vadot  clocks:
27cb7aa33aSEmmanuel Vadot    items:
28cb7aa33aSEmmanuel Vadot      - description: XO clock
29cb7aa33aSEmmanuel Vadot
30cb7aa33aSEmmanuel Vadot  clock-names:
31cb7aa33aSEmmanuel Vadot    items:
32cb7aa33aSEmmanuel Vadot      - const: xo
33cb7aa33aSEmmanuel Vadot
34cb7aa33aSEmmanuel Vadot  qcom,qmp:
35cb7aa33aSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/phandle
36cb7aa33aSEmmanuel Vadot    description: Reference to the AOSS side-channel message RAM.
37cb7aa33aSEmmanuel Vadot
38cb7aa33aSEmmanuel Vadot  memory-region:
39*aa1a8ff2SEmmanuel Vadot    maxItems: 1
40cb7aa33aSEmmanuel Vadot    description: Reference to the reserved-memory for the Hexagon core
41cb7aa33aSEmmanuel Vadot
42cb7aa33aSEmmanuel Vadot  smd-edge: false
43cb7aa33aSEmmanuel Vadot
44cb7aa33aSEmmanuel Vadot  firmware-name:
45cb7aa33aSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/string
46cb7aa33aSEmmanuel Vadot    description: Firmware name for the Hexagon core
47cb7aa33aSEmmanuel Vadot
48cb7aa33aSEmmanuel Vadotrequired:
49cb7aa33aSEmmanuel Vadot  - compatible
50cb7aa33aSEmmanuel Vadot  - reg
51*aa1a8ff2SEmmanuel Vadot  - memory-region
52cb7aa33aSEmmanuel Vadot
53cb7aa33aSEmmanuel VadotallOf:
54cb7aa33aSEmmanuel Vadot  - $ref: /schemas/remoteproc/qcom,pas-common.yaml#
55cb7aa33aSEmmanuel Vadot  - if:
56cb7aa33aSEmmanuel Vadot      properties:
57cb7aa33aSEmmanuel Vadot        compatible:
58cb7aa33aSEmmanuel Vadot          enum:
59cb7aa33aSEmmanuel Vadot            - qcom,sm6350-adsp-pas
60cb7aa33aSEmmanuel Vadot            - qcom,sm6350-cdsp-pas
61cb7aa33aSEmmanuel Vadot    then:
62cb7aa33aSEmmanuel Vadot      properties:
63cb7aa33aSEmmanuel Vadot        interrupts:
64cb7aa33aSEmmanuel Vadot          maxItems: 5
65cb7aa33aSEmmanuel Vadot        interrupt-names:
66cb7aa33aSEmmanuel Vadot          maxItems: 5
67cb7aa33aSEmmanuel Vadot    else:
68cb7aa33aSEmmanuel Vadot      properties:
69cb7aa33aSEmmanuel Vadot        interrupts:
70cb7aa33aSEmmanuel Vadot          minItems: 6
71cb7aa33aSEmmanuel Vadot        interrupt-names:
72cb7aa33aSEmmanuel Vadot          minItems: 6
73cb7aa33aSEmmanuel Vadot
74cb7aa33aSEmmanuel Vadot  - if:
75cb7aa33aSEmmanuel Vadot      properties:
76cb7aa33aSEmmanuel Vadot        compatible:
77cb7aa33aSEmmanuel Vadot          enum:
78cb7aa33aSEmmanuel Vadot            - qcom,sm6350-adsp-pas
79cb7aa33aSEmmanuel Vadot    then:
80cb7aa33aSEmmanuel Vadot      properties:
81cb7aa33aSEmmanuel Vadot        power-domains:
82cb7aa33aSEmmanuel Vadot          items:
83cb7aa33aSEmmanuel Vadot            - description: LCX power domain
84cb7aa33aSEmmanuel Vadot            - description: LMX power domain
85cb7aa33aSEmmanuel Vadot        power-domain-names:
86cb7aa33aSEmmanuel Vadot          items:
87cb7aa33aSEmmanuel Vadot            - const: lcx
88cb7aa33aSEmmanuel Vadot            - const: lmx
89cb7aa33aSEmmanuel Vadot
90cb7aa33aSEmmanuel Vadot  - if:
91cb7aa33aSEmmanuel Vadot      properties:
92cb7aa33aSEmmanuel Vadot        compatible:
93cb7aa33aSEmmanuel Vadot          enum:
94cb7aa33aSEmmanuel Vadot            - qcom,sm6350-cdsp-pas
95cb7aa33aSEmmanuel Vadot    then:
96cb7aa33aSEmmanuel Vadot      properties:
97cb7aa33aSEmmanuel Vadot        power-domains:
98cb7aa33aSEmmanuel Vadot          items:
99cb7aa33aSEmmanuel Vadot            - description: CX power domain
100cb7aa33aSEmmanuel Vadot            - description: MX power domain
101cb7aa33aSEmmanuel Vadot        power-domain-names:
102cb7aa33aSEmmanuel Vadot          items:
103cb7aa33aSEmmanuel Vadot            - const: cx
104cb7aa33aSEmmanuel Vadot            - const: mx
105cb7aa33aSEmmanuel Vadot
106cb7aa33aSEmmanuel Vadot  - if:
107cb7aa33aSEmmanuel Vadot      properties:
108cb7aa33aSEmmanuel Vadot        compatible:
109cb7aa33aSEmmanuel Vadot          enum:
110cb7aa33aSEmmanuel Vadot            - qcom,sm6350-mpss-pas
111cb7aa33aSEmmanuel Vadot    then:
112cb7aa33aSEmmanuel Vadot      properties:
113cb7aa33aSEmmanuel Vadot        power-domains:
114cb7aa33aSEmmanuel Vadot          items:
115cb7aa33aSEmmanuel Vadot            - description: CX power domain
116cb7aa33aSEmmanuel Vadot            - description: MSS power domain
117cb7aa33aSEmmanuel Vadot        power-domain-names:
118cb7aa33aSEmmanuel Vadot          items:
119cb7aa33aSEmmanuel Vadot            - const: cx
120cb7aa33aSEmmanuel Vadot            - const: mss
121cb7aa33aSEmmanuel Vadot
122cb7aa33aSEmmanuel VadotunevaluatedProperties: false
123cb7aa33aSEmmanuel Vadot
124cb7aa33aSEmmanuel Vadotexamples:
125cb7aa33aSEmmanuel Vadot  - |
126cb7aa33aSEmmanuel Vadot    #include <dt-bindings/clock/qcom,rpmh.h>
127cb7aa33aSEmmanuel Vadot    #include <dt-bindings/interrupt-controller/irq.h>
128cb7aa33aSEmmanuel Vadot    #include <dt-bindings/mailbox/qcom-ipcc.h>
129cb7aa33aSEmmanuel Vadot    #include <dt-bindings/power/qcom-rpmpd.h>
130cb7aa33aSEmmanuel Vadot
131cb7aa33aSEmmanuel Vadot    remoteproc@3000000 {
132cb7aa33aSEmmanuel Vadot        compatible = "qcom,sm6350-adsp-pas";
133cb7aa33aSEmmanuel Vadot        reg = <0x03000000 0x100>;
134cb7aa33aSEmmanuel Vadot
135cb7aa33aSEmmanuel Vadot        clocks = <&rpmhcc RPMH_CXO_CLK>;
136cb7aa33aSEmmanuel Vadot        clock-names = "xo";
137cb7aa33aSEmmanuel Vadot
138cb7aa33aSEmmanuel Vadot        interrupts-extended = <&pdc 6 IRQ_TYPE_LEVEL_HIGH>,
139cb7aa33aSEmmanuel Vadot                              <&smp2p_adsp_in 0 IRQ_TYPE_EDGE_RISING>,
140cb7aa33aSEmmanuel Vadot                              <&smp2p_adsp_in 1 IRQ_TYPE_EDGE_RISING>,
141cb7aa33aSEmmanuel Vadot                              <&smp2p_adsp_in 2 IRQ_TYPE_EDGE_RISING>,
142cb7aa33aSEmmanuel Vadot                              <&smp2p_adsp_in 3 IRQ_TYPE_EDGE_RISING>;
143cb7aa33aSEmmanuel Vadot        interrupt-names = "wdog", "fatal", "ready",
144cb7aa33aSEmmanuel Vadot                          "handover", "stop-ack";
145cb7aa33aSEmmanuel Vadot
146cb7aa33aSEmmanuel Vadot        memory-region = <&pil_adsp_mem>;
147cb7aa33aSEmmanuel Vadot
148cb7aa33aSEmmanuel Vadot        power-domains = <&rpmhpd SM6350_LCX>,
149cb7aa33aSEmmanuel Vadot                        <&rpmhpd SM6350_LMX>;
150cb7aa33aSEmmanuel Vadot        power-domain-names = "lcx", "lmx";
151cb7aa33aSEmmanuel Vadot
152cb7aa33aSEmmanuel Vadot        qcom,qmp = <&aoss_qmp>;
153cb7aa33aSEmmanuel Vadot        qcom,smem-states = <&smp2p_adsp_out 0>;
154cb7aa33aSEmmanuel Vadot        qcom,smem-state-names = "stop";
155cb7aa33aSEmmanuel Vadot
156cb7aa33aSEmmanuel Vadot        glink-edge {
157cb7aa33aSEmmanuel Vadot            interrupts-extended = <&ipcc IPCC_CLIENT_LPASS
158cb7aa33aSEmmanuel Vadot                                         IPCC_MPROC_SIGNAL_GLINK_QMP
159cb7aa33aSEmmanuel Vadot                                         IRQ_TYPE_EDGE_RISING>;
160cb7aa33aSEmmanuel Vadot            mboxes = <&ipcc IPCC_CLIENT_LPASS
161cb7aa33aSEmmanuel Vadot                            IPCC_MPROC_SIGNAL_GLINK_QMP>;
162cb7aa33aSEmmanuel Vadot
163cb7aa33aSEmmanuel Vadot            label = "lpass";
164cb7aa33aSEmmanuel Vadot            qcom,remote-pid = <2>;
165cb7aa33aSEmmanuel Vadot
166cb7aa33aSEmmanuel Vadot            /* ... */
167cb7aa33aSEmmanuel Vadot        };
168cb7aa33aSEmmanuel Vadot    };
169