Skip to content

Commit 6060c57

Browse files
unicornxMingcongBai
authored andcommitted
FROMLIST: dt-bindings: pci: Add Sophgo SG2042 PCIe host
Add binding for Sophgo SG2042 PCIe host controller. Reviewed-by: Rob Herring (Arm) <[email protected]> Signed-off-by: Chen Wang <[email protected]> Link: https://lore.kernel.org/r/2755f145755b6096247c26852b63671a6fea4dbf.1757643388.git.unicorn_wang@outlook.com Signed-off-by: Han Gao <[email protected]>
1 parent cc98996 commit 6060c57

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/pci/sophgo,sg2042-pcie-host.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Sophgo SG2042 PCIe Host (Cadence PCIe Wrapper)
8+
9+
description:
10+
Sophgo SG2042 PCIe host controller is based on the Cadence PCIe core.
11+
12+
maintainers:
13+
- Chen Wang <[email protected]>
14+
15+
properties:
16+
compatible:
17+
const: sophgo,sg2042-pcie-host
18+
19+
reg:
20+
maxItems: 2
21+
22+
reg-names:
23+
items:
24+
- const: reg
25+
- const: cfg
26+
27+
vendor-id:
28+
const: 0x1f1c
29+
30+
device-id:
31+
const: 0x2042
32+
33+
msi-parent: true
34+
35+
allOf:
36+
- $ref: cdns-pcie-host.yaml#
37+
38+
required:
39+
- compatible
40+
- reg
41+
- reg-names
42+
43+
unevaluatedProperties: false
44+
45+
examples:
46+
- |
47+
#include <dt-bindings/interrupt-controller/irq.h>
48+
49+
pcie@62000000 {
50+
compatible = "sophgo,sg2042-pcie-host";
51+
device_type = "pci";
52+
reg = <0x62000000 0x00800000>,
53+
<0x48000000 0x00001000>;
54+
reg-names = "reg", "cfg";
55+
#address-cells = <3>;
56+
#size-cells = <2>;
57+
ranges = <0x81000000 0 0x00000000 0xde000000 0 0x00010000>,
58+
<0x82000000 0 0xd0400000 0xd0400000 0 0x0d000000>;
59+
bus-range = <0x00 0xff>;
60+
vendor-id = <0x1f1c>;
61+
device-id = <0x2042>;
62+
cdns,no-bar-match-nbits = <48>;
63+
msi-parent = <&msi>;
64+
};

0 commit comments

Comments
 (0)