Qualcomm Shared Memory Driver

Schema identifier ($id): "http://devicetree.org/schemas/soc/qcom/qcom,smd.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Andy Gross <agross@kernel.org>", "Bjorn Andersson <bjorn.andersson@linaro.org>", "Krzysztof Kozlowski <krzk@kernel.org>"

The Qualcomm Shared Memory Driver is a FIFO based communication channel for sending data between the various subsystems in Qualcomm platforms. Using the top-level SMD node is deprecated. Instead, the SMD edges are defined directly below the device node representing the respective remote subsystem or remote processor.

Deprecated (deprecated): true

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "qcom,smd"

Properties matching a name pattern (patternProperties) #

^smd-edge|rpm$ — name matches this regular expression #

Shared schema rule ($ref): /schemas/remoteproc/qcom,smd-edge.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Each subnode of the SMD node represents a remote subsystem or a remote processor of some sort - or in SMD language an "edge". The name of the edges are not important.

Required in this object (required): "compatible"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>

shared-memory {
    compatible = "qcom,smd";

    rpm {
        interrupts = <GIC_SPI 168 IRQ_TYPE_EDGE_RISING>;
        qcom,ipc = <&apcs 8 0>;
        qcom,smd-edge = <15>;

        rpm-requests {
            compatible = "qcom,rpm-msm8974", "qcom,smd-rpm";
            qcom,smd-channels = "rpm_requests";

            clock-controller {
                compatible = "qcom,rpmcc-msm8974", "qcom,rpmcc";
                #clock-cells = <1>;
            };

        };
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Line 43: The following example represents a smd node, with one edge representing the

Line 44: "rpm" subsystem. For the "rpm" subsystem we have a device tied to the

Line 45: "rpm_request" channel.

Line 46: NOTE: This is deprecated, represent the RPM using "qcom,rpm-proc" instead.

Edit this page