Add support for the two USB2.0 PHYs use in the RK3506 SoC.

Signed-off-by: Jonas Karlman <[email protected]>
---
 drivers/phy/rockchip/phy-rockchip-inno-usb2.c | 20 +++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/drivers/phy/rockchip/phy-rockchip-inno-usb2.c 
b/drivers/phy/rockchip/phy-rockchip-inno-usb2.c
index 4ea6600ce7f5..f80b2789333d 100644
--- a/drivers/phy/rockchip/phy-rockchip-inno-usb2.c
+++ b/drivers/phy/rockchip/phy-rockchip-inno-usb2.c
@@ -421,6 +421,22 @@ static const struct rockchip_usb2phy_cfg 
rk3399_usb2phy_cfgs[] = {
        { /* sentinel */ }
 };
 
+static const struct rockchip_usb2phy_cfg rk3506_phy_cfgs[] = {
+       {
+               .reg            = 0xff2b0000,
+               .clkout_ctl_phy = { 0x041c, 7, 2, 0, 0x27 },
+               .port_cfgs      = {
+                       [USB2PHY_PORT_OTG] = {
+                               .phy_sus        = { 0x0060, 1, 0, 2, 1 },
+                       },
+                       [USB2PHY_PORT_HOST] = {
+                               .phy_sus        = { 0x0070, 1, 0, 2, 1 },
+                       }
+               },
+       },
+       { /* sentinel */ }
+};
+
 static const struct rockchip_usb2phy_cfg rk3528_phy_cfgs[] = {
        {
                .reg            = 0xffdf0000,
@@ -540,6 +556,10 @@ static const struct udevice_id rockchip_usb2phy_ids[] = {
                .compatible = "rockchip,rk3399-usb2phy",
                .data = (ulong)&rk3399_usb2phy_cfgs,
        },
+       {
+               .compatible = "rockchip,rk3506-usb2phy",
+               .data = (ulong)&rk3506_phy_cfgs,
+       },
        {
                .compatible = "rockchip,rk3528-usb2phy",
                .data = (ulong)&rk3528_phy_cfgs,
-- 
2.52.0

Reply via email to