/linux/drivers/usb/common/ |
H A D | ulpi.c | 3 * ulpi.c - USB ULPI PHY bus 10 #include <linux/ulpi/interface.h> 11 #include <linux/ulpi/driver.h> 12 #include <linux/ulpi/regs.h> 23 int ulpi_read(struct ulpi *ulpi, u8 addr) in ulpi_read() argument 25 return ulpi->ops->read(ulpi->dev.parent, addr); in ulpi_read() 29 int ulpi_write(struct ulpi *ulpi, u8 addr, u8 val) in ulpi_write() argument 31 return ulpi->ops->write(ulpi->dev.parent, addr, val); in ulpi_write() 40 struct ulpi *ulpi = to_ulpi_dev(dev); in ulpi_match() local 44 * Some ULPI devices don't have a vendor id in ulpi_match() [all …]
|
H A D | Kconfig | 18 tristate "USB ULPI PHY interface support" 21 UTMI+ Low Pin Interface (ULPI) is specification for a commonly used 22 USB 2.0 PHY interface. The ULPI specification defines a standard set 24 allows ULPI to be handled as a bus. This module is the driver for that 27 The ULPI interfaces (the buses) are registered by the drivers for USB 28 controllers which support ULPI register access and have ULPI PHY 29 attached to them. The ULPI PHY drivers themselves are normal PHY 32 ULPI PHYs provide often functions such as ADP sensing/probing (OTG 36 be called ulpi.
|
/linux/include/linux/ulpi/ |
H A D | driver.h | 12 * struct ulpi - describes ULPI PHY device 13 * @id: vendor and product ids for ULPI device 17 struct ulpi { struct 23 #define to_ulpi_dev(d) container_of(d, struct ulpi, dev) argument 25 static inline void ulpi_set_drvdata(struct ulpi *ulpi, void *data) in ulpi_set_drvdata() argument 27 dev_set_drvdata(&ulpi->dev, data); in ulpi_set_drvdata() 30 static inline void *ulpi_get_drvdata(struct ulpi *ulpi) in ulpi_get_drvdata() argument 32 return dev_get_drvdata(&ulpi->dev); in ulpi_get_drvdata() 36 * struct ulpi_driver - describes a ULPI PHY driver 38 * @probe: binds this driver to ULPI device [all …]
|
H A D | interface.h | 7 struct ulpi; 11 * struct ulpi_ops - ULPI register access 12 * @read: read operation for ULPI register access 13 * @write: write operation for ULPI register access 20 struct ulpi *ulpi_register_interface(struct device *, const struct ulpi_ops *); 21 void ulpi_unregister_interface(struct ulpi *);
|
/linux/drivers/phy/qualcomm/ |
H A D | phy-qcom-usb-hsic.c | 6 #include <linux/ulpi/driver.h> 7 #include <linux/ulpi/regs.h> 18 struct ulpi *ulpi; member 29 struct ulpi *ulpi = uphy->ulpi; in qcom_usb_hsic_phy_power_on() local 46 ret = ulpi_write(ulpi, ULPI_HSIC_IO_CAL, 0xff); in qcom_usb_hsic_phy_power_on() 51 ret = ulpi_write(ulpi, ULPI_HSIC_CFG, 0xa8); in qcom_usb_hsic_phy_power_on() 67 ret = ulpi_write(ulpi, ULPI_SET(ULPI_HSIC_CFG), 0x01); in qcom_usb_hsic_phy_power_on() 72 ret = ulpi_write(ulpi, ULPI_CLR(ULPI_IFC_CTRL), in qcom_usb_hsic_phy_power_on() 104 static int qcom_usb_hsic_phy_probe(struct ulpi *ulpi) in qcom_usb_hsic_phy_probe() argument 110 uphy = devm_kzalloc(&ulpi->dev, sizeof(*uphy), GFP_KERNEL); in qcom_usb_hsic_phy_probe() [all …]
|
H A D | phy-qcom-usb-hs.c | 6 #include <linux/ulpi/driver.h> 7 #include <linux/ulpi/regs.h> 30 struct ulpi *ulpi; member 64 ret = ulpi_write(uphy->ulpi, ULPI_USB_INT_EN_RISE, val); in qcom_usb_hs_phy_set_mode() 67 ret = ulpi_write(uphy->ulpi, ULPI_USB_INT_EN_FALL, val); in qcom_usb_hs_phy_set_mode() 81 ret = ulpi_write(uphy->ulpi, ULPI_SET(ULPI_PWR_CLK_MNG_REG), in qcom_usb_hs_phy_set_mode() 85 ret = ulpi_write(uphy->ulpi, addr, ULPI_MISC_A_VBUSVLDEXTSEL); in qcom_usb_hs_phy_set_mode() 105 return ulpi_write(uphy->ulpi, addr, ULPI_MISC_A_VBUSVLDEXT); in qcom_usb_hs_phy_vbus_notifier() 111 struct ulpi *ulpi = uphy->ulpi; in qcom_usb_hs_phy_power_on() local 145 ret = ulpi_write(ulpi, ULPI_EXT_VENDOR_SPECIFIC + seq->addr, in qcom_usb_hs_phy_power_on() [all …]
|
H A D | Kconfig | 163 Support for the USB high-speed ULPI compliant phy on Qualcomm 177 tristate "Qualcomm USB HSIC ULPI PHY module" 181 Support for the USB HSIC ULPI compliant PHY on QCOM chipsets.
|
/linux/include/linux/phy/ |
H A D | ulpi_phy.h | 5 * Helper that registers PHY for a ULPI device and adds a lookup for binding it 9 *ulpi_phy_create(struct ulpi *ulpi, const struct phy_ops *ops) in ulpi_phy_create() argument 14 phy = phy_create(&ulpi->dev, NULL, ops); in ulpi_phy_create() 18 ret = phy_create_lookup(phy, "usb2-phy", dev_name(ulpi->dev.parent)); in ulpi_phy_create() 28 static inline void ulpi_phy_destroy(struct ulpi *ulpi, struct phy *phy) in ulpi_phy_destroy() argument 30 phy_remove_lookup(phy, "usb2-phy", dev_name(ulpi->dev.parent)); in ulpi_phy_destroy()
|
/linux/drivers/usb/dwc3/ |
H A D | ulpi.c | 3 * ulpi.c - DesignWare USB3 Controller's ULPI PHY interface 12 #include <linux/ulpi/regs.h> 89 dwc->ulpi = ulpi_register_interface(dwc->dev, &dwc3_ulpi_ops); in dwc3_ulpi_init() 90 if (IS_ERR(dwc->ulpi)) { in dwc3_ulpi_init() 91 dev_err(dwc->dev, "failed to register ULPI interface"); in dwc3_ulpi_init() 92 return PTR_ERR(dwc->ulpi); in dwc3_ulpi_init() 100 if (dwc->ulpi) { in dwc3_ulpi_exit() 101 ulpi_unregister_interface(dwc->ulpi); in dwc3_ulpi_exit() 102 dwc->ulpi = NULL; in dwc3_ulpi_exit()
|
/linux/drivers/usb/phy/ |
H A D | phy-ulpi.c | 3 * Generic ULPI USB transceiver support 18 #include <linux/usb/ulpi.h> 33 /* ULPI hardcoded IDs, used for probing */ 51 * ULPI Specification rev.1.1 default in ulpi_set_otg_flags() 71 * ULPI Specification rev.1.1 default in ulpi_set_fc_flags() 87 * ULPI Specification rev.1.1 default in ulpi_set_fc_flags() 100 * ULPI Specification rev.1.1 default in ulpi_set_fc_flags() 157 pr_err("ULPI integrity check: failed!"); in ulpi_check_integrity() 163 pr_info("ULPI integrity check: passed.\n"); in ulpi_check_integrity() 182 pr_info("ULPI transceiver vendor/product ID 0x%04x/0x%04x\n", vid, pid); in ulpi_init() [all …]
|
H A D | Kconfig | 162 bool "Generic ULPI Transceiver Driver" 166 Enable this to support ULPI connected USB OTG transceivers which 172 Provides read/write operations to the ULPI phy register set for
|
H A D | Makefile | 23 obj-$(CONFIG_USB_ULPI) += phy-ulpi.o 24 obj-$(CONFIG_USB_ULPI_VIEWPORT) += phy-ulpi-viewport.o
|
/linux/Documentation/devicetree/bindings/usb/ |
H A D | ulpi.txt | 1 ULPI bus binding 4 Phys that are behind a ULPI connection can be described with the following 5 binding. The host controller shall have a "ulpi" named node as a child, and 6 that node shall have one enabled node underneath it representing the ulpi 15 ulpi {
|
H A D | fsl,usb2.yaml | 38 enum: [ulpi, serial, utmi, utmi_wide] 81 phy_type = "ulpi"; 94 phy_type = "ulpi";
|
/linux/drivers/phy/ti/ |
H A D | phy-tusb1210.c | 3 * tusb1210.c - TUSB1210 USB ULPI PHY driver 12 #include <linux/ulpi/driver.h> 13 #include <linux/ulpi/regs.h> 436 struct ulpi *ulpi = to_ulpi_dev(dev); in tusb1210_probe_charger_detect() local 442 if (ulpi->id.product != TI_DEVICE_TUSB1211) { in tusb1210_probe_charger_detect() 488 static int tusb1210_probe(struct ulpi *ulpi) in tusb1210_probe() argument 490 struct device *dev = &ulpi->dev; in tusb1210_probe() 542 tusb->phy = ulpi_phy_create(ulpi, &phy_ops); in tusb1210_probe() 549 ulpi_set_drvdata(ulpi, tusb); in tusb1210_probe() 557 static void tusb1210_remove(struct ulpi *ulpi) in tusb1210_remove() argument [all …]
|
/linux/drivers/phy/tegra/ |
H A D | xusb-tegra124.c | 672 TEGRA124_LANE("ulpi-0", 0x004, 12, 0x1, ulpi), 679 struct tegra_xusb_ulpi_lane *ulpi; in tegra124_ulpi_lane_probe() local 682 ulpi = kzalloc(sizeof(*ulpi), GFP_KERNEL); in tegra124_ulpi_lane_probe() 683 if (!ulpi) in tegra124_ulpi_lane_probe() 686 INIT_LIST_HEAD(&ulpi->base.list); in tegra124_ulpi_lane_probe() 687 ulpi->base.soc = &pad->soc->lanes[index]; in tegra124_ulpi_lane_probe() 688 ulpi->base.index = index; in tegra124_ulpi_lane_probe() 689 ulpi->base.pad = pad; in tegra124_ulpi_lane_probe() 690 ulpi->base.np = np; in tegra124_ulpi_lane_probe() 692 err = tegra_xusb_lane_parse_dt(&ulpi->base, np); in tegra124_ulpi_lane_probe() [all …]
|
/linux/include/linux/mfd/ |
H A D | motorola-cpcap.h | 159 #define CPCAP_REG_UVIDL 0x0e0c /* ULPI Vendor ID Low */ 160 #define CPCAP_REG_UVIDH 0x0e10 /* ULPI Vendor ID High */ 161 #define CPCAP_REG_UPIDL 0x0e14 /* ULPI Product ID Low */ 162 #define CPCAP_REG_UPIDH 0x0e18 /* ULPI Product ID High */ 163 #define CPCAP_REG_UFC1 0x0e1c /* ULPI Function Control 1 */ 164 #define CPCAP_REG_UFC2 0x0e20 /* ULPI Function Control 2 */ 165 #define CPCAP_REG_UFC3 0x0e24 /* ULPI Function Control 3 */ 166 #define CPCAP_REG_UIC1 0x0e28 /* ULPI Interface Control 1 */ 167 #define CPCAP_REG_UIC2 0x0e2c /* ULPI Interface Control 2 */ 168 #define CPCAP_REG_UIC3 0x0e30 /* ULPI Interface Control 3 */
|
/linux/Documentation/devicetree/bindings/phy/ |
H A D | nvidia,tegra20-usb-phy.yaml | 45 - description: ULPI PHY clock 67 - const: ulpi-link 105 enum: [utmi, ulpi, hsic] 293 const: ulpi 317 - const: ulpi-link 364 phy_type = "ulpi"; 368 clock-names = "reg", "pll_u", "ulpi-link";
|
H A D | nvidia,tegra124-xusb-padctl.yaml | 23 or high-speed USB (such as UTMI, ULPI and HSIC). The XUSB pad controller 145 ulpi: 153 ulpi-0: 434 ulpi-0: 555 ulpi { 557 ulpi-0 { 634 ulpi-0 {
|
/linux/include/linux/usb/ |
H A D | ulpi.h | 3 * ulpi.h -- ULPI defines and function prorotypes 12 #include <linux/ulpi/regs.h> 17 * ULPI Flags
|
/linux/arch/powerpc/platforms/83xx/ |
H A D | usb_831x.c | 57 /* Configure pin mux for ULPI. There is no pin mux for UTMI */ in mpc831x_usb_cfg() 58 if (prop && !strcmp(prop, "ulpi")) { in mpc831x_usb_cfg() 107 } else if (prop && !strcmp(prop, "ulpi")) { in mpc831x_usb_cfg() 108 /* Set PHY_CLK_SEL to ULPI */ in mpc831x_usb_cfg()
|
H A D | usb_837x.c | 34 if (!prop || (strcmp(prop, "ulpi") && strcmp(prop, "serial"))) { in mpc837x_usb_cfg() 51 /* Configure pin mux for ULPI/serial */ in mpc837x_usb_cfg()
|
/linux/drivers/usb/chipidea/ |
H A D | ci_hdrc_imx.h | 23 unsigned int ulpi:1; /* connected to an ULPI phy */ member
|
/linux/arch/arm/boot/dts/nvidia/ |
H A D | tegra124-apalis-v1.2.dtsi | 527 ulpi-clk-py0 { 534 ulpi-dir-py1 { 541 ulpi-nxt-py2 { 548 ulpi-stp-py3 { 869 ulpi-data5-po6 { 871 nvidia,function = "ulpi"; 887 ulpi-data4-po5 { 889 nvidia,function = "ulpi"; 1297 ulpi-data7-po0 { /* NC */ 1299 nvidia,function = "ulpi"; [all …]
|
H A D | tegra124-apalis.dtsi | 524 ulpi-clk-py0 { 531 ulpi-dir-py1 { 538 ulpi-nxt-py2 { 545 ulpi-stp-py3 { 866 ulpi-data5-po6 { 868 nvidia,function = "ulpi"; 884 ulpi-data4-po5 { 886 nvidia,function = "ulpi"; 1294 ulpi-data7-po0 { /* NC */ 1296 nvidia,function = "ulpi"; [all …]
|