From patchwork Thu Jul 24 11:00:15 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Griffin X-Patchwork-Id: 34195 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f197.google.com (mail-lb0-f197.google.com [209.85.217.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8083623B18 for ; Thu, 24 Jul 2014 11:01:15 +0000 (UTC) Received: by mail-lb0-f197.google.com with SMTP id c11sf1998832lbj.0 for ; Thu, 24 Jul 2014 04:01:13 -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=MOCgs9J1w0kEvQHhbqr4oybdwDRy8v+6fbLXHG16Qio=; b=kqCeuTq8YKvuHk76SeY2rwoEWB4NIv9JIILJ4uSSzqB7B0bORS2OXwZ9PZ8MdzDqlT uyxt3WLZlNGKMqugtL+iDHQnuPyyoqjOmw/09QMlAZEIcJJG3TpK9JZ4k0CuA1XfeJfG drOCurVGiG2jAp61bsJGwxt3zFu8F7W7p3KG0xoODgj8rgIgdXqzRBGqA4zgafC6gCk6 AOJ4dG/i2TKKXUVf1UrRTJuZNv7YqBnNJv1V00tMi5Y2LK3xbXn6j9z5oiv+RhJ0FnHO ScY9sGihVU22piFjWByeZDrjmnapuMe/4sG05SAs4S+iMKTVWnOCWbOJzTpoS0SronhR 5DWw== X-Gm-Message-State: ALoCoQkzeRny0qWiGNbV8GRWOy+AdGkePKNiJm59iX2esyg6ZW6ICFZSftoo+W71zYt53h/nQQSJ X-Received: by 10.194.103.133 with SMTP id fw5mr796529wjb.3.1406199672855; Thu, 24 Jul 2014 04:01:12 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.37.142 with SMTP id r14ls737626qgr.16.gmail; Thu, 24 Jul 2014 04:01:12 -0700 (PDT) X-Received: by 10.220.1.198 with SMTP id 6mr10715040vcg.31.1406199672701; Thu, 24 Jul 2014 04:01:12 -0700 (PDT) Received: from mail-vc0-f172.google.com (mail-vc0-f172.google.com [209.85.220.172]) by mx.google.com with ESMTPS id ag1si4661886vec.32.2014.07.24.04.01.12 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 24 Jul 2014 04:01:12 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.172 as permitted sender) client-ip=209.85.220.172; Received: by mail-vc0-f172.google.com with SMTP id im17so4460134vcb.31 for ; Thu, 24 Jul 2014 04:01:12 -0700 (PDT) X-Received: by 10.52.244.81 with SMTP id xe17mr9206258vdc.24.1406199672631; Thu, 24 Jul 2014 04:01:12 -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 tc5csp354847vcb; Thu, 24 Jul 2014 04:01:12 -0700 (PDT) X-Received: by 10.70.118.197 with SMTP id ko5mr9376349pdb.64.1406199671686; Thu, 24 Jul 2014 04:01:11 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ez2si5578349pbb.186.2014.07.24.04.01.11 for ; Thu, 24 Jul 2014 04:01:11 -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 S1757951AbaGXLAw (ORCPT + 3 others); Thu, 24 Jul 2014 07:00:52 -0400 Received: from mail-wg0-f49.google.com ([74.125.82.49]:60862 "EHLO mail-wg0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756308AbaGXLAt (ORCPT ); Thu, 24 Jul 2014 07:00:49 -0400 Received: by mail-wg0-f49.google.com with SMTP id k14so2499244wgh.32 for ; Thu, 24 Jul 2014 04:00:45 -0700 (PDT) X-Received: by 10.180.12.33 with SMTP id v1mr34051218wib.0.1406199645295; Thu, 24 Jul 2014 04:00:45 -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 n2sm14885912wjf.40.2014.07.24.04.00.42 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 24 Jul 2014 04:00:44 -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 v2 2/3] usb: host: st-hcd: Add st-hcd devicetree bindings documentation. Date: Thu, 24 Jul 2014 12:00:15 +0100 Message-Id: <1406199616-10533-3-git-send-email-peter.griffin@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1406199616-10533-1-git-send-email-peter.griffin@linaro.org> References: <1406199616-10533-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.172 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 | 49 ++++++++++++++++++++++++ 1 file changed, 49 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..b963be2 --- /dev/null +++ b/Documentation/devicetree/bindings/usb/st-hcd.txt @@ -0,0 +1,49 @@ +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 "powerdown" 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 = "powerdown", "softreset"; + + phys = <&usb2_phy>; + phy-names = "usb2-phy"; +};