/openbmc/linux/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-intel-cht-wc.o 14 obj-$(CONFIG_EXTCON_INTEL_MRFLD) += extcon-intel-mrfld.o [all …]
|
H A D | Kconfig | 2 menuconfig EXTCON config 3 tristate "External Connector Class (extcon) support" 5 Say Y here to enable external connector class (extcon) support. 8 multiple states; i.e., an extcon that may have multiple 14 if EXTCON 16 comment "Extcon Device Drivers" 19 tristate "ADC Jack extcon support" 22 Say Y here to enable extcon device driver based on ADC values. 25 tristate "X-Power AXP288 EXTCON support" 33 tristate "FSA9480 EXTCON Support" [all …]
|
H A D | devres.c | 3 * drivers/extcon/devres.c - EXTCON device's resource management 9 #include "extcon.h" 53 * devm_extcon_dev_allocate - Allocate managed extcon device 54 * @dev: the device owning the extcon device being created 58 * This function manages automatically the memory of extcon device using device 59 * resource management and simplify the control of freeing the memory of extcon 91 * @dev: the device owning the extcon device being created 92 * @edev: the extcon device to be freed 106 * @dev: the device owning the extcon device being created 107 * @edev: the extcon device to be registered [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 devices based on the extcon name. [all …]
|
H A D | extcon.c | 3 * drivers/extcon/extcon.c - External Connector (extcon) framework. 28 #include "extcon.h" 204 * @edev: the extcon device 270 /* Find the index of extcon cable in edev->supported_cable */ in find_cable_index_by_id() 316 /* Check whether a specific extcon id supports the property or not. */ in is_extcon_property_supported() 421 * @edev: the extcon device 505 * @edev: the extcon device 532 * @edev: the extcon device 568 * Initialize the value of extcon property before setting in extcon_set_state() 588 * @edev: the extcon device [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. 25 * @edev: Extcon device. 80 * is necessary to register the extcon device. But, it's not yet in gpio_extcon_probe() 81 * developed to get the extcon id from device-tree or others. in gpio_extcon_probe() 87 data->gpiod = devm_gpiod_get(dev, "extcon", GPIOD_IN); in gpio_extcon_probe() 105 /* Allocate the memory of extcon devie and register extcon device */ in gpio_extcon_probe() 108 dev_err(dev, "failed to allocate extcon device\n"); in gpio_extcon_probe() [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 device\n"); in adc_jack_probe() 209 MODULE_DESCRIPTION("ADC Jack 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"); in qcom_usb_extcon_probe() 105 dev_err(dev, "failed to register extcon device\n"); in qcom_usb_extcon_probe() 114 dev_err(dev, "failed to register extcon props rc=%d\n", in qcom_usb_extcon_probe() 210 .name = "extcon-pm8941-misc", 217 MODULE_DESCRIPTION("QCOM USB ID extcon driver");
|
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"); in usb_extcon_probe() 135 dev_err(dev, "failed to register extcon device\n"); in usb_extcon_probe() 271 { .compatible = "linux,extcon-usb-gpio", }, 277 { .name = "extcon-usb-gpio", }, 286 .name = "extcon-usb-gpio", 296 MODULE_DESCRIPTION("USB GPIO extcon driver");
|
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"); in max3355_probe() 87 dev_err(&pdev->dev, "failed to register extcon device\n"); in max3355_probe() 134 .name = "extcon-max3355", 142 MODULE_DESCRIPTION("Maxim MAX3355 extcon driver");
|
H A D | extcon-ptn5150.c | 3 // extcon-ptn5150.c - PTN5150 CC logic extcon driver to support USB detection 5 // Based on extcon-sm5502.c driver 18 #include <linux/extcon-provider.h> 288 /* Allocate extcon device */ in ptn5150_i2c_probe() 291 dev_err(info->dev, "failed to allocate memory for extcon\n"); in ptn5150_i2c_probe() 295 /* Register extcon device */ in ptn5150_i2c_probe() 298 dev_err(info->dev, "failed to register extcon device\n"); in ptn5150_i2c_probe() 324 * Update current extcon state if for example OTG connection was there in ptn5150_i2c_probe() 356 MODULE_DESCRIPTION("NXP PTN5150 CC logic Extcon driver");
|
/openbmc/linux/Documentation/ABI/testing/ |
H A D | sysfs-class-extcon | 1 What: /sys/class/extcon/.../ 5 Provide a place in sysfs for the extcon objects. 6 This allows accessing extcon specific variables. 7 The name of extcon object denoted as ... is the name given 10 One extcon device denotes a single external connector 22 What: /sys/class/extcon/.../name 26 The /sys/class/extcon/.../name shows the name of the extcon 27 object. If the extcon object has an optional callback 31 What: /sys/class/extcon/.../state 35 The /sys/class/extcon/.../state shows and stores the cable [all …]
|
/openbmc/linux/drivers/usb/phy/ |
H A D | phy-omap-otg.c | 14 #include <linux/extcon.h> 25 struct extcon_dev *extcon; member 90 struct extcon_dev *extcon; in omap_otg_probe() local 94 if (!config || !config->extcon) in omap_otg_probe() 97 extcon = extcon_get_extcon_dev(config->extcon); in omap_otg_probe() 98 if (IS_ERR(extcon)) in omap_otg_probe() 99 return PTR_ERR(extcon); in omap_otg_probe() 109 otg_dev->extcon = extcon; in omap_otg_probe() 113 ret = devm_extcon_register_notifier(&pdev->dev, extcon, in omap_otg_probe() 118 ret = devm_extcon_register_notifier(&pdev->dev, extcon, in omap_otg_probe() [all …]
|
H A D | phy-tahvo.c | 18 #include <linux/extcon-provider.h> 52 struct extcon_dev *extcon; member 116 extcon_set_state_sync(tu->extcon, EXTCON_USB, tu->vbus_state); in check_vbus_state() 125 extcon_set_state_sync(tu->extcon, EXTCON_USB_HOST, true); in tahvo_usb_become_host() 144 extcon_set_state_sync(tu->extcon, EXTCON_USB_HOST, false); in tahvo_usb_become_peripheral() 353 tu->extcon = devm_extcon_dev_allocate(&pdev->dev, tahvo_cable); in tahvo_usb_probe() 354 if (IS_ERR(tu->extcon)) { in tahvo_usb_probe() 355 dev_err(&pdev->dev, "failed to allocate memory for extcon\n"); in tahvo_usb_probe() 356 ret = PTR_ERR(tu->extcon); in tahvo_usb_probe() 360 ret = devm_extcon_dev_register(&pdev->dev, tu->extcon); in tahvo_usb_probe() [all …]
|
/openbmc/linux/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.
|
/openbmc/linux/Documentation/devicetree/bindings/extcon/ |
H A D | extcon-usb-gpio.txt | 1 USB GPIO Extcon device 7 - compatible: Should be "linux,extcon-usb-gpio" 13 Example: Examples of extcon-usb-gpio node in dra7-evm.dts as listed below: 15 compatible = "linux,extcon-usb-gpio"; 20 extcon = <&extcon_usb1>;
|
H A D | extcon-usbc-cros-ec.yaml | 4 $id: http://devicetree.org/schemas/extcon/extcon-usbc-cros-ec.yaml# 21 const: google,extcon-usbc-cros-ec 46 compatible = "google,extcon-usbc-cros-ec"; 51 compatible = "google,extcon-usbc-cros-ec";
|
/openbmc/linux/drivers/phy/qualcomm/ |
H A D | Kconfig | 160 depends on EXTCON || !EXTCON # if EXTCON=m, this cannot be built-in 186 depends on EXTCON || !EXTCON # if EXTCON=m, this cannot be built-in 197 depends on EXTCON || !EXTCON # if EXTCON=m, this cannot be built-in
|
/openbmc/linux/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.
|
H A D | extcon.h | 3 * External Connector (extcon) framework 4 * - linux/include/linux/extcon.h for extcon consumer device driver. 92 * When adding the new extcon property, they *must* have 96 * for each extcon type. 180 * and the 'prop' indicates the extcon property. 197 * for specific external connector of the extcon. 199 * for all supported external connectors of the extcon. 224 * Following APIs get the extcon_dev from devicetree or by through extcon name. 231 /* Following API get the name of extcon device. */ 322 * Following structure and API are deprecated. EXTCON remains the function
|
/openbmc/linux/Documentation/devicetree/bindings/power/supply/ |
H A D | charger-manager.yaml | 145 cm-cable-extcon: 146 description: name of extcon dev 159 - cm-cable-extcon 206 cm-cable-extcon = "extcon-dev.0"; 212 cm-cable-extcon = "extcon-dev.0";
|
/openbmc/linux/drivers/usb/mtu3/ |
H A D | Kconfig | 9 depends on EXTCON || !EXTCON 46 depends on (EXTCON=y || EXTCON=USB_MTU3)
|
/openbmc/linux/drivers/usb/dwc3/ |
H A D | Kconfig | 6 depends on (EXTCON || EXTCON=n) 59 depends on EXTCON || !EXTCON 133 depends on EXTCON || !EXTCON
|
/openbmc/linux/Documentation/devicetree/bindings/usb/ |
H A D | allwinner,sun4i-a10-musb.yaml | 53 extcon: 54 description: Extcon specifier for the OTG PHY 75 - extcon 102 extcon = <&usbphy 0>;
|
/openbmc/linux/drivers/usb/renesas_usbhs/ |
H A D | Kconfig | 10 depends on EXTCON || !EXTCON # if EXTCON=m, USBHS cannot be built-in
|