Skip to content

Commit 304a90c

Browse files
nxpfranklirobherring
authored andcommitted
dt-bindings: soc: fsl: Convert q(b)man-* to yaml format
Convert qman, bman, qman-portals, bman-portals to yaml format. Additional Change for fsl,q(b)man-portal: - Only keep one example. - Add fsl,qman-channel-id property. - Use interrupt type macro. - Remove top level qman-portals@ff4200000 at example. Additional change for fsl,q(b)man: - Fixed example error. - Remove redundent part, only keep fsl,qman node. - Change memory-regions to memory-region. - fsl,q(b)man-portals is not required property Additional change for fsl,qman-fqd.yaml: - Fixed example error. - Only keep one example. - Ref to reserve-memory.yaml - Merge fsl,bman reserver memory part Signed-off-by: Frank Li <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Rob Herring (Arm) <[email protected]>
1 parent bfb921b commit 304a90c

File tree

9 files changed

+407
-514
lines changed

9 files changed

+407
-514
lines changed

Documentation/devicetree/bindings/soc/fsl/bman-portals.txt

Lines changed: 0 additions & 56 deletions
This file was deleted.

Documentation/devicetree/bindings/soc/fsl/bman.txt

Lines changed: 0 additions & 137 deletions
This file was deleted.
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/soc/fsl/fsl,bman-portal.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: QorIQ DPAA Queue Manager Portals
8+
9+
maintainers:
10+
- Frank Li <[email protected]>
11+
12+
description:
13+
QorIQ DPAA Buffer Manager Portal
14+
15+
Portals are memory mapped interfaces to BMan that allow low-latency, lock-less
16+
interaction by software running on processor cores, accelerators and network
17+
interfaces with the BMan
18+
19+
properties:
20+
compatible:
21+
oneOf:
22+
- const: fsl,bman-portal
23+
- items:
24+
- enum:
25+
- fsl,bman-portal-1.0.0
26+
- fsl,ls1043a-bmap-portal
27+
- fsl,ls1046a-bmap-portal
28+
- const: fsl,bman-portal
29+
reg:
30+
items:
31+
- description: the cache-enabled region of the portal
32+
- description: the cache-inhibited region of the portal
33+
34+
interrupts:
35+
maxItems: 1
36+
37+
required:
38+
- compatible
39+
- reg
40+
- interrupts
41+
42+
additionalProperties: false
43+
44+
examples:
45+
- |
46+
#include <dt-bindings/interrupt-controller/irq.h>
47+
48+
bman-portal@0 {
49+
compatible = "fsl,bman-portal-1.0.0", "fsl,bman-portal";
50+
reg = <0x0 0x4000>, <0x100000 0x1000>;
51+
interrupts = <105 IRQ_TYPE_EDGE_FALLING 0 0>;
52+
};
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/soc/fsl/fsl,bman.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: QorIQ DPAA Buffer Manager
8+
9+
maintainers:
10+
- Frank Li <[email protected]>
11+
12+
description:
13+
The Buffer Manager is part of the Data-Path Acceleration Architecture (DPAA).
14+
BMan supports hardware allocation and deallocation of buffers belonging to
15+
pools originally created by software with configurable depletion thresholds.
16+
This binding covers the CCSR space programming model
17+
18+
properties:
19+
compatible:
20+
oneOf:
21+
- const: fsl,bman
22+
- items:
23+
- enum:
24+
- fsl,ls1043a-bman
25+
- fsl,ls1046a-bman
26+
- const: fsl,bman
27+
28+
reg:
29+
items:
30+
- description: |
31+
Registers region within the CCSR address space
32+
33+
The BMan revision information is located in the BMAN_IP_REV_1/2
34+
registers which are located at offsets 0xbf8 and 0xbfc
35+
36+
interrupts:
37+
items:
38+
- description: The error interrupt
39+
40+
memory-region:
41+
minItems: 1
42+
maxItems: 2
43+
description:
44+
List of phandles referencing the BMan private memory
45+
nodes (described below). The bman-fqd node must be
46+
first followed by bman-pfdr node. Only used on ARM
47+
48+
Devices connected to a BMan instance via Direct Connect Portals (DCP) must link
49+
to the respective BMan instance
50+
51+
fsl,bman-portals:
52+
$ref: /schemas/types.yaml#/definitions/phandle
53+
description: ref fsl,bman-port.yaml
54+
55+
fsl,liodn:
56+
$ref: /schemas/types.yaml#/definitions/uint32-array
57+
description:
58+
See pamu.txt, PAMU property used for static LIODN assignment
59+
60+
fsl,iommu-parent:
61+
$ref: /schemas/types.yaml#/definitions/phandle
62+
description:
63+
See pamu.txt, PAMU property used for dynamic LIODN assignment
64+
65+
required:
66+
- compatible
67+
- reg
68+
- interrupts
69+
70+
additionalProperties: false
71+
72+
examples:
73+
- |
74+
#include <dt-bindings/interrupt-controller/irq.h>
75+
76+
bman@31a000 {
77+
compatible = "fsl,bman";
78+
reg = <0x31a000 0x1000>;
79+
interrupts = <16 IRQ_TYPE_EDGE_FALLING 1 2>;
80+
fsl,liodn = <0x17>;
81+
fsl,bman-portals = <&bportals>;
82+
memory-region = <&bman_fbpr>;
83+
};

0 commit comments

Comments
 (0)