Skip to content

Commit 6bf2305

Browse files
randolph-linMani-Sadhasivam
authored andcommitted
dt-bindings: PCI: Add Andes QiLai PCIe support
Add the Andes QiLai PCIe node, which includes 3 Root Complexes. Only one example is required in the DTS bindings YAML file. Signed-off-by: Randolph Lin <randolph@andestech.com> Signed-off-by: Manivannan Sadhasivam <mani@kernel.org> Reviewed-by: Rob Herring (Arm) <robh@kernel.org> Link: https://patch.msgid.link/20260225085504.3757601-2-randolph@andestech.com
1 parent 6de23f8 commit 6bf2305

1 file changed

Lines changed: 89 additions & 0 deletions

File tree

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/pci/andestech,qilai-pcie.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Andes QiLai PCIe host controller
8+
9+
description:
10+
Andes QiLai PCIe host controller is based on the Synopsys DesignWare
11+
PCI core.
12+
13+
maintainers:
14+
- Randolph Lin <randolph@andestech.com>
15+
16+
allOf:
17+
- $ref: /schemas/pci/snps,dw-pcie.yaml#
18+
19+
properties:
20+
compatible:
21+
const: andestech,qilai-pcie
22+
23+
reg:
24+
items:
25+
- description: Data Bus Interface (DBI) registers.
26+
- description: APB registers.
27+
- description: PCIe configuration space region.
28+
29+
reg-names:
30+
items:
31+
- const: dbi
32+
- const: apb
33+
- const: config
34+
35+
dma-coherent: true
36+
37+
ranges:
38+
maxItems: 2
39+
40+
interrupts:
41+
maxItems: 1
42+
43+
interrupt-names:
44+
items:
45+
- const: msi
46+
47+
required:
48+
- reg
49+
- reg-names
50+
- interrupts
51+
- interrupt-names
52+
53+
unevaluatedProperties: false
54+
55+
examples:
56+
- |
57+
#include <dt-bindings/interrupt-controller/irq.h>
58+
59+
soc {
60+
#address-cells = <2>;
61+
#size-cells = <2>;
62+
63+
pcie@80000000 {
64+
compatible = "andestech,qilai-pcie";
65+
device_type = "pci";
66+
reg = <0x0 0x80000000 0x0 0x20000000>,
67+
<0x0 0x04000000 0x0 0x00001000>,
68+
<0x0 0x00000000 0x0 0x00010000>;
69+
reg-names = "dbi", "apb", "config";
70+
dma-coherent;
71+
72+
linux,pci-domain = <0>;
73+
#address-cells = <3>;
74+
#size-cells = <2>;
75+
ranges = <0x02000000 0x00 0x10000000 0x00 0x10000000 0x00 0xf0000000>,
76+
<0x43000000 0x01 0x00000000 0x01 0x00000000 0x02 0x00000000>;
77+
78+
#interrupt-cells = <1>;
79+
interrupts = <0xf>;
80+
interrupt-names = "msi";
81+
interrupt-parent = <&plic0>;
82+
interrupt-map-mask = <0 0 0 0>;
83+
interrupt-map = <0 0 0 1 &plic0 0xf IRQ_TYPE_LEVEL_HIGH>,
84+
<0 0 0 2 &plic0 0xf IRQ_TYPE_LEVEL_HIGH>,
85+
<0 0 0 3 &plic0 0xf IRQ_TYPE_LEVEL_HIGH>,
86+
<0 0 0 4 &plic0 0xf IRQ_TYPE_LEVEL_HIGH>;
87+
};
88+
};
89+
...

0 commit comments

Comments
 (0)