mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 11:26:02 +09:00
phy: rockchip: inno_usb2: add bvalid control regs for rk3588 OTG1
This patch adds bvalid control registers for RK3588 OTG1 USB2.0 PHY. Then RK3588 Type-C1 can support USB Charger detection if the TYPEC1_USB20_VBUSDET is always pull up to 3.3V, note that add property "rockchip,typec-vbus-det" in DTS u2phy1_otg node. Signed-off-by: William Wu <william.wu@rock-chips.com> Change-Id: Icee95425fa2671a02bdc999339437009469100c3
This commit is contained in:
@@ -3548,6 +3548,9 @@ static const struct rockchip_usb2phy_cfg rk3588_phy_cfgs[] = {
|
||||
.bvalid_det_en = { 0x0080, 1, 1, 0, 1 },
|
||||
.bvalid_det_st = { 0x0084, 1, 1, 0, 1 },
|
||||
.bvalid_det_clr = { 0x0088, 1, 1, 0, 1 },
|
||||
.bvalid_grf_sel = { 0x0010, 3, 3, 0, 1 },
|
||||
.bvalid_grf_con = { 0x0010, 3, 2, 2, 3 },
|
||||
.bvalid_phy_con = { 0x0008, 1, 0, 2, 3 },
|
||||
.bypass_dm_en = { 0x000c, 5, 5, 0, 1 },
|
||||
.bypass_sel = { 0x000c, 6, 6, 0, 1 },
|
||||
.iddig_output = { 0x0010, 0, 0, 0, 1 },
|
||||
|
||||
Reference in New Issue
Block a user