-
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: Add Sophgo SG2042 MSI
Add binding for Sophgo SG2042 MSI controller. Signed-off-by: Chen Wang <unicorn_wang@outlook.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Rob Herring (Arm) <robh@kernel.org> Link: https://lore.kernel.org/all/44de02977624be334ba6328acfdbb2a375f2071f.1740535748.git.unicorn_wang@outlook.com
- Loading branch information
Chen Wang
authored and
Thomas Gleixner
committed
Feb 26, 2025
1 parent
b956c9d
commit a41d042
Showing
1 changed file
with
61 additions
and
0 deletions.
There are no files selected for viewing
61 changes: 61 additions & 0 deletions
61
Documentation/devicetree/bindings/interrupt-controller/sophgo,sg2042-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,61 @@ | ||
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/interrupt-controller/sophgo,sg2042-msi.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: Sophgo SG2042 MSI Controller | ||
|
||
maintainers: | ||
- Chen Wang <unicorn_wang@outlook.com> | ||
|
||
description: | ||
This interrupt controller is in Sophgo SG2042 for transforming interrupts from | ||
PCIe MSI to PLIC interrupts. | ||
|
||
allOf: | ||
- $ref: /schemas/interrupt-controller/msi-controller.yaml# | ||
|
||
properties: | ||
compatible: | ||
const: sophgo,sg2042-msi | ||
|
||
reg: | ||
items: | ||
- description: clear register | ||
- description: msi doorbell address | ||
|
||
reg-names: | ||
items: | ||
- const: clr | ||
- const: doorbell | ||
|
||
msi-controller: true | ||
|
||
msi-ranges: | ||
maxItems: 1 | ||
|
||
"#msi-cells": | ||
const: 0 | ||
|
||
required: | ||
- compatible | ||
- reg | ||
- reg-names | ||
- msi-controller | ||
- msi-ranges | ||
- "#msi-cells" | ||
|
||
unevaluatedProperties: false | ||
|
||
examples: | ||
- | | ||
#include <dt-bindings/interrupt-controller/irq.h> | ||
msi-controller@30000000 { | ||
compatible = "sophgo,sg2042-msi"; | ||
reg = <0x30000000 0x4>, <0x30000008 0x4>; | ||
reg-names = "clr", "doorbell"; | ||
msi-controller; | ||
#msi-cells = <0>; | ||
msi-ranges = <&plic 64 IRQ_TYPE_LEVEL_HIGH 32>; | ||
}; |