mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 11:26:02 +09:00
phy: rockchip: inno-usb2: Add usb2 phy support for rv1106
This patch adds phy configuration for rv1106 usb2 phy which has only one otg port. Signed-off-by: William Wu <william.wu@rock-chips.com> Change-Id: Ida93914f3eae3d692265bcf9751d9150619098af
This commit is contained in:
@@ -3478,6 +3478,51 @@ static const struct rockchip_usb2phy_cfg rk3588_phy_cfgs[] = {
|
||||
{ /* sentinel */ }
|
||||
};
|
||||
|
||||
static const struct rockchip_usb2phy_cfg rv1106_phy_cfgs[] = {
|
||||
{
|
||||
.reg = 0xff3e0000,
|
||||
.num_ports = 1,
|
||||
.clkout_ctl = { 0x0058, 4, 4, 1, 0 },
|
||||
.port_cfgs = {
|
||||
[USB2PHY_PORT_OTG] = {
|
||||
.phy_sus = { 0x0050, 8, 0, 0, 0x1d1 },
|
||||
.bvalid_det_en = { 0x0100, 2, 2, 0, 1 },
|
||||
.bvalid_det_st = { 0x0104, 2, 2, 0, 1 },
|
||||
.bvalid_det_clr = { 0x0108, 2, 2, 0, 1 },
|
||||
.bvalid_grf_sel = { 0x0058, 15, 14, 0, 3 },
|
||||
.iddig_output = { 0x0050, 10, 10, 0, 1 },
|
||||
.iddig_en = { 0x0050, 9, 9, 0, 1 },
|
||||
.idfall_det_en = { 0x0100, 5, 5, 0, 1 },
|
||||
.idfall_det_st = { 0x0104, 5, 5, 0, 1 },
|
||||
.idfall_det_clr = { 0x0108, 5, 5, 0, 1 },
|
||||
.idrise_det_en = { 0x0100, 4, 4, 0, 1 },
|
||||
.idrise_det_st = { 0x0104, 4, 4, 0, 1 },
|
||||
.idrise_det_clr = { 0x0108, 4, 4, 0, 1 },
|
||||
.ls_det_en = { 0x0100, 0, 0, 0, 1 },
|
||||
.ls_det_st = { 0x0104, 0, 0, 0, 1 },
|
||||
.ls_det_clr = { 0x0108, 0, 0, 0, 1 },
|
||||
.utmi_avalid = { 0x0060, 10, 10, 0, 1 },
|
||||
.utmi_bvalid = { 0x0060, 9, 9, 0, 1 },
|
||||
.utmi_iddig = { 0x0060, 6, 6, 0, 1 },
|
||||
.utmi_ls = { 0x0060, 5, 4, 0, 1 },
|
||||
},
|
||||
},
|
||||
.chg_det = {
|
||||
.chg_mode = { 0x0050, 8, 0, 0, 0x1d7 },
|
||||
.cp_det = { 0x0060, 13, 13, 0, 1 },
|
||||
.dcp_det = { 0x0060, 12, 12, 0, 1 },
|
||||
.dp_det = { 0x0060, 14, 14, 0, 1 },
|
||||
.idm_sink_en = { 0x0058, 8, 8, 0, 1 },
|
||||
.idp_sink_en = { 0x0058, 7, 7, 0, 1 },
|
||||
.idp_src_en = { 0x0058, 9, 9, 0, 1 },
|
||||
.rdm_pdwn_en = { 0x0058, 10, 10, 0, 1 },
|
||||
.vdm_src_en = { 0x0058, 12, 12, 0, 1 },
|
||||
.vdp_src_en = { 0x0058, 11, 11, 0, 1 },
|
||||
},
|
||||
},
|
||||
{ /* sentinel */ }
|
||||
};
|
||||
|
||||
static const struct rockchip_usb2phy_cfg rv1108_phy_cfgs[] = {
|
||||
{
|
||||
.reg = 0x100,
|
||||
@@ -3532,6 +3577,7 @@ static const struct of_device_id rockchip_usb2phy_dt_match[] = {
|
||||
{ .compatible = "rockchip,rk3399-usb2phy", .data = &rk3399_phy_cfgs },
|
||||
{ .compatible = "rockchip,rk3568-usb2phy", .data = &rk3568_phy_cfgs },
|
||||
{ .compatible = "rockchip,rk3588-usb2phy", .data = &rk3588_phy_cfgs },
|
||||
{ .compatible = "rockchip,rv1106-usb2phy", .data = &rv1106_phy_cfgs },
|
||||
{ .compatible = "rockchip,rv1108-usb2phy", .data = &rv1108_phy_cfgs },
|
||||
{}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user