From patchwork Sat Oct 17 02:22:13 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kishon Vijay Abraham I X-Patchwork-Id: 55142 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f197.google.com (mail-wi0-f197.google.com [209.85.212.197]) by patches.linaro.org (Postfix) with ESMTPS id 650DB22EAC for ; Sat, 17 Oct 2015 02:23:00 +0000 (UTC) Received: by wicgb1 with SMTP id gb1sf7929150wic.3 for ; Fri, 16 Oct 2015 19:22:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-type:sender:precedence :list-id:x-original-sender:x-original-authentication-results :mailing-list:list-post:list-help:list-archive:list-unsubscribe; bh=vLBXdF4FNXxfcc1nYASWVwcBGNAamjmk94Ra3KCcgjc=; b=XdE3iKO5DbqoL9TN8XI5DXiw8itZ7NMOBd16wyzsWgTTTh9NbI25ATFcucoUhPFX/H xW7Q5sMpjrf+1MDkwr9edl83FEgK6QxQSziElJCuTGemxCm43QmpAsZcmv4Cw1hSrybL jlynvEqIgSPLtS8MxZDpK6USeLqXJXdWfmkq9r3CFtrMAeUObuqwowGOqBg3vvshCpe/ IfQky1fQICzwvgr2AXj5oUM+lL75Nn9yeKRzyMWkH2mUFy6bbv+ac13g9ZhwapnR8BkN zZlbmRXWUrx3Xc52KopObNhaWr4boGrpuv51W3h5DtKYdhyZlD3vFBVY1RQJlKNQ8+bO C/rA== X-Gm-Message-State: ALoCoQma/M+Q6fDsMsPMlu4v3G1ohTvX3LIrCMM1uH+OXL2crvRLCLiiuJ+1vggseUU30zLuO7lD X-Received: by 10.112.54.197 with SMTP id l5mr4347695lbp.21.1445048579628; Fri, 16 Oct 2015 19:22:59 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.77.80 with SMTP id a77ls412722lfb.70.gmail; Fri, 16 Oct 2015 19:22:59 -0700 (PDT) X-Received: by 10.112.62.232 with SMTP id b8mr9542024lbs.27.1445048579321; Fri, 16 Oct 2015 19:22:59 -0700 (PDT) Received: from mail-lf0-f52.google.com (mail-lf0-f52.google.com. [209.85.215.52]) by mx.google.com with ESMTPS id d18si14793906lfe.57.2015.10.16.19.22.59 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Oct 2015 19:22:59 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.52 as permitted sender) client-ip=209.85.215.52; Received: by lffy185 with SMTP id y185so86777554lff.2 for ; Fri, 16 Oct 2015 19:22:59 -0700 (PDT) X-Received: by 10.25.145.132 with SMTP id t126mr6380049lfd.88.1445048579107; Fri, 16 Oct 2015 19:22:59 -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.112.59.35 with SMTP id w3csp244220lbq; Fri, 16 Oct 2015 19:22:57 -0700 (PDT) X-Received: by 10.68.239.165 with SMTP id vt5mr20048570pbc.15.1445048577422; Fri, 16 Oct 2015 19:22:57 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id mk6si33466926pab.21.2015.10.16.19.22.57; Fri, 16 Oct 2015 19:22:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752748AbbJQCWW (ORCPT + 30 others); Fri, 16 Oct 2015 22:22:22 -0400 Received: from comal.ext.ti.com ([198.47.26.152]:42606 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751968AbbJQCWT (ORCPT ); Fri, 16 Oct 2015 22:22:19 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id t9H2MILw026560; Fri, 16 Oct 2015 21:22:18 -0500 Received: from DFLE72.ent.ti.com (dfle72.ent.ti.com [128.247.5.109]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id t9H2MI1I012539; Fri, 16 Oct 2015 21:22:18 -0500 Received: from dflp33.itg.ti.com (10.64.6.16) by DFLE72.ent.ti.com (128.247.5.109) with Microsoft SMTP Server id 14.3.224.2; Fri, 16 Oct 2015 21:22:18 -0500 Received: from a0393678ub.am.dhcp.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id t9H2MIuX003368; Fri, 16 Oct 2015 21:22:18 -0500 From: Kishon Vijay Abraham I To: CC: , Subject: [PATCH 2/7] dt-bindings: Add usb3.0 phy binding for MT65xx SoCs Date: Sat, 17 Oct 2015 07:52:13 +0530 Message-ID: <1445048538-4855-3-git-send-email-kishon@ti.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1445048538-4855-1-git-send-email-kishon@ti.com> References: <1445048538-4855-1-git-send-email-kishon@ti.com> MIME-Version: 1.0 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: kishon@ti.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.52 as permitted sender) smtp.mailfrom=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: , From: Chunfeng Yun add a DT binding documentation of usb3.0 phy for MT65xx SoCs from Mediatek. Acked-by: Rob Herring Signed-off-by: Chunfeng Yun Signed-off-by: Kishon Vijay Abraham I --- .../devicetree/bindings/phy/phy-mt65xx-usb.txt | 68 ++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/phy-mt65xx-usb.txt diff --git a/Documentation/devicetree/bindings/phy/phy-mt65xx-usb.txt b/Documentation/devicetree/bindings/phy/phy-mt65xx-usb.txt new file mode 100644 index 0000000..00100cf --- /dev/null +++ b/Documentation/devicetree/bindings/phy/phy-mt65xx-usb.txt @@ -0,0 +1,68 @@ +mt65xx USB3.0 PHY binding +-------------------------- + +This binding describes a usb3.0 phy for mt65xx platforms of Medaitek SoC. + +Required properties (controller (parent) node): + - compatible : should be "mediatek,mt8173-u3phy" + - reg : offset and length of register for phy, exclude port's + register. + - clocks : a list of phandle + clock-specifier pairs, one for each + entry in clock-names + - clock-names : must contain + "u3phya_ref": for reference clock of usb3.0 analog phy. + +Required nodes : a sub-node is required for each port the controller + provides. Address range information including the usual + 'reg' property is used inside these nodes to describe + the controller's topology. + +Required properties (port (child) node): +- reg : address and length of the register set for the port. +- #phy-cells : should be 1 (See second example) + cell after port phandle is phy type from: + - PHY_TYPE_USB2 + - PHY_TYPE_USB3 + +Example: + +u3phy: usb-phy@11290000 { + compatible = "mediatek,mt8173-u3phy"; + reg = <0 0x11290000 0 0x800>; + clocks = <&apmixedsys CLK_APMIXED_REF2USB_TX>; + clock-names = "u3phya_ref"; + #address-cells = <2>; + #size-cells = <2>; + ranges; + status = "okay"; + + phy_port0: port@11290800 { + reg = <0 0x11290800 0 0x800>; + #phy-cells = <1>; + status = "okay"; + }; + + phy_port1: port@11291000 { + reg = <0 0x11291000 0 0x800>; + #phy-cells = <1>; + status = "okay"; + }; +}; + +Specifying phy control of devices +--------------------------------- + +Device nodes should specify the configuration required in their "phys" +property, containing a phandle to the phy port node and a device type; +phy-names for each port are optional. + +Example: + +#include + +usb30: usb@11270000 { + ... + phys = <&phy_port0 PHY_TYPE_USB3>; + phy-names = "usb3-0"; + ... +};