-
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: interrupt-controller: convert fsl,ls-scfg-msi to yaml
Convert device tree binding fsl,ls-scfg-msi to yaml format. Additional changes: - Include gic.h and use predefined macro in example. - Remove label in example. - Change node name to interrupt-controller in example. - Fix error in example. - ls1046a allow 4 irqs, other platform only 1 irq. - Add $ref: msi-controller.yaml - Add #msi-cells. Signed-off-by: Frank Li <Frank.Li@nxp.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20240627144207.4003708-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
304a90c
commit c184d44
Showing
2 changed files
with
79 additions
and
30 deletions.
There are no files selected for viewing
79 changes: 79 additions & 0 deletions
79
Documentation/devicetree/bindings/interrupt-controller/fsl,ls-msi.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,79 @@ | ||
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/interrupt-controller/fsl,ls-msi.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: Freescale Layerscape SCFG PCIe MSI controller | ||
|
||
description: | | ||
This interrupt controller hardware is a second level interrupt controller that | ||
is hooked to a parent interrupt controller: e.g: ARM GIC for ARM-based | ||
platforms. If interrupt-parent is not provided, the default parent interrupt | ||
controller will be used. | ||
Each PCIe node needs to have property msi-parent that points to | ||
MSI controller node | ||
maintainers: | ||
- Frank Li <Frank.Li@nxp.com> | ||
|
||
properties: | ||
compatible: | ||
enum: | ||
- fsl,ls1012a-msi | ||
- fsl,ls1021a-msi | ||
- fsl,ls1043a-msi | ||
- fsl,ls1043a-v1.1-msi | ||
- fsl,ls1046a-msi | ||
|
||
reg: | ||
maxItems: 1 | ||
|
||
'#msi-cells': | ||
const: 1 | ||
|
||
interrupts: | ||
items: | ||
- description: Shared MSI interrupt group 0 | ||
- description: Shared MSI interrupt group 1 | ||
- description: Shared MSI interrupt group 2 | ||
- description: Shared MSI interrupt group 3 | ||
minItems: 1 | ||
|
||
required: | ||
- compatible | ||
- reg | ||
- msi-controller | ||
- interrupts | ||
|
||
allOf: | ||
- $ref: msi-controller.yaml | ||
- if: | ||
properties: | ||
compatible: | ||
contains: | ||
enum: | ||
- fsl,ls1046a-msi | ||
then: | ||
properties: | ||
interrupts: | ||
minItems: 4 | ||
else: | ||
properties: | ||
interrupts: | ||
maxItems: 1 | ||
|
||
unevaluatedProperties: false | ||
|
||
examples: | ||
- | | ||
#include <dt-bindings/interrupt-controller/arm-gic.h> | ||
interrupt-controller@1571000 { | ||
compatible = "fsl,ls1043a-msi"; | ||
reg = <0x1571000 0x8>; | ||
msi-controller; | ||
#msi-cells = <1>; | ||
interrupts = <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>; | ||
}; |
30 changes: 0 additions & 30 deletions
30
Documentation/devicetree/bindings/interrupt-controller/fsl,ls-scfg-msi.txt
This file was deleted.
Oops, something went wrong.