1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/net/qcom,bam-dmux.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Qualcomm BAM Data Multiplexer
10 - Stephan Gerhold <stephan@gerhold.net>
13 The BAM Data Multiplexer provides access to the network data channels
14 of modems integrated into many older Qualcomm SoCs, e.g. Qualcomm MSM8916
15 or MSM8974. It is built using a simple protocol layer on top of a DMA engine
16 (Qualcomm BAM DMA) and bidirectional interrupts to coordinate power control.
18 Note that this schema does not directly describe a hardware block but rather
19 a firmware convention that combines several other hardware blocks (such as the
20 DMA engine). As such it is specific to a firmware version, not a particular
21 SoC or hardware version.
29 Interrupts used by the modem to signal the AP.
30 Both interrupts must be declared as IRQ_TYPE_EDGE_BOTH.
32 - description: Power control
33 - description: Power control acknowledgment
41 $ref: /schemas/types.yaml#/definitions/phandle-array
42 description: State bits used by the AP to signal the modem.
44 - description: Power control
45 - description: Power control acknowledgment
47 qcom,smem-state-names:
48 description: Names for the state bits used by the AP to signal the modem.
55 - description: TX DMA channel phandle
56 - description: RX DMA channel phandle
68 - qcom,smem-state-names
72 additionalProperties: false
76 #include <dt-bindings/interrupt-controller/irq.h>
80 compatible = "qcom,bam-dmux";
82 interrupt-parent = <&modem_smsm>;
83 interrupts = <1 IRQ_TYPE_EDGE_BOTH>, <11 IRQ_TYPE_EDGE_BOTH>;
84 interrupt-names = "pc", "pc-ack";
86 qcom,smem-states = <&apps_smsm 1>, <&apps_smsm 11>;
87 qcom,smem-state-names = "pc", "pc-ack";
89 dmas = <&bam_dmux_dma 4>, <&bam_dmux_dma 5>;
90 dma-names = "tx", "rx";