Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1124028pxb; Fri, 6 Nov 2020 01:21:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJw9RkSvzYTe0l3diTPwNC3FYLX+P02uVqoNLnh/FyTt85WFImn6gIUAuVPEub72srDVhDin X-Received: by 2002:a05:6402:b45:: with SMTP id bx5mr990976edb.193.1604654486898; Fri, 06 Nov 2020 01:21:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604654486; cv=none; d=google.com; s=arc-20160816; b=GvvxRpxzAfBzKlivv9WNjcgPI36/gUfz8JE4i+CCCT+LeA3qvhzsW5N7dlqm3mnbVn gdB781UpDokupKN61Ub6BxOrxBHjAmOOhGWzMvCcL8yKPw3x8AADM3TC8NFJCH28fCEK qY+pOtmka7xfJnD4ZzEQp5lToNB2BKvneAgqbq5Rhn4Gv/DXSV2a+7x1g0P+CiD9ec0X +y3VYkyqvfV6mNmjPGiCcoummpLC9PmVhUS+3JeCvEPioDnUI/LgYFWe0AreUDyAOvE1 bu0qfpPAoC5TcVKPmAOiku/0F0HbwLqPNMRA/ep/+UNxVzHEyrnlo4/qCTv1v+QPsqJG oueg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=EtuYOrqCs0Fxb2hFUZ6Z3gtrK51CMI3ATE1ilZwoDvo=; b=CkL1CadJ6TwVmX/vPey2+kvBYNL/LMCkJ5LE3zRSdYqA+eyd45ZgRxAXtwsyJpJRYC Y7E6+ES10YT/zpkIGXar5wJTjXcl1FVJNUrz6vCHhdb3Z4zjnJVjTTMyxBZM984D2eyL UtPbK0B6hIz6nvHb7uA55fNQcqAlYpqFbFlavhfIYucbGjPG26NrogqTuxzW8xkPV2kN tZBbwZkbJhkPsRcqnxiL8p+GYZy6mm56HuOuNpTv8wXvz6H7hZqbeSN/Vh7JH8eZQRWb vlsA9XPWMmux80+MZQ/Gy8Pz0bcgJHlUIjacgnqWv+B98zFwGRCBdWxMT+aJxWNH9hZ/ JEkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=OJ5gUzVR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=st.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p60si510085edd.331.2020.11.06.01.21.03; Fri, 06 Nov 2020 01:21:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=OJ5gUzVR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726610AbgKFJTj (ORCPT + 99 others); Fri, 6 Nov 2020 04:19:39 -0500 Received: from mx07-00178001.pphosted.com ([185.132.182.106]:19138 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725924AbgKFJTb (ORCPT ); Fri, 6 Nov 2020 04:19:31 -0500 Received: from pps.filterd (m0046037.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 0A6986vc017489; Fri, 6 Nov 2020 10:19:09 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=STMicroelectronics; bh=EtuYOrqCs0Fxb2hFUZ6Z3gtrK51CMI3ATE1ilZwoDvo=; b=OJ5gUzVRSkS/KyH0RXjEcTP8FF1N9xRH4pMjWQbpcg1buDlgQbtt2QJYPhxU49mJ0hEr VPFQuQur5clee+73+Ar2OgszgTTiS3FLTpZTKKPdj6xqqlKLcIpriNovzyqWjMfNbycm UOsTN5i+VWXdIOIaYD2z5yyNo5lDOOKObBWn62HIVgf+rufUw3WPxgGwezt2KWEQmpjF 3Yi3+Inax1oZFbuhawzf/cU+xehlKYHn1eTblzd3lrBSICaF9rgGnEDMhx3XbUhL0WpZ zrog5kCFmGmr2OMY1rixHLRq6tOekItN0A0f77XnBtrmPknSMfXxnjgRg2EQNVqVtGhz CA== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 34h00eu8ga-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 06 Nov 2020 10:19:09 +0100 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id B437D100038; Fri, 6 Nov 2020 10:19:08 +0100 (CET) Received: from Webmail-eu.st.com (sfhdag3node2.st.com [10.75.127.8]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id A43A8233E9D; Fri, 6 Nov 2020 10:19:08 +0100 (CET) Received: from localhost (10.75.127.45) by SFHDAG3NODE2.st.com (10.75.127.8) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Fri, 6 Nov 2020 10:19:08 +0100 From: Amelie Delaunay To: Rob Herring , Greg Kroah-Hartman , Maxime Coquelin , Alexandre Torgue , Russell King , Heikki Krogerus , Badhri Jagan Sridharan , Jun Li CC: , , , , , Amelie Delaunay , Fabrice Gasnier Subject: [PATCH v4 1/5] dt-bindings: connector: add typec-power-opmode property to usb-connector Date: Fri, 6 Nov 2020 10:18:50 +0100 Message-ID: <20201106091854.14958-2-amelie.delaunay@st.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201106091854.14958-1-amelie.delaunay@st.com> References: <20201106091854.14958-1-amelie.delaunay@st.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.75.127.45] X-ClientProxiedBy: SFHDAG3NODE3.st.com (10.75.127.9) To SFHDAG3NODE2.st.com (10.75.127.8) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.312,18.0.737 definitions=2020-11-06_03:2020-11-05,2020-11-06 signatures=0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Power operation mode may depends on hardware design, so, add the optional property typec-power-opmode for usb-c connector to select the power operation mode capability. Signed-off-by: Amelie Delaunay --- Hi Bahdri, Rob, I've added the exlusion with FRS property, but new FRS property name should be use here so, be careful. --- .../bindings/connector/usb-connector.yaml | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/Documentation/devicetree/bindings/connector/usb-connector.yaml b/Documentation/devicetree/bindings/connector/usb-connector.yaml index 62781518aefc..a84464b3e1f2 100644 --- a/Documentation/devicetree/bindings/connector/usb-connector.yaml +++ b/Documentation/devicetree/bindings/connector/usb-connector.yaml @@ -93,6 +93,24 @@ properties: - device - dual + typec-power-opmode: + description: Determines the power operation mode that the Type C connector + will support and will advertise through CC pins when it has no power + delivery support. + - "default" corresponds to default USB voltage and current defined by the + USB 2.0 and USB 3.2 specifications, 5V 500mA for USB 2.0 ports and + 5V 900mA or 1500mA for USB 3.2 ports in single-lane or dual-lane + operation respectively. + - "1.5A" and "3.0A", 5V 1.5A and 5V 3.0A respectively, as defined in USB + Type-C Cable and Connector specification, when Power Delivery is not + supported. + allOf: + - $ref: /schemas/types.yaml#definitions/string + enum: + - default + - 1.5A + - 3.0A + # The following are optional properties for "usb-c-connector" with power # delivery support. source-pdos: @@ -192,6 +210,12 @@ allOf: type: const: micro +anyOf: + - not: + required: + - typec-power-opmode + - new-source-frs-typec-current + additionalProperties: true examples: -- 2.17.1