[PATCH v2 09/14] phy: rockchip-inno-usb2: Add support for RK3308
Kever Yang
kever.yang at rock-chips.com
Mon Apr 22 10:46:05 CEST 2024
On 2024/4/9 02:14, Jonas Karlman wrote:
> Add clkout_ctl and phy_sus regs to support USB2PHY for RK3308.
>
> Based on linux commit 31f840e7ff3e ("phy: phy-rockchip-inno-usb2: add
> support for RK3308 USB phy").
>
> Signed-off-by: Jonas Karlman <jonas at kwiboo.se>
Reviewed-by: Kever Yang <kever.yang at rock-chips.com>
Thanks,
- Kever
> ---
> v2: No change
> ---
> 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 d392aed2d4de..43f6e020a6a0 100644
> --- a/drivers/phy/rockchip/phy-rockchip-inno-usb2.c
> +++ b/drivers/phy/rockchip/phy-rockchip-inno-usb2.c
> @@ -329,6 +329,22 @@ bind_fail:
> return ret;
> }
>
> +static const struct rockchip_usb2phy_cfg rk3308_phy_cfgs[] = {
> + {
> + .reg = 0x100,
> + .clkout_ctl = { 0x0108, 4, 4, 1, 0 },
> + .port_cfgs = {
> + [USB2PHY_PORT_OTG] = {
> + .phy_sus = { 0x0100, 1, 0, 2, 1 },
> + },
> + [USB2PHY_PORT_HOST] = {
> + .phy_sus = { 0x0104, 1, 0, 2, 1 },
> + }
> + },
> + },
> + { /* sentinel */ }
> +};
> +
> static const struct rockchip_usb2phy_cfg rk3328_usb2phy_cfgs[] = {
> {
> .reg = 0x100,
> @@ -442,6 +458,10 @@ static const struct rockchip_usb2phy_cfg rk3588_phy_cfgs[] = {
> };
>
> static const struct udevice_id rockchip_usb2phy_ids[] = {
> + {
> + .compatible = "rockchip,rk3308-usb2phy",
> + .data = (ulong)&rk3308_phy_cfgs,
> + },
> {
> .compatible = "rockchip,rk3328-usb2phy",
> .data = (ulong)&rk3328_usb2phy_cfgs,
More information about the U-Boot
mailing list