]> git.baikalelectronics.ru Git - kernel.git/commit
power: supply: Add Apple Brick ID power supply type
authorBenson Leung <bleung@chromium.org>
Mon, 8 May 2017 22:02:48 +0000 (15:02 -0700)
committerSebastian Reichel <sre@kernel.org>
Thu, 8 Jun 2017 11:05:22 +0000 (13:05 +0200)
commitbaa102379f3a79d0f9f89b71d46cfda6509e5446
tree4f69feba04fe8df9610b1a29b3bacd7d36652ba6
parentee4ece428ffbdc3e3fa372fb57fca810643b9d09
power: supply: Add Apple Brick ID power supply type

Apple currently supports three very common USB chargers:
https://www.apple.com/power-adapters/

These chargers implement a proprietary Apple method for advertising
1A, 2.1A, and 2.4A at 5V called "Brick ID".
In addition, 3rd parties implement the same charging method in many
charging accessories that work with iOS devices.

Devices that have charger detection chips such as the Pericom PI3USB9281,
eg. Google Chromebook Pixel 2015, are capable of detecting
these chargers, so let's add a type to facilicate passing that info
up to userspace.

This adds a separate power supply type for Apple's proprietary
"Brick ID" charging method.

Signed-off-by: Benson Leung <bleung@chromium.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
drivers/power/supply/power_supply_sysfs.c
include/linux/power_supply.h