|
| 1 | +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) |
| 2 | +%YAML 1.2 |
| 3 | +--- |
| 4 | +$id: http://devicetree.org/schemas/dma/fsl-qdma.yaml# |
| 5 | +$schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 | + |
| 7 | +title: NXP Layerscape SoC qDMA Controller |
| 8 | + |
| 9 | +maintainers: |
| 10 | + |
| 11 | + |
| 12 | +properties: |
| 13 | + compatible: |
| 14 | + enum: |
| 15 | + - fsl,ls1021a-qdma |
| 16 | + - fsl,ls1028a-qdma |
| 17 | + - fsl,ls1043a-qdma |
| 18 | + - fsl,ls1046a-qdma |
| 19 | + |
| 20 | + reg: |
| 21 | + items: |
| 22 | + - description: Controller regs |
| 23 | + - description: Status regs |
| 24 | + - description: Block regs |
| 25 | + |
| 26 | + interrupts: |
| 27 | + minItems: 2 |
| 28 | + maxItems: 5 |
| 29 | + |
| 30 | + interrupt-names: |
| 31 | + minItems: 2 |
| 32 | + items: |
| 33 | + - const: qdma-error |
| 34 | + - const: qdma-queue0 |
| 35 | + - const: qdma-queue1 |
| 36 | + - const: qdma-queue2 |
| 37 | + - const: qdma-queue3 |
| 38 | + |
| 39 | + dma-channels: |
| 40 | + minimum: 1 |
| 41 | + maximum: 64 |
| 42 | + |
| 43 | + fsl,dma-queues: |
| 44 | + $ref: /schemas/types.yaml#/definitions/uint32 |
| 45 | + description: Should contain number of queues supported. |
| 46 | + minimum: 1 |
| 47 | + maximum: 4 |
| 48 | + |
| 49 | + block-number: |
| 50 | + $ref: /schemas/types.yaml#/definitions/uint32 |
| 51 | + description: the virtual block number |
| 52 | + |
| 53 | + block-offset: |
| 54 | + $ref: /schemas/types.yaml#/definitions/uint32 |
| 55 | + description: the offset of different virtual block |
| 56 | + |
| 57 | + status-sizes: |
| 58 | + $ref: /schemas/types.yaml#/definitions/uint32 |
| 59 | + description: status queue size of per virtual block |
| 60 | + |
| 61 | + queue-sizes: |
| 62 | + $ref: /schemas/types.yaml#/definitions/uint32-array |
| 63 | + description: |
| 64 | + command queue size of per virtual block, the size number |
| 65 | + based on queues |
| 66 | + |
| 67 | + big-endian: |
| 68 | + $ref: /schemas/types.yaml#/definitions/flag |
| 69 | + description: |
| 70 | + If present registers and hardware scatter/gather descriptors |
| 71 | + of the qDMA are implemented in big endian mode, otherwise in little |
| 72 | + mode. |
| 73 | + |
| 74 | +required: |
| 75 | + - compatible |
| 76 | + - reg |
| 77 | + - interrupts |
| 78 | + - interrupt-names |
| 79 | + - fsl,dma-queues |
| 80 | + - block-number |
| 81 | + - block-offset |
| 82 | + - status-sizes |
| 83 | + - queue-sizes |
| 84 | + |
| 85 | +allOf: |
| 86 | + - $ref: dma-controller.yaml# |
| 87 | + - if: |
| 88 | + properties: |
| 89 | + compatible: |
| 90 | + contains: |
| 91 | + enum: |
| 92 | + - fsl,ls1021a-qdma |
| 93 | + then: |
| 94 | + properties: |
| 95 | + interrupts: |
| 96 | + maxItems: 3 |
| 97 | + interrupt-names: |
| 98 | + maxItems: 3 |
| 99 | + |
| 100 | +unevaluatedProperties: false |
| 101 | + |
| 102 | +examples: |
| 103 | + - | |
| 104 | + #include <dt-bindings/interrupt-controller/arm-gic.h> |
| 105 | +
|
| 106 | + dma-controller@8390000 { |
| 107 | + compatible = "fsl,ls1021a-qdma"; |
| 108 | + reg = <0x8388000 0x1000>, /* Controller regs */ |
| 109 | + <0x8389000 0x1000>, /* Status regs */ |
| 110 | + <0x838a000 0x2000>; /* Block regs */ |
| 111 | + interrupts = <GIC_SPI 185 IRQ_TYPE_LEVEL_HIGH>, |
| 112 | + <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>, |
| 113 | + <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>; |
| 114 | + interrupt-names = "qdma-error", "qdma-queue0", "qdma-queue1"; |
| 115 | + #dma-cells = <1>; |
| 116 | + dma-channels = <8>; |
| 117 | + block-number = <2>; |
| 118 | + block-offset = <0x1000>; |
| 119 | + status-sizes = <64>; |
| 120 | + queue-sizes = <64 64>; |
| 121 | + big-endian; |
| 122 | + fsl,dma-queues = <2>; |
| 123 | + }; |
| 124 | +
|
0 commit comments