From patchwork Sun Nov 2 18:11:48 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Jarzmik X-Patchwork-Id: 405955 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 9DF4814007F for ; Mon, 3 Nov 2014 05:12:13 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752463AbaKBSMM (ORCPT ); Sun, 2 Nov 2014 13:12:12 -0500 Received: from smtp06.smtpout.orange.fr ([80.12.242.128]:34360 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752108AbaKBSML (ORCPT ); Sun, 2 Nov 2014 13:12:11 -0500 Received: from localhost.localdomain ([109.222.89.236]) by mwinf5d41 with ME id AiC61p00P55xvjh03iC6Wi; Sun, 02 Nov 2014 19:12:09 +0100 X-ME-Helo: localhost.localdomain X-ME-Date: Sun, 02 Nov 2014 19:12:09 +0100 X-ME-IP: 109.222.89.236 From: Robert Jarzmik To: Felipe Balbi , Philipp Zabel Cc: devicetree@vger.kernel.org, linux-usb@vger.kernel.org, Robert Jarzmik Subject: [PATCH v1 1/3] usb: phy: device-tree documentation for gpio-vbus Date: Sun, 2 Nov 2014 19:11:48 +0100 Message-Id: <1414951910-16075-1-git-send-email-robert.jarzmik@free.fr> X-Mailer: git-send-email 2.1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add documentation for device-tree binding of the generic gpio-vbus phy controller. Signed-off-by: Robert Jarzmik Cc: devicetree@vger.kernel.org Acked-by: Philipp Zabel --- .../devicetree/bindings/phy/gpio-vbus.txt | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/gpio-vbus.txt diff --git a/Documentation/devicetree/bindings/phy/gpio-vbus.txt b/Documentation/devicetree/bindings/phy/gpio-vbus.txt new file mode 100644 index 0000000..ffcfd35 --- /dev/null +++ b/Documentation/devicetree/bindings/phy/gpio-vbus.txt @@ -0,0 +1,23 @@ +GPIO VBus phy +============= + +gpio-vbus is a phy controller supporting VBus detection and pullup activation on +GPIOs. + +Required properties: +- compatible : should be "generic,phy-gpio-vbus" +- #phy-cells : from the generic PHY bindings, must be 1. +- gpios : set of 2 gpio properties (see gpio.txt for gpio properties format) + first gpio is required, it's the VBus sensing input gpio + second gpio is optional, it's the D+ pullup controlling output + gpio + +Optional properties: +- wakeup : boolean, if true the VBus gpio will wakeup the platform + +Example: + usb2phy : gpio-vbus@13 { + compatible = "generic,phy-gpio-vbus"; + gpios = <&gpio 13 GPIO_ACTIVE_LOW>; + wakeup; + };