Documentation / devicetree / bindings / remoteproc / qcom,kaanapali-soccp-pas.yaml


Based on kernel version 7.3. Page generated on 2026-10-19 13:17 EDT.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156
# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/remoteproc/qcom,kaanapali-soccp-pas.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Qualcomm Kaanapali SoCCP Peripheral Authentication Service

maintainers:
  - Jingyi Wang <jingyi.wang@oss.qualcomm.com>

description:
  The SoC Control Processor (SoCCP) is a small RISC-V MCU that controls USB
  Type-C, battery charging and various other functions on Qualcomm SoCs, somewhat
  analogous to traditional PC Embedded Controllers. This document describes
  the Peripheral Authentication Service that loads and boots firmware for SoCCP.

properties:
  compatible:
    oneOf:
      - items:
          - enum:
              - qcom,hawi-soccp-pas
              - qcom,maili-soccp-pas
          - const: qcom,kaanapali-soccp-pas
      - enum:
          - qcom,glymur-soccp-pas
          - qcom,kaanapali-soccp-pas

  reg:
    maxItems: 1

  clocks:
    items:
      - description: XO clock

  clock-names:
    items:
      - const: xo

  power-domains:
    items:
      - description: CX power domain
      - description: MX power domain

  power-domain-names:
    items:
      - const: cx
      - const: mx

  firmware-name:
    items:
      - description: Firmware name of the SoC Control Processor
      - description: Firmware name of the SoCCP Devicetree

  memory-region:
    items:
      - description: Memory region for main Firmware authentication
      - description: Memory region for Devicetree Firmware authentication

  interrupts:
    items:
      - description: Watchdog interrupt
      - description: Fatal interrupt
      - description: Ready interrupt
      - description: Handover interrupt
      - description: Stop acknowledge interrupt
      - description: Pong interrupt

  interrupt-names:
    items:
      - const: wdog
      - const: fatal
      - const: ready
      - const: handover
      - const: stop-ack
      - const: pong

  qcom,smem-states:
    minItems: 2
    description: States used by the AP to signal the SoC Control Processor

  qcom,smem-state-names:
    minItems: 2
    description: The names of the state bits used for SMP2P output

required:
  - compatible
  - reg
  - memory-region
  - power-domains
  - power-domain-names

allOf:
  - $ref: /schemas/remoteproc/qcom,pas-common.yaml#

unevaluatedProperties: false

examples:
  - |
    #include <dt-bindings/clock/qcom,rpmh.h>
    #include <dt-bindings/interrupt-controller/arm-gic.h>
    #include <dt-bindings/interrupt-controller/irq.h>
    #include <dt-bindings/mailbox/qcom-ipcc.h>
    #include <dt-bindings/power/qcom-rpmpd.h>
    #define IPCC_MPROC_SOCCP
 
    remoteproc@d00000 {
        compatible = "qcom,kaanapali-soccp-pas";
        reg = <0x00d00000 0x200000>;
 
        clocks = <&rpmhcc RPMH_CXO_CLK>;
        clock-names = "xo";
 
        interrupts-extended = <&intc GIC_SPI 167 IRQ_TYPE_EDGE_RISING>,
                              <&soccp_smp2p_in 0 IRQ_TYPE_EDGE_RISING>,
                              <&soccp_smp2p_in 1 IRQ_TYPE_EDGE_RISING>,
                              <&soccp_smp2p_in 2 IRQ_TYPE_EDGE_RISING>,
                              <&soccp_smp2p_in 3 IRQ_TYPE_EDGE_RISING>,
                              <&soccp_smp2p_in 9 IRQ_TYPE_EDGE_RISING>;
        interrupt-names = "wdog",
                          "fatal",
                          "ready",
                          "handover",
                          "stop-ack",
                          "pong";
 
        memory-region = <&soccp_mem>,
                        <&soccp_dtb_mem_mem>;
 
        firmware-name = "qcom/kaanapali/soccp.mbn",
                        "qcom/kaanapali/soccp_dtb.mbn";
 
        power-domains = <&rpmhpd RPMHPD_CX>,
                        <&rpmhpd RPMHPD_MX>;
        power-domain-names = "cx",
                             "mx";
 
        qcom,smem-states = <&soccp_smp2p_out 0>,
                           <&soccp_smp2p_out 8>;
        qcom,smem-state-names = "stop",
                                "ping";
 
        glink-edge {
            interrupts-extended = <&ipcc IPCC_MPROC_SOCCP
                                         IPCC_MPROC_SIGNAL_GLINK_QMP
                                         IRQ_TYPE_EDGE_RISING>;
            mboxes = <&ipcc IPCC_MPROC_SOCCP
                            IPCC_MPROC_SIGNAL_GLINK_QMP>;
 
            label = "soccp";
            qcom,remote-pid = <19>;
 
            /* ... */
        };
    };