Home
last modified time | relevance | path

Searched refs:extcon (Results 1 – 39 of 39) sorted by relevance

/linux-4.4.14/drivers/extcon/
DMakefile5 obj-$(CONFIG_EXTCON) += extcon.o
6 obj-$(CONFIG_EXTCON_ADC_JACK) += extcon-adc-jack.o
7 obj-$(CONFIG_EXTCON_ARIZONA) += extcon-arizona.o
8 obj-$(CONFIG_EXTCON_AXP288) += extcon-axp288.o
9 obj-$(CONFIG_EXTCON_GPIO) += extcon-gpio.o
10 obj-$(CONFIG_EXTCON_MAX14577) += extcon-max14577.o
11 obj-$(CONFIG_EXTCON_MAX77693) += extcon-max77693.o
12 obj-$(CONFIG_EXTCON_MAX77843) += extcon-max77843.o
13 obj-$(CONFIG_EXTCON_MAX8997) += extcon-max8997.o
14 obj-$(CONFIG_EXTCON_PALMAS) += extcon-palmas.o
[all …]
DKconfig2 tristate "External Connector Class (extcon) support"
4 Say Y here to enable external connector class (extcon) support.
7 multiple states; i.e., an extcon that may have multiple
18 tristate "ADC Jack extcon support"
21 Say Y here to enable extcon device driver based on ADC values.
39 tristate "GPIO extcon support"
42 Say Y here to enable GPIO based extcon support. Note that GPIO
43 extcon supports single state per extcon instance.
114 tristate "USB GPIO extcon support"
117 Say Y here to enable GPIO based USB cable detection extcon support.
Dextcon.c628 ATTRIBUTE_GROUPS(extcon);
/linux-4.4.14/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-4.4.14/drivers/usb/phy/
Dphy-omap-otg.c33 struct extcon_dev *extcon; member
98 struct extcon_dev *extcon; in omap_otg_probe() local
102 if (!config || !config->extcon) in omap_otg_probe()
105 extcon = extcon_get_extcon_dev(config->extcon); in omap_otg_probe()
106 if (!extcon) in omap_otg_probe()
117 otg_dev->extcon = extcon; in omap_otg_probe()
121 ret = extcon_register_notifier(extcon, EXTCON_USB_HOST, &otg_dev->id_nb); in omap_otg_probe()
125 ret = extcon_register_notifier(extcon, EXTCON_USB, &otg_dev->vbus_nb); in omap_otg_probe()
127 extcon_unregister_notifier(extcon, EXTCON_USB_HOST, in omap_otg_probe()
132 otg_dev->id = extcon_get_cable_state_(extcon, EXTCON_USB_HOST); in omap_otg_probe()
[all …]
Dphy-tahvo.c60 struct extcon_dev *extcon; member
124 extcon_set_cable_state_(tu->extcon, EXTCON_USB, tu->vbus_state); in check_vbus_state()
133 extcon_set_cable_state_(tu->extcon, EXTCON_USB_HOST, true); in tahvo_usb_become_host()
152 extcon_set_cable_state_(tu->extcon, EXTCON_USB_HOST, false); in tahvo_usb_become_peripheral()
368 tu->extcon = devm_extcon_dev_allocate(&pdev->dev, tahvo_cable); in tahvo_usb_probe()
369 if (IS_ERR(tu->extcon)) { in tahvo_usb_probe()
374 ret = devm_extcon_dev_register(&pdev->dev, tu->extcon); in tahvo_usb_probe()
382 extcon_set_cable_state_(tu->extcon, EXTCON_USB_HOST, in tahvo_usb_probe()
384 extcon_set_cable_state_(tu->extcon, EXTCON_USB, tu->vbus_state); in tahvo_usb_probe()
Dphy-msm-usb.c1579 motg->vbus.extcon = ext_vbus; in msm_otg_read_dt()
1596 motg->id.extcon = ext_id; in msm_otg_read_dt()
1602 extcon_unregister_notifier(motg->vbus.extcon, in msm_otg_read_dt()
1843 extcon_unregister_notifier(motg->id.extcon, in msm_otg_probe()
1845 extcon_unregister_notifier(motg->vbus.extcon, in msm_otg_probe()
1868 extcon_unregister_notifier(motg->id.extcon, EXTCON_USB_HOST, &motg->id.nb); in msm_otg_remove()
1869 extcon_unregister_notifier(motg->vbus.extcon, EXTCON_USB, &motg->vbus.nb); in msm_otg_remove()
/linux-4.4.14/Documentation/devicetree/bindings/extcon/
Dextcon-usb-gpio.txt7 - compatible: Should be "linux,extcon-usb-gpio"
10 Example: Examples of extcon-usb-gpio node in dra7-evm.dts as listed below:
12 compatible = "linux,extcon-usb-gpio";
17 extcon = <&extcon_usb1>;
/linux-4.4.14/Documentation/devicetree/bindings/power_supply/
Dcharger-manager.txt14 - cm-cable-extcon : name of extcon dev
69 cm-cable-extcon = "extcon-dev.0";
75 cm-cable-extcon = "extcon-dev.0";
/linux-4.4.14/Documentation/extcon/
Dporting-android-switch-class15 No extcon extended feature, but switch features only.
31 'dev' to 'edev.dev.parent' before registering extcon device
42 With this changes, the ex-switch extcon class device works as it once
46 /sys/class/switch/* will be symbolically linked to /sys/class/extcon/
52 value of switch_dev. With extcon, such magic numbers that
83 At the side of other device drivers (the extcon device itself
101 the extcon device driver should support multistate feature (STEP 2).
106 for an extcon device. When cables A and B are declared to be mutually
118 as symbolic links to /sys/class/extcon/*.
121 extcon, too. When the multistate support (STEP 2 of CHAPTER 1.) is
/linux-4.4.14/drivers/net/phy/
Dvitesse.c81 int extcon; in vsc824x_add_skew() local
83 extcon = phy_read(phydev, MII_VSC8244_EXT_CON1); in vsc824x_add_skew()
85 if (extcon < 0) in vsc824x_add_skew()
86 return extcon; in vsc824x_add_skew()
88 extcon &= ~(MII_VSC8244_EXTCON1_TX_SKEW_MASK | in vsc824x_add_skew()
91 extcon |= (MII_VSC8244_EXTCON1_TX_SKEW | in vsc824x_add_skew()
94 err = phy_write(phydev, MII_VSC8244_EXT_CON1, extcon); in vsc824x_add_skew()
/linux-4.4.14/Documentation/devicetree/bindings/usb/
Dallwinner,sun4i-a10-musb.txt15 - extcon : extcon specifier for the otg phy
27 extcon = <&usbphy 0>;
Domap-usb.txt60 - extcon : phandle for the extcon device omap dwc3 uses to detect
Dci-hdrc-usb2.txt49 - extcon: phandles to external connector devices. First phandle should point to
78 extcon = <0>, <&usb_id>;
Dmsm-hsusb.txt80 - extcon: phandles to external connector devices. First phandle
/linux-4.4.14/drivers/usb/musb/
Dsunxi.c91 struct extcon_dev *extcon; member
257 ret = extcon_register_notifier(glue->extcon, EXTCON_USB_HOST, in sunxi_musb_init()
287 extcon_unregister_notifier(glue->extcon, EXTCON_USB_HOST, in sunxi_musb_init()
313 extcon_unregister_notifier(glue->extcon, EXTCON_USB_HOST, in sunxi_musb_exit()
640 glue->extcon = extcon_get_edev_by_phandle(&pdev->dev, 0); in sunxi_musb_probe()
641 if (IS_ERR(glue->extcon)) { in sunxi_musb_probe()
642 if (PTR_ERR(glue->extcon) == -EPROBE_DEFER) in sunxi_musb_probe()
645 return PTR_ERR(glue->extcon); in sunxi_musb_probe()
/linux-4.4.14/drivers/phy/
Dphy-sun4i-usb.c107 struct extcon_dev *extcon; member
427 extcon_set_cable_state_(data->extcon, EXTCON_USB_HOST, in sun4i_usb_phy0_id_vbus_det_scan()
444 extcon_set_cable_state_(data->extcon, EXTCON_USB, vbus_det); in sun4i_usb_phy0_id_vbus_det_scan()
581 data->extcon = devm_extcon_dev_allocate(dev, in sun4i_usb_phy_probe()
583 if (IS_ERR(data->extcon)) in sun4i_usb_phy_probe()
584 return PTR_ERR(data->extcon); in sun4i_usb_phy_probe()
586 ret = devm_extcon_dev_register(dev, data->extcon); in sun4i_usb_phy_probe()
/linux-4.4.14/include/linux/extcon/
Dextcon-adc-jack.h61 const enum extcon *cable_names;
/linux-4.4.14/include/linux/platform_data/
Dusb-omap1.h26 const char *extcon; /* extcon device for OTG */ member
/linux-4.4.14/include/linux/usb/
Dmsm_hsusb.h131 struct extcon_dev *extcon; member
/linux-4.4.14/Documentation/devicetree/bindings/mfd/
Darizona.txt75 Extcon - ../extcon/extcon-arizona.txt
Dmax14577.txt43 Node used only by extcon consumers.
/linux-4.4.14/Documentation/gpio/
Ddrivers-on-gpio.txt36 - extcon-gpio: drivers/extcon/extcon-gpio.c is used when you need to read an
/linux-4.4.14/arch/arm/mach-omap1/
Dboard-nokia770.c159 .extcon = "tahvo-usb",
/linux-4.4.14/arch/arm/boot/dts/
Ddra72-evm.dts53 compatible = "linux,extcon-usb-gpio";
58 compatible = "linux,extcon-usb-gpio";
580 extcon = <&extcon_usb1>;
584 extcon = <&extcon_usb2>;
Ddra7-evm.dts50 compatible = "linux,extcon-usb-gpio";
55 compatible = "linux,extcon-usb-gpio";
716 extcon = <&extcon_usb1>;
720 extcon = <&extcon_usb2>;
Dam57xx-beagle-x15.dts103 compatible = "linux,extcon-usb-gpio";
704 extcon = <&extcon_usb1>;
708 extcon = <&extcon_usb2>;
Dsun8i-a23.dtsi97 extcon = <&usbphy 0>;
Dsun8i-a33.dtsi139 extcon = <&usbphy 0>;
Domap5-board-common.dtsi632 extcon = <&extcon_usb3>;
Domap5-cm-t54.dts634 extcon = <&extcon_usb3>;
Dsun5i.dtsi446 extcon = <&usbphy 0>;
Dsun4i-a10.dtsi675 extcon = <&usbphy 0>;
Dsun6i-a31.dtsi556 extcon = <&usbphy 0>;
Dsun7i-a20.dtsi759 extcon = <&usbphy 0>;
/linux-4.4.14/drivers/
DMakefile157 obj-$(CONFIG_EXTCON) += extcon/
DKconfig157 source "drivers/extcon/Kconfig"
/linux-4.4.14/Documentation/
D00-INDEX182 extcon/
/linux-4.4.14/
DMAINTAINERS4240 T: git git://git.kernel.org/pub/scm/linux/kernel/git/chanwoo/extcon.git
4242 F: drivers/extcon/
4243 F: include/linux/extcon/
4244 F: include/linux/extcon.h
4245 F: Documentation/extcon/
4246 F: Documentation/devicetree/bindings/extcon/
6803 F: drivers/extcon/extcon-max14577.c
6804 F: drivers/extcon/extcon-max77693.c
11681 F: Documentation/devicetree/bindings/extcon/extcon-arizona.txt
11686 F: drivers/extcon/extcon-arizona.c