From patchwork Wed Jul 2 14:08:47 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Griffin X-Patchwork-Id: 32986 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pa0-f70.google.com (mail-pa0-f70.google.com [209.85.220.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 73FC6218C3 for ; Wed, 2 Jul 2014 14:09:50 +0000 (UTC) Received: by mail-pa0-f70.google.com with SMTP id lj1sf58548072pab.1 for ; Wed, 02 Jul 2014 07:09:49 -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=mKcXi04SyOykq97OsdFvbiPFbiB852DfjzkpOWVi3bM=; b=Ldhsf4Sgstf2oPW005s6KL5vZpdoZH18Ro/Y28ROFz0oAlh/uNgTEFgz+H6AcREEe5 KZQuqISLEExBMoE+P7howrx+JVGCQFZkJej+QD+FUYhr1wR5zoDmehhOoziG17ae9OKv sAB43aQO3msuo5FXGTasK02+qPz4zkLFDgPe4F5wmNgfmBZLUblZidqGSHfPauo8iffe KS/zvGoZv76nLu0tqpsJWM++7z2ky6bTG/NSN7iB5tYhupWvDt9X3AzDmvj7v/hAsrWa RFSXhWuuYJPqxM1HxnrnJuu/b6qKTOUqzV89zLW/1g2Oa9CnHeIU1cLy3GqZN/4Ie8cG 42dw== X-Gm-Message-State: ALoCoQlZF+wOZQrWFuFAzZuPWiOx+rcYNmG618Ko6566m+HZBMr9gYoCUPt9QkV79dr0Kiyj+GPE X-Received: by 10.69.31.75 with SMTP id kk11mr26815262pbd.8.1404310189549; Wed, 02 Jul 2014 07:09:49 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.94.163 with SMTP id g32ls62995qge.17.gmail; Wed, 02 Jul 2014 07:09:49 -0700 (PDT) X-Received: by 10.58.34.169 with SMTP id a9mr25858774vej.5.1404310189372; Wed, 02 Jul 2014 07:09:49 -0700 (PDT) Received: from mail-vc0-f180.google.com (mail-vc0-f180.google.com [209.85.220.180]) by mx.google.com with ESMTPS id vr7si12944178vcb.93.2014.07.02.07.09.49 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 02 Jul 2014 07:09:49 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.180 as permitted sender) client-ip=209.85.220.180; Received: by mail-vc0-f180.google.com with SMTP id im17so10527397vcb.11 for ; Wed, 02 Jul 2014 07:09:49 -0700 (PDT) X-Received: by 10.52.253.131 with SMTP id aa3mr37472658vdd.25.1404310189274; Wed, 02 Jul 2014 07:09:49 -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.37.5 with SMTP id tc5csp296008vcb; Wed, 2 Jul 2014 07:09:48 -0700 (PDT) X-Received: by 10.68.202.194 with SMTP id kk2mr69736285pbc.156.1404310187961; Wed, 02 Jul 2014 07:09:47 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id pw11si30355329pab.184.2014.07.02.07.09.47; Wed, 02 Jul 2014 07:09:47 -0700 (PDT) Received-SPF: none (google.com: devicetree-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 S1753933AbaGBOJm (ORCPT + 8 others); Wed, 2 Jul 2014 10:09:42 -0400 Received: from mail-we0-f177.google.com ([74.125.82.177]:41254 "EHLO mail-we0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753898AbaGBOJk (ORCPT ); Wed, 2 Jul 2014 10:09:40 -0400 Received: by mail-we0-f177.google.com with SMTP id u56so11227233wes.36 for ; Wed, 02 Jul 2014 07:09:39 -0700 (PDT) X-Received: by 10.194.1.164 with SMTP id 4mr59305617wjn.17.1404310179445; Wed, 02 Jul 2014 07:09:39 -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 ey16sm55596854wid.14.2014.07.02.07.09.38 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 02 Jul 2014 07:09:38 -0700 (PDT) From: Peter Griffin To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, p.zabel@pengutronix.de, srinivas.kandagatla@gmail.com, maxime.coquelin@st.com, patrice.chotard@st.com Cc: peter.griffin@linaro.org, lee.jones@linaro.org, devicetree@vger.kernel.org Subject: [PATCH v2 2/4] reset: sti: Document sti-picophyreset controllers bindings. Date: Wed, 2 Jul 2014 15:08:47 +0100 Message-Id: <1404310129-14667-3-git-send-email-peter.griffin@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1404310129-14667-1-git-send-email-peter.griffin@linaro.org> References: <1404310129-14667-1-git-send-email-peter.griffin@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: devicetree@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.180 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: , Add DT bindings documentation for sti-picophyreset controller. Signed-off-by: Peter Griffin --- .../bindings/reset/st,sti-picophyreset.txt | 42 ++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 Documentation/devicetree/bindings/reset/st,sti-picophyreset.txt diff --git a/Documentation/devicetree/bindings/reset/st,sti-picophyreset.txt b/Documentation/devicetree/bindings/reset/st,sti-picophyreset.txt new file mode 100644 index 0000000..54ae9f7 --- /dev/null +++ b/Documentation/devicetree/bindings/reset/st,sti-picophyreset.txt @@ -0,0 +1,42 @@ +STMicroelectronics STi family Sysconfig Picophy SoftReset Controller +============================================================================= + +This binding describes a reset controller device that is used to enable and +disable on-chip PicoPHY USB2 phy(s) using "softreset" control bits found in +the STi family SoC system configuration registers. + +The actual action taken when softreset is asserted is hardware dependent. +However, when asserted it may not be possible to access the hardware's +registers and after an assert/deassert sequence the hardware's previous state +may no longer be valid. + +Please refer to Documentation/devicetree/bindings/reset/reset.txt +for common reset controller binding usage. + +Required properties: +- compatible: Should be "st,stih407-picophyreset" +- #reset-cells: 1, see below + +Example: + + picophyreset: picophyreset-controller { + compatible = "st,stih407-picophyreset"; + #reset-cells = <1>; + }; + +Specifying picophyreset control of devices +======================================= + +Device nodes should specify the reset channel required in their "resets" +property, containing a phandle to the picophyreset device node and an +index specifying which channel to use, as described in +Documentation/devicetree/bindings/reset/reset.txt. + +Example: + + usb2_picophy0: usbpicophy@0 { + resets = <&picophyreset STIH407_PICOPHY0_RESET>; + }; + +Macro definitions for the supported reset channels can be found in: +include/dt-bindings/reset-controller/stih407-resets.h