/linux-master/drivers/extcon/ |
H A D | Makefile | 3 # Makefile for external connector class (extcon) devices 6 obj-$(CONFIG_EXTCON) += extcon-core.o 7 extcon-core-objs += extcon.o devres.o 8 obj-$(CONFIG_EXTCON_ADC_JACK) += extcon-adc-jack.o 9 obj-$(CONFIG_EXTCON_AXP288) += extcon-axp288.o 10 obj-$(CONFIG_EXTCON_FSA9480) += extcon-fsa9480.o 11 obj-$(CONFIG_EXTCON_GPIO) += extcon-gpio.o 12 obj-$(CONFIG_EXTCON_INTEL_INT3496) += extcon-intel-int3496.o 13 obj-$(CONFIG_EXTCON_INTEL_CHT_WC) += extcon [all...] |
H A D | extcon.h | 5 #include <linux/extcon-provider.h> 8 * struct extcon_dev - An extcon device represents one external connector. 9 * @name: The name of this extcon device. Parent device name is 22 * @dev: Device of this extcon. 23 * @id: Unique device ID of this extcon. 24 * @state: Attach/detach state of this extcon. Do not provide at 27 * external connectors from this extcon. 28 * @nh: Notifier for the state change events from this extcon 29 * @entry: To support list of extcon devices so that users can 30 * search for extcon device [all...] |
H A D | extcon-adc-jack.c | 3 * drivers/extcon/extcon-adc-jack.c 5 * Analog Jack extcon driver with ADC-based detection capability. 24 #include <linux/extcon/extcon-adc-jack.h> 25 #include <linux/extcon-provider.h> 29 * @edev: extcon device. 34 * @handling_delay: interrupt handler will schedule extcon event 36 * @handler: extcon event handler called by interrupt handler. 113 dev_err(&pdev->dev, "failed to allocate extcon devic [all...] |
H A D | extcon-gpio.c | 3 * extcon_gpio.c - Single-state GPIO extcon driver based on extcon class 8 * Modified by MyungJoo Ham <myungjoo.ham@samsung.com> to support extcon 13 #include <linux/extcon-provider.h> 24 * struct gpio_extcon_data - A simple GPIO-controlled extcon device state container. 80 * is necessary to register the extcon device. But, it's not yet 81 * developed to get the extcon id from device-tree or others. 87 data->gpiod = devm_gpiod_get(dev, "extcon", GPIOD_IN); 105 /* Allocate the memory of extcon devie and register extcon devic [all...] |
H A D | extcon-max3355.c | 3 * Maxim Integrated MAX3355 USB OTG chip extcon driver 9 #include <linux/extcon-provider.h> 81 dev_err(&pdev->dev, "failed to allocate extcon device\n"); 87 dev_err(&pdev->dev, "failed to register extcon device\n"); 134 .name = "extcon-max3355", 142 MODULE_DESCRIPTION("Maxim MAX3355 extcon driver");
|
H A D | extcon-intel-int3496.c | 3 * Intel INT3496 ACPI device extcon driver 15 #include <linux/extcon-provider.h> 161 /* register extcon device */ 168 dev_err(dev, "can't register extcon device: %d\n", ret); 216 MODULE_DESCRIPTION("Intel INT3496 ACPI device extcon driver");
|
H A D | extcon-qcom-spmi-misc.c | 3 * extcon-qcom-spmi-misc.c - Qualcomm USB extcon driver to support USB ID 4 * and VBUS detection based on extcon-usb-gpio.c. 11 #include <linux/extcon-provider.h> 99 dev_err(dev, "failed to allocate extcon device\n"); 105 dev_err(dev, "failed to register extcon device\n"); 114 dev_err(dev, "failed to register extcon props rc=%d\n", 210 .name = "extcon-pm8941-misc", 217 MODULE_DESCRIPTION("QCOM USB ID extcon driver");
|
H A D | extcon-intel-mrfld.c | 3 * extcon driver for Basin Cove PMIC 9 #include <linux/extcon-provider.h> 18 #include "extcon-intel.h" 221 dev_err(dev, "can't register extcon device: %d\n", ret); 292 MODULE_DESCRIPTION("extcon driver for Intel Merrifield Basin Cove PMIC");
|
H A D | extcon-usb-gpio.c | 3 * drivers/extcon/extcon-usb-gpio.c - USB GPIO extcon driver 9 #include <linux/extcon-provider.h> 129 dev_err(dev, "failed to allocate extcon device\n"); 135 dev_err(dev, "failed to register extcon device\n"); 271 { .compatible = "linux,extcon-usb-gpio", }, 277 { .name = "extcon-usb-gpio", }, 286 .name = "extcon-usb-gpio", 296 MODULE_DESCRIPTION("USB GPIO extcon drive [all...] |
/linux-master/drivers/usb/phy/ |
H A D | phy-omap-otg.c | 14 #include <linux/extcon.h> 25 struct extcon_dev *extcon; member in struct:otg_device 90 struct extcon_dev *extcon; local 94 if (!config || !config->extcon) 97 extcon = extcon_get_extcon_dev(config->extcon); 98 if (IS_ERR(extcon)) 99 return PTR_ERR(extcon); 109 otg_dev->extcon = extcon; [all...] |
H A D | phy-tahvo.c | 18 #include <linux/extcon-provider.h> 52 struct extcon_dev *extcon; member in struct:tahvo_usb 116 extcon_set_state_sync(tu->extcon, EXTCON_USB, tu->vbus_state); 125 extcon_set_state_sync(tu->extcon, EXTCON_USB_HOST, true); 144 extcon_set_state_sync(tu->extcon, EXTCON_USB_HOST, false); 353 tu->extcon = devm_extcon_dev_allocate(&pdev->dev, tahvo_cable); 354 if (IS_ERR(tu->extcon)) { 355 dev_err(&pdev->dev, "failed to allocate memory for extcon\n"); 356 ret = PTR_ERR(tu->extcon); 360 ret = devm_extcon_dev_register(&pdev->dev, tu->extcon); [all...] |
/linux-master/include/linux/extcon/ |
H A D | extcon-adc-jack.h | 3 * include/linux/extcon/extcon-adc-jack.h 5 * Analog Jack extcon driver with ADC-based detection capability. 15 #include <linux/extcon.h> 18 * struct adc_jack_cond - condition to use an extcon state 39 * @name: name of the extcon device. If null, "adc-jack" is used. 43 * @cable_names: array of extcon id for supported cables. 46 * adc values into extcon state. 52 * @wakeup_source: flag to wake up the system for extcon events.
|
/linux-master/include/linux/platform_data/ |
H A D | usb-omap1.h | 26 const char *extcon; /* extcon device for OTG */ member in struct:omap_usb_config
|
/linux-master/include/linux/power/ |
H A D | charger-manager.h | 17 #include <linux/extcon.h> 42 * @extcon_name: the name of extcon device. 44 * @extcon_dev: the extcon device.
|
/linux-master/drivers/net/phy/ |
H A D | vitesse.c | 86 int extcon; local 88 extcon = phy_read(phydev, MII_VSC8244_EXT_CON1); 90 if (extcon < 0) 91 return extcon; 93 extcon &= ~(MII_VSC8244_EXTCON1_TX_SKEW_MASK | 96 extcon |= (MII_VSC8244_EXTCON1_TX_SKEW | 99 err = phy_write(phydev, MII_VSC8244_EXT_CON1, extcon);
|
/linux-master/drivers/phy/renesas/ |
H A D | phy-rcar-gen3-usb2.c | 12 #include <linux/extcon-provider.h> 111 struct extcon_dev *extcon; member in struct:rcar_gen3_chan 147 extcon_set_state_sync(ch->extcon, EXTCON_USB_HOST, true); 148 extcon_set_state_sync(ch->extcon, EXTCON_USB, false); 150 extcon_set_state_sync(ch->extcon, EXTCON_USB_HOST, false); 151 extcon_set_state_sync(ch->extcon, EXTCON_USB, true); 679 channel->extcon = devm_extcon_dev_allocate(dev, 681 if (IS_ERR(channel->extcon)) 682 return PTR_ERR(channel->extcon); 684 ret = devm_extcon_dev_register(dev, channel->extcon); [all...] |
/linux-master/include/linux/ |
H A D | extcon-provider.h | 3 * External Connector (extcon) framework 4 * - linux/include/linux/extcon-provider.h for extcon provider device driver. 13 #include <linux/extcon.h> 19 /* Following APIs register/unregister the extcon device. */ 27 /* Following APIs allocate/free the memory of the extcon device. */ 49 * and the 'prop' indicates the extcon property.
|
/linux-master/drivers/gpu/drm/rockchip/ |
H A D | cdn-dp-core.h | 58 struct extcon_dev *extcon; member in struct:cdn_dp_port
|
H A D | cdn-dp-core.c | 9 #include <linux/extcon.h> 152 struct extcon_dev *edev = port->extcon; 220 if (!extcon_get_state(port->extcon, EXTCON_DISP_DP)) 418 ret = extcon_get_property(port->extcon, EXTCON_DISP_DP, 1097 ret = devm_extcon_register_notifier(dp->dev, port->extcon, 1177 struct extcon_dev *extcon; local 1191 extcon = extcon_get_edev_by_phandle(dev, i); 1194 if (PTR_ERR(extcon) == -EPROBE_DEFER || 1198 if (IS_ERR(extcon) || IS_ERR(phy)) 1205 port->extcon [all...] |
/linux-master/include/linux/usb/ |
H A D | chipidea.h | 9 #include <linux/extcon.h> 17 * @changed: set to true when extcon event happen 84 /* VBUS and ID signal state tracking, using extcon framework */
|
/linux-master/drivers/phy/allwinner/ |
H A D | phy-sun4i-usb.c | 18 #include <linux/extcon-provider.h> 130 struct extcon_dev *extcon; member in struct:sun4i_usb_phy_data 635 extcon_set_state_sync(data->extcon, EXTCON_USB_HOST, 655 extcon_set_state_sync(data->extcon, EXTCON_USB, vbus_det); 771 data->extcon = devm_extcon_dev_allocate(dev, sun4i_usb_phy0_cable); 772 if (IS_ERR(data->extcon)) { 773 dev_err(dev, "Couldn't allocate our extcon device\n"); 774 return PTR_ERR(data->extcon); 777 ret = devm_extcon_dev_register(dev, data->extcon); 779 dev_err(dev, "failed to register extcon [all...] |
/linux-master/drivers/phy/rockchip/ |
H A D | phy-rockchip-typec.c | 16 * This driver gets extcon cable state and property, then decides which mode to 42 #include <linux/extcon.h> 374 struct extcon_dev *extcon; member in struct:rockchip_typec_phy 808 struct extcon_dev *edev = tcphy->extcon; 1150 tcphy->extcon = extcon_get_edev_by_phandle(dev, 0); 1151 if (IS_ERR(tcphy->extcon)) { 1152 if (PTR_ERR(tcphy->extcon) == -ENODEV) { 1153 tcphy->extcon = NULL; 1155 if (PTR_ERR(tcphy->extcon) != -EPROBE_DEFER) 1156 dev_err(dev, "Invalid or missing extcon\ [all...] |
/linux-master/drivers/usb/musb/ |
H A D | sunxi.c | 13 #include <linux/extcon.h> 92 struct extcon_dev *extcon; member in struct:sunxi_glue 250 ret = devm_extcon_register_notifier(glue->dev, glue->extcon, 756 glue->extcon = extcon_get_edev_by_phandle(&pdev->dev, 0); 757 if (IS_ERR(glue->extcon)) 758 return dev_err_probe(&pdev->dev, PTR_ERR(glue->extcon), 759 "Invalid or missing extcon\n");
|
/linux-master/drivers/usb/typec/tcpm/ |
H A D | fusb302.c | 11 #include <linux/extcon.h> 87 struct extcon_dev *extcon; member in struct:fusb302_chip 443 if (!chip->extcon) 452 if (extcon_get_state(chip->extcon, EXTCON_CHG_USB_SDP) == 1) 455 if (extcon_get_state(chip->extcon, EXTCON_CHG_USB_CDP) == 1 || 456 extcon_get_state(chip->extcon, EXTCON_CHG_USB_ACA) == 1) 459 if (extcon_get_state(chip->extcon, EXTCON_CHG_USB_DCP) == 1) 1702 * Devicetree platforms should get extcon via phandle (not yet 1708 if (device_property_read_string(dev, "linux,extcon-name", &name) == 0) { 1709 chip->extcon [all...] |
/linux-master/drivers/usb/renesas_usbhs/ |
H A D | common.h | 13 #include <linux/extcon.h>
|