From patchwork Sun Nov 3 22:08:00 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Cercueil X-Patchwork-Id: 11224739 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A9BD316B1 for ; Sun, 3 Nov 2019 22:08:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7BA572086D for ; Sun, 3 Nov 2019 22:08:57 +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 S1728178AbfKCWIk (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 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@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>; +};