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: 33435 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f71.google.com (mail-yh0-f71.google.com [209.85.213.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 0C0C1203F4 for ; Thu, 10 Jul 2014 15:18:31 +0000 (UTC) Received: by mail-yh0-f71.google.com with SMTP id t59sf36193948yho.10 for ; Thu, 10 Jul 2014 08:18:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=3E+jXAxrIw4b4koWBjMtzXMMVa4eaf8XT83txpfe3ok=; b=OPMWlNPwD5h3XE7FvYKfIimh+sgT8P4NtFlu1uEBGBivUhHTBme1t56lBdpsEr/IKd If/x8f26CPl71nMl8qGylMCb/WzUrxhuz8HEinb6fA0CMMQM74e/+EaVsY4TS1vsw0aq WaO3F9x5/yJs3tCmy6VAF0lYRT11d8ZasSmKh2GRsNGCjTUYsDR79d4/xEFDjS8yLeph ZreyjllxG3t9ofPqTbpJUjEnLGtuisCyRiuHI+XtWlVwBhFqSOxNWyWAKDXKET2HlM6z kbIX5QO536GfnXR6Q7B19GEjRPul2B6XiOBBM/RQTDVpzmiVdK+yC6OMAhhgIFdNkhz1 44ZQ== X-Gm-Message-State: ALoCoQmKrU0qsD+vaVPblONs+qvgUsvCz6gDAcA8OzLTODK+J/NRzbDucrGvZfZZCWF2yZkMQ8K/ X-Received: by 10.58.1.133 with SMTP id 5mr22212870vem.32.1405005511685; Thu, 10 Jul 2014 08:18:31 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.105.54 with SMTP id b51ls100201qgf.48.gmail; Thu, 10 Jul 2014 08:18:31 -0700 (PDT) X-Received: by 10.58.136.163 with SMTP id qb3mr833433veb.62.1405005511596; Thu, 10 Jul 2014 08:18:31 -0700 (PDT) Received: from mail-vc0-f177.google.com (mail-vc0-f177.google.com [209.85.220.177]) by mx.google.com with ESMTPS id r3si21530003vem.40.2014.07.10.08.18.31 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 10 Jul 2014 08:18:31 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.177 as permitted sender) client-ip=209.85.220.177; Received: by mail-vc0-f177.google.com with SMTP id ij19so10688665vcb.36 for ; Thu, 10 Jul 2014 08:18:31 -0700 (PDT) X-Received: by 10.58.209.7 with SMTP id mi7mr242786vec.80.1405005511524; Thu, 10 Jul 2014 08:18:31 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.37.5 with SMTP id tc5csp143025vcb; Thu, 10 Jul 2014 08:18:31 -0700 (PDT) X-Received: by 10.70.138.4 with SMTP id qm4mr1208702pdb.151.1405005510255; Thu, 10 Jul 2014 08:18:30 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id vt4si29620113pab.110.2014.07.10.08.18.29; Thu, 10 Jul 2014 08:18:29 -0700 (PDT) Received-SPF: none (google.com: linux-usb-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753957AbaGJPSV (ORCPT + 3 others); Thu, 10 Jul 2014 11:18:21 -0400 Received: from mail-wg0-f46.google.com ([74.125.82.46]:38310 "EHLO mail-wg0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753848AbaGJPST (ORCPT ); Thu, 10 Jul 2014 11:18:19 -0400 Received: by mail-wg0-f46.google.com with SMTP id m15so3788336wgh.17 for ; Thu, 10 Jul 2014 08:18:17 -0700 (PDT) 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 Cc: peter.griffin@linaro.org, lee.jones@linaro.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> Sender: linux-usb-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-usb@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: peter.griffin@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.177 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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"; +}; + +