Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

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

phy: rockchip: usbdp: add rk3576 device match data

This adds RK3576 device match data support.

Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
Acked-by: Dragan Simic <dsimic@manjaro.org>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Link: https://lore.kernel.org/r/20241014020342.15974-2-frawang.cn@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Frank Wang and committed by
Vinod Koul
a76de028 b3e804ab

+41
+41
drivers/phy/rockchip/phy-rockchip-usbdp.c
··· 1538 1538 "init", "cmn", "lane", "pcs_apb", "pma_apb" 1539 1539 }; 1540 1540 1541 + static const struct rk_udphy_cfg rk3576_udphy_cfgs = { 1542 + .num_phys = 1, 1543 + .phy_ids = { 0x2b010000 }, 1544 + .num_rsts = ARRAY_SIZE(rk_udphy_rst_list), 1545 + .rst_list = rk_udphy_rst_list, 1546 + .grfcfg = { 1547 + /* u2phy-grf */ 1548 + .bvalid_phy_con = RK_UDPHY_GEN_GRF_REG(0x0010, 1, 0, 0x2, 0x3), 1549 + .bvalid_grf_con = RK_UDPHY_GEN_GRF_REG(0x0000, 15, 14, 0x1, 0x3), 1550 + 1551 + /* usb-grf */ 1552 + .usb3otg0_cfg = RK_UDPHY_GEN_GRF_REG(0x0030, 15, 0, 0x1100, 0x0188), 1553 + 1554 + /* usbdpphy-grf */ 1555 + .low_pwrn = RK_UDPHY_GEN_GRF_REG(0x0004, 13, 13, 0, 1), 1556 + .rx_lfps = RK_UDPHY_GEN_GRF_REG(0x0004, 14, 14, 0, 1), 1557 + }, 1558 + .vogrfcfg = { 1559 + { 1560 + .hpd_trigger = RK_UDPHY_GEN_GRF_REG(0x0000, 11, 10, 1, 3), 1561 + .dp_lane_reg = 0x0000, 1562 + }, 1563 + }, 1564 + .dp_tx_ctrl_cfg = { 1565 + rk3588_dp_tx_drv_ctrl_rbr_hbr_typec, 1566 + rk3588_dp_tx_drv_ctrl_rbr_hbr_typec, 1567 + rk3588_dp_tx_drv_ctrl_hbr2, 1568 + rk3588_dp_tx_drv_ctrl_hbr3, 1569 + }, 1570 + .dp_tx_ctrl_cfg_typec = { 1571 + rk3588_dp_tx_drv_ctrl_rbr_hbr_typec, 1572 + rk3588_dp_tx_drv_ctrl_rbr_hbr_typec, 1573 + rk3588_dp_tx_drv_ctrl_hbr2, 1574 + rk3588_dp_tx_drv_ctrl_hbr3, 1575 + }, 1576 + }; 1577 + 1541 1578 static const struct rk_udphy_cfg rk3588_udphy_cfgs = { 1542 1579 .num_phys = 2, 1543 1580 .phy_ids = { ··· 1621 1584 }; 1622 1585 1623 1586 static const struct of_device_id rk_udphy_dt_match[] = { 1587 + { 1588 + .compatible = "rockchip,rk3576-usbdp-phy", 1589 + .data = &rk3576_udphy_cfgs 1590 + }, 1624 1591 { 1625 1592 .compatible = "rockchip,rk3588-usbdp-phy", 1626 1593 .data = &rk3588_udphy_cfgs