mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-20 14:13:16 +00:00
d55f4aeee0
Currently, SSDK is creating a fake SFP PHY which has no OF node populated, thus making it impossible to pass it to NSS-DP so port can actually work. We eliminated QCA-s connecting of the PHY by manually creating a string and then matching by name and instead only support passing the PHY as phandle via phy-handle. So, lets just use the switch port node to which the SFP is connected to anyway and set it as the PHY device OF node so we can pass it to NSS-DP. Link: https://github.com/openwrt/openwrt/pull/15840 Signed-off-by: Robert Marko <robimarko@gmail.com>
34 lines
1.0 KiB
Diff
34 lines
1.0 KiB
Diff
From ab3b663842f66d0ed290696cee9edb9070a36e8f Mon Sep 17 00:00:00 2001
|
|
From: Paweł Owoc <frut3k7@gmail.com>
|
|
Date: Wed, 7 May 2024 10:37:44 +0100
|
|
Subject: [PATCH] hsl_phy: add support for AQR114C-B0 PHY
|
|
|
|
Add support for AQR114C-B0 PHY.
|
|
|
|
Signed-off-by: Paweł Owoc <frut3k7@gmail.com>
|
|
---
|
|
include/hsl/phy/hsl_phy.h | 1 +
|
|
src/hsl/phy/hsl_phy.c | 1 +
|
|
2 files changed, 2 insertions(+)
|
|
|
|
--- a/include/hsl/phy/hsl_phy.h
|
|
+++ b/include/hsl/phy/hsl_phy.h
|
|
@@ -613,6 +613,7 @@ typedef struct {
|
|
#define AQUANTIA_PHY_113C_B0 0x31c31C12
|
|
#define AQUANTIA_PHY_113C_B1 0x31c31C13
|
|
#define AQUANTIA_PHY_112C 0x03a1b792
|
|
+#define AQUANTIA_PHY_114C_B0 0x31c31c22
|
|
#define MVL_PHY_X3410 0x31c31DD3
|
|
|
|
#define PHY_805XV2 0x004DD082
|
|
--- a/src/hsl/phy/hsl_phy.c
|
|
+++ b/src/hsl/phy/hsl_phy.c
|
|
@@ -271,6 +271,7 @@ phy_type_t hsl_phytype_get_by_phyid(a_ui
|
|
case AQUANTIA_PHY_113C_B0:
|
|
case AQUANTIA_PHY_113C_B1:
|
|
case AQUANTIA_PHY_112C:
|
|
+ case AQUANTIA_PHY_114C_B0:
|
|
case MVL_PHY_X3410:
|
|
phytype = AQUANTIA_PHY_CHIP;
|
|
break;
|