Home
last modified time | relevance | path

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

123

/Linux-v4.19/drivers/extcon/
DMakefile6 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_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_MAX14577) += extcon-max14577.o
15 obj-$(CONFIG_EXTCON_MAX3355) += extcon-max3355.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.
40 tristate "GPIO extcon support"
43 Say Y here to enable GPIO based extcon support. Note that GPIO
44 extcon supports single state per extcon instance.
47 tristate "Intel INT3496 ACPI device extcon driver"
50 Say Y here to enable extcon support for USB OTG ports controlled by
[all …]
/Linux-v4.19/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-v4.19/drivers/usb/phy/
Dphy-omap-otg.c25 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()
125 otg_dev->vbus = extcon_get_state(extcon, EXTCON_USB); in omap_otg_probe()
[all …]
Dphy-tahvo.c52 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()
360 tu->extcon = devm_extcon_dev_allocate(&pdev->dev, tahvo_cable); in tahvo_usb_probe()
361 if (IS_ERR(tu->extcon)) { in tahvo_usb_probe()
363 ret = PTR_ERR(tu->extcon); in tahvo_usb_probe()
367 ret = devm_extcon_dev_register(&pdev->dev, tu->extcon); in tahvo_usb_probe()
375 extcon_set_state_sync(tu->extcon, EXTCON_USB_HOST, in tahvo_usb_probe()
377 extcon_set_state_sync(tu->extcon, EXTCON_USB, tu->vbus_state); in tahvo_usb_probe()
/Linux-v4.19/Documentation/devicetree/bindings/extcon/
Dextcon-usb-gpio.txt7 - 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.txt11 - compatible: Should be "google,extcon-usbc-cros-ec".
20 extcon {
21 compatible = "google,extcon-usbc-cros-ec";
/Linux-v4.19/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-v4.19/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
/Linux-v4.19/drivers/phy/renesas/
Dphy-rcar-gen3-usb2.c88 struct extcon_dev *extcon; member
102 extcon_set_state_sync(ch->extcon, EXTCON_USB_HOST, true); in rcar_gen3_phy_usb2_work()
103 extcon_set_state_sync(ch->extcon, EXTCON_USB, false); in rcar_gen3_phy_usb2_work()
105 extcon_set_state_sync(ch->extcon, EXTCON_USB_HOST, false); in rcar_gen3_phy_usb2_work()
106 extcon_set_state_sync(ch->extcon, EXTCON_USB, true); in rcar_gen3_phy_usb2_work()
452 channel->extcon = devm_extcon_dev_allocate(dev, in rcar_gen3_phy_usb2_probe()
454 if (IS_ERR(channel->extcon)) in rcar_gen3_phy_usb2_probe()
455 return PTR_ERR(channel->extcon); in rcar_gen3_phy_usb2_probe()
457 ret = devm_extcon_dev_register(dev, channel->extcon); in rcar_gen3_phy_usb2_probe()
/Linux-v4.19/drivers/net/phy/
Dvitesse.c90 int extcon; in vsc824x_add_skew() local
92 extcon = phy_read(phydev, MII_VSC8244_EXT_CON1); in vsc824x_add_skew()
94 if (extcon < 0) in vsc824x_add_skew()
95 return extcon; in vsc824x_add_skew()
97 extcon &= ~(MII_VSC8244_EXTCON1_TX_SKEW_MASK | in vsc824x_add_skew()
100 extcon |= (MII_VSC8244_EXTCON1_TX_SKEW | in vsc824x_add_skew()
103 err = phy_write(phydev, MII_VSC8244_EXT_CON1, extcon); in vsc824x_add_skew()
/Linux-v4.19/arch/arm/boot/dts/
Ddra7-evm-common.dtsi19 compatible = "linux,extcon-usb-gpio";
24 compatible = "linux,extcon-usb-gpio";
198 extcon = <&extcon_usb1>;
203 extcon = <&extcon_usb1>;
207 extcon = <&extcon_usb2>;
212 extcon = <&extcon_usb2>;
Ddra72-evm-common.dtsi100 compatible = "linux,extcon-usb-gpio";
105 compatible = "linux,extcon-usb-gpio";
380 extcon = <&extcon_usb1>;
384 extcon = <&extcon_usb2>;
389 extcon = <&extcon_usb1>;
394 extcon = <&extcon_usb2>;
/Linux-v4.19/Documentation/devicetree/bindings/phy/
Dphy-rockchip-typec.txt19 - extcon : extcon specifier for the Power Delivery
42 extcon = <&fusb0>;
66 extcon = <&fusb1>;
Dqcom,usb-hs-phy.txt53 - extcon:
56 Definition: Should contain the vbus extcon
80 extcon = <&smbb>;
/Linux-v4.19/Documentation/devicetree/bindings/display/rockchip/
Dcdn-dp-rockchip.txt30 - extcon: extcon specifier for the Power Delivery
50 extcon = <&fusb0>, <&fusb1>;
/Linux-v4.19/arch/arm64/boot/dts/rockchip/
Drk3399-gru-chromebook.dtsi229 extcon = <&usbc_extcon0>, <&usbc_extcon1>;
289 usbc_extcon1: extcon@1 {
290 compatible = "google,extcon-usbc-cros-ec";
293 #extcon-cells = <0>;
331 extcon = <&usbc_extcon1>;
352 extcon = <&usbc_extcon1>;
/Linux-v4.19/drivers/gpu/drm/rockchip/
Dcdn-dp-core.c153 struct extcon_dev *edev = port->extcon; in cdn_dp_get_port_lanes()
221 if (!extcon_get_state(port->extcon, EXTCON_DISP_DP)) in cdn_dp_check_sink_connection()
419 ret = extcon_get_property(port->extcon, EXTCON_DISP_DP, in cdn_dp_enable_phy()
1075 ret = devm_extcon_register_notifier(dp->dev, port->extcon, in cdn_dp_bind()
1155 struct extcon_dev *extcon; in cdn_dp_probe() local
1168 extcon = extcon_get_edev_by_phandle(dev, i); in cdn_dp_probe()
1171 if (PTR_ERR(extcon) == -EPROBE_DEFER || in cdn_dp_probe()
1175 if (IS_ERR(extcon) || IS_ERR(phy)) in cdn_dp_probe()
1182 port->extcon = extcon; in cdn_dp_probe()
Dcdn-dp-core.h65 struct extcon_dev *extcon; member
/Linux-v4.19/Documentation/extcon/
Dintel-int3496.txt1 Intel INT3496 ACPI device extcon driver documentation
4 The Intel INT3496 ACPI device extcon driver is a driver for ACPI
/Linux-v4.19/drivers/phy/allwinner/
Dphy-sun4i-usb.c147 struct extcon_dev *extcon; member
594 extcon_set_state_sync(data->extcon, EXTCON_USB_HOST, in sun4i_usb_phy0_id_vbus_det_scan()
611 extcon_set_state_sync(data->extcon, EXTCON_USB, vbus_det); in sun4i_usb_phy0_id_vbus_det_scan()
728 data->extcon = devm_extcon_dev_allocate(dev, sun4i_usb_phy0_cable); in sun4i_usb_phy_probe()
729 if (IS_ERR(data->extcon)) { in sun4i_usb_phy_probe()
731 return PTR_ERR(data->extcon); in sun4i_usb_phy_probe()
734 ret = devm_extcon_dev_register(dev, data->extcon); in sun4i_usb_phy_probe()
/Linux-v4.19/include/linux/platform_data/
Dusb-omap1.h26 const char *extcon; /* extcon device for OTG */ member
/Linux-v4.19/drivers/usb/musb/
Dsunxi.c85 struct extcon_dev *extcon; member
243 ret = devm_extcon_register_notifier(glue->dev, glue->extcon, in sunxi_musb_init()
747 glue->extcon = extcon_get_edev_by_phandle(&pdev->dev, 0); in sunxi_musb_probe()
748 if (IS_ERR(glue->extcon)) { in sunxi_musb_probe()
749 if (PTR_ERR(glue->extcon) == -EPROBE_DEFER) in sunxi_musb_probe()
752 return PTR_ERR(glue->extcon); in sunxi_musb_probe()
/Linux-v4.19/drivers/phy/rockchip/
Dphy-rockchip-typec.c383 struct extcon_dev *extcon; member
817 struct extcon_dev *edev = tcphy->extcon; in tcphy_get_mode()
1163 tcphy->extcon = extcon_get_edev_by_phandle(dev, 0); in rockchip_typec_phy_probe()
1164 if (IS_ERR(tcphy->extcon)) { in rockchip_typec_phy_probe()
1165 if (PTR_ERR(tcphy->extcon) == -ENODEV) { in rockchip_typec_phy_probe()
1166 tcphy->extcon = NULL; in rockchip_typec_phy_probe()
1168 if (PTR_ERR(tcphy->extcon) != -EPROBE_DEFER) in rockchip_typec_phy_probe()
1170 return PTR_ERR(tcphy->extcon); in rockchip_typec_phy_probe()

123