Skip to content

Commit 1d59436

Browse files
6by9pelwell
authored andcommitted
dt: Add eth_max_speed override for CM4, Pi4, and Pi400
max-speed is a generic property for ethernet PHYs, so should be supported by the PHY on CM4/Pi4/Pi400. Add the override and update the documentation accordingly. Signed-off-by: Dave Stevenson <[email protected]>
1 parent d9f40b6 commit 1d59436

File tree

4 files changed

+5
-1
lines changed

4 files changed

+5
-1
lines changed

arch/arm/boot/dts/broadcom/bcm2711-rpi-4-b.dts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,5 +506,6 @@ i2c_csi_dsi0: &i2c0 {
506506

507507
eth_led0 = <&phy1>,"led-modes:0";
508508
eth_led1 = <&phy1>,"led-modes:4";
509+
eth_max_speed = <&phy1>,"max-speed:0";
509510
};
510511
};

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ cam0_reg: &cam_dummy_reg {
8181
<&led_act>,"status=okay";
8282
act_led_activelow = <&led_act>,"gpios:8";
8383
act_led_trigger = <&led_act>,"linux,default-trigger";
84+
eth_max_speed = <&phy1>,"max-speed:0";
8485
pwr_led_gpio = <&led_pwr>,"gpios:4";
8586
pwr_led_activelow = <&led_pwr>,"gpios:8";
8687
pwr_led_trigger = <&led_pwr>,"linux,default-trigger";

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,7 @@ i2c_csi_dsi0: &i2c0 {
476476

477477
eth_led0 = <&phy1>,"led-modes:0";
478478
eth_led1 = <&phy1>,"led-modes:4";
479+
eth_max_speed = <&phy1>,"max-speed:0";
479480

480481
ant1 = <&ant1>,"output-high?=on",
481482
<&ant1>, "output-low?=off",

arch/arm/boot/dts/overlays/README

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,8 @@ Params:
266266

267267
eth_max_speed Set the maximum speed a link is allowed
268268
to negotiate. Legal values are 10, 100 and
269-
1000 (default 1000). Pi3B+ only.
269+
1000 (default set by the platform).
270+
Pi3B+, Pi4, Pi400, and CM4 only.
270271

271272
fan_temp0 Temperature threshold (in millicelcius) for
272273
1st cooling level (default 50000). Pi5 only.

0 commit comments

Comments
 (0)