Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1112053ybz; Wed, 29 Apr 2020 15:17:05 -0700 (PDT) X-Google-Smtp-Source: APiQypIGSVrTwhCWvfh2WOFGC2HF7rrbTJiA1txmitLWvq4l5TH8Wd5jc0wH/0SXPy1pktBgQwbH X-Received: by 2002:aa7:d5d5:: with SMTP id d21mr154318eds.160.1588198625071; Wed, 29 Apr 2020 15:17:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588198625; cv=none; d=google.com; s=arc-20160816; b=DxNKPqypofiVug2SmvqMn3pULrk8m+A3lDgA9G+hfLPvGz10rExKpxwLWLhGH5MJNY 4yunADeph0ZT6g7kBrtqF1PitMmCXnARS66hRs5TaXRwV4jnXw4alp2mR8oUQXufPQem 1PHBAK2xcFJAla0rXdmZ6XVcmdRYvYixbviHO1B1L+6a2Xd8JGQ6CJpskqB5a4LNVJ2v p7bRfvGONt5nnsdXttqIPtTfZbry21vLvNaXUwqWSQU+Xt1GxSg38Gd+7KHJx7l4AvJ7 ma2DJQNOynZzp3oGQlh+fC7XJLFVn/lDIS3tPZ1pJ/86QCArDBhBb9yP4i8vHVPAXMjU r2XA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=LIXDy86M2TzgR91tly0hMbQeuTsiiNSCuzNKeTaR2rI=; b=qfhyw9oE4paJH0kw9EGbtOsGsNvdYppfZRccB25teyYkznd3OLOaRz1TOhGBihvE6P gfAWyZ+gFM47V9WS5VKHjyhTi2D/Gnvrl0OaLLCx/1rCqrPl6zWfjLMK+nAYXSj7QE7v el83DnIF9uwDG34wvNS/DvF0Exhb6bS6QSvz0S68PKn+GWX7C1tgzcKWczMuMRz40gSn KZMAug35v4cpKCTDCrY0hPloLTbQv7JEXqoU3dTgRa6tCdUq4wAeocXwY0NeQpiRxjFU GqSQTsCkcv76XezxUM2StwjKa0SLz7a9/Lv8FrDSFoEG7jHgUxUIofa2UCe+9cxoP9C7 MuRQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x16si4549147ejw.391.2020.04.29.15.16.40; Wed, 29 Apr 2020 15:17:05 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727112AbgD2WNW (ORCPT + 99 others); Wed, 29 Apr 2020 18:13:22 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:39488 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726481AbgD2WNW (ORCPT ); Wed, 29 Apr 2020 18:13:22 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id E1D992A0994 Subject: Re: [PATCH 1/2] dt-bindings: chrome: Add cros-ec-typec mux props To: Prashant Malani , linux-kernel@vger.kernel.org Cc: heikki.krogerus@linux.intel.com, twawrzynczak@chromium.org, Benson Leung , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Guenter Roeck , Rob Herring References: <20200422222242.241699-1-pmalani@chromium.org> From: Enric Balletbo i Serra Message-ID: Date: Thu, 30 Apr 2020 00:13:17 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <20200422222242.241699-1-pmalani@chromium.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Prashant, Thank you for the patch. On 23/4/20 0:22, Prashant Malani wrote: > Add properties for mode, orientation and USB data role switches for > Type C connectors. When available, these will allow the Type C connector > class port driver to configure the various switches according to USB PD > information (like orientation, alt mode etc.) provided by the Chrome OS > EC controller. > > Signed-off-by: Prashant Malani This patch still needs a review from Rob. > --- > .../bindings/chrome/google,cros-ec-typec.yaml | 27 ++++++++++++++++++- > 1 file changed, 26 insertions(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/chrome/google,cros-ec-typec.yaml b/Documentation/devicetree/bindings/chrome/google,cros-ec-typec.yaml > index 6d7396ab8bee..b5814640aa32 100644 > --- a/Documentation/devicetree/bindings/chrome/google,cros-ec-typec.yaml > +++ b/Documentation/devicetree/bindings/chrome/google,cros-ec-typec.yaml > @@ -21,7 +21,21 @@ properties: > const: google,cros-ec-typec > > connector: > - $ref: /schemas/connector/usb-connector.yaml# > + allOf: > + - $ref: /schemas/connector/usb-connector.yaml# > + - type: object > + properties: > + mode-switch: > + description: Reference to a DT node for the USB Type C Multiplexer > + controlling the data lines routing for this connector. > + > + orientation-switch: > + description: Reference to a DT node for the USB Type C orientation > + switch for this connector. > + > + usb-role-switch: > + description: Reference to a DT node for the USB Data role switch > + for this connector. > > required: > - compatible > @@ -49,6 +63,17 @@ examples: > data-role = "dual"; > try-power-role = "source"; > }; > + > + connector@1 { > + compatible = "usb-c-connector"; > + reg = <1>; > + power-role = "dual"; > + data-role = "host"; > + try-power-role = "source"; > + mode-switch = <&typec_mux>; > + orientation-switch = <&typec_orientation_switch>; > + usb-role-switch = <&typec_mux>; > + }; > }; > }; > }; >