mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-27 09:12:39 +00:00
2e715fb4fc
Add support for BCM2712 (Raspberry Pi 5).
3bb5880ab3
Patches were generated from the diff between linux kernel branch linux-6.1.y
and rpi-6.1.y from raspberry pi kernel source:
- git format-patch linux-6.1.y...rpi-6.1.y
Build system: x86_64
Build-tested: bcm2708, bcm2709, bcm2710, bcm2711
Run-tested: bcm2710/RPi3B, bcm2711/RPi4B
Signed-off-by: Marty Jones <mj8263788@gmail.com>
[Remove applied and reverted patches, squash patches and config commits]
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
27 lines
941 B
Diff
27 lines
941 B
Diff
From 6370a6cd16a5aa9726bf209c0f0a3179f4011cb1 Mon Sep 17 00:00:00 2001
|
|
From: Jonathan Bell <jonathan@raspberrypi.com>
|
|
Date: Mon, 22 May 2023 15:31:17 +0100
|
|
Subject: [PATCH] net: phy: broadcom: optionally enable link-down powersave
|
|
based on DT
|
|
|
|
It's really a function of the board whether or not to use this feature
|
|
as it may require MAC compatibility as well as interop testing.
|
|
|
|
Signed-off-by: Jonathan Bell <jonathan@raspberrypi.com>
|
|
---
|
|
drivers/net/phy/broadcom.c | 3 +++
|
|
1 file changed, 3 insertions(+)
|
|
|
|
--- a/drivers/net/phy/broadcom.c
|
|
+++ b/drivers/net/phy/broadcom.c
|
|
@@ -370,6 +370,9 @@ static int bcm54xx_config_init(struct ph
|
|
(phydev->dev_flags & PHY_BRCM_CLEAR_RGMII_MODE))
|
|
bcm_phy_write_shadow(phydev, BCM54XX_SHD_RGMII_MODE, 0);
|
|
|
|
+ if (of_property_read_bool(np, "brcm,powerdown-enable"))
|
|
+ phydev->dev_flags |= PHY_BRCM_AUTO_PWRDWN_ENABLE;
|
|
+
|
|
bcm54xx_adjust_rxrefclk(phydev);
|
|
|
|
switch (BRCM_PHY_MODEL(phydev)) {
|