From patchwork Wed Jul 30 15:28:10 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Griffin X-Patchwork-Id: 34545 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f199.google.com (mail-pd0-f199.google.com [209.85.192.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 076D520792 for ; Wed, 30 Jul 2014 15:29:03 +0000 (UTC) Received: by mail-pd0-f199.google.com with SMTP id ft15sf8028382pdb.6 for ; Wed, 30 Jul 2014 08:29:03 -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=7i+TmtW4uwscf7clklns1wmi6zvMz4Ec9xMQPscO55U=; b=l7BpALp8bchKJ6QLyQ1/dbjsBEfQ//KV80WMjTXpbckzasTHLowilPJc714UkR+Ox8 4P92h1v7/9CbpGRcV0NPzRFotGo1JJKouegBw+O/IKhjqzY6B3t3aPqJBUm9b8RZ/ZZr eGsxIPPCWw5RqA85vAm8GDJhp/aR3h0hBUfxflPMubTHRqs5QyZfpYhTw3Pay0dscVoH KWkv3h8khqb5ko7r7rPS877ArCy2HE4i0lgZb+cU/7uUwbFkl0YFXMH43NQs/e8R3JyA KgL0SaXj+rky7T6+Gx773pAkXTSxEKbG80nJ+Zarju2AHMIKrcK7wTE5yhPKqSOJvySz BnMQ== X-Gm-Message-State: ALoCoQl+G1evrY5TUsNyiswpKOqvy1NsDR/B2S/dyaiOJEIQX1kU1+RMe3CqlbssKeGcWwesgnFl X-Received: by 10.70.44.230 with SMTP id h6mr2049536pdm.7.1406734143315; Wed, 30 Jul 2014 08:29:03 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.83.50 with SMTP id i47ls570645qgd.38.gmail; Wed, 30 Jul 2014 08:29:03 -0700 (PDT) X-Received: by 10.52.9.35 with SMTP id w3mr8508052vda.12.1406734143157; Wed, 30 Jul 2014 08:29:03 -0700 (PDT) Received: from mail-vc0-f179.google.com (mail-vc0-f179.google.com [209.85.220.179]) by mx.google.com with ESMTPS id z4si2026373vei.17.2014.07.30.08.29.03 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 30 Jul 2014 08:29:03 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.179 as permitted sender) client-ip=209.85.220.179; Received: by mail-vc0-f179.google.com with SMTP id hq11so2076791vcb.10 for ; Wed, 30 Jul 2014 08:29:03 -0700 (PDT) X-Received: by 10.221.26.10 with SMTP id rk10mr5634281vcb.0.1406734143006; Wed, 30 Jul 2014 08:29:03 -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 tc5csp36339vcb; Wed, 30 Jul 2014 08:29:02 -0700 (PDT) X-Received: by 10.70.89.161 with SMTP id bp1mr5774110pdb.62.1406734142160; Wed, 30 Jul 2014 08:29:02 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a12si1409233pdm.6.2014.07.30.08.29.01 for ; Wed, 30 Jul 2014 08:29:02 -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 S1755162AbaG3P3A (ORCPT + 6 others); Wed, 30 Jul 2014 11:29:00 -0400 Received: from mail-we0-f174.google.com ([74.125.82.174]:38931 "EHLO mail-we0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754856AbaG3P22 (ORCPT ); Wed, 30 Jul 2014 11:28:28 -0400 Received: by mail-we0-f174.google.com with SMTP id x48so1396434wes.33 for ; Wed, 30 Jul 2014 08:28:26 -0700 (PDT) X-Received: by 10.194.174.35 with SMTP id bp3mr7020553wjc.33.1406734106167; Wed, 30 Jul 2014 08:28:26 -0700 (PDT) Received: from localhost.localdomain (79-67-254-135.dynamic.dsl.as9105.com. [79.67.254.135]) by mx.google.com with ESMTPSA id g8sm56460386wib.18.2014.07.30.08.28.24 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 30 Jul 2014 08:28:25 -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 Cc: peter.griffin@linaro.org, lee.jones@linaro.org, linux-usb@vger.kernel.org, linux-omap@vger.kernel.org, peppe.cavallaro@st.com Subject: [PATCH v4 2/3] usb: dwc3: dwc3-st: Add st-dwc3 devicetree bindings documentation Date: Wed, 30 Jul 2014 16:28:10 +0100 Message-Id: <1406734091-16202-3-git-send-email-peter.griffin@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1406734091-16202-1-git-send-email-peter.griffin@linaro.org> References: <1406734091-16202-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.220.179 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 | 69 +++++++++++++++++++++++ 1 file changed, 69 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..de3fea3 --- /dev/null +++ b/Documentation/devicetree/bindings/usb/dwc3-st.txt @@ -0,0 +1,69 @@ +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" + usb-phy = <&usb3_phy>; + phy-names = "usb2-phy"; + phys = <&usb2_picophy2>; + }; +};