Skip to content

Commit 159b88b

Browse files
committed
net: dp83td510 hacks
Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
1 parent 32a666d commit 159b88b

3 files changed

Lines changed: 49 additions & 1 deletion

File tree

patch.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -661,6 +661,7 @@ drivers () {
661661
dir 'tidss_dispc'
662662
dir 'tidss'
663663
dir 'tidss_wip'
664+
dir 'led'
664665
}
665666

666667
###
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
From a9f41e5114e0d88b681328a44b3a4170d687312e Mon Sep 17 00:00:00 2001
2+
From: Nishanth Menon <nm@ti.com>
3+
Date: Tue, 13 Dec 2022 14:25:59 -0600
4+
Subject: [PATCH] HACK: net: phy: dp83td510: Hardcode LED configuration
5+
6+
Hardcode LED configuration for LED2 signal to be link status
7+
and LED0 signal to be rx/tx
8+
9+
Signed-off-by: Nishanth Menon <nm@ti.com>
10+
---
11+
drivers/net/phy/dp83td510.c | 13 +++++++++++++
12+
1 file changed, 13 insertions(+)
13+
14+
diff --git a/drivers/net/phy/dp83td510.c b/drivers/net/phy/dp83td510.c
15+
index 1ae792b0daaa..dd286bb03305 100644
16+
--- a/drivers/net/phy/dp83td510.c
17+
+++ b/drivers/net/phy/dp83td510.c
18+
@@ -27,6 +27,18 @@
19+
#define DP83TD510E_AN_STAT_1 0x60c
20+
#define DP83TD510E_MASTER_SLAVE_RESOL_FAIL BIT(15)
21+
22+
+int dp83td510_config_init(struct phy_device *phydev)
23+
+{
24+
+ /*
25+
+ * Use 0x0049 If we wanted the green LED to be the Rx/Tx indicator.
26+
+ * But the orange LED is just overwhelming.
27+
+ * So pick the other way around - Link LED is the green one
28+
+ * (assuming there is just intermittent data traffic, and don't
29+
+ * blind the folks), just use the orange LED for link traffic.
30+
+ */
31+
+ return phy_write_mmd(phydev, MDIO_MMD_VEND2, 0x460, 0x0940);
32+
+}
33+
+
34+
static int dp83td510_config_intr(struct phy_device *phydev)
35+
{
36+
int ret;
37+
@@ -187,6 +199,7 @@ static struct phy_driver dp83td510_driver[] = {
38+
PHY_ID_MATCH_MODEL(DP83TD510E_PHY_ID),
39+
.name = "TI DP83TD510E",
40+
41+
+ .config_init = dp83td510_config_init,
42+
.config_aneg = dp83td510_config_aneg,
43+
.read_status = dp83td510_read_status,
44+
.get_features = dp83td510_get_features,
45+
--
46+
2.30.2
47+

version.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ KERNEL_REL=5.10
4545
KERNEL_TAG=${KERNEL_REL}.153
4646
kernel_rt=".153-rt76"
4747
#Kernel Build
48-
BUILD=${build_prefix}80
48+
BUILD=${build_prefix}80.1
4949

5050
#v5.X-rcX + upto SHA
5151
#prev_KERNEL_SHA=""

0 commit comments

Comments
 (0)