Lines Matching +full:keystone +full:- +full:dwc3
1 // SPDX-License-Identifier: GPL-2.0+
3 * phy-keystone - USB PHY, talking to dwc3 controller in Keystone.
5 * Copyright (C) 2013 Texas Instruments Incorporated - https://www.ti.com
7 * Author: WingMan Kwok <w-kwok2@ti.com>
16 #include "phy-generic.h"
46 struct keystone_usbphy *k_phy = dev_get_drvdata(phy->dev); in keystone_usbphy_init()
49 val = keystone_usbphy_readl(k_phy->phy_ctrl, USB_PHY_CTL_CLOCK); in keystone_usbphy_init()
50 keystone_usbphy_writel(k_phy->phy_ctrl, USB_PHY_CTL_CLOCK, in keystone_usbphy_init()
57 struct keystone_usbphy *k_phy = dev_get_drvdata(phy->dev); in keystone_usbphy_shutdown()
60 val = keystone_usbphy_readl(k_phy->phy_ctrl, USB_PHY_CTL_CLOCK); in keystone_usbphy_shutdown()
61 keystone_usbphy_writel(k_phy->phy_ctrl, USB_PHY_CTL_CLOCK, in keystone_usbphy_shutdown()
67 struct device *dev = &pdev->dev; in keystone_usbphy_probe()
73 return -ENOMEM; in keystone_usbphy_probe()
75 k_phy->phy_ctrl = devm_platform_ioremap_resource(pdev, 0); in keystone_usbphy_probe()
76 if (IS_ERR(k_phy->phy_ctrl)) in keystone_usbphy_probe()
77 return PTR_ERR(k_phy->phy_ctrl); in keystone_usbphy_probe()
79 ret = usb_phy_gen_create_phy(dev, &k_phy->usb_phy_gen); in keystone_usbphy_probe()
83 k_phy->usb_phy_gen.phy.init = keystone_usbphy_init; in keystone_usbphy_probe()
84 k_phy->usb_phy_gen.phy.shutdown = keystone_usbphy_shutdown; in keystone_usbphy_probe()
88 return usb_add_phy_dev(&k_phy->usb_phy_gen.phy); in keystone_usbphy_probe()
95 usb_remove_phy(&k_phy->usb_phy_gen.phy); in keystone_usbphy_remove()
99 { .compatible = "ti,keystone-usbphy" },
108 .name = "keystone-usbphy",
115 MODULE_ALIAS("platform:keystone-usbphy");
117 MODULE_DESCRIPTION("Keystone USB phy driver");