18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Copyright (C) 2016-2018 Broadcom 48c2ecf20Sopenharmony_ci */ 58c2ecf20Sopenharmony_ci 68c2ecf20Sopenharmony_ci#include <linux/delay.h> 78c2ecf20Sopenharmony_ci#include <linux/io.h> 88c2ecf20Sopenharmony_ci#include <linux/iopoll.h> 98c2ecf20Sopenharmony_ci#include <linux/module.h> 108c2ecf20Sopenharmony_ci#include <linux/of.h> 118c2ecf20Sopenharmony_ci#include <linux/phy/phy.h> 128c2ecf20Sopenharmony_ci#include <linux/platform_device.h> 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_cienum bcm_usb_phy_version { 158c2ecf20Sopenharmony_ci BCM_SR_USB_COMBO_PHY, 168c2ecf20Sopenharmony_ci BCM_SR_USB_HS_PHY, 178c2ecf20Sopenharmony_ci}; 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_cienum bcm_usb_phy_reg { 208c2ecf20Sopenharmony_ci PLL_CTRL, 218c2ecf20Sopenharmony_ci PHY_CTRL, 228c2ecf20Sopenharmony_ci PHY_PLL_CTRL, 238c2ecf20Sopenharmony_ci}; 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_ci/* USB PHY registers */ 268c2ecf20Sopenharmony_ci 278c2ecf20Sopenharmony_cistatic const u8 bcm_usb_combo_phy_ss[] = { 288c2ecf20Sopenharmony_ci [PLL_CTRL] = 0x18, 298c2ecf20Sopenharmony_ci [PHY_CTRL] = 0x14, 308c2ecf20Sopenharmony_ci}; 318c2ecf20Sopenharmony_ci 328c2ecf20Sopenharmony_cistatic const u8 bcm_usb_combo_phy_hs[] = { 338c2ecf20Sopenharmony_ci [PLL_CTRL] = 0x0c, 348c2ecf20Sopenharmony_ci [PHY_CTRL] = 0x10, 358c2ecf20Sopenharmony_ci}; 368c2ecf20Sopenharmony_ci 378c2ecf20Sopenharmony_cistatic const u8 bcm_usb_hs_phy[] = { 388c2ecf20Sopenharmony_ci [PLL_CTRL] = 0x8, 398c2ecf20Sopenharmony_ci [PHY_CTRL] = 0xc, 408c2ecf20Sopenharmony_ci}; 418c2ecf20Sopenharmony_ci 428c2ecf20Sopenharmony_cienum pll_ctrl_bits { 438c2ecf20Sopenharmony_ci PLL_RESETB, 448c2ecf20Sopenharmony_ci SSPLL_SUSPEND_EN, 458c2ecf20Sopenharmony_ci PLL_SEQ_START, 468c2ecf20Sopenharmony_ci PLL_LOCK, 478c2ecf20Sopenharmony_ci}; 488c2ecf20Sopenharmony_ci 498c2ecf20Sopenharmony_cistatic const u8 u3pll_ctrl[] = { 508c2ecf20Sopenharmony_ci [PLL_RESETB] = 0, 518c2ecf20Sopenharmony_ci [SSPLL_SUSPEND_EN] = 1, 528c2ecf20Sopenharmony_ci [PLL_SEQ_START] = 2, 538c2ecf20Sopenharmony_ci [PLL_LOCK] = 3, 548c2ecf20Sopenharmony_ci}; 558c2ecf20Sopenharmony_ci 568c2ecf20Sopenharmony_ci#define HSPLL_PDIV_MASK 0xF 578c2ecf20Sopenharmony_ci#define HSPLL_PDIV_VAL 0x1 588c2ecf20Sopenharmony_ci 598c2ecf20Sopenharmony_cistatic const u8 u2pll_ctrl[] = { 608c2ecf20Sopenharmony_ci [PLL_RESETB] = 5, 618c2ecf20Sopenharmony_ci [PLL_LOCK] = 6, 628c2ecf20Sopenharmony_ci}; 638c2ecf20Sopenharmony_ci 648c2ecf20Sopenharmony_cienum bcm_usb_phy_ctrl_bits { 658c2ecf20Sopenharmony_ci CORERDY, 668c2ecf20Sopenharmony_ci PHY_RESETB, 678c2ecf20Sopenharmony_ci PHY_PCTL, 688c2ecf20Sopenharmony_ci}; 698c2ecf20Sopenharmony_ci 708c2ecf20Sopenharmony_ci#define PHY_PCTL_MASK 0xffff 718c2ecf20Sopenharmony_ci#define SSPHY_PCTL_VAL 0x0006 728c2ecf20Sopenharmony_ci 738c2ecf20Sopenharmony_cistatic const u8 u3phy_ctrl[] = { 748c2ecf20Sopenharmony_ci [PHY_RESETB] = 1, 758c2ecf20Sopenharmony_ci [PHY_PCTL] = 2, 768c2ecf20Sopenharmony_ci}; 778c2ecf20Sopenharmony_ci 788c2ecf20Sopenharmony_cistatic const u8 u2phy_ctrl[] = { 798c2ecf20Sopenharmony_ci [CORERDY] = 0, 808c2ecf20Sopenharmony_ci [PHY_RESETB] = 5, 818c2ecf20Sopenharmony_ci [PHY_PCTL] = 6, 828c2ecf20Sopenharmony_ci}; 838c2ecf20Sopenharmony_ci 848c2ecf20Sopenharmony_cistruct bcm_usb_phy_cfg { 858c2ecf20Sopenharmony_ci uint32_t type; 868c2ecf20Sopenharmony_ci uint32_t version; 878c2ecf20Sopenharmony_ci void __iomem *regs; 888c2ecf20Sopenharmony_ci struct phy *phy; 898c2ecf20Sopenharmony_ci const u8 *offset; 908c2ecf20Sopenharmony_ci}; 918c2ecf20Sopenharmony_ci 928c2ecf20Sopenharmony_ci#define PLL_LOCK_RETRY_COUNT 1000 938c2ecf20Sopenharmony_ci 948c2ecf20Sopenharmony_cienum bcm_usb_phy_type { 958c2ecf20Sopenharmony_ci USB_HS_PHY, 968c2ecf20Sopenharmony_ci USB_SS_PHY, 978c2ecf20Sopenharmony_ci}; 988c2ecf20Sopenharmony_ci 998c2ecf20Sopenharmony_ci#define NUM_BCM_SR_USB_COMBO_PHYS 2 1008c2ecf20Sopenharmony_ci 1018c2ecf20Sopenharmony_cistatic inline void bcm_usb_reg32_clrbits(void __iomem *addr, uint32_t clear) 1028c2ecf20Sopenharmony_ci{ 1038c2ecf20Sopenharmony_ci writel(readl(addr) & ~clear, addr); 1048c2ecf20Sopenharmony_ci} 1058c2ecf20Sopenharmony_ci 1068c2ecf20Sopenharmony_cistatic inline void bcm_usb_reg32_setbits(void __iomem *addr, uint32_t set) 1078c2ecf20Sopenharmony_ci{ 1088c2ecf20Sopenharmony_ci writel(readl(addr) | set, addr); 1098c2ecf20Sopenharmony_ci} 1108c2ecf20Sopenharmony_ci 1118c2ecf20Sopenharmony_cistatic int bcm_usb_pll_lock_check(void __iomem *addr, u32 bit) 1128c2ecf20Sopenharmony_ci{ 1138c2ecf20Sopenharmony_ci u32 data; 1148c2ecf20Sopenharmony_ci int ret; 1158c2ecf20Sopenharmony_ci 1168c2ecf20Sopenharmony_ci ret = readl_poll_timeout_atomic(addr, data, (data & bit), 1, 1178c2ecf20Sopenharmony_ci PLL_LOCK_RETRY_COUNT); 1188c2ecf20Sopenharmony_ci if (ret) 1198c2ecf20Sopenharmony_ci pr_err("%s: FAIL\n", __func__); 1208c2ecf20Sopenharmony_ci 1218c2ecf20Sopenharmony_ci return ret; 1228c2ecf20Sopenharmony_ci} 1238c2ecf20Sopenharmony_ci 1248c2ecf20Sopenharmony_cistatic int bcm_usb_ss_phy_init(struct bcm_usb_phy_cfg *phy_cfg) 1258c2ecf20Sopenharmony_ci{ 1268c2ecf20Sopenharmony_ci int ret = 0; 1278c2ecf20Sopenharmony_ci void __iomem *regs = phy_cfg->regs; 1288c2ecf20Sopenharmony_ci const u8 *offset; 1298c2ecf20Sopenharmony_ci u32 rd_data; 1308c2ecf20Sopenharmony_ci 1318c2ecf20Sopenharmony_ci offset = phy_cfg->offset; 1328c2ecf20Sopenharmony_ci 1338c2ecf20Sopenharmony_ci /* Set pctl with mode and soft reset */ 1348c2ecf20Sopenharmony_ci rd_data = readl(regs + offset[PHY_CTRL]); 1358c2ecf20Sopenharmony_ci rd_data &= ~(PHY_PCTL_MASK << u3phy_ctrl[PHY_PCTL]); 1368c2ecf20Sopenharmony_ci rd_data |= (SSPHY_PCTL_VAL << u3phy_ctrl[PHY_PCTL]); 1378c2ecf20Sopenharmony_ci writel(rd_data, regs + offset[PHY_CTRL]); 1388c2ecf20Sopenharmony_ci 1398c2ecf20Sopenharmony_ci bcm_usb_reg32_clrbits(regs + offset[PLL_CTRL], 1408c2ecf20Sopenharmony_ci BIT(u3pll_ctrl[SSPLL_SUSPEND_EN])); 1418c2ecf20Sopenharmony_ci bcm_usb_reg32_setbits(regs + offset[PLL_CTRL], 1428c2ecf20Sopenharmony_ci BIT(u3pll_ctrl[PLL_SEQ_START])); 1438c2ecf20Sopenharmony_ci bcm_usb_reg32_setbits(regs + offset[PLL_CTRL], 1448c2ecf20Sopenharmony_ci BIT(u3pll_ctrl[PLL_RESETB])); 1458c2ecf20Sopenharmony_ci 1468c2ecf20Sopenharmony_ci /* Maximum timeout for PLL reset done */ 1478c2ecf20Sopenharmony_ci msleep(30); 1488c2ecf20Sopenharmony_ci 1498c2ecf20Sopenharmony_ci ret = bcm_usb_pll_lock_check(regs + offset[PLL_CTRL], 1508c2ecf20Sopenharmony_ci BIT(u3pll_ctrl[PLL_LOCK])); 1518c2ecf20Sopenharmony_ci 1528c2ecf20Sopenharmony_ci return ret; 1538c2ecf20Sopenharmony_ci} 1548c2ecf20Sopenharmony_ci 1558c2ecf20Sopenharmony_cistatic int bcm_usb_hs_phy_init(struct bcm_usb_phy_cfg *phy_cfg) 1568c2ecf20Sopenharmony_ci{ 1578c2ecf20Sopenharmony_ci int ret = 0; 1588c2ecf20Sopenharmony_ci void __iomem *regs = phy_cfg->regs; 1598c2ecf20Sopenharmony_ci const u8 *offset; 1608c2ecf20Sopenharmony_ci 1618c2ecf20Sopenharmony_ci offset = phy_cfg->offset; 1628c2ecf20Sopenharmony_ci 1638c2ecf20Sopenharmony_ci bcm_usb_reg32_clrbits(regs + offset[PLL_CTRL], 1648c2ecf20Sopenharmony_ci BIT(u2pll_ctrl[PLL_RESETB])); 1658c2ecf20Sopenharmony_ci bcm_usb_reg32_setbits(regs + offset[PLL_CTRL], 1668c2ecf20Sopenharmony_ci BIT(u2pll_ctrl[PLL_RESETB])); 1678c2ecf20Sopenharmony_ci 1688c2ecf20Sopenharmony_ci ret = bcm_usb_pll_lock_check(regs + offset[PLL_CTRL], 1698c2ecf20Sopenharmony_ci BIT(u2pll_ctrl[PLL_LOCK])); 1708c2ecf20Sopenharmony_ci 1718c2ecf20Sopenharmony_ci return ret; 1728c2ecf20Sopenharmony_ci} 1738c2ecf20Sopenharmony_ci 1748c2ecf20Sopenharmony_cistatic int bcm_usb_phy_reset(struct phy *phy) 1758c2ecf20Sopenharmony_ci{ 1768c2ecf20Sopenharmony_ci struct bcm_usb_phy_cfg *phy_cfg = phy_get_drvdata(phy); 1778c2ecf20Sopenharmony_ci void __iomem *regs = phy_cfg->regs; 1788c2ecf20Sopenharmony_ci const u8 *offset; 1798c2ecf20Sopenharmony_ci 1808c2ecf20Sopenharmony_ci offset = phy_cfg->offset; 1818c2ecf20Sopenharmony_ci 1828c2ecf20Sopenharmony_ci if (phy_cfg->type == USB_HS_PHY) { 1838c2ecf20Sopenharmony_ci bcm_usb_reg32_clrbits(regs + offset[PHY_CTRL], 1848c2ecf20Sopenharmony_ci BIT(u2phy_ctrl[CORERDY])); 1858c2ecf20Sopenharmony_ci bcm_usb_reg32_setbits(regs + offset[PHY_CTRL], 1868c2ecf20Sopenharmony_ci BIT(u2phy_ctrl[CORERDY])); 1878c2ecf20Sopenharmony_ci } 1888c2ecf20Sopenharmony_ci 1898c2ecf20Sopenharmony_ci return 0; 1908c2ecf20Sopenharmony_ci} 1918c2ecf20Sopenharmony_ci 1928c2ecf20Sopenharmony_cistatic int bcm_usb_phy_init(struct phy *phy) 1938c2ecf20Sopenharmony_ci{ 1948c2ecf20Sopenharmony_ci struct bcm_usb_phy_cfg *phy_cfg = phy_get_drvdata(phy); 1958c2ecf20Sopenharmony_ci int ret = -EINVAL; 1968c2ecf20Sopenharmony_ci 1978c2ecf20Sopenharmony_ci if (phy_cfg->type == USB_SS_PHY) 1988c2ecf20Sopenharmony_ci ret = bcm_usb_ss_phy_init(phy_cfg); 1998c2ecf20Sopenharmony_ci else if (phy_cfg->type == USB_HS_PHY) 2008c2ecf20Sopenharmony_ci ret = bcm_usb_hs_phy_init(phy_cfg); 2018c2ecf20Sopenharmony_ci 2028c2ecf20Sopenharmony_ci return ret; 2038c2ecf20Sopenharmony_ci} 2048c2ecf20Sopenharmony_ci 2058c2ecf20Sopenharmony_cistatic const struct phy_ops sr_phy_ops = { 2068c2ecf20Sopenharmony_ci .init = bcm_usb_phy_init, 2078c2ecf20Sopenharmony_ci .reset = bcm_usb_phy_reset, 2088c2ecf20Sopenharmony_ci .owner = THIS_MODULE, 2098c2ecf20Sopenharmony_ci}; 2108c2ecf20Sopenharmony_ci 2118c2ecf20Sopenharmony_cistatic struct phy *bcm_usb_phy_xlate(struct device *dev, 2128c2ecf20Sopenharmony_ci struct of_phandle_args *args) 2138c2ecf20Sopenharmony_ci{ 2148c2ecf20Sopenharmony_ci struct bcm_usb_phy_cfg *phy_cfg; 2158c2ecf20Sopenharmony_ci int phy_idx; 2168c2ecf20Sopenharmony_ci 2178c2ecf20Sopenharmony_ci phy_cfg = dev_get_drvdata(dev); 2188c2ecf20Sopenharmony_ci if (!phy_cfg) 2198c2ecf20Sopenharmony_ci return ERR_PTR(-EINVAL); 2208c2ecf20Sopenharmony_ci 2218c2ecf20Sopenharmony_ci if (phy_cfg->version == BCM_SR_USB_COMBO_PHY) { 2228c2ecf20Sopenharmony_ci phy_idx = args->args[0]; 2238c2ecf20Sopenharmony_ci 2248c2ecf20Sopenharmony_ci if (WARN_ON(phy_idx > 1)) 2258c2ecf20Sopenharmony_ci return ERR_PTR(-ENODEV); 2268c2ecf20Sopenharmony_ci 2278c2ecf20Sopenharmony_ci return phy_cfg[phy_idx].phy; 2288c2ecf20Sopenharmony_ci } else 2298c2ecf20Sopenharmony_ci return phy_cfg->phy; 2308c2ecf20Sopenharmony_ci} 2318c2ecf20Sopenharmony_ci 2328c2ecf20Sopenharmony_cistatic int bcm_usb_phy_create(struct device *dev, struct device_node *node, 2338c2ecf20Sopenharmony_ci void __iomem *regs, uint32_t version) 2348c2ecf20Sopenharmony_ci{ 2358c2ecf20Sopenharmony_ci struct bcm_usb_phy_cfg *phy_cfg; 2368c2ecf20Sopenharmony_ci int idx; 2378c2ecf20Sopenharmony_ci 2388c2ecf20Sopenharmony_ci if (version == BCM_SR_USB_COMBO_PHY) { 2398c2ecf20Sopenharmony_ci phy_cfg = devm_kzalloc(dev, NUM_BCM_SR_USB_COMBO_PHYS * 2408c2ecf20Sopenharmony_ci sizeof(struct bcm_usb_phy_cfg), 2418c2ecf20Sopenharmony_ci GFP_KERNEL); 2428c2ecf20Sopenharmony_ci if (!phy_cfg) 2438c2ecf20Sopenharmony_ci return -ENOMEM; 2448c2ecf20Sopenharmony_ci 2458c2ecf20Sopenharmony_ci for (idx = 0; idx < NUM_BCM_SR_USB_COMBO_PHYS; idx++) { 2468c2ecf20Sopenharmony_ci phy_cfg[idx].regs = regs; 2478c2ecf20Sopenharmony_ci phy_cfg[idx].version = version; 2488c2ecf20Sopenharmony_ci if (idx == 0) { 2498c2ecf20Sopenharmony_ci phy_cfg[idx].offset = bcm_usb_combo_phy_hs; 2508c2ecf20Sopenharmony_ci phy_cfg[idx].type = USB_HS_PHY; 2518c2ecf20Sopenharmony_ci } else { 2528c2ecf20Sopenharmony_ci phy_cfg[idx].offset = bcm_usb_combo_phy_ss; 2538c2ecf20Sopenharmony_ci phy_cfg[idx].type = USB_SS_PHY; 2548c2ecf20Sopenharmony_ci } 2558c2ecf20Sopenharmony_ci phy_cfg[idx].phy = devm_phy_create(dev, node, 2568c2ecf20Sopenharmony_ci &sr_phy_ops); 2578c2ecf20Sopenharmony_ci if (IS_ERR(phy_cfg[idx].phy)) 2588c2ecf20Sopenharmony_ci return PTR_ERR(phy_cfg[idx].phy); 2598c2ecf20Sopenharmony_ci 2608c2ecf20Sopenharmony_ci phy_set_drvdata(phy_cfg[idx].phy, &phy_cfg[idx]); 2618c2ecf20Sopenharmony_ci } 2628c2ecf20Sopenharmony_ci } else if (version == BCM_SR_USB_HS_PHY) { 2638c2ecf20Sopenharmony_ci phy_cfg = devm_kzalloc(dev, sizeof(struct bcm_usb_phy_cfg), 2648c2ecf20Sopenharmony_ci GFP_KERNEL); 2658c2ecf20Sopenharmony_ci if (!phy_cfg) 2668c2ecf20Sopenharmony_ci return -ENOMEM; 2678c2ecf20Sopenharmony_ci 2688c2ecf20Sopenharmony_ci phy_cfg->regs = regs; 2698c2ecf20Sopenharmony_ci phy_cfg->version = version; 2708c2ecf20Sopenharmony_ci phy_cfg->offset = bcm_usb_hs_phy; 2718c2ecf20Sopenharmony_ci phy_cfg->type = USB_HS_PHY; 2728c2ecf20Sopenharmony_ci phy_cfg->phy = devm_phy_create(dev, node, &sr_phy_ops); 2738c2ecf20Sopenharmony_ci if (IS_ERR(phy_cfg->phy)) 2748c2ecf20Sopenharmony_ci return PTR_ERR(phy_cfg->phy); 2758c2ecf20Sopenharmony_ci 2768c2ecf20Sopenharmony_ci phy_set_drvdata(phy_cfg->phy, phy_cfg); 2778c2ecf20Sopenharmony_ci } else 2788c2ecf20Sopenharmony_ci return -ENODEV; 2798c2ecf20Sopenharmony_ci 2808c2ecf20Sopenharmony_ci dev_set_drvdata(dev, phy_cfg); 2818c2ecf20Sopenharmony_ci 2828c2ecf20Sopenharmony_ci return 0; 2838c2ecf20Sopenharmony_ci} 2848c2ecf20Sopenharmony_ci 2858c2ecf20Sopenharmony_cistatic const struct of_device_id bcm_usb_phy_of_match[] = { 2868c2ecf20Sopenharmony_ci { 2878c2ecf20Sopenharmony_ci .compatible = "brcm,sr-usb-combo-phy", 2888c2ecf20Sopenharmony_ci .data = (void *)BCM_SR_USB_COMBO_PHY, 2898c2ecf20Sopenharmony_ci }, 2908c2ecf20Sopenharmony_ci { 2918c2ecf20Sopenharmony_ci .compatible = "brcm,sr-usb-hs-phy", 2928c2ecf20Sopenharmony_ci .data = (void *)BCM_SR_USB_HS_PHY, 2938c2ecf20Sopenharmony_ci }, 2948c2ecf20Sopenharmony_ci { /* sentinel */ }, 2958c2ecf20Sopenharmony_ci}; 2968c2ecf20Sopenharmony_ciMODULE_DEVICE_TABLE(of, bcm_usb_phy_of_match); 2978c2ecf20Sopenharmony_ci 2988c2ecf20Sopenharmony_cistatic int bcm_usb_phy_probe(struct platform_device *pdev) 2998c2ecf20Sopenharmony_ci{ 3008c2ecf20Sopenharmony_ci struct device *dev = &pdev->dev; 3018c2ecf20Sopenharmony_ci struct device_node *dn = dev->of_node; 3028c2ecf20Sopenharmony_ci const struct of_device_id *of_id; 3038c2ecf20Sopenharmony_ci struct resource *res; 3048c2ecf20Sopenharmony_ci void __iomem *regs; 3058c2ecf20Sopenharmony_ci int ret; 3068c2ecf20Sopenharmony_ci enum bcm_usb_phy_version version; 3078c2ecf20Sopenharmony_ci struct phy_provider *phy_provider; 3088c2ecf20Sopenharmony_ci 3098c2ecf20Sopenharmony_ci res = platform_get_resource(pdev, IORESOURCE_MEM, 0); 3108c2ecf20Sopenharmony_ci regs = devm_ioremap_resource(dev, res); 3118c2ecf20Sopenharmony_ci if (IS_ERR(regs)) 3128c2ecf20Sopenharmony_ci return PTR_ERR(regs); 3138c2ecf20Sopenharmony_ci 3148c2ecf20Sopenharmony_ci of_id = of_match_node(bcm_usb_phy_of_match, dn); 3158c2ecf20Sopenharmony_ci if (of_id) 3168c2ecf20Sopenharmony_ci version = (enum bcm_usb_phy_version)of_id->data; 3178c2ecf20Sopenharmony_ci else 3188c2ecf20Sopenharmony_ci return -ENODEV; 3198c2ecf20Sopenharmony_ci 3208c2ecf20Sopenharmony_ci ret = bcm_usb_phy_create(dev, dn, regs, version); 3218c2ecf20Sopenharmony_ci if (ret) 3228c2ecf20Sopenharmony_ci return ret; 3238c2ecf20Sopenharmony_ci 3248c2ecf20Sopenharmony_ci phy_provider = devm_of_phy_provider_register(dev, bcm_usb_phy_xlate); 3258c2ecf20Sopenharmony_ci 3268c2ecf20Sopenharmony_ci return PTR_ERR_OR_ZERO(phy_provider); 3278c2ecf20Sopenharmony_ci} 3288c2ecf20Sopenharmony_ci 3298c2ecf20Sopenharmony_cistatic struct platform_driver bcm_usb_phy_driver = { 3308c2ecf20Sopenharmony_ci .driver = { 3318c2ecf20Sopenharmony_ci .name = "phy-bcm-sr-usb", 3328c2ecf20Sopenharmony_ci .of_match_table = bcm_usb_phy_of_match, 3338c2ecf20Sopenharmony_ci }, 3348c2ecf20Sopenharmony_ci .probe = bcm_usb_phy_probe, 3358c2ecf20Sopenharmony_ci}; 3368c2ecf20Sopenharmony_cimodule_platform_driver(bcm_usb_phy_driver); 3378c2ecf20Sopenharmony_ci 3388c2ecf20Sopenharmony_ciMODULE_AUTHOR("Broadcom"); 3398c2ecf20Sopenharmony_ciMODULE_DESCRIPTION("Broadcom stingray USB Phy driver"); 3408c2ecf20Sopenharmony_ciMODULE_LICENSE("GPL v2"); 341