Skip to content

Commit 102481c

Browse files
P33Mpopcornmix
authored andcommitted
DT: bcm2711/bcm2712: use upstream property for controlling pcie clkreq
L1 sub-state support and clkreq control are intermingled in the hardware, and upstream now have a tri-state property to control this. The default behaviour is now to enable clkreq control if the property is absent. Default Pi 5 PCIex1 to "safe" to avoid breaking expansion boards without the CLKREQ# line connected. Make this explicit in the pciex1-compat-pi5 overlay, and remove the obsolete CM4 property. Signed-off-by: Jonathan Bell <jonathan@raspberrypi.com>
1 parent 5452f24 commit 102481c

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

arch/arm/boot/dts/broadcom/bcm2711-rpi-cm4.dts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -422,10 +422,6 @@
422422
// =============================================
423423
// Board specific stuff here
424424

425-
&pcie0 {
426-
brcm,enable-l1ss;
427-
};
428-
429425
&sdhost {
430426
status = "disabled";
431427
};

arch/arm/boot/dts/overlays/README

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3706,7 +3706,9 @@ Params: <None>
37063706
Name: pciex1-compat-pi5
37073707
Info: Compatibility features for pciex1 on Pi 5.
37083708
Load: dtoverlay=pciex1-compat-pi5,<param>=<val>
3709-
Params: l1ss Enable ASPM L1 sub-state support
3709+
Params: l1ss Enable RC ASPM L1 sub-state support. Requires
3710+
that the CLKREQ# pin is connected to the
3711+
endpoint.
37103712
no-l0s Disable ASPM L0s
37113713
no-mip Revert to the MSI target in the RC, instead of
37123714
the MSI-MIP peripheral. Use if a) more than 8

arch/arm/boot/dts/overlays/pciex1-compat-pi5-overlay.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
fragment@0 {
1313
target = <&pciex1>;
1414
__dormant__ {
15-
brcm,enable-l1ss;
15+
brcm,clkreq-mode = "default";
1616
};
1717
};
1818

arch/arm64/boot/dts/broadcom/bcm2712-rpi-5-b.dts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -762,6 +762,7 @@ spi10_cs_pins: &spi10_cs_gpio1 {};
762762

763763
&pcie1 {
764764
status = "okay";
765+
brcm,clkreq-mode = "safe";
765766
};
766767

767768
&pcie2 {

0 commit comments

Comments
 (0)