From patchwork Fri Sep 5 15:36:31 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Griffin X-Patchwork-Id: 36867 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qa0-f70.google.com (mail-qa0-f70.google.com [209.85.216.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E95FB202E4 for ; Fri, 5 Sep 2014 15:37:37 +0000 (UTC) Received: by mail-qa0-f70.google.com with SMTP id j7sf32839500qaq.5 for ; Fri, 05 Sep 2014 08:37:37 -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=lXZ0MRVutmlx6X4yLCxOhSdEC1t+DbmGhPqe6wIr2yA=; b=YYeOaGuQ3fQpqykqOcI2orjsNVGBgCvX+fcdZvvTgabIXvbfTDjPcEgAJ4ZBDHG5Ui KUJCuEkaXwYRyxXX/bS7TXsLE7KwiXeuBeFkccEG+kJvs2BeSVXBKirbB+C5yw3eVJCW qIozSbRh9ZcWsxnTUWir1BM5HUUGvsiNGZBk7g+kMFPSz1TYdc0rLgB7xOBwS2194xuZ XJZOpZK/pZN8t6RtqjWud2qZ+END4hX10qbr0Z1RLG+1u4hOBCDs9uGtTudnRwheHOg7 j6Lx9SLuZE8sUXtUW50Cdoni+39OZv58MKYuBpar33qM0b05Q7jpGExg1ZpQ4Y7UJd1X xiMg== X-Gm-Message-State: ALoCoQnT7y1U8FYJlt2MDxGg8qsZzZswsO8F+mux2MQOTFa9WHmy60IElGNnwaFH/Cux8h5K5gi8 X-Received: by 10.236.125.33 with SMTP id y21mr7243323yhh.20.1409931457795; Fri, 05 Sep 2014 08:37:37 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.94.73 with SMTP id f67ls84228qge.61.gmail; Fri, 05 Sep 2014 08:37:37 -0700 (PDT) X-Received: by 10.52.15.36 with SMTP id u4mr1401206vdc.91.1409931457693; Fri, 05 Sep 2014 08:37:37 -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 yt9si1650004vdb.21.2014.09.05.08.37.37 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 05 Sep 2014 08:37:37 -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 le20so1158396vcb.31 for ; Fri, 05 Sep 2014 08:37:37 -0700 (PDT) X-Received: by 10.220.187.134 with SMTP id cw6mr1778799vcb.71.1409931457613; Fri, 05 Sep 2014 08:37:37 -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.45.67 with SMTP id uj3csp100727vcb; Fri, 5 Sep 2014 08:37:37 -0700 (PDT) X-Received: by 10.70.35.166 with SMTP id i6mr20478979pdj.60.1409931456676; Fri, 05 Sep 2014 08:37:36 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cg2si5028520pad.34.2014.09.05.08.37.36 for ; Fri, 05 Sep 2014 08:37:36 -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 S1751383AbaIEPhb (ORCPT + 26 others); Fri, 5 Sep 2014 11:37:31 -0400 Received: from mail-wi0-f181.google.com ([209.85.212.181]:56999 "EHLO mail-wi0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753536AbaIEPgn (ORCPT ); Fri, 5 Sep 2014 11:36:43 -0400 Received: by mail-wi0-f181.google.com with SMTP id e4so3210199wiv.2 for ; Fri, 05 Sep 2014 08:36:41 -0700 (PDT) X-Received: by 10.180.20.6 with SMTP id j6mr4876831wie.64.1409931401678; Fri, 05 Sep 2014 08:36:41 -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 mz16sm2195025wic.13.2014.09.05.08.36.39 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 05 Sep 2014 08:36:40 -0700 (PDT) From: Peter Griffin To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, balbi@ti.com, maxime.coquelin@st.com, patrice.chotard@st.com, srinivas.kandagatla@gmail.com Cc: peter.griffin@linaro.org, lee.jones@linaro.org, devicetree@vger.kernel.org, linux-usb@vger.kernel.org, linux-omap@vger.kernel.org, peppe.cavallaro@st.com Subject: [PATCH v6 2/3] usb: dwc3: dwc3-st: Add st-dwc3 devicetree bindings documentation Date: Fri, 5 Sep 2014 16:36:31 +0100 Message-Id: <1409931392-22340-3-git-send-email-peter.griffin@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1409931392-22340-1-git-send-email-peter.griffin@linaro.org> References: <1409931392-22340-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.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 usb3 controller glue layer found in STiH407 devices. Signed-off-by: Giuseppe Cavallaro Signed-off-by: Peter Griffin Acked-by: Lee Jones --- Documentation/devicetree/bindings/usb/dwc3-st.txt | 68 +++++++++++++++++++++++ 1 file changed, 68 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..f9d7025 --- /dev/null +++ b/Documentation/devicetree/bindings/usb/dwc3-st.txt @@ -0,0 +1,68 @@ +ST DWC3 glue logic + +This file documents the parameters for the dwc3-st driver. +This driver controls the glue logic used to configure the dwc3 core 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 : list of phandle and reset specifier pairs. There should be two entries, one + for the powerdown and softreset lines of the usb3 IP + - reset-names : list of reset signal names. Names should be "powerdown" and "softreset" +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 + +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 + +NB: The dr_mode property described in [1] is NOT optional for this driver, as the default value +is "otg", which isn't supported by this SoC. Valid dr_mode values for dwc3-st are either "host" +or "device". + +[1] Documentation/devicetree/bindings/usb/generic.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>, + <&softreset STIH407_MIPHY2_SOFTRESET>; + reset-names = "powerdown", + "softreset"; + #address-cells = <1>; + #size-cells = <1>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usb3>; + ranges; + + dwc3: dwc3@9900000 { + compatible = "snps,dwc3"; + reg = <0x09900000 0x100000>; + interrupts = ; + dr_mode = "host"; + phys-names = "usb2-phy", "usb3-phy"; + phys = <&usb2_picophy2>, <&phy_port2 MIPHY_TYPE_USB>; + }; +};