From patchwork Sat Oct 17 20:33:26 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: 55167 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lf0-f71.google.com (mail-lf0-f71.google.com [209.85.215.71]) by patches.linaro.org (Postfix) with ESMTPS id EF41322FFA for ; Sat, 17 Oct 2015 20:34:36 +0000 (UTC) Received: by lffv3 with SMTP id v3sf28104333lff.1 for ; Sat, 17 Oct 2015 13:34:36 -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=IXqhA2wm4IMPyMeYDRJFAnqIyJqNIQ73pzCI5ITG1T70xNfnkEAwx2ZD9SxBb4haAp 5Egc8Fsunu0Wvf1NFclQ3NAHpS1lSO47/FnTlG0+M7C3u2TBL5EMvrKCtx2qhCB0BA8W epRXp5gv9p5eooyBQteJsMVKz1cPvpykrQR923NhOfFcvNxy+cmKFUdbXEW32Kdbax+/ hO7nxBvX2NgqrMQQkO5u/M8Myn+U1jNm3r8Q2UlViW2oIM9fJhLgyBG0jj0tBfZZ5MJ0 42YJE1rbY3GmWTmMs4n8KOIbDpsU1Px7lg5JfLdt7N4S6zUJ2ZPOThMdyoXUVrtVh5fs 9+yg== X-Gm-Message-State: ALoCoQmHrCI67jh79OT1+VdwRM2/58LfuezxzhbI3c7MOebTy4uv+74Q7eSvKKHpULREqzJ1NK55 X-Received: by 10.112.173.170 with SMTP id bl10mr2282738lbc.7.1445114075979; Sat, 17 Oct 2015 13:34:35 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.25.165.212 with SMTP id o203ls425970lfe.39.gmail; Sat, 17 Oct 2015 13:34:35 -0700 (PDT) X-Received: by 10.25.25.207 with SMTP id 198mr7329587lfz.91.1445114075802; Sat, 17 Oct 2015 13:34:35 -0700 (PDT) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com. [209.85.217.182]) by mx.google.com with ESMTPS id n40si10644596lfi.20.2015.10.17.13.34.35 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 17 Oct 2015 13:34:35 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.182 as permitted sender) client-ip=209.85.217.182; Received: by lbbpp2 with SMTP id pp2so91495025lbb.0 for ; Sat, 17 Oct 2015 13:34:35 -0700 (PDT) X-Received: by 10.112.199.137 with SMTP id jk9mr11190332lbc.86.1445114075653; Sat, 17 Oct 2015 13:34:35 -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 w3csp659407lbq; Sat, 17 Oct 2015 13:34:34 -0700 (PDT) X-Received: by 10.68.57.129 with SMTP id i1mr24452499pbq.51.1445114074310; Sat, 17 Oct 2015 13:34:34 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ys5si39457950pbb.23.2015.10.17.13.34.33; Sat, 17 Oct 2015 13:34:34 -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 S1752389AbbJQUeM (ORCPT + 28 others); Sat, 17 Oct 2015 16:34:12 -0400 Received: from arroyo.ext.ti.com ([192.94.94.40]:33043 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751037AbbJQUdd (ORCPT ); Sat, 17 Oct 2015 16:33:33 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id t9HKXW3b025127; Sat, 17 Oct 2015 15:33:32 -0500 Received: from DFLE73.ent.ti.com (dfle73.ent.ti.com [128.247.5.110]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id t9HKXWpM019249; Sat, 17 Oct 2015 15:33:32 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DFLE73.ent.ti.com (128.247.5.110) with Microsoft SMTP Server id 14.3.224.2; Sat, 17 Oct 2015 15:33:32 -0500 Received: from a0393678ub.am.dhcp.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id t9HKXVpg003521; Sat, 17 Oct 2015 15:33:31 -0500 From: Kishon Vijay Abraham I To: CC: , Subject: [PATCH 2/7] dt-bindings: Add usb3.0 phy binding for MT65xx SoCs Date: Sun, 18 Oct 2015 02:03:26 +0530 Message-ID: <1445114011-4191-3-git-send-email-kishon@ti.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1445114011-4191-1-git-send-email-kishon@ti.com> References: <1445114011-4191-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.217.182 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"; + ... +};