From patchwork Tue Sep 9 09:00:16 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Griffin X-Patchwork-Id: 387212 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 1236214018C for ; Tue, 9 Sep 2014 19:02:14 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756099AbaIIJAl (ORCPT ); Tue, 9 Sep 2014 05:00:41 -0400 Received: from mail-wi0-f179.google.com ([209.85.212.179]:53264 "EHLO mail-wi0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756096AbaIIJAj (ORCPT ); Tue, 9 Sep 2014 05:00:39 -0400 Received: by mail-wi0-f179.google.com with SMTP id q5so4029548wiv.6 for ; Tue, 09 Sep 2014 02:00:38 -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=dAJ/htTmuXn4ZDs8VKF16tJz3hXBEq31tki8WfvqABc=; b=O02nLQQx61XABKa7Gxa68vsfG1T+JsQwDy7/8072tuARnDmfXQd6ZyxrNd5yR1vJsU uM8vEHzS0OzF4NYEpC5xAtm4+caUY0JPj4ngIhUveXkRaXKGG3CCprEuG4wrBSxWgtyu XH4YpxZSbaMYPGaj7mzJm0Fe7IsoUVO2COlH1EryJal9Rpe2SYO7rD8OAwuQOuTthCcO CHLt0vAgDrAjBuxHG1b9eqxuTO0vbAYAZRqh1qqKJa5bcb5rrr07N8FLlK2FnrK2YQoR K6a4bs/WLyhr850eeptHE3C6/YEyY37bQSK+t+6VqzO5roObxgxULw390edZi0yWW2NE XxwQ== X-Gm-Message-State: ALoCoQnbuO9m4zA3XloeErmkrwkS2JzONAdc19XFo7hgxKD4LhpPyr/09A3JSwLACtAZeC3bI05q X-Received: by 10.180.101.129 with SMTP id fg1mr28229550wib.20.1410253238527; Tue, 09 Sep 2014 02:00:38 -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 n5sm14060076wja.38.2014.09.09.02.00.37 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 09 Sep 2014 02:00:37 -0700 (PDT) From: Peter Griffin To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kishon@ti.com, srinivas.kandagatla@gmail.com, maxime.coquelin@st.com, patrice.chotard@st.com Cc: peter.griffin@linaro.org, lee.jones@linaro.org, peppe.cavallaro@st.com, devicetree@vger.kernel.org Subject: [PATCH v2 2/4] phy: phy-stih407-usb: Add dt documentation for USB picophy found on stih407 SoC family Date: Tue, 9 Sep 2014 10:00:16 +0100 Message-Id: <1410253218-18318-3-git-send-email-peter.griffin@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1410253218-18318-1-git-send-email-peter.griffin@linaro.org> References: <1410253218-18318-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 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 | 30 ++++++++++++++++++++++ 1 file changed, 30 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..1ef8228 --- /dev/null +++ b/Documentation/devicetree/bindings/phy/phy-stih407-usb.txt @@ -0,0 +1,30 @@ +ST STiH407 USB PHY controller + +This file documents the dt bindings for the usb picoPHY driver which is the PHY for both USB2 and USB3 +host controllers (when controlling usb2/1.1 devices) available on STiH407 SoC family from STMicroelectronics. + +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@f8 { + 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"; +};