xref: /freebsd/sys/contrib/device-tree/Bindings/remoteproc/qcom,sdx55-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,sdx55-pas.yaml#
5cb7aa33aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6cb7aa33aSEmmanuel Vadot
7cb7aa33aSEmmanuel Vadottitle: Qualcomm SDX55 Peripheral Authentication Service
8cb7aa33aSEmmanuel Vadot
9cb7aa33aSEmmanuel Vadotmaintainers:
10cb7aa33aSEmmanuel Vadot  - Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
11cb7aa33aSEmmanuel Vadot
12cb7aa33aSEmmanuel Vadotdescription:
13cb7aa33aSEmmanuel Vadot  Qualcomm SDX55 SoC Peripheral Authentication Service loads and boots firmware
14cb7aa33aSEmmanuel Vadot  on the Qualcomm DSP Hexagon cores.
15cb7aa33aSEmmanuel Vadot
16cb7aa33aSEmmanuel Vadotproperties:
17cb7aa33aSEmmanuel Vadot  compatible:
18cb7aa33aSEmmanuel Vadot    enum:
19cb7aa33aSEmmanuel Vadot      - qcom,sdx55-mpss-pas
20cb7aa33aSEmmanuel Vadot
21cb7aa33aSEmmanuel Vadot  reg:
22cb7aa33aSEmmanuel Vadot    maxItems: 1
23cb7aa33aSEmmanuel Vadot
24cb7aa33aSEmmanuel Vadot  clocks:
25cb7aa33aSEmmanuel Vadot    items:
26cb7aa33aSEmmanuel Vadot      - description: XO clock
27cb7aa33aSEmmanuel Vadot
28cb7aa33aSEmmanuel Vadot  clock-names:
29cb7aa33aSEmmanuel Vadot    items:
30cb7aa33aSEmmanuel Vadot      - const: xo
31cb7aa33aSEmmanuel Vadot
32cb7aa33aSEmmanuel Vadot  interrupts:
33cb7aa33aSEmmanuel Vadot    minItems: 6
34cb7aa33aSEmmanuel Vadot
35cb7aa33aSEmmanuel Vadot  interrupt-names:
36cb7aa33aSEmmanuel Vadot    minItems: 6
37cb7aa33aSEmmanuel Vadot
38cb7aa33aSEmmanuel Vadot  power-domains:
39cb7aa33aSEmmanuel Vadot    items:
40cb7aa33aSEmmanuel Vadot      - description: CX power domain
41cb7aa33aSEmmanuel Vadot      - description: MSS power domain
42cb7aa33aSEmmanuel Vadot
43cb7aa33aSEmmanuel Vadot  power-domain-names:
44cb7aa33aSEmmanuel Vadot    items:
45cb7aa33aSEmmanuel Vadot      - const: cx
46cb7aa33aSEmmanuel Vadot      - const: mss
47cb7aa33aSEmmanuel Vadot
48cb7aa33aSEmmanuel Vadot  memory-region:
49*aa1a8ff2SEmmanuel Vadot    maxItems: 1
50cb7aa33aSEmmanuel Vadot    description: Reference to the reserved-memory for the Hexagon core
51cb7aa33aSEmmanuel Vadot
52cb7aa33aSEmmanuel Vadot  qcom,qmp:
53cb7aa33aSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/phandle
54cb7aa33aSEmmanuel Vadot    description: Reference to the AOSS side-channel message RAM.
55cb7aa33aSEmmanuel Vadot
56cb7aa33aSEmmanuel Vadot  smd-edge: false
57cb7aa33aSEmmanuel Vadot
58cb7aa33aSEmmanuel Vadot  firmware-name:
59cb7aa33aSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/string
60cb7aa33aSEmmanuel Vadot    description: Firmware name for the Hexagon core
61cb7aa33aSEmmanuel Vadot
62cb7aa33aSEmmanuel Vadotrequired:
63cb7aa33aSEmmanuel Vadot  - compatible
64cb7aa33aSEmmanuel Vadot  - reg
65*aa1a8ff2SEmmanuel Vadot  - memory-region
66cb7aa33aSEmmanuel Vadot
67cb7aa33aSEmmanuel VadotallOf:
68cb7aa33aSEmmanuel Vadot  - $ref: /schemas/remoteproc/qcom,pas-common.yaml#
69cb7aa33aSEmmanuel Vadot
70cb7aa33aSEmmanuel VadotunevaluatedProperties: false
71cb7aa33aSEmmanuel Vadot
72cb7aa33aSEmmanuel Vadotexamples:
73cb7aa33aSEmmanuel Vadot  - |
74cb7aa33aSEmmanuel Vadot    #include <dt-bindings/clock/qcom,rpmh.h>
75cb7aa33aSEmmanuel Vadot    #include <dt-bindings/interrupt-controller/arm-gic.h>
76cb7aa33aSEmmanuel Vadot    #include <dt-bindings/power/qcom-rpmpd.h>
77cb7aa33aSEmmanuel Vadot
78cb7aa33aSEmmanuel Vadot    remoteproc@4080000 {
79cb7aa33aSEmmanuel Vadot        compatible = "qcom,sdx55-mpss-pas";
80cb7aa33aSEmmanuel Vadot        reg = <0x04080000 0x4040>;
81cb7aa33aSEmmanuel Vadot
82cb7aa33aSEmmanuel Vadot        clocks = <&rpmhcc RPMH_CXO_CLK>;
83cb7aa33aSEmmanuel Vadot        clock-names = "xo";
84cb7aa33aSEmmanuel Vadot
85cb7aa33aSEmmanuel Vadot        interrupts-extended = <&intc GIC_SPI 250 IRQ_TYPE_EDGE_RISING>,
86cb7aa33aSEmmanuel Vadot                              <&modem_smp2p_in 0 IRQ_TYPE_EDGE_RISING>,
87cb7aa33aSEmmanuel Vadot                              <&modem_smp2p_in 1 IRQ_TYPE_EDGE_RISING>,
88cb7aa33aSEmmanuel Vadot                              <&modem_smp2p_in 2 IRQ_TYPE_EDGE_RISING>,
89cb7aa33aSEmmanuel Vadot                              <&modem_smp2p_in 3 IRQ_TYPE_EDGE_RISING>,
90cb7aa33aSEmmanuel Vadot                              <&modem_smp2p_in 7 IRQ_TYPE_EDGE_RISING>;
91cb7aa33aSEmmanuel Vadot        interrupt-names = "wdog", "fatal", "ready", "handover",
92cb7aa33aSEmmanuel Vadot                          "stop-ack", "shutdown-ack";
93cb7aa33aSEmmanuel Vadot
94cb7aa33aSEmmanuel Vadot        memory-region = <&mpss_adsp_mem>;
95cb7aa33aSEmmanuel Vadot
96cb7aa33aSEmmanuel Vadot        power-domains = <&rpmhpd SDX55_CX>, <&rpmhpd SDX55_MSS>;
97cb7aa33aSEmmanuel Vadot        power-domain-names = "cx", "mss";
98cb7aa33aSEmmanuel Vadot
99cb7aa33aSEmmanuel Vadot        qcom,smem-states = <&modem_smp2p_out 0>;
100cb7aa33aSEmmanuel Vadot        qcom,smem-state-names = "stop";
101cb7aa33aSEmmanuel Vadot
102cb7aa33aSEmmanuel Vadot        glink-edge {
103cb7aa33aSEmmanuel Vadot            interrupts = <GIC_SPI 114 IRQ_TYPE_EDGE_RISING>;
104cb7aa33aSEmmanuel Vadot            label = "mpss";
105cb7aa33aSEmmanuel Vadot            mboxes = <&apcs 15>;
106cb7aa33aSEmmanuel Vadot            qcom,remote-pid = <1>;
107cb7aa33aSEmmanuel Vadot
108cb7aa33aSEmmanuel Vadot            /* ... */
109cb7aa33aSEmmanuel Vadot        };
110cb7aa33aSEmmanuel Vadot    };
111