From patchwork Mon Jul 14 17:05:30 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Jarzmik X-Patchwork-Id: 369733 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 6275C140110 for ; Tue, 15 Jul 2014 03:06:16 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756638AbaGNRGO (ORCPT ); Mon, 14 Jul 2014 13:06:14 -0400 Received: from smtp07.smtpout.orange.fr ([80.12.242.129]:45372 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756506AbaGNRGN (ORCPT ); Mon, 14 Jul 2014 13:06:13 -0400 Received: from localhost.localdomain ([109.222.66.217]) by mwinf5d14 with ME id SH6A1o00P4hFAcV03H6BJD; Mon, 14 Jul 2014 19:06:11 +0200 X-ME-Helo: localhost.localdomain X-ME-Date: Mon, 14 Jul 2014 19:06:11 +0200 X-ME-IP: 109.222.66.217 From: Robert Jarzmik To: Felipe Balbi , Mark Rutland Cc: linux-usb@vger.kernel.org, Robert Jarzmik , devicetree@vger.kernel.org Subject: [PATCH v4 2/4] usb: gadget: pxa27x_udc device-tree documentation Date: Mon, 14 Jul 2014 19:05:30 +0200 Message-Id: <1405357532-32629-2-git-send-email-robert.jarzmik@free.fr> X-Mailer: git-send-email 2.0.0.rc2 In-Reply-To: <1405357532-32629-1-git-send-email-robert.jarzmik@free.fr> References: <1405357532-32629-1-git-send-email-robert.jarzmik@free.fr> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add documentation for device-tree binding of arm PXA 27x udc (usb device) driver. Signed-off-by: Robert Jarzmik Cc: devicetree@vger.kernel.org --- Since V1: change OF id mrvl,pxa27x_udc -> marvell,pxa27x-udc This is a consequence of other DT reviews on the marvell namings. Since V2: Mark's review - described standard properties - use standard gpio bindings for pullup gpio Since V3: Arnd's review - removed clock-names --- Documentation/devicetree/bindings/usb/pxa-usb.txt | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/Documentation/devicetree/bindings/usb/pxa-usb.txt b/Documentation/devicetree/bindings/usb/pxa-usb.txt index 79729a9..9c33179 100644 --- a/Documentation/devicetree/bindings/usb/pxa-usb.txt +++ b/Documentation/devicetree/bindings/usb/pxa-usb.txt @@ -29,3 +29,25 @@ Example: marvell,port-mode = <2>; /* PMM_GLOBAL_MODE */ }; +UDC + +Required properties: + - compatible: Should be "marvell,pxa270-udc" for USB controllers + used in device mode. + - reg: usb device MMIO address space + - interrupts: single interrupt generated by the UDC IP + - clocks: input clock of the UDC IP (see clock-bindings.txt) + +Optional properties: + - gpios: + - gpio activated to control the USB D+ pullup (see gpio.txt) + +Example: + + pxa27x_udc: udc@40600000 { + compatible = "marvell,pxa270-udc"; + reg = <0x40600000 0x10000>; + interrupts = <11>; + clocks = <&pxa2xx_clks 11>; + gpios = <&gpio 22 GPIO_ACTIVE_LOW>; + };