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:
William Wu
2022-06-17 11:35:02 +08:00
committed by Tao Huang
parent 55a06b8113
commit fb52286670

View File

@@ -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 },