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