From patchwork Wed Sep 3 10:27:58 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Griffin X-Patchwork-Id: 4832551 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 35CD19F314 for ; Wed, 3 Sep 2014 10:35:15 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2892F20148 for ; Wed, 3 Sep 2014 10:35:14 +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 3C66D20219 for ; Wed, 3 Sep 2014 10:35:13 +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 1XP7nv-0003vB-8w; Wed, 03 Sep 2014 10:28:43 +0000 Received: from mail-we0-f175.google.com ([74.125.82.175]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XP7nn-0003ie-HS for linux-arm-kernel@lists.infradead.org; Wed, 03 Sep 2014 10:28:36 +0000 Received: by mail-we0-f175.google.com with SMTP id k48so8310875wev.34 for ; Wed, 03 Sep 2014 03:28:11 -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=Hr5xd1k+5Xo3oeKNjlTh0CtPdS5djjRiGLu9Pm6G+kQ=; b=DRW1xwHd6akw47Yf9aAjJ1Fmj6YJzdEbnMzZ0uiKBtJ+AzmEtyXT41fTPvf12ef2QG 3jesWKwc+ujhiGRCGgdHIAEs+ZXSjWi7ZQjJlCjLmli8Z65tEFiXnmQHLywYKnNBrB3x qf3GinXmJ/ydMPPWNIy6Fy85gcSk5ZbFAuAPE4V+ZI7SZaE97E+NYRPgUf72YjHDuFRE 2eMGkwM25byQQnLKin4MsOgweMkAEgeQn3006gJANQ47oJDegPcs2xnJ6gIBDPOVcFAK GqGSZbonxxTS+0JWY/FRjzsYkQ8nfw7QkRDOBC32Zt088y0kZiVHNOfMAlv6Ka/9Dznn yiDw== X-Gm-Message-State: ALoCoQnR50x3GSNmBVcydCSkh+mij2kWvnzVE9JoOzDGdoHcQ70zp+DpCR/Md3aoakxut18FWEb4 X-Received: by 10.180.98.97 with SMTP id eh1mr2804524wib.14.1409740091573; Wed, 03 Sep 2014 03:28:11 -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 gk17sm3803619wic.16.2014.09.03.03.28.09 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 03 Sep 2014 03:28:10 -0700 (PDT) From: Peter Griffin To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, srinivas.kandagatla@gmail.com, maxime.coquelin@st.com, patrice.chotard@st.com, kishon@ti.com Subject: [PATCH 2/3] phy: phy-stih407-usb: Add dt documentation for USB picophy found on stih407 SoC family Date: Wed, 3 Sep 2014 11:27:58 +0100 Message-Id: <1409740079-16554-3-git-send-email-peter.griffin@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1409740079-16554-1-git-send-email-peter.griffin@linaro.org> References: <1409740079-16554-1-git-send-email-peter.griffin@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140903_032835_726231_B5C7DDE0 X-CRM114-Status: GOOD ( 13.79 ) X-Spam-Score: -0.7 (/) Cc: peter.griffin@linaro.org, devicetree@vger.kernel.org, lee.jones@linaro.org, Giuseppe Cavallaro 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=-3.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, 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 adds the dt documentation for the usb picophy found on stih407 SoC family available from STMicroelectronics. Signed-off-by: Giuseppe Cavallaro Signed-off-by: Peter Griffin --- .../devicetree/bindings/phy/phy-stih407-usb.txt | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/phy-stih407-usb.txt diff --git a/Documentation/devicetree/bindings/phy/phy-stih407-usb.txt b/Documentation/devicetree/bindings/phy/phy-stih407-usb.txt new file mode 100644 index 0000000..650d346 --- /dev/null +++ b/Documentation/devicetree/bindings/phy/phy-stih407-usb.txt @@ -0,0 +1,37 @@ +ST STiH407 USB-PHY controller + +This file documents the dt bindings for the picoPHY driver which is the PHY for both USB2 and USB3 host controllers +controllers available on STiH407 SoC families. + +On STiH410, we have to use the DWC3 port#2 with a picoPHY to manage USB2 +devices. The USB2 Controller will use the ports #0 and #1. + +This is to document the DT parameters to be passed from the blob in that case. + +Required properties: +- compatible : should be "st,stih407-usb2-phy" +- reg : contain the offset and length of the system configuration registers + used as glue logic to control & parameter phy +- reg-names : the names of the system configuration registers in "reg", should be "param" and "reg" +- st,syscfg : sysconfig register to manage phy parameter at driver level +- resets : list of phandle and reset specifier pairs. There should be two entries, one + for the whole phy and one for the port +- reset-names : list of reset signal names. Should be "global" and "port" +See: Documentation/devicetree/bindings/reset/st,sti-powerdown.txt +See: Documentation/devicetree/bindings/reset/reset.txt + +Example: + +usb2_picophy0: usbpicophy@0 { + compatible = "st,stih407-usb2-phy"; + reg = <0xf8 0x04>, /* syscfg 5062 */ + <0xf4 0x04>; /* syscfg 5061 */ + reg-names = "param", + "ctrl"; + #phy-cells = <0>; + st,syscfg = <&syscfg_core>; + resets = <&softreset STIH407_PICOPHY_SOFTRESET>, + <&picophyreset STIH407_PICOPHY0_RESET>; + reset-names = "global", + "port"; +};