"Das U-Boot" Source Tree
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

phy: rockchip-inno-usb2: Add USB2 PHY for RK3128

Support USB2 PHY in RK3128 which is used by it's HOST and OTG USB controllers.

Also enable it for evb-rk3128 which enables these in it's device tree.

Signed-off-by: Alex Bee <knaerzche@gmail.com>

authored by

Alex Bee and committed by
joshua stein
f0fcd0f1 293d54d1

+24 -1
+3
arch/arm/mach-rockchip/rk3128/syscon_rk3128.c
··· 16 16 .name = "rk3128_syscon", 17 17 .id = UCLASS_SYSCON, 18 18 .of_match = rk3128_syscon_ids, 19 + #if CONFIG_IS_ENABLED(OF_REAL) 20 + .bind = dm_scan_fdt_dev, 21 + #endif 19 22 };
+1 -1
configs/evb-rk3128_defconfig
··· 39 39 CONFIG_SYS_I2C_ROCKCHIP=y 40 40 CONFIG_MMC_DW=y 41 41 CONFIG_MMC_DW_ROCKCHIP=y 42 - CONFIG_PHY=y 42 + CONFIG_PHY_ROCKCHIP_INNO_USB2=y 43 43 CONFIG_PINCTRL=y 44 44 CONFIG_REGULATOR_PWM=y 45 45 CONFIG_DM_REGULATOR_FIXED=y
+20
drivers/phy/rockchip/phy-rockchip-inno-usb2.c
··· 352 352 return ret; 353 353 } 354 354 355 + static const struct rockchip_usb2phy_cfg rk3128_phy_cfgs[] = { 356 + { 357 + .reg = 0x17c, 358 + .clkout_ctl = { 0x0190, 15, 15, 1, 0 }, 359 + .port_cfgs = { 360 + [USB2PHY_PORT_OTG] = { 361 + .phy_sus = { 0x017c, 1, 0, 2, 1 }, 362 + }, 363 + [USB2PHY_PORT_HOST] = { 364 + .phy_sus = { 0x0194, 1, 0, 2, 1 }, 365 + } 366 + }, 367 + }, 368 + { /* sentinel */ } 369 + }; 370 + 355 371 static const struct rockchip_usb2phy_cfg rk3308_phy_cfgs[] = { 356 372 { 357 373 .reg = 0x100, ··· 497 513 }; 498 514 499 515 static const struct udevice_id rockchip_usb2phy_ids[] = { 516 + { 517 + .compatible = "rockchip,rk3128-usb2phy", 518 + .data = (ulong)&rk3128_phy_cfgs, 519 + }, 500 520 { 501 521 .compatible = "rockchip,rk3308-usb2phy", 502 522 .data = (ulong)&rk3308_phy_cfgs,