Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5990279ybi; Wed, 29 May 2019 00:47:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqw5yiZGNeZYMqt23EdiMIlRjcl7nxaBhtwvkmj3yRCaKdWrtAbK6ak6m49TZqWoEP4YdZMw X-Received: by 2002:a63:7:: with SMTP id 7mr138395281pga.108.1559116026249; Wed, 29 May 2019 00:47:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559116026; cv=none; d=google.com; s=arc-20160816; b=U3/FFVJCciFCUNYm0A7ZKorc4RwUtPFC5P8V+1aBvdnm6IatLliAzaxVOgQ0d7ArLx t3hbP4nSSe7V1Y9JW1XkEhQoDeSpe9hkvFXlO2WY7bsKSqHmCxW8w4+lL1HRfsLtuogz Vnn4Ced/EUooxQGFfqPwhFrzxp5apkpJUvy/UZzXu1qc4kzPm+t2LVwXWuW3Gb3foH/T gp1Zz1D3bDl7793rgAE792HLVb94oQayx62TwpjFryufU5G3BvIQxeuJ1xaoXuHlreVO PNmKXfLUiow0Uu7DiU2u5QsSTseWGQ1mjZ/lfd/FZ+uyCk7G3DMPqWlRUqG9sK8PK2od MPxw== 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=7nUc3zBTcREoH2oXrhxMHuJb5RuYemJflBlGhqZJIpw=; b=tgQx6af+KWvhOgyB5qbGhWCEQLC4nAfUHl49Sp7Smc6akUztt8uaNCat+Dxrcexy9H 44zbZPX0w1QTMYxFvMBee81vOFygkru7Q1XiN+eB0OS59rq43u6cftG96klduIXBZFEu fqp1LnKWyWDffbWuEG94zddOra1IHJ214E170oTKTFVAd6JSX2h2CQ9t9R9IykiPWQgb rKDe88KIzhNgNBQ7RZnvmX1xZ7sVb9n1G0Qe9WIGGRpISwmQRQue2pM7uawBM6TeBH6O cgtjpwauaLi37YXpcMiOii9N0T27yF+QbIqkl6fUu3UlALA8rF+T0iLt89TomCosE5Zl gK+Q== 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 71si10234285plf.156.2019.05.29.00.46.50; Wed, 29 May 2019 00:47:06 -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 S1726910AbfE2HoQ (ORCPT + 99 others); Wed, 29 May 2019 03:44:16 -0400 Received: from mailgw02.mediatek.com ([1.203.163.81]:30881 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726101AbfE2HoO (ORCPT ); Wed, 29 May 2019 03:44:14 -0400 X-UUID: c5dc104a363640b5a02198dc71712b84-20190529 X-UUID: c5dc104a363640b5a02198dc71712b84-20190529 Received: from mtkcas35.mediatek.inc [(172.27.4.253)] by mailgw02.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 900374555; Wed, 29 May 2019 15:44:07 +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:05 +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:04 +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 01/10] dt-binding: usb: add usb-role-switch property Date: Wed, 29 May 2019 15:43:39 +0800 Message-ID: <1559115828-19146-2-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 Add a property usb-role-switch to tell the driver that use USB Role Switch framework to handle the role switch, it's useful when the driver has already supported other ways, such as extcon framework etc. Cc: Biju Das Cc: Yu Chen Signed-off-by: Chunfeng Yun Reviewed-by: Rob Herring Reviewed-by: Heikki Krogerus --- v6: 1. merge into this series patch 2. add Reviewed-by (no v4, v5) v3: add property type, modify description suggested by Heikki v2: describe it in terms of h/w functionality suggested by Rob v1: the property is discussed in: [v2,2/7] dt-bindings: usb: renesas_usb3: add usb-role-switch property https://patchwork.kernel.org/patch/10852497/ Mediatek and Hisilicon also try to use it: [v4,3/6] dt-bindings: usb: mtu3: add properties about USB Role Switch https://patchwork.kernel.org/patch/10918385/ [v4,6/6] usb: mtu3: register a USB Role Switch for dual role mode https://patchwork.kernel.org/patch/10918367/ [v6,10/13] usb: dwc3: Registering a role switch in the DRD code https://patchwork.kernel.org/patch/10909981/ --- Documentation/devicetree/bindings/usb/generic.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/usb/generic.txt b/Documentation/devicetree/bindings/usb/generic.txt index 0a74ab8dfdc2..cf5a1ad456e6 100644 --- a/Documentation/devicetree/bindings/usb/generic.txt +++ b/Documentation/devicetree/bindings/usb/generic.txt @@ -30,6 +30,10 @@ Optional properties: optional for OTG device. - adp-disable: tells OTG controllers we want to disable OTG ADP, ADP is optional for OTG device. + - usb-role-switch: boolean, indicates that the device is capable of assigning + the USB data role (USB host or USB device) for a given + USB connector, such as Type-C, Type-B(micro). + see connector/usb-connector.txt. This is an attribute to a USB controller such as: -- 2.21.0