Skip to contentSkip to conversation

phy: rockchip: naneng-combphy: Enable U3 port for USB3OTG on RK3568

PATCH In review Jonas Karlman 3 participants 3 messages Jan 6 – Mar 8

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 phy: rockchip: naneng-combphy: Enable U3 port for USB3OTG on RK3568

The USB OTG U3 port may have been disabled early, add support to the COMBPHY driver to re-enable the U3 port.

This matches changes made in the Linux commit 7bb14b61b7d0 ("phy:
rockchip: naneng-combphy: Enable U3 OTG port for RK3568").

---
v2: No change, drop second patch

---
 drivers/phy/rockchip/phy-rockchip-naneng-combphy.c | 8 ++++++++
 1 file changed, 8 insertions(+)
drivers/phy/rockchip/phy-rockchip-naneng-combphy.c +8 -0
index d602f965d6aa..82353ae7678c 100644
@@ -399,6 +399,14 @@ static int rk3568_combphy_cfg(struct rockchip_combphy_priv *priv)
 		param_write(priv->phy_grf, &cfg->pipe_txcomp_sel, false);
 		param_write(priv->phy_grf, &cfg->pipe_txelec_sel, false);
 		param_write(priv->phy_grf, &cfg->usb_mode_set, true);
+		switch (priv->id) {
+		case 0:
+			param_write(priv->pipe_grf, &cfg->u3otg0_port_en, true);
+			break;
+		case 1:
+			param_write(priv->pipe_grf, &cfg->u3otg1_port_en, true);
+			break;
+		}
 		break;
 	case PHY_TYPE_SATA:
 		writel(0x41, priv->mmio + 0x38);
Signature · 1 line
2.52.0
Acked-by on v2 1/1
#1 lore raw

Hi Jonas,

Quoted 6 lines · Jonas Karlman

The USB OTG U3 port may have been disabled early, add support to the COMBPHY driver to re-enable the U3 port.

This matches changes made in the Linux commit 7bb14b61b7d0 ("phy:
rockchip: naneng-combphy: Enable U3 OTG port for RK3568").

Thanks!
Quentin

Reviewed-by on v2 1/1
#2 lore raw
In reply to Jonas Karlman
Quoted 7 lines · Jonas Karlman

The USB OTG U3 port may have been disabled early, add support to the COMBPHY driver to re-enable the U3 port.

This matches changes made in the Linux commit 7bb14b61b7d0 ("phy:
rockchip: naneng-combphy: Enable U3 OTG port for RK3568").

Thanks,
- Kever

Quoted 25 lines

---
v2: No change, drop second patch

---
  drivers/phy/rockchip/phy-rockchip-naneng-combphy.c | 8 ++++++++
  1 file changed, 8 insertions(+)
drivers/phy/rockchip/phy-rockchip-naneng-combphy.c +8 -0
index d602f965d6aa..82353ae7678c 100644
@@ -399,6 +399,14 @@ static int rk3568_combphy_cfg(struct rockchip_combphy_priv *priv)
  		param_write(priv->phy_grf, &cfg->pipe_txcomp_sel, false);
  		param_write(priv->phy_grf, &cfg->pipe_txelec_sel, false);
  		param_write(priv->phy_grf, &cfg->usb_mode_set, true);
+		switch (priv->id) {
+		case 0:
+			param_write(priv->pipe_grf, &cfg->u3otg0_port_en, true);
+			break;
+		case 1:
+			param_write(priv->pipe_grf, &cfg->u3otg1_port_en, true);
+			break;
+		}
  		break;
  	case PHY_TYPE_SATA:
  		writel(0x41, priv->mmio + 0x38);