Re: [PATCH v1 4/5] docs: ABI: complete power_supply type valid values

From: Sebastian Reichel

Date: Sun Oct 04 2026 - 13:53:35 EST


Hi,

On Mon, Aug 31, 2026 at 12:53:38PM -0300, Iván Ezequiel Rodriguez wrote:
> sysfs type already exposes USB_DCP/CDP/ACA, USB_C, USB_PD,
> USB_PD_DRP, BrickID and Unknown via POWER_SUPPLY_TYPE_TEXT[]. Update
> the ABI document so Valid values match the implementation.
>
> Signed-off-by: Iván Ezequiel Rodriguez <ivanrwcm25@xxxxxxxxx>
> ---
> Documentation/ABI/testing/sysfs-class-power | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/Documentation/ABI/testing/sysfs-class-power b/Documentation/ABI/testing/sysfs-class-power
> index 5641f1fd5fd6..08afb75973d2 100644
> --- a/Documentation/ABI/testing/sysfs-class-power
> +++ b/Documentation/ABI/testing/sysfs-class-power
> @@ -34,7 +34,9 @@ Description:
> Describes the main type of the supply.
>
> Access: Read
> - Valid values: "Battery", "UPS", "Mains", "USB", "Wireless"
> + Valid values: "Unknown", "Battery", "UPS", "Mains", "USB",
> + "USB_DCP", "USB_CDP", "USB_ACA", "USB_C", "USB_PD",
> + "USB_PD_DRP", "BrickID", "Wireless"

The USB sub-types should have a marking, that they are deprecated in
favour of using just "USB" and additionally exposing USB_TYPE. There
is only a small amount of legacy drivers still using the subtypes
directly.

Greetings,

-- Sebastian

Attachment: signature.asc
Description: PGP signature