Qualcomm BAM Data Multiplexer
Schema identifier ($id): "http://devicetree.org/schemas/net/qcom,bam-dmux.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Stephan Gerhold <stephan@gerhold.net>"
The BAM Data Multiplexer provides access to the network data channels of modems integrated into many older Qualcomm SoCs, e.g. Qualcomm MSM8916 or MSM8974. It is built using a simple protocol layer on top of a DMA engine (Qualcomm BAM DMA) and bidirectional interrupts to coordinate power control.
Note that this schema does not directly describe a hardware block but rather a firmware convention that combines several other hardware blocks (such as the DMA engine). As such it is specific to a firmware version, not a particular SoC or hardware version.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "qcom,bam-dmux"
interrupts — required here #
Interrupts used by the modem to signal the AP. Both interrupts must be declared as IRQ_TYPE_EDGE_BOTH.
Array item rules (items) #
Item 1
Power control
Item 2
Power control acknowledgment
interrupt-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"pc"
Item 2
Exact value (
const):"pc-ack"
qcom,smem-states — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array
State bits used by the AP to signal the modem.
Array item rules (items) #
Item 1
Power control
Item 2
Power control acknowledgment
qcom,smem-state-names — required here #
Names for the state bits used by the AP to signal the modem.
Array item rules (items) #
Item 1
Exact value (
const):"pc"
Item 2
Exact value (
const):"pc-ack"
dmas — required here #
Array item rules (items) #
Item 1
TX DMA channel phandle
Item 2
RX DMA channel phandle
dma-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"tx"
Item 2
Exact value (
const):"rx"
Required in this object (required): "compatible", "interrupts", "interrupt-names", "qcom,smem-states", "qcom,smem-state-names", "dmas", "dma-names"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
mpss: remoteproc {
bam-dmux {
compatible = "qcom,bam-dmux";
interrupt-parent = <&modem_smsm>;
interrupts = <1 IRQ_TYPE_EDGE_BOTH>, <11 IRQ_TYPE_EDGE_BOTH>;
interrupt-names = "pc", "pc-ack";
qcom,smem-states = <&apps_smsm 1>, <&apps_smsm 11>;
qcom,smem-state-names = "pc", "pc-ack";
dmas = <&bam_dmux_dma 4>, <&bam_dmux_dma 5>;
dma-names = "tx", "rx";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)