Skip to content

Commit 9df7146

Browse files
nbuchwitzpopcornmix
authored andcommitted
dts: cm5: Fix Ethernet PHY interrupt pull-up
On CM5, the active-low interrupt pin (INT_N) of the Ethernet PHY is connected to GPIO37. However, an internal pull-up resistor appears to be missing, which causes the interrupt edge to be missed or not detected reliably. Fix this by configuring a bias pull-up on the gpio controller. Signed-off-by: Nicolai Buchwitz <[email protected]>
1 parent a6efbe1 commit 9df7146

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

arch/arm64/boot/dts/broadcom/bcm2712-rpi-cm5.dtsi

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,8 @@ rp1_target: &pcie2 {
163163
phy-handle = <&phy1>;
164164
phy-reset-gpios = <&rp1_gpio 32 GPIO_ACTIVE_LOW>;
165165
phy-reset-duration = <5>;
166+
pinctrl-names = "default";
167+
pinctrl-0 = <&eth0_irq_pins>;
166168

167169
phy1: ethernet-phy@0 {
168170
reg = <0x0>;
@@ -708,6 +710,14 @@ spi10_cs_pins: &spi10_cs_gpio1 {};
708710
gpios = <48 GPIO_ACTIVE_HIGH>;
709711
output-high;
710712
};
713+
714+
eth0_irq_pins: eth0_irq_pins {
715+
pins = "gpio37";
716+
function = "gpio";
717+
// workaround missing hardware PU
718+
bias-pull-up;
719+
input-enable;
720+
};
711721
};
712722

713723
/ {

0 commit comments

Comments
 (0)