linux/drivers/usb/phy
Baolin Wang a9081a008f usb: phy: Add USB charger support
This patch introduces the usb charger support based on usb phy that
makes an enhancement to a power driver. The basic conception of the
usb charger is that, when one usb charger is added or removed by
reporting from the extcon device state change, the usb charger will
report to power user to set the current limitation.

Power user can register a notifiee on the usb phy by issuing
usb_register_notifier() to get notified by charger status changes
or charger current changes.

we can notify what current to be drawn to power user according to
different charger type, and now we have 2 methods to get charger type.
One is get charger type from extcon subsystem, which also means the
charger state changes. Another is we can get the charger type from
USB controller detecting or PMIC detecting, and the charger state
changes should be told by issuing usb_phy_set_charger_state().

Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
2017-08-15 15:05:01 +03:00
..
Kconfig usb: phy: Introduce one extcon device into usb phy 2017-05-17 14:15:28 +03:00
Makefile usb: phy: Remove unused config 2017-04-11 10:58:22 +03:00
of.c usb: phy: fixed comment typo 2015-03-11 10:19:36 -05:00
phy-ab8500-usb.c usb: phy: ab8500: remove unused ab8500_eyediagram_workaroud() 2017-01-26 10:51:27 +02:00
phy-am335x-control.c USB: phy: am335x-control: fix device and of_node leaks 2016-11-18 13:54:09 +02:00
phy-am335x-control.h usb: phy: phy-am335x: bypass first VBUS sensing for host-only mode 2015-12-16 10:07:25 -06:00
phy-am335x.c USB: Fix of_usb_get_dr_mode_by_phy with a shared phy block 2016-06-21 10:52:39 +03:00
phy-fsl-usb.c usb: otg-fsm: Prevent build warning "VDBG" redefined 2017-04-11 10:58:23 +03:00
phy-fsl-usb.h usb: phy: fsl: Fix build errors 2014-11-12 08:37:37 -06:00
phy-generic.c usb: phy: phy-generic: add the implementation of .set_suspend 2016-11-18 13:54:42 +02:00
phy-generic.h usb: phy: generic: add vbus support 2015-01-12 12:13:29 -06:00
phy-gpio-vbus-usb.c Driver core patches for 3.19-rc1 2014-12-14 16:10:09 -08:00
phy-isp1301-omap.c usb: isp1301-omap: don't opencode IS_REACHABLE() 2016-11-18 13:54:41 +02:00
phy-isp1301.c usb: phy: isp1301: Fix build warning when CONFIG_OF is disabled 2017-03-29 12:13:50 +02:00
phy-keystone.c usb: phy: phy-keystone: Simplify return statement 2015-08-04 11:02:05 -05:00
phy-msm-usb.c usb: phy: phy-msm-usb: Remove redundant extcon register/unregister 2017-05-17 14:15:38 +03:00
phy-mv-usb.c usb: phy-mv-usb: constify attribute_group structures. 2017-08-15 14:18:55 +03:00
phy-mv-usb.h
phy-mxs-usb.c usb: phy: mxs: Add DT bindings to configure TX settings 2016-08-25 12:13:18 +03:00
phy-omap-otg.c usb: phy: omap-otg: Replace the extcon API 2017-01-24 11:04:13 +02:00
phy-qcom-8x16-usb.c usb: phy: qcom: Use devm_ioremap_resource() 2017-08-15 12:46:02 +03:00
phy-tahvo.c usb: phy-tahvo: constify attribute_group structures. 2017-08-15 14:18:56 +03:00
phy-tegra-usb.c usb: common: of_usb_get_dr_mode to usb_get_dr_mode 2015-09-27 10:54:31 -05:00
phy-twl6030-usb.c usb: twl6030-usb: make driver DT only 2016-11-18 13:54:44 +02:00
phy-ulpi-viewport.c usb: Remove unnecessary semicolons 2013-10-11 16:26:46 -07:00
phy-ulpi.c usb: rename phy to usb_phy in OTG 2014-11-03 10:01:25 -06:00
phy.c usb: phy: Add USB charger support 2017-08-15 15:05:01 +03:00