brintos

brintos / linux-shallow public Read only

0
0
Text · 5.5 KiB · f4118b2 Raw
212 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/remoteproc/qcom,sc7280-wpss-pil.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Qualcomm SC7280 WPSS Peripheral Image Loader8 9maintainers:10  - Bjorn Andersson <bjorn.andersson@linaro.org>11 12description:13  This document defines the binding for a component that loads and boots firmware14  on the Qualcomm Technology Inc. WPSS.15 16properties:17  compatible:18    enum:19      - qcom,sc7280-wpss-pil20 21  reg:22    maxItems: 123    description:24      The base address and size of the qdsp6ss register25 26  interrupts:27    items:28      - description: Watchdog interrupt29      - description: Fatal interrupt30      - description: Ready interrupt31      - description: Handover interrupt32      - description: Stop acknowledge interrupt33      - description: Shutdown acknowledge interrupt34 35  interrupt-names:36    items:37      - const: wdog38      - const: fatal39      - const: ready40      - const: handover41      - const: stop-ack42      - const: shutdown-ack43 44  clocks:45    items:46      - description: GCC WPSS AHB BDG Master clock47      - description: GCC WPSS AHB clock48      - description: GCC WPSS RSCP clock49      - description: XO clock50 51  clock-names:52    items:53      - const: ahb_bdg54      - const: ahb55      - const: rscp56      - const: xo57 58  power-domains:59    items:60      - description: CX power domain61      - description: MX power domain62 63  power-domain-names:64    items:65      - const: cx66      - const: mx67 68  resets:69    items:70      - description: AOSS restart71      - description: PDC SYNC72 73  reset-names:74    items:75      - const: restart76      - const: pdc_sync77 78  memory-region:79    maxItems: 180    description: Reference to the reserved-memory for the Hexagon core81 82  firmware-name:83    maxItems: 184    description:85      The name of the firmware which should be loaded for this remote86      processor.87 88  qcom,halt-regs:89    $ref: /schemas/types.yaml#/definitions/phandle-array90    description:91      Phandle reference to a syscon representing TCSR followed by the92      offset within syscon for q6 halt register.93    items:94      - items:95          - description: phandle to TCSR syscon region96          - description: offset to the Q6 halt register97 98  qcom,qmp:99    $ref: /schemas/types.yaml#/definitions/phandle100    description: Reference to the AOSS side-channel message RAM.101 102  qcom,smem-states:103    $ref: /schemas/types.yaml#/definitions/phandle-array104    description: States used by the AP to signal the Hexagon core105    items:106      - description: Stop the modem107 108  qcom,smem-state-names:109    description: The names of the state bits used for SMP2P output110    const: stop111 112  glink-edge:113    $ref: qcom,glink-edge.yaml#114    unevaluatedProperties: false115    description:116      Qualcomm G-Link subnode which represents communication edge, channels117      and devices related to the ADSP.118 119    properties:120      interrupts:121        items:122          - description: IRQ from WPSS to GLINK123 124      mboxes:125        items:126          - description: Mailbox for communication between APPS and WPSS127 128      label:129        items:130          - const: wpss131 132      apr: false133      fastrpc: false134 135required:136  - compatible137  - reg138  - interrupts139  - interrupt-names140  - clocks141  - clock-names142  - power-domains143  - power-domain-names144  - resets145  - reset-names146  - qcom,halt-regs147  - memory-region148  - qcom,qmp149  - qcom,smem-states150  - qcom,smem-state-names151  - glink-edge152 153additionalProperties: false154 155examples:156  - |157    #include <dt-bindings/interrupt-controller/arm-gic.h>158    #include <dt-bindings/clock/qcom,gcc-sc7280.h>159    #include <dt-bindings/clock/qcom,rpmh.h>160    #include <dt-bindings/power/qcom-rpmpd.h>161    #include <dt-bindings/reset/qcom,sdm845-aoss.h>162    #include <dt-bindings/reset/qcom,sdm845-pdc.h>163    #include <dt-bindings/mailbox/qcom-ipcc.h>164    remoteproc@8a00000 {165        compatible = "qcom,sc7280-wpss-pil";166        reg = <0x08a00000 0x10000>;167 168        interrupts-extended = <&intc GIC_SPI 587 IRQ_TYPE_EDGE_RISING>,169                              <&wpss_smp2p_in 0 IRQ_TYPE_EDGE_RISING>,170                              <&wpss_smp2p_in 1 IRQ_TYPE_EDGE_RISING>,171                              <&wpss_smp2p_in 2 IRQ_TYPE_EDGE_RISING>,172                              <&wpss_smp2p_in 3 IRQ_TYPE_EDGE_RISING>,173                              <&wpss_smp2p_in 7 IRQ_TYPE_EDGE_RISING>;174        interrupt-names = "wdog", "fatal", "ready", "handover",175                          "stop-ack", "shutdown-ack";176 177        clocks = <&gcc GCC_WPSS_AHB_BDG_MST_CLK>,178                 <&gcc GCC_WPSS_AHB_CLK>,179                 <&gcc GCC_WPSS_RSCP_CLK>,180                 <&rpmhcc RPMH_CXO_CLK>;181        clock-names = "ahb_bdg", "ahb",182                      "rscp", "xo";183 184        power-domains = <&rpmhpd SC7280_CX>,185                        <&rpmhpd SC7280_MX>;186        power-domain-names = "cx", "mx";187 188        memory-region = <&wpss_mem>;189 190        qcom,qmp = <&aoss_qmp>;191 192        qcom,smem-states = <&wpss_smp2p_out 0>;193        qcom,smem-state-names = "stop";194 195        resets = <&aoss_reset AOSS_CC_WCSS_RESTART>,196                 <&pdc_reset PDC_WPSS_SYNC_RESET>;197        reset-names = "restart", "pdc_sync";198 199        qcom,halt-regs = <&tcsr_mutex 0x37000>;200 201        glink-edge {202            interrupts-extended = <&ipcc IPCC_CLIENT_WPSS203                                         IPCC_MPROC_SIGNAL_GLINK_QMP204                                         IRQ_TYPE_EDGE_RISING>;205            mboxes = <&ipcc IPCC_CLIENT_WPSS206                            IPCC_MPROC_SIGNAL_GLINK_QMP>;207 208            label = "wpss";209            qcom,remote-pid = <13>;210        };211    };212