Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5989750ybi; Wed, 29 May 2019 00:46:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqzcNb8FVIuUhoQuaph/stLS/hUJ4L6go3xPoeKDpr1D/jWF9QK3fuEOqqpWdVnwZ83wU1Xn X-Received: by 2002:a65:4084:: with SMTP id t4mr47270035pgp.224.1559115989930; Wed, 29 May 2019 00:46:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559115989; cv=none; d=google.com; s=arc-20160816; b=KO/P5Pq98ATgYYlvUdPOY8F/Wb4ohaoy7aBxj0aNMkXXqUQVkQhSYKEK3enrWvVZL2 uXc7r4vgMmIrKvFx3gxhnLHqeYI8zKWyqDKARM/18OZvbcBDmFIKV7BtSuSg+khfvxXF jvmdpQb666eo68/lME1aEEK/76fNcFRWWEYssLZeHGpnkPbbLm5cvkYO4khpuke53O5J BhF00KypldB2uUc3oBLGQB0WY5VPcg8zz8n5PaVqYwYln5FwRGbbcagbPGPiivUSWK/+ u4mPku9ZKjHKVXHLmtEp3y7IRbSZw7O11kObnMBgvXnuGoFGW7klmCBUDSXsnwSdYEqF ZwAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=atBDPmv6u+95Xx5eNZzVqvPl8MuU4hdYmwciPUGP6qw=; b=VuvbSqdugtWl8wlKORNz4RCUmisNYTcd3qKJNbg7pK6g1bF4pgKFGmoM2uGZgdazMm z1RNpb/oiC0360dh0IiNwdOSHkccMsfKcVXKvXexL0Ac7TQc6g+jDr0uTX2pXY4/oTgp CYMRtfD7PcIa8bNolhUpFdtVzobu22hrRxb89nFNA91EH7bh5sNiETZaR2xQBJl7qqwz EwsnOjx/BfPH9G0Blkh751Hr0XaTwA3hnKGnzJRhWaw6Z7a8vI3ZA5IzJegyj69MnAxO fkrm4A7vXJzEv4rR3cnlp2Da4raLsq3cmM0+EXYf3cVv3tByQU25qXjDJ8Rx5HDqf2s5 yE8g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j12si16850908pgc.573.2019.05.29.00.46.14; Wed, 29 May 2019 00:46:29 -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; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727001AbfE2Ho1 (ORCPT + 99 others); Wed, 29 May 2019 03:44:27 -0400 Received: from Mailgw01.mediatek.com ([1.203.163.78]:28951 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726101AbfE2HoU (ORCPT ); Wed, 29 May 2019 03:44:20 -0400 X-UUID: bc3961119c6541f0ade61bc3d020d143-20190529 X-UUID: bc3961119c6541f0ade61bc3d020d143-20190529 Received: from mtkcas32.mediatek.inc [(172.27.4.253)] by mailgw01.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 660837579; Wed, 29 May 2019 15:44:13 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by MTKMBS31DR.mediatek.inc (172.27.6.102) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 29 May 2019 15:44:11 +0800 Received: from localhost.localdomain (10.17.3.153) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Wed, 29 May 2019 15:44:10 +0800 From: Chunfeng Yun To: Rob Herring , Greg Kroah-Hartman , Heikki Krogerus CC: Mark Rutland , Chunfeng Yun , Matthias Brugger , Adam Thomson , Li Jun , Badhri Jagan Sridharan , Hans de Goede , Andy Shevchenko , Min Guo , , , , , , Biju Das , Linus Walleij , Yu Chen Subject: [PATCH v6 04/10] dt-bindings: usb: mtu3: add properties about USB Role Switch Date: Wed, 29 May 2019 15:43:42 +0800 Message-ID: <1559115828-19146-5-git-send-email-chunfeng.yun@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1559115828-19146-1-git-send-email-chunfeng.yun@mediatek.com> References: <1559115828-19146-1-git-send-email-chunfeng.yun@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Now the USB Role Switch is supported, so add properties about it, and modify some description related. Signed-off-by: Chunfeng Yun Reviewed-by: Rob Herring --- v4 no changes v5 changes: 1. modify decription about extcon and vbus-supply properties 2. make this patch depend on [1] [1]: [v3] dt-binding: usb: add usb-role-switch property https://patchwork.kernel.org/patch/10934835/ v4 no changes v3 no changes v2 changes: 1. fix typo 2. refer new binding about connector property --- .../devicetree/bindings/usb/mediatek,mtu3.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Documentation/devicetree/bindings/usb/mediatek,mtu3.txt b/Documentation/devicetree/bindings/usb/mediatek,mtu3.txt index 3382b5cb471d..3a8300205cdb 100644 --- a/Documentation/devicetree/bindings/usb/mediatek,mtu3.txt +++ b/Documentation/devicetree/bindings/usb/mediatek,mtu3.txt @@ -28,8 +28,13 @@ Optional properties: parent's address space - extcon : external connector for vbus and idpin changes detection, needed when supports dual-role mode. + it's considered valid for compatibility reasons, not allowed for + new bindings, and use "usb-role-switch" property instead. - vbus-supply : reference to the VBUS regulator, needed when supports dual-role mode. + it's considered valid for compatibility reasons, not allowed for + new bindings, and put into a usb-connector node. + see connector/usb-connector.txt. - pinctrl-names : a pinctrl state named "default" is optional, and need be defined if auto drd switch is enabled, that means the property dr_mode is set as "otg", and meanwhile the property "mediatek,enable-manual-drd" @@ -39,6 +44,8 @@ Optional properties: - maximum-speed : valid arguments are "super-speed", "high-speed" and "full-speed"; refer to usb/generic.txt + - usb-role-switch : use USB Role Switch to support dual-role switch, but + not extcon; see usb/generic.txt. - enable-manual-drd : supports manual dual-role switch via debugfs; usually used when receptacle is TYPE-A and also wants to support dual-role mode. @@ -61,6 +68,9 @@ The xhci should be added as subnode to mtu3 as shown in the following example if host mode is enabled. The DT binding details of xhci can be found in: Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.txt +The port would be added as subnode if use "usb-role-switch" property. + see graph.txt + Example: ssusb: usb@11271000 { compatible = "mediatek,mt8173-mtu3"; -- 2.21.0