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