From patchwork Sat Jul 5 06:25:29 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Griffin X-Patchwork-Id: 33116 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yk0-f198.google.com (mail-yk0-f198.google.com [209.85.160.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 6D76E203AC for ; Sat, 5 Jul 2014 06:26:21 +0000 (UTC) Received: by mail-yk0-f198.google.com with SMTP id 9sf5361201ykp.1 for ; Fri, 04 Jul 2014 23:26:21 -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=WRhfnU8xLgXhM8eyTdBNxcyc7JIYKSezyXfpvd9oObs=; b=SNOqHNSSLvceDF/C2cGFfNyp5nQXwmEAeyap+Iwp6qnBP5tvRS6zEqUw33xvvTNVsM rxyGIxYzTEsbaXXA5CaTHptIC+FTCZXpl0u9JjR2ggK++ePUbM+kE95XwO9pl9KziXWE GwXY+Qa4H6UoBUJ2UR1EXob0ILcZX7N8Ir80cEpdosIiqc6nXAQmk3dNkGJggclgCN2e UKsMDwvKHw3te++xVGd46XkQA6rQWjwF726HP77NH4RuYWEfRoJ7QXn8NMdf5CHqa1r7 6N7gaF9HohA1N02VR3LrSV4YzfR0VWGW/i6E6okVeaBDWbxvcqw+7i1VbWA7mGQ7yinP NI+w== X-Gm-Message-State: ALoCoQnPxkWeOSK/MXeodR28vWyLharE+WYmXgV/XCVgNx1mt5vtV8O+kgZ+cqEVEiDsZVKHLZdt X-Received: by 10.236.43.20 with SMTP id k20mr6570747yhb.54.1404541581267; Fri, 04 Jul 2014 23:26:21 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.48.132 with SMTP id o4ls45352qga.40.gmail; Fri, 04 Jul 2014 23:26:21 -0700 (PDT) X-Received: by 10.221.26.10 with SMTP id rk10mr13749583vcb.0.1404541581167; Fri, 04 Jul 2014 23:26:21 -0700 (PDT) Received: from mail-vc0-f169.google.com (mail-vc0-f169.google.com [209.85.220.169]) by mx.google.com with ESMTPS id h2si9783918vdq.42.2014.07.04.23.26.21 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 04 Jul 2014 23:26:21 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.169 as permitted sender) client-ip=209.85.220.169; Received: by mail-vc0-f169.google.com with SMTP id la4so2262871vcb.28 for ; Fri, 04 Jul 2014 23:26:21 -0700 (PDT) X-Received: by 10.52.252.226 with SMTP id zv2mr11359426vdc.19.1404541581043; Fri, 04 Jul 2014 23:26:21 -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 tc5csp509576vcb; Fri, 4 Jul 2014 23:26:20 -0700 (PDT) X-Received: by 10.66.188.5 with SMTP id fw5mr14666251pac.63.1404541580115; Fri, 04 Jul 2014 23:26:20 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bt6si2658367pdb.486.2014.07.04.23.26.19; Fri, 04 Jul 2014 23:26:19 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-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 S1760699AbaGEG0A (ORCPT + 27 others); Sat, 5 Jul 2014 02:26:00 -0400 Received: from mail-we0-f178.google.com ([74.125.82.178]:40310 "EHLO mail-we0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760570AbaGEGZt (ORCPT ); Sat, 5 Jul 2014 02:25:49 -0400 Received: by mail-we0-f178.google.com with SMTP id x48so2327054wes.37 for ; Fri, 04 Jul 2014 23:25:48 -0700 (PDT) X-Received: by 10.180.72.176 with SMTP id e16mr62422038wiv.44.1404541548212; Fri, 04 Jul 2014 23:25:48 -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 bq7sm87573325wib.7.2014.07.04.23.25.46 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 04 Jul 2014 23:25:47 -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, srinivas.kandagatla@gmail.com, devicetree@vger.kernel.org, balbi@ti.com, linux-usb@vger.kernel.org, linux-omap@vger.kernel.org Cc: peter.griffin@linaro.org, lee.jones@linaro.org, peppe.cavallaro@st.com Subject: [PATCH v2 2/3] ARM: dts: sti: Add st-dwc3 devicetree bindings documentation Date: Sat, 5 Jul 2014 07:25:29 +0100 Message-Id: <1404541530-27856-3-git-send-email-peter.griffin@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1404541530-27856-1-git-send-email-peter.griffin@linaro.org> References: <1404541530-27856-1-git-send-email-peter.griffin@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@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.169 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 usb3 controller glue layer found in STiH407 devices. Signed-off-by: Giuseppe Cavallaro Signed-off-by: Peter Griffin --- Documentation/devicetree/bindings/usb/dwc3-st.txt | 58 +++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/dwc3-st.txt diff --git a/Documentation/devicetree/bindings/usb/dwc3-st.txt b/Documentation/devicetree/bindings/usb/dwc3-st.txt new file mode 100644 index 0000000..befd964 --- /dev/null +++ b/Documentation/devicetree/bindings/usb/dwc3-st.txt @@ -0,0 +1,58 @@ +ST DWC3 glue logic + +This file documents the parameters for the dwc3-st driver. +This driver provides the glue logic to use the dwc3 on STiH407 based platforms. + +Required properties: + - compatible : must be "st,stih407-dwc3" + - reg : glue logic base address and USB syscfg ctrl register offset + - reg-names : should be "reg-glue" and "syscfg-reg" + - st,syscon : should be phandle to system configuration node which + encompasses the glue registers + - resets : phandle pointing to the system powerdown controller +See: Documentation/devicetree/bindings/reset/st,sti-powerdown.txt +See: Documentation/devicetree/bindings/reset/reset.txt + + - #address-cells, #size-cells : should be '1' if the device has sub-nodes + with 'reg' property + + - pinctl-names : A pinctrl state named "default" must be defined +See: Documentation/devicetree/bindings/pinctrl/pinctrl-binding.txt + + - pinctrl-0 : Pin control group +See: Documentation/devicetree/bindings/pinctrl/pinctrl-binding.txt + + - ranges : allows valid 1:1 translation between child's address space and + parent's address space + +Optional properties: + - st,dwc3-drd-device: to program the HC as "device" (static setup) + +Sub-nodes: +The dwc3 core should be added as subnode to ST DWC3 glue as shown in the +example below. The DT binding details of dwc3 can be found in: +Documentation/devicetree/bindings/usb/dwc3.txt + +Example: + +st_dwc3: dwc3@8f94000 { + status = "disabled"; + compatible = "st,stih407-dwc3"; + reg = <0x08f94000 0x1000>, <0x110 0x4>; + reg-names = "reg-glue", "syscfg-reg"; + st,syscfg = <&syscfg_core>; + resets = <&powerdown STIH407_USB3_POWERDOWN>; + #address-cells = <1>; + #size-cells = <1>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usb3>; + ranges; + + dwc3: dwc3@9900000 { + compatible = "synopsys,dwc3"; + reg = <0x09900000 0x100000>; + interrupts = ; + + usb-phy = <&usb2_phy>, <&usb3_phy>; + }; +};