From patchwork Fri Jul 4 11:13:51 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Griffin X-Patchwork-Id: 33086 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f200.google.com (mail-ob0-f200.google.com [209.85.214.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 53AFD20C88 for ; Fri, 4 Jul 2014 11:14:34 +0000 (UTC) Received: by mail-ob0-f200.google.com with SMTP id wm4sf7781068obc.7 for ; Fri, 04 Jul 2014 04:14:34 -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=C8qZXU20ziJR7tjASLNDYhXqe7F/uzy1R9gmp5FDW1c=; b=kHGtQvc6CrAjFt9Jfz6jpYSCJ/qg7SsWrzz5rvTFCQ7eN3E6JjLO4Tpi9kkNAFc5J0 dW75dWV+JH+RopJgagLiD+5NyegtlCqQOEj+iMKZPcj+d8smH5MPKGv/VoYdFS7tWlq2 U/Pwtta9ITARs1qcqp9p3XxKK7CJGBjZbdtwMvuftSOI6Nhd+bf14WBzmCcPyyJHNPD/ SUh87le7ETwi9GV14tP9zhuXVxVO4bf6lOlXVOm1QjbNqKXkWayHmkhvSn6vXcID9Xir ZSE1PEEcbgyWH4Hu/fM+jUXzaBmt8+GCprJhTp1OTykfDdTl6VtFps7iFB1dXNrvto+x gbYQ== X-Gm-Message-State: ALoCoQn1xBLiXPw8hKaC/4lS66eQZ//D9a1hEiKFZhHEMyjrcrxgChnxUdctbbAeyMMHMeSMSbP5 X-Received: by 10.42.40.148 with SMTP id l20mr7274179ice.12.1404472473942; Fri, 04 Jul 2014 04:14:33 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.49.193 with SMTP id q59ls880048qga.91.gmail; Fri, 04 Jul 2014 04:14:33 -0700 (PDT) X-Received: by 10.58.245.134 with SMTP id xo6mr9403913vec.14.1404472473804; Fri, 04 Jul 2014 04:14:33 -0700 (PDT) Received: from mail-ve0-f176.google.com (mail-ve0-f176.google.com [209.85.128.176]) by mx.google.com with ESMTPS id s10si15389739vek.70.2014.07.04.04.14.33 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 04 Jul 2014 04:14:33 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.176 as permitted sender) client-ip=209.85.128.176; Received: by mail-ve0-f176.google.com with SMTP id db12so1519151veb.35 for ; Fri, 04 Jul 2014 04:14:33 -0700 (PDT) X-Received: by 10.58.137.41 with SMTP id qf9mr10357veb.54.1404472473729; Fri, 04 Jul 2014 04:14:33 -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 tc5csp458260vcb; Fri, 4 Jul 2014 04:14:32 -0700 (PDT) X-Received: by 10.67.22.33 with SMTP id hp1mr1032084pad.134.1404472471634; Fri, 04 Jul 2014 04:14:31 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id po7si35127873pbb.66.2014.07.04.04.14.31; Fri, 04 Jul 2014 04:14:31 -0700 (PDT) Received-SPF: none (google.com: devicetree-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 S932469AbaGDLO0 (ORCPT + 8 others); Fri, 4 Jul 2014 07:14:26 -0400 Received: from mail-we0-f178.google.com ([74.125.82.178]:56454 "EHLO mail-we0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932430AbaGDLOX (ORCPT ); Fri, 4 Jul 2014 07:14:23 -0400 Received: by mail-we0-f178.google.com with SMTP id x48so1531998wes.9 for ; Fri, 04 Jul 2014 04:14:22 -0700 (PDT) X-Received: by 10.180.104.5 with SMTP id ga5mr22866993wib.62.1404472461797; Fri, 04 Jul 2014 04:14:21 -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 10sm31337838wjr.22.2014.07.04.04.14.19 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 04 Jul 2014 04:14:21 -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, Giuseppe Cavallaro Subject: [PATCH 2/3] ARM: dts: sti: Add st-dwc3 devicetree bindings documentation Date: Fri, 4 Jul 2014 12:13:51 +0100 Message-Id: <1404472432-24764-3-git-send-email-peter.griffin@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1404472432-24764-1-git-send-email-peter.griffin@linaro.org> References: <1404472432-24764-1-git-send-email-peter.griffin@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: devicetree@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.128.176 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..f14e5da --- /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 offest + - reg-names : Should be "reg-glue" and "syscfg-reg". + - st,syscon : should be phandle to system configuration node which + encompases 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>; + }; +};