From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.5 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D4DB5CA9EB0 for ; Sun, 3 Nov 2019 22:08:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9FBD62086D for ; Sun, 3 Nov 2019 22:08:41 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=crapouillou.net header.i=@crapouillou.net header.b="Q8w14l5h" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728117AbfKCWIk (ORCPT ); Sun, 3 Nov 2019 17:08:40 -0500 Received: from outils.crapouillou.net ([89.234.176.41]:48174 "EHLO crapouillou.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727856AbfKCWIk (ORCPT ); Sun, 3 Nov 2019 17:08:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1572818918; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references; bh=/EPj4Iza17N8gPM/llWGgmaRA7Okh4ILYdXdlgDqNwc=; b=Q8w14l5hw/Pvm2aODE3I01Of+4noTkO2NZxlLj6DzM8mX4ZsgmNVsxvrDRdbJVoTZWpful tWj/4bODx1GlZV3u1TUDSTRlhfo0Xuz9klHcag7w6ocQY8YmUv4sXzxdidZcY1BdQrzOEa EyAosBU6fpv1Qt95h5euQ2KBVd5g/Y8= From: Paul Cercueil To: Sebastian Reichel , Rob Herring , Mark Rutland Cc: linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, od@zcrc.me, Paul Cercueil Subject: [PATCH 1/2] dt-bindings: power/supply: Document generic USB charger Date: Sun, 3 Nov 2019 23:08:00 +0100 Message-Id: <20191103220801.10666-1-paul@crapouillou.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add documentation about the devicetree bindings for the generic USB charger. Signed-off-by: Paul Cercueil --- .../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>; +}; + +usb_charger: usb-charger { + compatible = "usb-charger"; + phys = <&usb_phy>; +}; -- 2.24.0.rc1