/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 …]
|
/linux/drivers/extcon/ |
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-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() 269 { .compatible = "linux,extcon-usb-gpio", }, 275 { .name = "extcon-usb-gpio", }, 284 .name = "extcon-usb-gpio", 294 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() 132 .name = "extcon-max3355", 140 MODULE_DESCRIPTION("Maxim MAX3355 extcon driver");
|
H A D | extcon-rt8973a.c | 3 * extcon-rt8973a.c - Richtek RT8973A extcon driver to support USB switches 19 #include <linux/extcon-provider.h> 21 #include "extcon-rt8973a.h" 64 * After completing the booting of platform, the extcon provider 616 /* Allocate extcon device */ in rt8973a_muic_i2c_probe() 619 dev_err(info->dev, "failed to allocate memory for extcon\n"); in rt8973a_muic_i2c_probe() 623 /* Register extcon device */ in rt8973a_muic_i2c_probe() 626 dev_err(info->dev, "failed to register extcon device\n"); in rt8973a_muic_i2c_probe() 635 * After completing the booting of platform, the extcon provider in rt8973a_muic_i2c_probe() 709 MODULE_DESCRIPTION("Richtek RT8973A 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 */ in int3496_probe() 168 dev_err(dev, "can't register extcon device: %d\n", ret); in int3496_probe() 216 MODULE_DESCRIPTION("Intel INT3496 ACPI device extcon driver");
|
/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 …]
|
/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.
|
/linux/drivers/phy/qualcomm/ |
H A D | Kconfig | 174 depends on EXTCON || !EXTCON # if EXTCON=m, this cannot be built-in 200 depends on EXTCON || !EXTCON # if EXTCON=m, this cannot be built-in 211 depends on EXTCON || !EXTCON # if EXTCON=m, this cannot be built-in
|
/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
|
/linux/Documentation/devicetree/bindings/extcon/ |
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";
|
H A D | qcom,pm8941-misc.yaml | 4 $id: http://devicetree.org/schemas/extcon/qcom,pm8941-misc.yaml# 7 title: Qualcomm Technologies, Inc. PM8941 USB ID Extcon device 65 extcon = <&usb_id>;
|
/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";
|
/linux/drivers/usb/mtu3/ |
H A D | Kconfig | 9 depends on EXTCON || !EXTCON 46 depends on (EXTCON=y || EXTCON=USB_MTU3)
|
/linux/Documentation/devicetree/bindings/mfd/ |
H A D | maxim,max14577.yaml | 40 extcon: 73 extcon: 87 extcon: 112 extcon { 156 extcon {
|
/linux/drivers/usb/renesas_usbhs/ |
H A D | Kconfig | 10 depends on EXTCON || !EXTCON # if EXTCON=m, USBHS cannot be built-in
|
/linux/arch/arm/boot/dts/ti/omap/ |
H A D | dra7-evm-common.dtsi | 17 compatible = "linux,extcon-usb-gpio"; 22 compatible = "linux,extcon-usb-gpio"; 196 extcon = <&extcon_usb1>; 201 extcon = <&extcon_usb1>; 205 extcon = <&extcon_usb2>; 210 extcon = <&extcon_usb2>;
|
/linux/drivers/phy/renesas/ |
H A D | Kconfig | 30 depends on EXTCON || !EXTCON # if EXTCON=m, this cannot be built-in
|
/linux/Documentation/devicetree/bindings/sound/ |
H A D | samsung,aries-wm8994.yaml | 61 extcon: 62 description: Extcon phandle for dock detection 94 - extcon 112 extcon = <&fsa9480>;
|
/linux/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. 48 * @nb: the notifier block to receive changed state from EXTCON 62 /* The charger-manager use Extcon framework */
|
/linux/Documentation/devicetree/bindings/display/bridge/ |
H A D | ite,it6505.yaml | 54 extcon: 56 description: extcon specifier for the Power Delivery 111 - extcon 133 extcon = <&usbc_extcon>;
|