From patchwork Thu Jul 24 11:00:15 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Griffin X-Patchwork-Id: 4616991 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id CD8F19F375 for ; Thu, 24 Jul 2014 11:04:18 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 08C84201D3 for ; Thu, 24 Jul 2014 11:04:18 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 19A38201CD for ; Thu, 24 Jul 2014 11:04:17 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XAGm8-0000U8-J1; Thu, 24 Jul 2014 11:01:28 +0000 Received: from mail-wi0-f179.google.com ([209.85.212.179]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XAGln-0000PQ-OS for linux-arm-kernel@lists.infradead.org; Thu, 24 Jul 2014 11:01:10 +0000 Received: by mail-wi0-f179.google.com with SMTP id f8so3788371wiw.0 for ; Thu, 24 Jul 2014 04:00:45 -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=HTbsHzCPrCd66wLlR56svHR3DkZygjoKGfLIJTvPibY=; b=FupMp/pnJQxSdQcMRTw5M9ACXMBNnExUoKJ2Wtr1yJeQeoRYET9Az5D7dMpsHre89Q FpUa7yBMxf9p0IdwxCSPS4tZM9WGexxTdw01OlGXASm/XipcQVLqeFteVdkwU3iAZxll PoQ+Dbc7dzFB34rxLN9VCya3XRB1k7z+n9hk/9bMw2Xhzn4ZWQ+EaeAPLrbZu7+BPWdN r4KbCUdmC0BOHyRlhhVrk/ubnnSFQ2AZUcfPJKgPUyM6+/N4qxm3QFSghYQZ1rfAWr5R +/LgpL/yRyK0fU+Mr3UGGsRlT4BhpAfHajoj82vh9w21iUcOOitUfu+nPAUuX0WfU/oe 0UKw== X-Gm-Message-State: ALoCoQk5WDeaCCxmpWNRpN+G7/XKbpr7k9in5AcbnY+g2cCqEg81s+7MYSy16zU9TsLLl2uGmT5m X-Received: by 10.180.12.33 with SMTP id v1mr34051218wib.0.1406199645295; Thu, 24 Jul 2014 04:00:45 -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 n2sm14885912wjf.40.2014.07.24.04.00.42 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 24 Jul 2014 04:00:44 -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, gregkh@linuxfoundation.org, srinivas.kandagatla@gmail.com, linux-usb@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v2 2/3] usb: host: st-hcd: Add st-hcd devicetree bindings documentation. Date: Thu, 24 Jul 2014 12:00:15 +0100 Message-Id: <1406199616-10533-3-git-send-email-peter.griffin@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1406199616-10533-1-git-send-email-peter.griffin@linaro.org> References: <1406199616-10533-1-git-send-email-peter.griffin@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140724_040107_943074_3AA0A209 X-CRM114-Status: GOOD ( 11.84 ) X-Spam-Score: -0.7 (/) Cc: peter.griffin@linaro.org, lee.jones@linaro.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch documents the device tree documentation required for the ST HCD controller found in STMicroelectronics SoCs. Signed-off-by: Peter Griffin Acked-by: Lee Jones --- Documentation/devicetree/bindings/usb/st-hcd.txt | 49 ++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/st-hcd.txt diff --git a/Documentation/devicetree/bindings/usb/st-hcd.txt b/Documentation/devicetree/bindings/usb/st-hcd.txt new file mode 100644 index 0000000..b963be2 --- /dev/null +++ b/Documentation/devicetree/bindings/usb/st-hcd.txt @@ -0,0 +1,49 @@ +ST HCD (Host Controller Driver) for USB 2.0 and 1.1 + +The device node has the following properties. + +Required properties: + - compatible : must be "st,usb-300x" + - reg : physical base addresses of the controller and length of memory mapped + region + - reg-names : names associated to the reg defines above, should be "ehci" and "ohci" + - interrupts : interrupt numbers to the cpu + - interrupt-names : should be "ehci" and "ohci" + + - pinctrl-names : a pinctrl state named "default" must be defined +- pinctrl-0 : phandle referencing pin configuration of the USB controller +See: Documentation/devicetree/bindings/pinctrl/pinctrl-binding.txt + + - clocks : phandle list of usb clocks. + - clock-names : should be "ic" for interconnect clock and "ohci" for the 48MHz clock +See: Documentation/devicetree/bindings/clock/clock-bindings.txt + + - resets : phandle to the powerdown and reset controller for the USB IP + - reset-names : should be "powerdown" and "softreset". +See: Documentation/devicetree/bindings/reset/st,sti-powerdown.txt +See: Documentation/devicetree/bindings/reset/reset.txt + +Example: + +usb0: usb@fe100000 { + compatible = "st,usb-300x"; + reg = <0xfe1ffc00 0x100>, + <0xfe1ffe00 0x100>; + reg-names = "ohci", "ehci"; + + interrupts = , + ; + interrupt-names = "ehci", "ohci"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usb0>; + clocks = <&clk_s_a1_ls CLK_ICN_IF_2>, + <&clockgen_b0 0>; + clock-names = "ic", "ohci"; + + resets = <&powerdown STIH416_USB0_POWERDOWN>, + <&softreset STIH416_USB0_SOFTRESET>; + reset-names = "powerdown", "softreset"; + + phys = <&usb2_phy>; + phy-names = "usb2-phy"; +};