Home
last modified time | relevance | path

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

/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_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
15 obj-$(CONFIG_EXTCON_MAX14577) += extcon-max14577.o
[all …]
DKconfig3 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
19 tristate "ADC Jack extcon support"
22 Say Y here to enable extcon device driver based on ADC values.
45 tristate "GPIO extcon support"
48 Say Y here to enable GPIO based extcon support. Note that GPIO
49 extcon supports single state per extcon instance.
52 tristate "Intel INT3496 ACPI device extcon driver"
55 Say Y here to enable extcon support for USB OTG ports controlled by
[all …]
Dextcon.c1019 ATTRIBUTE_GROUPS(extcon);
/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 (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()
124 otg_dev->id = extcon_get_state(extcon, EXTCON_USB_HOST); 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()
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()
356 ret = PTR_ERR(tu->extcon); in tahvo_usb_probe()
360 ret = devm_extcon_dev_register(&pdev->dev, tu->extcon); in tahvo_usb_probe()
368 extcon_set_state_sync(tu->extcon, EXTCON_USB_HOST, in tahvo_usb_probe()
370 extcon_set_state_sync(tu->extcon, EXTCON_USB, tu->vbus_state); in tahvo_usb_probe()
/drivers/net/phy/
Dvitesse.c86 int extcon; in vsc824x_add_skew() local
88 extcon = phy_read(phydev, MII_VSC8244_EXT_CON1); in vsc824x_add_skew()
90 if (extcon < 0) in vsc824x_add_skew()
91 return extcon; in vsc824x_add_skew()
93 extcon &= ~(MII_VSC8244_EXTCON1_TX_SKEW_MASK | in vsc824x_add_skew()
96 extcon |= (MII_VSC8244_EXTCON1_TX_SKEW | in vsc824x_add_skew()
99 err = phy_write(phydev, MII_VSC8244_EXT_CON1, extcon); in vsc824x_add_skew()
/drivers/phy/renesas/
Dphy-rcar-gen3-usb2.c113 struct extcon_dev *extcon; member
149 extcon_set_state_sync(ch->extcon, EXTCON_USB_HOST, true); in rcar_gen3_phy_usb2_work()
150 extcon_set_state_sync(ch->extcon, EXTCON_USB, false); in rcar_gen3_phy_usb2_work()
152 extcon_set_state_sync(ch->extcon, EXTCON_USB_HOST, false); in rcar_gen3_phy_usb2_work()
153 extcon_set_state_sync(ch->extcon, EXTCON_USB, true); in rcar_gen3_phy_usb2_work()
681 channel->extcon = devm_extcon_dev_allocate(dev, in rcar_gen3_phy_usb2_probe()
683 if (IS_ERR(channel->extcon)) in rcar_gen3_phy_usb2_probe()
684 return PTR_ERR(channel->extcon); in rcar_gen3_phy_usb2_probe()
686 ret = devm_extcon_dev_register(dev, channel->extcon); in rcar_gen3_phy_usb2_probe()
/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()
420 ret = extcon_get_property(port->extcon, EXTCON_DISP_DP, in cdn_dp_enable_phy()
1099 ret = devm_extcon_register_notifier(dp->dev, port->extcon, in cdn_dp_bind()
1179 struct extcon_dev *extcon; in cdn_dp_probe() local
1193 extcon = extcon_get_edev_by_phandle(dev, i); in cdn_dp_probe()
1196 if (PTR_ERR(extcon) == -EPROBE_DEFER || in cdn_dp_probe()
1200 if (IS_ERR(extcon) || IS_ERR(phy)) in cdn_dp_probe()
1207 port->extcon = extcon; in cdn_dp_probe()
Dcdn-dp-core.h58 struct extcon_dev *extcon; member
/drivers/phy/rockchip/
Dphy-rockchip-typec.c374 struct extcon_dev *extcon; member
808 struct extcon_dev *edev = tcphy->extcon; in tcphy_get_mode()
1151 tcphy->extcon = extcon_get_edev_by_phandle(dev, 0); in rockchip_typec_phy_probe()
1152 if (IS_ERR(tcphy->extcon)) { in rockchip_typec_phy_probe()
1153 if (PTR_ERR(tcphy->extcon) == -ENODEV) { in rockchip_typec_phy_probe()
1154 tcphy->extcon = NULL; in rockchip_typec_phy_probe()
1156 if (PTR_ERR(tcphy->extcon) != -EPROBE_DEFER) in rockchip_typec_phy_probe()
1158 return PTR_ERR(tcphy->extcon); in rockchip_typec_phy_probe()
/drivers/phy/allwinner/
Dphy-sun4i-usb.c143 struct extcon_dev *extcon; member
650 extcon_set_state_sync(data->extcon, EXTCON_USB_HOST, in sun4i_usb_phy0_id_vbus_det_scan()
670 extcon_set_state_sync(data->extcon, EXTCON_USB, vbus_det); in sun4i_usb_phy0_id_vbus_det_scan()
788 data->extcon = devm_extcon_dev_allocate(dev, sun4i_usb_phy0_cable); in sun4i_usb_phy_probe()
789 if (IS_ERR(data->extcon)) { in sun4i_usb_phy_probe()
791 return PTR_ERR(data->extcon); in sun4i_usb_phy_probe()
794 ret = devm_extcon_dev_register(dev, data->extcon); in sun4i_usb_phy_probe()
/drivers/usb/typec/tcpm/
Dfusb302.c87 struct extcon_dev *extcon; member
443 if (!chip->extcon) in tcpm_get_current_limit()
452 if (extcon_get_state(chip->extcon, EXTCON_CHG_USB_SDP) == 1) in tcpm_get_current_limit()
455 if (extcon_get_state(chip->extcon, EXTCON_CHG_USB_CDP) == 1 || in tcpm_get_current_limit()
456 extcon_get_state(chip->extcon, EXTCON_CHG_USB_ACA) == 1) in tcpm_get_current_limit()
459 if (extcon_get_state(chip->extcon, EXTCON_CHG_USB_DCP) == 1) in tcpm_get_current_limit()
1710 chip->extcon = extcon_get_extcon_dev(name); in fusb302_probe()
1711 if (IS_ERR(chip->extcon)) in fusb302_probe()
1712 return PTR_ERR(chip->extcon); in fusb302_probe()
/drivers/usb/musb/
Dsunxi.c85 struct extcon_dev *extcon; member
243 ret = devm_extcon_register_notifier(glue->dev, glue->extcon, in sunxi_musb_init()
751 glue->extcon = extcon_get_edev_by_phandle(&pdev->dev, 0); in sunxi_musb_probe()
752 if (IS_ERR(glue->extcon)) in sunxi_musb_probe()
753 return dev_err_probe(&pdev->dev, PTR_ERR(glue->extcon), in sunxi_musb_probe()
/drivers/gpu/drm/bridge/
Dite-it6505.c422 struct extcon_dev *extcon; member
1238 if (it6505->extcon && !it6505->lane_swap_disabled) { in it6505_get_extcon_property()
1239 err = extcon_get_property(it6505->extcon, EXTCON_DISP_DP, in it6505_get_extcon_property()
2688 int state = extcon_get_state(it6505->extcon, EXTCON_DISP_DP); in it6505_extcon_work()
2724 it6505->extcon, EXTCON_DISP_DP, in it6505_use_notifier_module()
2738 if (it6505->extcon) { in it6505_remove_notifier_module()
2740 it6505->extcon, EXTCON_DISP_DP, in it6505_remove_notifier_module()
2872 if (it6505->extcon) { in it6505_bridge_attach()
3244 struct extcon_dev *extcon; in it6505_i2c_probe() local
3261 extcon = extcon_get_edev_by_phandle(dev, 0); in it6505_i2c_probe()
[all …]
Dsil-sii8620.c88 struct extcon_dev *extcon; member
2139 int state = extcon_get_state(ctx->extcon, EXTCON_DISP_MHL); in sii8620_extcon_work()
2188 ctx->extcon = edev; in sii8620_extcon_init()
2343 if (!ctx->extcon) in sii8620_probe()
2353 if (ctx->extcon) { in sii8620_remove()
2354 extcon_unregister_notifier(ctx->extcon, EXTCON_DISP_MHL, in sii8620_remove()
/drivers/usb/gadget/udc/
Drenesas_usb3.c342 struct extcon_dev *extcon; member
451 extcon_set_state_sync(usb3->extcon, EXTCON_USB_HOST, usb3->extcon_host); in renesas_usb3_extcon_work()
452 extcon_set_state_sync(usb3->extcon, EXTCON_USB, usb3->extcon_usb); in renesas_usb3_extcon_work()
2848 usb3->extcon = devm_extcon_dev_allocate(&pdev->dev, renesas_usb3_cable); in renesas_usb3_probe()
2849 if (IS_ERR(usb3->extcon)) in renesas_usb3_probe()
2850 return PTR_ERR(usb3->extcon); in renesas_usb3_probe()
2852 ret = devm_extcon_dev_register(&pdev->dev, usb3->extcon); in renesas_usb3_probe()
/drivers/
DMakefile165 obj-$(CONFIG_EXTCON) += extcon/
DKconfig178 source "drivers/extcon/Kconfig"
/drivers/of/
Dproperty.c1253 DEFINE_SIMPLE_PROP(extcon, "extcon", NULL)