Home
last modified time | relevance | path

Searched full:extcon (Results 1 – 25 of 162) sorted by relevance

1234567

/linux-5.10/drivers/extcon/
DMakefile3 # 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_ARIZONA) += extcon-arizona.o
10 obj-$(CONFIG_EXTCON_AXP288) += extcon-axp288.o
11 obj-$(CONFIG_EXTCON_FSA9480) += extcon-fsa9480.o
12 obj-$(CONFIG_EXTCON_GPIO) += extcon-gpio.o
13 obj-$(CONFIG_EXTCON_INTEL_INT3496) += extcon-intel-int3496.o
14 obj-$(CONFIG_EXTCON_INTEL_CHT_WC) += extcon-intel-cht-wc.o
[all …]
DKconfig2 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 "Wolfson Arizona EXTCON support"
33 tristate "X-Power AXP288 EXTCON support"
[all …]
Ddevres.c3 * 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 …]
Dextcon.h5 #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 * @state: Attach/detach state of this extcon. Do not provide at
26 * external connectors from this extcon.
27 * @nh: Notifier for the state change events from this extcon
28 * @entry: To support list of extcon devices so that users can
29 * search for extcon devices based on the extcon name.
33 * customized for each extcon device.
[all …]
Dextcon-gpio.c3 * extcon_gpio.c - Single-state GPIO extcon driver based on extcon class
8 * Modified by MyungJoo Ham <myungjoo.ham@samsung.com> to support extcon
12 #include <linux/extcon-provider.h>
23 * struct gpio_extcon_data - A simple GPIO-controlled extcon device state container.
24 * @edev: Extcon device.
79 * is necessary to register the extcon device. But, it's not yet in gpio_extcon_probe()
80 * developed to get the extcon id from device-tree or others. in gpio_extcon_probe()
86 data->gpiod = devm_gpiod_get(dev, "extcon", GPIOD_IN); in gpio_extcon_probe()
104 /* Allocate the memory of extcon devie and register extcon device */ in gpio_extcon_probe()
107 dev_err(dev, "failed to allocate extcon device\n"); in gpio_extcon_probe()
[all …]
Dextcon.c3 * drivers/extcon/extcon.c - External Connector (extcon) framework.
27 #include "extcon.h"
193 * @edev: the extcon device
250 /* Find the the index of extcon cable in edev->supported_cable */ in find_cable_index_by_id()
296 /* Check whether a specific extcon id supports the property or not. */ in is_extcon_property_supported()
401 * @edev: the extcon device
484 * @edev: the extcon device
511 * @edev: the extcon device
547 * Initialize the value of extcon property before setting in extcon_set_state()
567 * @edev: the extcon device
[all …]
Dextcon-adc-jack.c3 * 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");
Dextcon-qcom-spmi-misc.c3 * extcon-qcom-spmi-misc.c - Qualcomm USB extcon driver to support USB ID
4 * detection based on extcon-usb-gpio.c.
10 #include <linux/extcon-provider.h>
72 dev_err(dev, "failed to allocate extcon device\n"); in qcom_usb_extcon_probe()
78 dev_err(dev, "failed to register extcon device\n"); in qcom_usb_extcon_probe()
154 .name = "extcon-pm8941-misc",
161 MODULE_DESCRIPTION("QCOM USB ID extcon driver");
Dextcon-ptn5150.c3 // 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>
261 /* Allocate extcon device */ in ptn5150_i2c_probe()
264 dev_err(info->dev, "failed to allocate memory for extcon\n"); in ptn5150_i2c_probe()
268 /* Register extcon device */ in ptn5150_i2c_probe()
271 dev_err(info->dev, "failed to register extcon device\n"); in ptn5150_i2c_probe()
288 * Update current extcon state if for example OTG connection was there in ptn5150_i2c_probe()
320 MODULE_DESCRIPTION("NXP PTN5150 CC logic Extcon driver");
Dextcon-usb-gpio.c3 * drivers/extcon/extcon-usb-gpio.c - USB GPIO extcon driver
9 #include <linux/extcon-provider.h>
130 dev_err(dev, "failed to allocate extcon device\n"); in usb_extcon_probe()
136 dev_err(dev, "failed to register extcon device\n"); in usb_extcon_probe()
287 { .compatible = "linux,extcon-usb-gpio", },
293 { .name = "extcon-usb-gpio", },
302 .name = "extcon-usb-gpio",
312 MODULE_DESCRIPTION("USB GPIO extcon driver");
Dextcon-max3355.c3 * Maxim Integrated MAX3355 USB OTG chip extcon driver
9 #include <linux/extcon-provider.h>
82 dev_err(&pdev->dev, "failed to allocate extcon device\n"); in max3355_probe()
88 dev_err(&pdev->dev, "failed to register extcon device\n"); in max3355_probe()
135 .name = "extcon-max3355",
143 MODULE_DESCRIPTION("Maxim MAX3355 extcon driver");
/linux-5.10/Documentation/ABI/testing/
Dsysfs-class-extcon1 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 …]
/linux-5.10/drivers/usb/phy/
Dphy-omap-otg.c14 #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 (!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()
124 otg_dev->id = extcon_get_state(extcon, EXTCON_USB_HOST); in omap_otg_probe()
[all …]
Dphy-tahvo.c18 #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()
357 tu->extcon = devm_extcon_dev_allocate(&pdev->dev, tahvo_cable); in tahvo_usb_probe()
358 if (IS_ERR(tu->extcon)) { in tahvo_usb_probe()
359 dev_err(&pdev->dev, "failed to allocate memory for extcon\n"); in tahvo_usb_probe()
360 ret = PTR_ERR(tu->extcon); in tahvo_usb_probe()
364 ret = devm_extcon_dev_register(&pdev->dev, tu->extcon); in tahvo_usb_probe()
[all …]
/linux-5.10/include/linux/extcon/
Dextcon-adc-jack.h3 * 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-5.10/drivers/phy/qualcomm/
DKconfig65 depends on EXTCON || !EXTCON # if EXTCON=m, this cannot be built-in
91 depends on EXTCON || !EXTCON # if EXTCON=m, this cannot be built-in
102 depends on EXTCON || !EXTCON # if EXTCON=m, this cannot be built-in
/linux-5.10/Documentation/devicetree/bindings/extcon/
Dextcon-usb-gpio.txt1 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>;
Dextcon-usbc-cros-ec.yaml4 $id: http://devicetree.org/schemas/extcon/extcon-usbc-cros-ec.yaml#
22 const: google,extcon-usbc-cros-ec
46 compatible = "google,extcon-usbc-cros-ec";
51 compatible = "google,extcon-usbc-cros-ec";
/linux-5.10/include/linux/
Dextcon-provider.h3 * 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.
Dextcon.h3 * External Connector (extcon) framework
4 * - linux/include/linux/extcon.h for extcon consumer device driver.
90 * When adding the new extcon property, they *must* have
94 * for each extcon type.
178 * and the 'prop' indicates the extcon property.
195 * for specific external connector of the extcon.
197 * for all supported external connectors of the extcon.
222 * Following APIs get the extcon_dev from devicetree or by through extcon name.
229 /* Following API get the name of extcon device. */
297 * Following structure and API are deprecated. EXTCON remains the function
/linux-5.10/Documentation/devicetree/bindings/power/supply/
Dcharger-manager.txt15 - cm-cable-extcon : name of extcon dev
79 cm-cable-extcon = "extcon-dev.0";
85 cm-cable-extcon = "extcon-dev.0";
/linux-5.10/drivers/usb/dwc3/
DKconfig47 depends on (EXTCON=y || EXTCON=USB_DWC3)
59 depends on EXTCON || !EXTCON
132 depends on EXTCON || !EXTCON
/linux-5.10/drivers/usb/mtu3/
DKconfig9 depends on EXTCON || !EXTCON
46 depends on (EXTCON=y || EXTCON=USB_MTU3)
/linux-5.10/Documentation/devicetree/bindings/usb/
Dallwinner,sun4i-a10-musb.yaml47 extcon:
48 description: Extcon specifier for the OTG PHY
69 - extcon
96 extcon = <&usbphy 0>;
/linux-5.10/drivers/usb/renesas_usbhs/
DKconfig10 depends on EXTCON || !EXTCON # if EXTCON=m, USBHS cannot be built-in

1234567