From patchwork Thu Dec 19 14:23:03 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matt Porter X-Patchwork-Id: 303560 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 617702C0090 for ; Fri, 20 Dec 2013 01:26:54 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754861Ab3LSOX1 (ORCPT ); Thu, 19 Dec 2013 09:23:27 -0500 Received: from mail-ie0-f175.google.com ([209.85.223.175]:43071 "EHLO mail-ie0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754838Ab3LSOXY (ORCPT ); Thu, 19 Dec 2013 09:23:24 -0500 Received: by mail-ie0-f175.google.com with SMTP id x13so1372040ief.34 for ; Thu, 19 Dec 2013 06:23:24 -0800 (PST) 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=acN8K6zfIPD0wDpdPbauWHmKQgo+aXyMANfLJFUI5nM=; b=l888vTkbpgJ2dMWt0WHReH0irfeJITU9u3Xrei5yz1hRdWPvvNb3Wh6RLRmsb+pNvA U9I/i+iZ08n8ml6EkMzhyEAs/koYMXMwTkCVhE8vSPt36Ao4VYvFxrzRywDAll9+CuQ0 yRRUJqD1OnYbTtm82BKqHbYbfarJ6MRisiwnrboB0W84n3uigJqnADLATK44a1cC1Rcq yfZFanu/xEAZK2fhFwGW66TKsY0+JMq/L3QFkQ69lsPom88cC4ahzzYP6YF2/sWHt7sy UwwSEKDbWUfV4EKTCJVKkE4KX2/Lnal0MNQDxjaJPx4XidO6Hjb0XDFQsDqWQpQYhS9n FvhA== X-Gm-Message-State: ALoCoQnmaWQRMmbFJmsDbl2jwzR4u5nr9eZR82MbdKImbxTI21z2/RM8vsBBGunIqbiE++lqRkY5 X-Received: by 10.50.109.132 with SMTP id hs4mr2955225igb.34.1387463003951; Thu, 19 Dec 2013 06:23:23 -0800 (PST) Received: from beef.ohporter.com (cpe-98-27-254-98.neo.res.rr.com. [98.27.254.98]) by mx.google.com with ESMTPSA id l7sm5656642igx.2.2013.12.19.06.23.21 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 19 Dec 2013 06:23:23 -0800 (PST) From: Matt Porter To: Felipe Balbi , Greg Kroah-Hartman , Kishon Vijay Abraham I , Rob Herring , Pawel Moll , Mark Rutland , Kumar Gala , Ian Campbell , Christian Daudt , Paul Zimmerman Cc: Tomasz Figa , Kamil Debski , Kyungmin Park , Dinh Nguyen , Russell King , Linux USB List , Linux ARM Kernel List , Linux Kernel Mailing List , Devicetree List , Linaro Patches Subject: [PATCH v8 2/9] staging: dwc2: update DT binding to add generic clock/phy properties Date: Thu, 19 Dec 2013 09:23:03 -0500 Message-Id: <1387462990-12039-3-git-send-email-mporter@linaro.org> X-Mailer: git-send-email 1.8.4 In-Reply-To: <1387462990-12039-1-git-send-email-mporter@linaro.org> References: <1387462990-12039-1-git-send-email-mporter@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org dwc2/s3c-hsotg require a single clock to be specified and optionally a generic phy. On the s3c-hsotg driver old style USB phy support is present as a fallback so the generic phy properties are optional. Signed-off-by: Matt Porter Acked-by: Kishon Vijay Abraham I --- Documentation/devicetree/bindings/staging/dwc2.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Documentation/devicetree/bindings/staging/dwc2.txt b/Documentation/devicetree/bindings/staging/dwc2.txt index 1a1b7cf..a1753ed 100644 --- a/Documentation/devicetree/bindings/staging/dwc2.txt +++ b/Documentation/devicetree/bindings/staging/dwc2.txt @@ -5,6 +5,14 @@ Required properties: - compatible : "snps,dwc2" - reg : Should contain 1 register range (address and length) - interrupts : Should contain 1 interrupt +- clocks: clock provider specifier +- clock-names: shall be "otg" +Refer to clk/clock-bindings.txt for generic clock consumer properties + +Optional properties: +- phys: phy provider specifier +- phy-names: shall be "device" +Refer to phy/phy-bindings.txt for generic phy consumer properties Example: @@ -12,4 +20,8 @@ Example: compatible = "ralink,rt3050-usb, snps,dwc2"; reg = <0x101c0000 40000>; interrupts = <18>; + clocks = <&usb_otg_ahb_clk>; + clock-names = "otg"; + phys = <&usbphy>; + phy-names = "usb2-phy"; };