Skip to content

Commit 33a7b4a

Browse files
committed
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 9c09b75 commit 33a7b4a

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
@@ -158,6 +158,8 @@ rp1_target: &pcie2 {
158158
phy-handle = <&phy1>;
159159
phy-reset-gpios = <&rp1_gpio 32 GPIO_ACTIVE_LOW>;
160160
phy-reset-duration = <5>;
161+
pinctrl-names = "default";
162+
pinctrl-0 = <&eth0_irq_pins>;
161163

162164
phy1: ethernet-phy@0 {
163165
reg = <0x0>;
@@ -703,6 +705,14 @@ spi10_cs_pins: &spi10_cs_gpio1 {};
703705
gpios = <48 GPIO_ACTIVE_HIGH>;
704706
output-high;
705707
};
708+
709+
eth0_irq_pins: eth0_irq_pins {
710+
pins = "gpio37";
711+
function = "gpio";
712+
// workaround missing hardware PU
713+
bias-pull-up;
714+
input-enable;
715+
};
706716
};
707717

708718
/ {

0 commit comments

Comments
 (0)