[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAL_Jsq+aSXPT-vmHbDLygO0G3RmM3svTeS+S5FKKjj_Auf3gPw@mail.gmail.com>
Date: Mon, 4 Nov 2019 07:52:37 -0600
From: Rob Herring <robh+dt@...nel.org>
To: Paul Cercueil <paul@...pouillou.net>
Cc: Sebastian Reichel <sre@...nel.org>,
Mark Rutland <mark.rutland@....com>,
"open list:THERMAL" <linux-pm@...r.kernel.org>,
devicetree@...r.kernel.org,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
od@...c.me
Subject: Re: [PATCH 1/2] dt-bindings: power/supply: Document generic USB charger
On Sun, Nov 3, 2019 at 4:08 PM Paul Cercueil <paul@...pouillou.net> wrote:
>
> Add documentation about the devicetree bindings for the generic USB
> charger.
What makes it generic?
>
> Signed-off-by: Paul Cercueil <paul@...pouillou.net>
> ---
> .../bindings/power/supply/usb-charger.txt | 24 +++++++++++++++++++
> 1 file changed, 24 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/power/supply/usb-charger.txt
>
> diff --git a/Documentation/devicetree/bindings/power/supply/usb-charger.txt b/Documentation/devicetree/bindings/power/supply/usb-charger.txt
> new file mode 100644
> index 000000000000..fd46734cb0e5
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/power/supply/usb-charger.txt
> @@ -0,0 +1,24 @@
> +Generic USB charger bindings
> +~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> +
> +Required properties :
> + - compatible : should be "usb-charger"
> + - phys: phandle to the USB PHY
> +
> +Example:
> +
> +usb_con: extcon {
> + compatible = "linux,extcon-usb-gpio";
> + vbus-gpios = <&gpb 5 GPIO_ACTIVE_HIGH>;
> +};
> +
> +usb_phy: usb-phy@0 {
> + compatible = "usb-nop-xceiv";
> + #phy-cells = <0>;
> + extcon = <&usb_con>;
extcon is deprecated in favor of usb-connector binding. See
.../bindings/connector/usb-connector.txt. There's also some pending
patches for adding GPIO based connector controls including Vbus sense
(GPIO input) and control (regulator via a GPIO).
Rob
Powered by blists - more mailing lists