Home
last modified time | relevance | path

Searched full:ulpi (Results 1 – 25 of 182) sorted by relevance

12345678

/linux/drivers/usb/common/
H A Dulpi.c3 * 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 DKconfig18 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 Ddriver.h12 * 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 Dinterface.h7 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 Dphy-qcom-usb-hsic.c6 #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 Dphy-qcom-usb-hs.c6 #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 …]
/linux/include/linux/phy/
H A Dulpi_phy.h5 * 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 Dulpi.c3 * 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 Dphy-ulpi.c3 * 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 DKconfig162 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 DMakefile23 obj-$(CONFIG_USB_ULPI) += phy-ulpi.o
24 obj-$(CONFIG_USB_ULPI_VIEWPORT) += phy-ulpi-viewport.o
/linux/Documentation/devicetree/bindings/usb/
H A Dulpi.txt1 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 Dfsl,usb2.yaml38 enum: [ulpi, serial, utmi, utmi_wide]
81 phy_type = "ulpi";
94 phy_type = "ulpi";
/linux/drivers/phy/tegra/
H A Dxusb-tegra124.c672 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 …]
H A Dxusb.c294 if (strcmp(soc->name, "ulpi") == 0) in tegra_xusb_pad_create()
295 padctl->ulpi = pad; in tegra_xusb_pad_create()
843 static int tegra_xusb_ulpi_port_parse_dt(struct tegra_xusb_ulpi_port *ulpi) in tegra_xusb_ulpi_port_parse_dt() argument
845 struct tegra_xusb_port *port = &ulpi->base; in tegra_xusb_ulpi_port_parse_dt()
848 ulpi->internal = of_property_read_bool(np, "nvidia,internal"); in tegra_xusb_ulpi_port_parse_dt()
856 struct tegra_xusb_ulpi_port *ulpi; in tegra_xusb_add_ulpi_port() local
860 np = tegra_xusb_find_port_node(padctl, "ulpi", index); in tegra_xusb_add_ulpi_port()
864 ulpi = kzalloc(sizeof(*ulpi), GFP_KERNEL); in tegra_xusb_add_ulpi_port()
865 if (!ulpi) { in tegra_xusb_add_ulpi_port()
870 err = tegra_xusb_port_init(&ulpi->base, padctl, np, "ulpi", index); in tegra_xusb_add_ulpi_port()
[all …]
/linux/include/linux/mfd/
H A Dmotorola-cpcap.h159 #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 Dnvidia,tegra20-usb-phy.yaml45 - 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 Dnvidia,tegra124-xusb-padctl.yaml23 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 Dulpi.h3 * ulpi.h -- ULPI defines and function prorotypes
12 #include <linux/ulpi/regs.h>
17 * ULPI Flags
/linux/arch/powerpc/platforms/83xx/
H A Dusb_831x.c57 /* 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 Dusb_837x.c34 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 Dci_hdrc_imx.h23 unsigned int ulpi:1; /* connected to an ULPI phy */ member
H A Dci.h20 #include <linux/ulpi/interface.h>
199 * @ulpi: pointer to ULPI device, if any
200 * @ulpi_ops: ULPI read/write ops for this device
253 struct ulpi *ulpi; member
/linux/arch/arm/boot/dts/nvidia/
H A Dtegra124-apalis-v1.2.dtsi527 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 Dtegra124-apalis.dtsi524 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 …]

12345678