Skip to content

Commit fabce18

Browse files
John MadieuMani-Sadhasivam
authored andcommitted
dt-bindings: PCI: renesas,r9a08g045s33-pcie: Document RZ/G3E SoC
Extend the existing device tree bindings for Renesas RZ/G3S PCIe controller to include support for the RZ/G3E (renesas,r9a09g047e57-pcie) PCIe controller. The RZ/G3E PCIe controller is similar to RZ/G3S but has some key differences: - Uses a different device ID - Supports PCIe Gen3 (8.0 GT/s) link speeds - Uses a different clock naming (clkpmu vs clkl1pm) - Has a different set of interrupts, interrupt ordering, and reset signals Add device tree bindings for renesas,r9a09g047e57-pcie compatible IPs. Signed-off-by: John Madieu <john.madieu.xa@bp.renesas.com> Signed-off-by: Manivannan Sadhasivam <mani@kernel.org> Tested-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com> # RZ/V2N EVK Tested-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> Reviewed-by: Rob Herring (Arm) <robh@kernel.org> Reviewed-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> Link: https://patch.msgid.link/20260306143423.19562-7-john.madieu.xa@bp.renesas.com
1 parent bb1b0f4 commit fabce18

1 file changed

Lines changed: 67 additions & 6 deletions

File tree

Documentation/devicetree/bindings/pci/renesas,r9a08g045-pcie.yaml

Lines changed: 67 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,21 @@ maintainers:
1010
- Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
1111

1212
description:
13-
Renesas RZ/G3S PCIe host controller complies with PCIe Base Specification
14-
4.0 and supports up to 5 GT/s (Gen2).
13+
Renesas RZ/G3{E,S} PCIe host controllers comply with PCIe
14+
Base Specification 4.0 and support up to 5 GT/s (Gen2) for RZ/G3S and
15+
up to 8 GT/s (Gen3) for RZ/G3E.
1516

1617
properties:
1718
compatible:
18-
const: renesas,r9a08g045-pcie # RZ/G3S
19+
enum:
20+
- renesas,r9a08g045-pcie # RZ/G3S
21+
- renesas,r9a09g047-pcie # RZ/G3E
1922

2023
reg:
2124
maxItems: 1
2225

2326
interrupts:
27+
minItems: 16
2428
items:
2529
- description: System error interrupt
2630
- description: System error on correctable error interrupt
@@ -38,8 +42,16 @@ properties:
3842
- description: PCIe event interrupt
3943
- description: Message interrupt
4044
- description: All interrupts
45+
- description: Link equalization request interrupt
46+
- description: Turn off event interrupt
47+
- description: PMU power off interrupt
48+
- description: D3 event function 0 interrupt
49+
- description: D3 event function 1 interrupt
50+
- description: Configuration PMCSR write clear function 0 interrupt
51+
- description: Configuration PMCSR write clear function 1 interrupt
4152

4253
interrupt-names:
54+
minItems: 16
4355
items:
4456
- const: serr
4557
- const: serr_cor
@@ -57,20 +69,28 @@ properties:
5769
- const: pcie_evt
5870
- const: msg
5971
- const: all
72+
- const: link_equalization_request
73+
- const: turn_off_event
74+
- const: pmu_poweroff
75+
- const: d3_event_f0
76+
- const: d3_event_f1
77+
- const: cfg_pmcsr_writeclear_f0
78+
- const: cfg_pmcsr_writeclear_f1
6079

6180
interrupt-controller: true
6281

6382
clocks:
6483
items:
6584
- description: System clock
66-
- description: PM control clock
85+
- description: PM control clock or clock for L1 substate handling
6786

6887
clock-names:
6988
items:
7089
- const: aclk
71-
- const: pm
90+
- enum: [pm, pmu]
7291

7392
resets:
93+
minItems: 1
7494
items:
7595
- description: AXI2PCIe Bridge reset
7696
- description: Data link layer/transaction layer reset
@@ -81,6 +101,7 @@ properties:
81101
- description: Configuration register reset
82102

83103
reset-names:
104+
minItems: 1
84105
items:
85106
- const: aresetn
86107
- const: rst_b
@@ -128,7 +149,9 @@ patternProperties:
128149
const: 0x1912
129150

130151
device-id:
131-
const: 0x0033
152+
enum:
153+
- 0x0033
154+
- 0x0039
132155

133156
clocks:
134157
items:
@@ -167,6 +190,44 @@ required:
167190

168191
allOf:
169192
- $ref: /schemas/pci/pci-host-bridge.yaml#
193+
- if:
194+
properties:
195+
compatible:
196+
contains:
197+
const: renesas,r9a08g045-pcie
198+
then:
199+
properties:
200+
interrupts:
201+
maxItems: 16
202+
interrupt-names:
203+
maxItems: 16
204+
clock-names:
205+
items:
206+
- const: aclk
207+
- const: pm
208+
resets:
209+
minItems: 7
210+
reset-names:
211+
minItems: 7
212+
- if:
213+
properties:
214+
compatible:
215+
contains:
216+
const: renesas,r9a09g047-pcie
217+
then:
218+
properties:
219+
interrupts:
220+
minItems: 23
221+
interrupt-names:
222+
minItems: 23
223+
clock-names:
224+
items:
225+
- const: aclk
226+
- const: pmu
227+
resets:
228+
maxItems: 1
229+
reset-names:
230+
maxItems: 1
170231

171232
unevaluatedProperties: false
172233

0 commit comments

Comments
 (0)