diff options
author | Icenowy Zheng <uwu@icenowy.me> | 2023-01-09 01:22:22 +0000 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2023-01-12 23:08:57 +0530 |
commit | 50bd67abe5bacc8fd160461bb3eb2c164c4698c0 (patch) | |
tree | 58e87bb7fc5561ec027cde5b2f04d71885b3c9a2 | |
parent | d0aa1608434c25d5803e01018747cc75d1c1ddc1 (diff) | |
download | linux-50bd67abe5bacc8fd160461bb3eb2c164c4698c0.tar.gz linux-50bd67abe5bacc8fd160461bb3eb2c164c4698c0.tar.bz2 linux-50bd67abe5bacc8fd160461bb3eb2c164c4698c0.zip |
phy: sun4i-usb: add support for the USB PHY on F1C100s SoC
The F1C100s SoC has one USB OTG port connected to a MUSB controller.
Add support for its USB PHY.
Signed-off-by: Icenowy Zheng <uwu@icenowy.me>
Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Link: https://lore.kernel.org/r/20230109012223.4079299-3-andre.przywara@arm.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
-rw-r--r-- | drivers/phy/allwinner/phy-sun4i-usb.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/phy/allwinner/phy-sun4i-usb.c b/drivers/phy/allwinner/phy-sun4i-usb.c index 5472db9e87ef..d9beacc3f8c2 100644 --- a/drivers/phy/allwinner/phy-sun4i-usb.c +++ b/drivers/phy/allwinner/phy-sun4i-usb.c @@ -918,6 +918,14 @@ static int sun4i_usb_phy_probe(struct platform_device *pdev) return 0; } +static const struct sun4i_usb_phy_cfg suniv_f1c100s_cfg = { + .num_phys = 1, + .type = sun4i_a10_phy, + .disc_thresh = 3, + .phyctl_offset = REG_PHYCTL_A10, + .dedicated_clocks = true, +}; + static const struct sun4i_usb_phy_cfg sun4i_a10_cfg = { .num_phys = 3, .type = sun4i_a10_phy, @@ -1059,6 +1067,8 @@ static const struct of_device_id sun4i_usb_phy_of_match[] = { .data = &sun50i_a64_cfg}, { .compatible = "allwinner,sun50i-h6-usb-phy", .data = &sun50i_h6_cfg }, { .compatible = "allwinner,sun50i-h616-usb-phy", .data = &sun50i_h616_cfg }, + { .compatible = "allwinner,suniv-f1c100s-usb-phy", + .data = &suniv_f1c100s_cfg }, { }, }; MODULE_DEVICE_TABLE(of, sun4i_usb_phy_of_match); |