* [PATCH] dt-bindings: PCI: altera: msi: Convert to YAML
@ 2024-07-17 18:17 matthew.gerlach
2024-07-18 15:18 ` Conor Dooley
2024-09-04 16:09 ` Krzysztof Wilczyński
0 siblings, 2 replies; 6+ messages in thread
From: matthew.gerlach @ 2024-07-17 18:17 UTC (permalink / raw)
To: lpieralisi, kw, robh, bhelgaas, krzk+dt, conor+dt, joyce.ooi,
linux-pci, devicetree, linux-kernel
Cc: Matthew Gerlach
From: Matthew Gerlach <matthew.gerlach@linux.intel.com>
Convert the device tree bindings for the Altera PCIe MSI controller
from text to YAML.
Signed-off-by: Matthew Gerlach <matthew.gerlach@linux.intel.com>
---
.../bindings/pci/altera-pcie-msi.txt | 27 --------
.../bindings/pci/altr,msi-controller.yaml | 65 +++++++++++++++++++
MAINTAINERS | 2 +-
3 files changed, 66 insertions(+), 28 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/pci/altera-pcie-msi.txt
create mode 100644 Documentation/devicetree/bindings/pci/altr,msi-controller.yaml
diff --git a/Documentation/devicetree/bindings/pci/altera-pcie-msi.txt b/Documentation/devicetree/bindings/pci/altera-pcie-msi.txt
deleted file mode 100644
index 9514c327d31b..000000000000
--- a/Documentation/devicetree/bindings/pci/altera-pcie-msi.txt
+++ /dev/null
@@ -1,27 +0,0 @@
-* Altera PCIe MSI controller
-
-Required properties:
-- compatible: should contain "altr,msi-1.0"
-- reg: specifies the physical base address of the controller and
- the length of the memory mapped region.
-- reg-names: must include the following entries:
- "csr": CSR registers
- "vector_slave": vectors slave port region
-- interrupts: specifies the interrupt source of the parent interrupt
- controller. The format of the interrupt specifier depends on the
- parent interrupt controller.
-- num-vectors: number of vectors, range 1 to 32.
-- msi-controller: indicates that this is MSI controller node
-
-
-Example
-msi0: msi@0xFF200000 {
- compatible = "altr,msi-1.0";
- reg = <0xFF200000 0x00000010
- 0xFF200010 0x00000080>;
- reg-names = "csr", "vector_slave";
- interrupt-parent = <&hps_0_arm_gic_0>;
- interrupts = <0 42 4>;
- msi-controller;
- num-vectors = <32>;
-};
diff --git a/Documentation/devicetree/bindings/pci/altr,msi-controller.yaml b/Documentation/devicetree/bindings/pci/altr,msi-controller.yaml
new file mode 100644
index 000000000000..84ff0b8a7725
--- /dev/null
+++ b/Documentation/devicetree/bindings/pci/altr,msi-controller.yaml
@@ -0,0 +1,65 @@
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+# Copyright (C) 2015, 2024, Intel Corporation
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/altr,msi-controller.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Altera PCIe MSI controller
+
+maintainers:
+ - Matthew Gerlach <matthew.gerlach@linux.intel.com>
+
+properties:
+ compatible:
+ enum:
+ - altr,msi-1.0
+
+ reg:
+ items:
+ - description: CSR registers
+ - description: Vectors slave port region
+
+ reg-names:
+ items:
+ - const: csr
+ - const: vector_slave
+
+ interrupts:
+ maxItems: 1
+
+ msi-controller: true
+
+ num-vectors:
+ description: number of vectors
+ $ref: /schemas/types.yaml#/definitions/uint32
+ minimum: 1
+ maximum: 32
+
+required:
+ - compatible
+ - reg
+ - reg-names
+ - interrupts
+ - msi-controller
+ - num-vectors
+
+allOf:
+ - $ref: /schemas/interrupt-controller/msi-controller.yaml#
+
+unevaluatedProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/interrupt-controller/arm-gic.h>
+ #include <dt-bindings/interrupt-controller/irq.h>
+ msi0: msi@ff200000 {
+ compatible = "altr,msi-1.0";
+ reg = <0xff200000 0x00000010>,
+ <0xff200010 0x00000080>;
+ reg-names = "csr", "vector_slave";
+ interrupt-parent = <&hps_0_arm_gic_0>;
+ interrupts = <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>;
+ msi-controller;
+ num-vectors = <32>;
+ };
diff --git a/MAINTAINERS b/MAINTAINERS
index f296a5ea2529..8a3424a03772 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -17585,7 +17585,7 @@ PCI MSI DRIVER FOR ALTERA MSI IP
M: Joyce Ooi <joyce.ooi@intel.com>
L: linux-pci@vger.kernel.org
S: Supported
-F: Documentation/devicetree/bindings/pci/altera-pcie-msi.txt
+F: Documentation/devicetree/bindings/pci/altr,msi-controller.yaml
F: drivers/pci/controller/pcie-altera-msi.c
PCI MSI DRIVER FOR APPLIEDMICRO XGENE
--
2.34.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH] dt-bindings: PCI: altera: msi: Convert to YAML
2024-07-17 18:17 [PATCH] dt-bindings: PCI: altera: msi: Convert to YAML matthew.gerlach
@ 2024-07-18 15:18 ` Conor Dooley
2024-09-04 16:10 ` Krzysztof Wilczyński
2024-09-04 16:09 ` Krzysztof Wilczyński
1 sibling, 1 reply; 6+ messages in thread
From: Conor Dooley @ 2024-07-18 15:18 UTC (permalink / raw)
To: matthew.gerlach
Cc: lpieralisi, kw, robh, bhelgaas, krzk+dt, conor+dt, joyce.ooi,
linux-pci, devicetree, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 369 bytes --]
On Wed, Jul 17, 2024 at 01:17:56PM -0500, matthew.gerlach@linux.intel.com wrote:
>> +examples:
> + - |
> + #include <dt-bindings/interrupt-controller/arm-gic.h>
> + #include <dt-bindings/interrupt-controller/irq.h>
> + msi0: msi@ff200000 {
nit: label is not used and should be dropped.
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Thanks,
Conor.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] dt-bindings: PCI: altera: msi: Convert to YAML
2024-07-17 18:17 [PATCH] dt-bindings: PCI: altera: msi: Convert to YAML matthew.gerlach
2024-07-18 15:18 ` Conor Dooley
@ 2024-09-04 16:09 ` Krzysztof Wilczyński
1 sibling, 0 replies; 6+ messages in thread
From: Krzysztof Wilczyński @ 2024-09-04 16:09 UTC (permalink / raw)
To: matthew.gerlach
Cc: lpieralisi, robh, bhelgaas, krzk+dt, conor+dt, joyce.ooi,
linux-pci, devicetree, linux-kernel
Hello,
> Convert the device tree bindings for the Altera PCIe MSI controller
> from text to YAML.
Applied to dt-bindings, thank you!
[1/1] dt-bindings: PCI: altera: msi: Convert to YAML
https://git.kernel.org/pci/pci/c/f04d277ff328
Krzysztof
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] dt-bindings: PCI: altera: msi: Convert to YAML
2024-07-18 15:18 ` Conor Dooley
@ 2024-09-04 16:10 ` Krzysztof Wilczyński
2024-09-05 15:22 ` matthew.gerlach
0 siblings, 1 reply; 6+ messages in thread
From: Krzysztof Wilczyński @ 2024-09-04 16:10 UTC (permalink / raw)
To: Conor Dooley
Cc: matthew.gerlach, lpieralisi, robh, bhelgaas, krzk+dt, conor+dt,
joyce.ooi, linux-pci, devicetree, linux-kernel
Hello,
[...]
> >> +examples:
> > + - |
> > + #include <dt-bindings/interrupt-controller/arm-gic.h>
> > + #include <dt-bindings/interrupt-controller/irq.h>
> > + msi0: msi@ff200000 {
>
> nit: label is not used and should be dropped.
Which bit specifically do you want amended? I will do it on the branch so
we merge the final version.
Krzysztof
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] dt-bindings: PCI: altera: msi: Convert to YAML
2024-09-04 16:10 ` Krzysztof Wilczyński
@ 2024-09-05 15:22 ` matthew.gerlach
2024-09-13 12:42 ` Krzysztof Wilczyński
0 siblings, 1 reply; 6+ messages in thread
From: matthew.gerlach @ 2024-09-05 15:22 UTC (permalink / raw)
To: Krzysztof Wilczyński
Cc: Conor Dooley, lpieralisi, robh, bhelgaas, krzk+dt, conor+dt,
joyce.ooi, linux-pci, devicetree, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 482 bytes --]
On Thu, 5 Sep 2024, Krzysztof Wilczyński wrote:
> Hello,
>
> [...]
>>>> +examples:
>>> + - |
>>> + #include <dt-bindings/interrupt-controller/arm-gic.h>
>>> + #include <dt-bindings/interrupt-controller/irq.h>
>>> + msi0: msi@ff200000 {
>>
>> nit: label is not used and should be dropped.
>
> Which bit specifically do you want amended? I will do it on the branch so
> we merge the final version.
>
> Krzysztof
>
The label, "msi0: " should be removed.
Thanks,
Matthew
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] dt-bindings: PCI: altera: msi: Convert to YAML
2024-09-05 15:22 ` matthew.gerlach
@ 2024-09-13 12:42 ` Krzysztof Wilczyński
0 siblings, 0 replies; 6+ messages in thread
From: Krzysztof Wilczyński @ 2024-09-13 12:42 UTC (permalink / raw)
To: matthew.gerlach
Cc: Conor Dooley, lpieralisi, robh, bhelgaas, krzk+dt, conor+dt,
joyce.ooi, linux-pci, devicetree, linux-kernel
Hello,
> > > nit: label is not used and should be dropped.
> >
> > Which bit specifically do you want amended? I will do it on the branch so
> > we merge the final version.
> >
> > Krzysztof
> >
> The label, "msi0: " should be removed.
Done. Updated the branch directly. Thank you!
Krzysztof
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2024-09-13 12:42 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-17 18:17 [PATCH] dt-bindings: PCI: altera: msi: Convert to YAML matthew.gerlach
2024-07-18 15:18 ` Conor Dooley
2024-09-04 16:10 ` Krzysztof Wilczyński
2024-09-05 15:22 ` matthew.gerlach
2024-09-13 12:42 ` Krzysztof Wilczyński
2024-09-04 16:09 ` Krzysztof Wilczyński
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).