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: 367076 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 46E311400D6 for ; Fri, 4 Jul 2014 21:14:29 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932469AbaGDLO0 (ORCPT ); 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-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=JZEmGewxLuGOHYV+t+HggfxLXDYaf3eJIJWN+O/5a98=; b=QBle8BAagBSjeUxbhbTkgTKMkF1edylawPrAGPxCZqT4foVQTYpI6OTvoavdsam2P/ UsLHHk3MGiXrqJX2kBTSCvndihZxJt6n6QIWjpcxmKhXayc0mszHOKKtzec3yz8l+DAp eFz9hEiYh24BjLDfJDHjwrC+j+1RDWFY3MZf0A/uw+li/G/tXRVGQ+UHNaBh+SjtYLtX 3Fhic2Qbt6wOifB1Y1NtosviFzKtvER1jfRVn1/m377KNO9F8iEfyEGWdQj3CflCeVc5 FT+z8hzyY3N0N+RcbSDacpWsHvG80ttaCo7rV/GEwG+eLhjTH6yEV5Yai4P37QFuO6I2 y/Sg== X-Gm-Message-State: ALoCoQnaHfVyovSNDn7awy6i67cSpJUXAwxzXzHhad73VLzY6waHic2W90uPzlqBKIybCq+ExO2J 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: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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>; + }; +};