From patchwork Thu Jul 10 15:18:05 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Griffin X-Patchwork-Id: 4524451 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id E507A9F37C for ; Thu, 10 Jul 2014 15:21:01 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 276E220221 for ; Thu, 10 Jul 2014 15:21:01 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0F7DD201D3 for ; Thu, 10 Jul 2014 15:21:00 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1X5G7a-0007aH-SV; Thu, 10 Jul 2014 15:18:54 +0000 Received: from mail-wg0-f46.google.com ([74.125.82.46]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1X5G7N-0007QM-8Y for linux-arm-kernel@lists.infradead.org; Thu, 10 Jul 2014 15:18:42 +0000 Received: by mail-wg0-f46.google.com with SMTP id m15so3767300wgh.29 for ; Thu, 10 Jul 2014 08:18:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=yR0ikToCURYu+BhijTwbjuKdHBzheaEGGxv5hJLBs4M=; b=SmlvZINO+j8TFgtVfbAfB9hgDN0fbK1NPVsfIoebv5L9wfgw/WzcK6s+vryI0ltp5d onumcRRHiiqQneAwrLTS0jb/+UZv07PWFJhnd5DI0QJdC8M0BI///9kdze3N0GBQy2x2 /1CIIO999heuNlQFAZ9a5/MHwHSTcfFq2jSfImem3pyhPR5MXWG5dcXnjMxi23GzwnDj 6cBXxM88RGq0VcmPmOnQUCvt9RWj1aj2xz58bjBoTWb+AEfgT7jTPxkEfIe6rW7scmuH nn4r4lXR2XF1a35d9uBurDSWp9N1ZrfDfwJt0uGIWbU0ztSiV856gjzeLi44xr/37bHj U3NA== X-Gm-Message-State: ALoCoQlPeBAfsWinREN1AId09H1YVNvpDhPF53myCCVeDQjoZ8+56DtuwGfn42H2YpY2d9h32Zpf X-Received: by 10.194.8.102 with SMTP id q6mr57373286wja.74.1405005497090; Thu, 10 Jul 2014 08:18:17 -0700 (PDT) Received: from localhost.localdomain (cpc14-aztw22-2-0-cust189.18-1.cable.virginm.net. [82.45.1.190]) by mx.google.com with ESMTPSA id ch5sm110990943wjb.18.2014.07.10.08.18.15 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 10 Jul 2014 08:18:16 -0700 (PDT) From: Peter Griffin To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, maxime.coquelin@st.com, patrice.chotard@st.com, gregkh@linuxfoundation.org, srinivas.kandagatla@gmail.com, linux-usb@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 2/3] usb: host: st-hcd: Add st-hcd devicetree bindings documentation. Date: Thu, 10 Jul 2014 16:18:05 +0100 Message-Id: <1405005486-26355-3-git-send-email-peter.griffin@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1405005486-26355-1-git-send-email-peter.griffin@linaro.org> References: <1405005486-26355-1-git-send-email-peter.griffin@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140710_081841_482053_846B3996 X-CRM114-Status: GOOD ( 11.85 ) X-Spam-Score: -0.7 (/) Cc: peter.griffin@linaro.org, lee.jones@linaro.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch documents the device tree documentation required for the ST HCD controller found in STMicroelectronics SoCs. Signed-off-by: Peter Griffin Acked-by: Lee Jones --- Documentation/devicetree/bindings/usb/st-hcd.txt | 51 ++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/st-hcd.txt diff --git a/Documentation/devicetree/bindings/usb/st-hcd.txt b/Documentation/devicetree/bindings/usb/st-hcd.txt new file mode 100644 index 0000000..f2500dd --- /dev/null +++ b/Documentation/devicetree/bindings/usb/st-hcd.txt @@ -0,0 +1,51 @@ +ST HCD (Host Controller Driver) for USB 2.0 and 1.1 + +The device node has the following properties. + +Required properties: + - compatible : must be "st,usb-300x" + - reg : physical base addresses of the controller and length of memory mapped + region + - reg-names : names associated to the reg defines above, should be "ehci" and "ohci" + - interrupts : interrupt numbers to the cpu + - interrupt-names : should be "ehci" and "ohci" + + - pinctrl-names : a pinctrl state named "default" must be defined +- pinctrl-0 : phandle referencing pin configuration of the USB controller +See: Documentation/devicetree/bindings/pinctrl/pinctrl-binding.txt + + - clocks : phandle list of usb clocks. + - clock-names : should be "ic" for interconnect clock and "ohci" for the 48MHz clock +See: Documentation/devicetree/bindings/clock/clock-bindings.txt + + - resets : phandle to the powerdown and reset controller for the USB IP + - reset-names : should be "power" and "softreset". +See: Documentation/devicetree/bindings/reset/st,sti-powerdown.txt +See: Documentation/devicetree/bindings/reset/reset.txt + +Example: + +usb0: usb@fe100000 { + compatible = "st,usb-300x"; + reg = <0xfe1ffc00 0x100>, + <0xfe1ffe00 0x100>; + reg-names = "ohci", "ehci"; + + interrupts = , + ; + interrupt-names = "ehci","ohci"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usb0>; + clocks = <&clk_s_a1_ls CLK_ICN_IF_2>, + <&clockgen_b0 0>; + clock-names = "ic", "ohci"; + + resets = <&powerdown STIH416_USB0_POWERDOWN>, + <&softreset STIH416_USB0_SOFTRESET>; + reset-names = "power", "softreset"; + + phys = <&usb2_phy>; + phy-names = "usb2-phy"; +}; + +