-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <Frank.Li@nxp.com> Link: https://lore.kernel.org/r/20240626193753.2088926-1-Frank.Li@nxp.com Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
- Loading branch information
Frank Li
authored and
Rob Herring (Arm)
committed
Jul 9, 2024
1 parent
bfb921b
commit 304a90c
Showing
9 changed files
with
407 additions
and
514 deletions.
There are no files selected for viewing
56 changes: 0 additions & 56 deletions
56
Documentation/devicetree/bindings/soc/fsl/bman-portals.txt
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
52 changes: 52 additions & 0 deletions
52
Documentation/devicetree/bindings/soc/fsl/fsl,bman-portal.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/soc/fsl/fsl,bman-portal.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: QorIQ DPAA Queue Manager Portals | ||
|
||
maintainers: | ||
- Frank Li <Frank.Li@nxp.com> | ||
|
||
description: | ||
QorIQ DPAA Buffer Manager Portal | ||
|
||
Portals are memory mapped interfaces to BMan that allow low-latency, lock-less | ||
interaction by software running on processor cores, accelerators and network | ||
interfaces with the BMan | ||
|
||
properties: | ||
compatible: | ||
oneOf: | ||
- const: fsl,bman-portal | ||
- items: | ||
- enum: | ||
- fsl,bman-portal-1.0.0 | ||
- fsl,ls1043a-bmap-portal | ||
- fsl,ls1046a-bmap-portal | ||
- const: fsl,bman-portal | ||
reg: | ||
items: | ||
- description: the cache-enabled region of the portal | ||
- description: the cache-inhibited region of the portal | ||
|
||
interrupts: | ||
maxItems: 1 | ||
|
||
required: | ||
- compatible | ||
- reg | ||
- interrupts | ||
|
||
additionalProperties: false | ||
|
||
examples: | ||
- | | ||
#include <dt-bindings/interrupt-controller/irq.h> | ||
bman-portal@0 { | ||
compatible = "fsl,bman-portal-1.0.0", "fsl,bman-portal"; | ||
reg = <0x0 0x4000>, <0x100000 0x1000>; | ||
interrupts = <105 IRQ_TYPE_EDGE_FALLING 0 0>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/soc/fsl/fsl,bman.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: QorIQ DPAA Buffer Manager | ||
|
||
maintainers: | ||
- Frank Li <Frank.Li@nxp.com> | ||
|
||
description: | ||
The Buffer Manager is part of the Data-Path Acceleration Architecture (DPAA). | ||
BMan supports hardware allocation and deallocation of buffers belonging to | ||
pools originally created by software with configurable depletion thresholds. | ||
This binding covers the CCSR space programming model | ||
|
||
properties: | ||
compatible: | ||
oneOf: | ||
- const: fsl,bman | ||
- items: | ||
- enum: | ||
- fsl,ls1043a-bman | ||
- fsl,ls1046a-bman | ||
- const: fsl,bman | ||
|
||
reg: | ||
items: | ||
- description: | | ||
Registers region within the CCSR address space | ||
The BMan revision information is located in the BMAN_IP_REV_1/2 | ||
registers which are located at offsets 0xbf8 and 0xbfc | ||
interrupts: | ||
items: | ||
- description: The error interrupt | ||
|
||
memory-region: | ||
minItems: 1 | ||
maxItems: 2 | ||
description: | ||
List of phandles referencing the BMan private memory | ||
nodes (described below). The bman-fqd node must be | ||
first followed by bman-pfdr node. Only used on ARM | ||
|
||
Devices connected to a BMan instance via Direct Connect Portals (DCP) must link | ||
to the respective BMan instance | ||
|
||
fsl,bman-portals: | ||
$ref: /schemas/types.yaml#/definitions/phandle | ||
description: ref fsl,bman-port.yaml | ||
|
||
fsl,liodn: | ||
$ref: /schemas/types.yaml#/definitions/uint32-array | ||
description: | ||
See pamu.txt, PAMU property used for static LIODN assignment | ||
|
||
fsl,iommu-parent: | ||
$ref: /schemas/types.yaml#/definitions/phandle | ||
description: | ||
See pamu.txt, PAMU property used for dynamic LIODN assignment | ||
|
||
required: | ||
- compatible | ||
- reg | ||
- interrupts | ||
|
||
additionalProperties: false | ||
|
||
examples: | ||
- | | ||
#include <dt-bindings/interrupt-controller/irq.h> | ||
bman@31a000 { | ||
compatible = "fsl,bman"; | ||
reg = <0x31a000 0x1000>; | ||
interrupts = <16 IRQ_TYPE_EDGE_FALLING 1 2>; | ||
fsl,liodn = <0x17>; | ||
fsl,bman-portals = <&bportals>; | ||
memory-region = <&bman_fbpr>; | ||
}; |
Oops, something went wrong.