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: 36545 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f71.google.com (mail-oa0-f71.google.com [209.85.219.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 77B9A2039B for ; Wed, 3 Sep 2014 10:29:19 +0000 (UTC) Received: by mail-oa0-f71.google.com with SMTP id g18sf44607132oah.10 for ; Wed, 03 Sep 2014 03:29:19 -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=dF+pkR32XGnHeTD9rtV59XBFBJuewiN1m+UmqJs4Cag=; b=RjqWgpbizo40O8ARmBXkcJ81m5+xJoauR9Cxi+nvqqH3iqJVXkhyPA8bimvDF0/BpK C6O4VnfslmBrievgRHqVKYTnKiJRUehF1yBilXv6/o6w3SaCyfIzrr1dCtfesz34F9Ys 7EawEXqcSZSd1p7p8CW3NzxwL5OrfbF2NyHywJABhCuCQR5y9Yb7i9IROU1lcjg1EhVq 5jXfsuiONcPRqG5Mts1fZjLnuwsNf1Ip7MNiQU+QqnCQ6VpeMqb/pGgRKakSy8jclHFz AIvH0TbpUjZTnKJFU5jnJWYPtXS65Gx/c8G4IzAu80RmAtRoE7M9TkJ14lKHNCKlp/dt ssHg== X-Gm-Message-State: ALoCoQnkT6nIlQBAh2lcDEKWzJiADcC8bLvauo6VnJDM1de8IHqQtmbaknmHzQMe59FNCnazG29p X-Received: by 10.182.81.161 with SMTP id b1mr21175293oby.1.1409740159111; Wed, 03 Sep 2014 03:29:19 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.101.210 with SMTP id u76ls2778176qge.62.gmail; Wed, 03 Sep 2014 03:29:19 -0700 (PDT) X-Received: by 10.52.32.66 with SMTP id g2mr660881vdi.49.1409740159004; Wed, 03 Sep 2014 03:29:19 -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 c13si3394111vcb.97.2014.09.03.03.29.18 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 03 Sep 2014 03:29:18 -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 hy4so8368495vcb.24 for ; Wed, 03 Sep 2014 03:29:18 -0700 (PDT) X-Received: by 10.220.250.142 with SMTP id mo14mr34272224vcb.26.1409740158918; Wed, 03 Sep 2014 03:29:18 -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 uj3csp658264vcb; Wed, 3 Sep 2014 03:29:18 -0700 (PDT) X-Received: by 10.66.246.109 with SMTP id xv13mr13177737pac.144.1409740158087; Wed, 03 Sep 2014 03:29:18 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id de6si10093990pdb.232.2014.09.03.03.29.07 for ; Wed, 03 Sep 2014 03:29:08 -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 S932196AbaICK2Q (ORCPT + 25 others); Wed, 3 Sep 2014 06:28:16 -0400 Received: from mail-we0-f171.google.com ([74.125.82.171]:65523 "EHLO mail-we0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932154AbaICK2N (ORCPT ); Wed, 3 Sep 2014 06:28:13 -0400 Received: by mail-we0-f171.google.com with SMTP id u56so8358437wes.16 for ; Wed, 03 Sep 2014 03:28:11 -0700 (PDT) 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 Cc: peter.griffin@linaro.org, lee.jones@linaro.org, devicetree@vger.kernel.org, Giuseppe Cavallaro 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> 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.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 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"; +};