Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5990099ybi; Wed, 29 May 2019 00:46:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqwqutQZfCLiSBhSe6rIqthz6gQKgXrI0GeBy71eiNVeP5Aa92G33qGjwCJImeLWENSbZ0ig X-Received: by 2002:a17:902:8ec3:: with SMTP id x3mr82868958plo.340.1559116015671; Wed, 29 May 2019 00:46:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559116015; cv=none; d=google.com; s=arc-20160816; b=CXNWCwYqTD/JBguyM8GSGYYow1R8Nsv0qa43GFBzAYK11wWaJmEvS4sOVpyWkrfX0J cGQzW0SPaqpBCn0vwkRaTXTLj5s4dSzJ2NtoDiTrN6mbN0nR6ZPOMEvjvFV90ILfE3E9 OwfHEALOVMBzfH+M+deV5Gflm9pdsqGqFXFkxgjdwPxmEptOGaebjnjETHW1opdHPzrv AS9w5P9N6WdDK+QmSPhKtFaOfgd0XP2WLyGv0Dcn7zTn/Ub1LvJn4YvXhJm3k9rckZdG O6sRDF0QwnzX2KrYeRL9Q7V3HvoQj7NMWvIrxktYVRt5uNylFKXjay1CcSIjKSuLk9XH KFyw== 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=1cAhCfB37ViA2Y2U9w1QHFMyFdBmSu8uhFP2vmICVU4=; b=AyLKPpGMvkE89qSa2CA0xXZVmIkGQWSyJE3w+svcsTAbK1p9/Fa2t29/KVoI1qISQu rXMbRL3v26QMLPAkjsW4u++JcmNoijeqVEWcWlQG6/NGg0p5XvYBOPJRCK1NhB1JI1Ze L/xFLak6gSLufq5pDy09oLdYlX8YermlA2e5197M4n5bCgsZoCAfaJTRA/hPBdrIOqki FCBgOyfqJmb149n9EpwXebl0liXFeNh86sOKgTXnu6CmfjhZB0vKEmbyIRXIit22MZsb E2B0LOCn+hQiR9IU8vxJ5izAjmYesBcfNl1u9XXnZHsPpuC3UuLaVItXZzweBZs+MQmA /Ysg== 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 p19si21106079plq.47.2019.05.29.00.46.40; Wed, 29 May 2019 00:46:55 -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 S1726939AbfE2HoU (ORCPT + 99 others); Wed, 29 May 2019 03:44:20 -0400 Received: from mailgw02.mediatek.com ([1.203.163.81]:10434 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726104AbfE2HoO (ORCPT ); Wed, 29 May 2019 03:44:14 -0400 X-UUID: 901cb59dda324d9ca9e1a2dee2790b74-20190529 X-UUID: 901cb59dda324d9ca9e1a2dee2790b74-20190529 Received: from mtkcas34.mediatek.inc [(172.27.4.253)] by mailgw02.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 1677181078; Wed, 29 May 2019 15:44:09 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by MTKMBS31N2.mediatek.inc (172.27.4.87) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 29 May 2019 15:44:07 +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:06 +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 02/10] dt-bindings: connector: add optional properties for Type-B Date: Wed, 29 May 2019 15:43:40 +0800 Message-ID: <1559115828-19146-3-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 id-gpios, vbus-gpios, vbus-supply and pinctrl properties for usb-b-connector Signed-off-by: Chunfeng Yun Reviewed-by: Rob Herring --- v6 no changes v5 changes: 1. add reviewed by Rob v4 no changes v3 changes: 1. add GPIO direction, and use fixed-regulator for GPIO controlled VBUS regulator suggested by Rob; v2 changes: 1. describe more clear for vbus-gpios and vbus-supply suggested by Hans --- .../bindings/connector/usb-connector.txt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Documentation/devicetree/bindings/connector/usb-connector.txt b/Documentation/devicetree/bindings/connector/usb-connector.txt index cef556d4e5ee..d357987181ee 100644 --- a/Documentation/devicetree/bindings/connector/usb-connector.txt +++ b/Documentation/devicetree/bindings/connector/usb-connector.txt @@ -17,6 +17,20 @@ Optional properties: - self-powered: Set this property if the usb device that has its own power source. +Optional properties for usb-b-connector: +- id-gpios: an input gpio for USB ID pin. +- vbus-gpios: an input gpio for USB VBUS pin, used to detect presence of + VBUS 5V. + see gpio/gpio.txt. +- vbus-supply: a phandle to the regulator for USB VBUS if needed when host + mode or dual role mode is supported. + Particularly, if use an output GPIO to control a VBUS regulator, should + model it as a regulator. + see regulator/fixed-regulator.yaml +- pinctrl-names : a pinctrl state named "default" is optional +- pinctrl-0 : pin control group + see pinctrl/pinctrl-bindings.txt + Optional properties for usb-c-connector: - power-role: should be one of "source", "sink" or "dual"(DRP) if typec connector has power support. -- 2.21.0