/drivers/extcon/ |
D | Makefile | 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_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 …]
|
D | Kconfig | 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 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 …]
|
D | extcon.c | 1019 ATTRIBUTE_GROUPS(extcon);
|
/drivers/usb/phy/ |
D | phy-omap-otg.c | 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() 124 otg_dev->id = extcon_get_state(extcon, EXTCON_USB_HOST); in omap_otg_probe() [all …]
|
D | phy-tahvo.c | 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() 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/ |
D | vitesse.c | 86 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/ |
D | phy-rcar-gen3-usb2.c | 113 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/ |
D | cdn-dp-core.c | 153 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()
|
D | cdn-dp-core.h | 58 struct extcon_dev *extcon; member
|
/drivers/phy/rockchip/ |
D | phy-rockchip-typec.c | 374 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/ |
D | phy-sun4i-usb.c | 143 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/ |
D | fusb302.c | 87 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/ |
D | sunxi.c | 85 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/ |
D | ite-it6505.c | 422 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 …]
|
D | sil-sii8620.c | 88 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/ |
D | renesas_usb3.c | 342 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/ |
D | Makefile | 165 obj-$(CONFIG_EXTCON) += extcon/
|
D | Kconfig | 178 source "drivers/extcon/Kconfig"
|
/drivers/of/ |
D | property.c | 1253 DEFINE_SIMPLE_PROP(extcon, "extcon", NULL)
|