| /drivers/extcon/ |
| A 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 17 obj-$(CONFIG_EXTCON_MAX3355) += extcon-max3355.o 20 obj-$(CONFIG_EXTCON_MAX8997) += extcon-max8997.o 21 obj-$(CONFIG_EXTCON_PALMAS) += extcon-palmas.o 22 obj-$(CONFIG_EXTCON_PTN5150) += extcon-ptn5150.o [all …]
|
| A D | Kconfig | 3 tristate "External Connector Class (extcon) support" 8 multiple states; i.e., an extcon that may have multiple 19 tristate "ADC Jack extcon support" 45 tristate "GPIO extcon support" 49 extcon supports single state per extcon instance. 52 tristate "Intel INT3496 ACPI device extcon driver" 79 tristate "LC824206XA extcon Support" 154 tristate "Qualcomm USB extcon support" 184 tristate "USB GPIO extcon support" 198 tristate "TI TUSB320 USB-C extcon support" [all …]
|
| A D | extcon.c | 1021 ATTRIBUTE_GROUPS(extcon);
|
| /drivers/usb/phy/ |
| A 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 …]
|
| A D | phy-tahvo.c | 53 struct extcon_dev *extcon; member 117 extcon_set_state_sync(tu->extcon, EXTCON_USB, tu->vbus_state); in check_vbus_state() 126 extcon_set_state_sync(tu->extcon, EXTCON_USB_HOST, true); in tahvo_usb_become_host() 145 extcon_set_state_sync(tu->extcon, EXTCON_USB_HOST, false); in tahvo_usb_become_peripheral() 354 tu->extcon = devm_extcon_dev_allocate(&pdev->dev, tahvo_cable); in tahvo_usb_probe() 355 if (IS_ERR(tu->extcon)) { in tahvo_usb_probe() 357 ret = PTR_ERR(tu->extcon); in tahvo_usb_probe() 361 ret = devm_extcon_dev_register(&pdev->dev, tu->extcon); in tahvo_usb_probe() 369 extcon_set_state_sync(tu->extcon, EXTCON_USB_HOST, in tahvo_usb_probe() 371 extcon_set_state_sync(tu->extcon, EXTCON_USB, tu->vbus_state); in tahvo_usb_probe()
|
| /drivers/platform/x86/lenovo/ |
| A D | yoga-tab2-pro-1380-fastcharger.c | 43 struct extcon_dev *extcon; member 66 return extcon_get_state(fc->extcon, EXTCON_CHG_USB_DCP) > 0; in yt2_1380_fc_dedicated_charger_connected() 71 return extcon_get_state(fc->extcon, EXTCON_CHG_USB_FAST) > 0; in yt2_1380_fc_fast_charger_connected() 169 fc->extcon = extcon_get_extcon_dev(YT2_1380_FC_EXTCON_NAME); in yt2_1380_fc_serdev_probe() 170 if (IS_ERR(fc->extcon)) in yt2_1380_fc_serdev_probe() 171 return dev_err_probe(dev, PTR_ERR(fc->extcon), "getting extcon\n"); in yt2_1380_fc_serdev_probe() 212 ret = devm_extcon_register_notifier_all(dev, fc->extcon, &fc->nb); in yt2_1380_fc_serdev_probe()
|
| /drivers/net/phy/ |
| A D | vitesse.c | 110 int extcon; in vsc824x_add_skew() local 112 extcon = phy_read(phydev, MII_VSC8244_EXT_CON1); in vsc824x_add_skew() 114 if (extcon < 0) in vsc824x_add_skew() 115 return extcon; in vsc824x_add_skew() 117 extcon &= ~(MII_VSC8244_EXTCON1_TX_SKEW_MASK | in vsc824x_add_skew() 120 extcon |= (MII_VSC8244_EXTCON1_TX_SKEW | in vsc824x_add_skew() 123 err = phy_write(phydev, MII_VSC8244_EXT_CON1, extcon); in vsc824x_add_skew()
|
| /drivers/phy/renesas/ |
| A D | phy-rcar-gen3-usb2.c | 125 struct extcon_dev *extcon; member 164 extcon_set_state_sync(ch->extcon, EXTCON_USB_HOST, true); in rcar_gen3_phy_usb2_work() 165 extcon_set_state_sync(ch->extcon, EXTCON_USB, false); in rcar_gen3_phy_usb2_work() 167 extcon_set_state_sync(ch->extcon, EXTCON_USB_HOST, false); in rcar_gen3_phy_usb2_work() 168 extcon_set_state_sync(ch->extcon, EXTCON_USB, true); in rcar_gen3_phy_usb2_work() 758 channel->extcon = devm_extcon_dev_allocate(dev, in rcar_gen3_phy_usb2_probe() 760 if (IS_ERR(channel->extcon)) in rcar_gen3_phy_usb2_probe() 761 return PTR_ERR(channel->extcon); in rcar_gen3_phy_usb2_probe() 763 ret = devm_extcon_dev_register(dev, channel->extcon); in rcar_gen3_phy_usb2_probe()
|
| /drivers/gpu/drm/rockchip/ |
| A D | cdn-dp-core.c | 154 struct extcon_dev *edev = port->extcon; in cdn_dp_get_port_lanes() 222 if (!extcon_get_state(port->extcon, EXTCON_DISP_DP)) in cdn_dp_check_sink_connection() 388 ret = extcon_get_property(port->extcon, EXTCON_DISP_DP, in cdn_dp_enable_phy() 1032 ret = devm_extcon_register_notifier(dp->dev, port->extcon, in cdn_dp_bind() 1101 struct extcon_dev *extcon; in cdn_dp_probe() local 1116 extcon = extcon_get_edev_by_phandle(dev, i); in cdn_dp_probe() 1119 if (PTR_ERR(extcon) == -EPROBE_DEFER || in cdn_dp_probe() 1123 if (IS_ERR(extcon) || IS_ERR(phy)) in cdn_dp_probe() 1130 port->extcon = extcon; in cdn_dp_probe()
|
| A D | cdn-dp-core.h | 59 struct extcon_dev *extcon; member
|
| /drivers/phy/rockchip/ |
| A D | phy-rockchip-typec.c | 374 struct extcon_dev *extcon; member 808 struct extcon_dev *edev = tcphy->extcon; in tcphy_get_mode() 1150 tcphy->extcon = extcon_get_edev_by_phandle(dev, 0); in rockchip_typec_phy_probe() 1151 if (IS_ERR(tcphy->extcon)) { in rockchip_typec_phy_probe() 1152 if (PTR_ERR(tcphy->extcon) == -ENODEV) { in rockchip_typec_phy_probe() 1153 tcphy->extcon = NULL; in rockchip_typec_phy_probe() 1155 if (PTR_ERR(tcphy->extcon) != -EPROBE_DEFER) in rockchip_typec_phy_probe() 1157 return PTR_ERR(tcphy->extcon); in rockchip_typec_phy_probe()
|
| /drivers/phy/allwinner/ |
| A D | phy-sun4i-usb.c | 129 struct extcon_dev *extcon; member 634 extcon_set_state_sync(data->extcon, EXTCON_USB_HOST, in sun4i_usb_phy0_id_vbus_det_scan() 654 extcon_set_state_sync(data->extcon, EXTCON_USB, vbus_det); in sun4i_usb_phy0_id_vbus_det_scan() 770 data->extcon = devm_extcon_dev_allocate(dev, sun4i_usb_phy0_cable); in sun4i_usb_phy_probe() 771 if (IS_ERR(data->extcon)) { in sun4i_usb_phy_probe() 773 return PTR_ERR(data->extcon); in sun4i_usb_phy_probe() 776 ret = devm_extcon_dev_register(dev, data->extcon); in sun4i_usb_phy_probe()
|
| /drivers/power/supply/ |
| A D | max8971_charger.c | 646 struct device_node *extcon; in max8971_probe() local 689 extcon = of_graph_get_remote_node(dev->of_node, -1, -1); in max8971_probe() 690 if (!extcon) in max8971_probe() 693 priv->edev = extcon_find_edev_by_node(extcon); in max8971_probe() 694 of_node_put(extcon); in max8971_probe()
|
| /drivers/usb/typec/tcpm/ |
| A D | fusb302.c | 88 struct extcon_dev *extcon; member 445 if (!chip->extcon) in tcpm_get_current_limit() 454 if (extcon_get_state(chip->extcon, EXTCON_CHG_USB_SDP) == 1) in tcpm_get_current_limit() 457 if (extcon_get_state(chip->extcon, EXTCON_CHG_USB_CDP) == 1 || in tcpm_get_current_limit() 458 extcon_get_state(chip->extcon, EXTCON_CHG_USB_ACA) == 1) in tcpm_get_current_limit() 461 if (extcon_get_state(chip->extcon, EXTCON_CHG_USB_DCP) == 1) in tcpm_get_current_limit() 1713 chip->extcon = extcon_get_extcon_dev(name); in fusb302_probe() 1714 if (IS_ERR(chip->extcon)) in fusb302_probe() 1715 return PTR_ERR(chip->extcon); in fusb302_probe()
|
| /drivers/usb/musb/ |
| A D | sunxi.c | 92 struct extcon_dev *extcon; member 250 ret = devm_extcon_register_notifier(glue->dev, glue->extcon, in sunxi_musb_init() 754 glue->extcon = extcon_get_edev_by_phandle(&pdev->dev, 0); in sunxi_musb_probe() 755 if (IS_ERR(glue->extcon)) in sunxi_musb_probe() 756 return dev_err_probe(&pdev->dev, PTR_ERR(glue->extcon), in sunxi_musb_probe()
|
| /drivers/gpu/drm/bridge/ |
| A D | ite-it6505.c | 446 struct extcon_dev *extcon; member 2969 it6505->extcon, EXTCON_DISP_DP, in it6505_use_notifier_module() 2983 if (it6505->extcon) { in it6505_remove_notifier_module() 2985 it6505->extcon, EXTCON_DISP_DP, in it6505_remove_notifier_module() 3113 if (it6505->extcon) { in it6505_bridge_attach() 3583 struct extcon_dev *extcon; in it6505_i2c_probe() local 3601 extcon = extcon_get_edev_by_phandle(dev, 0); in it6505_i2c_probe() 3602 if (PTR_ERR(extcon) == -EPROBE_DEFER) in it6505_i2c_probe() 3604 if (IS_ERR(extcon)) { in it6505_i2c_probe() 3606 return PTR_ERR(extcon); in it6505_i2c_probe() [all …]
|
| A 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/ |
| A D | renesas_usb3.c | 343 struct extcon_dev *extcon; member 492 extcon_set_state_sync(usb3->extcon, EXTCON_USB_HOST, usb3->extcon_host); in renesas_usb3_extcon_work() 493 extcon_set_state_sync(usb3->extcon, EXTCON_USB, usb3->extcon_usb); in renesas_usb3_extcon_work() 2886 usb3->extcon = devm_extcon_dev_allocate(&pdev->dev, renesas_usb3_cable); in renesas_usb3_probe() 2887 if (IS_ERR(usb3->extcon)) in renesas_usb3_probe() 2888 return PTR_ERR(usb3->extcon); in renesas_usb3_probe() 2890 ret = devm_extcon_dev_register(&pdev->dev, usb3->extcon); in renesas_usb3_probe()
|
| /drivers/ |
| A D | Makefile | 167 obj-$(CONFIG_EXTCON) += extcon/
|
| A D | Kconfig | 190 source "drivers/extcon/Kconfig"
|
| /drivers/of/ |
| A D | property.c | 1357 DEFINE_SIMPLE_PROP(extcon, "extcon", NULL)
|