Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp171840ybk; Tue, 19 May 2020 18:53:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwCH1+PaNAheO8ArkwVQpb4bbmz/NZH0aDE3rUJosA30kdiEbeHAUQI7NZXCbOfL46zR+2x X-Received: by 2002:a05:6402:79a:: with SMTP id d26mr1294800edy.188.1589939615784; Tue, 19 May 2020 18:53:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589939615; cv=none; d=google.com; s=arc-20160816; b=uhGZneojw1jtygTNyh8xSpN6njqtLiGDTUvKJ7LKOAIgqKY6g+RKsZr7rG7j4h3xrr b6sA9aluS8S6oweEZJ0CyjBlqW9n76pH29v9WMXPQdltBL1nnyP8k/6K7Wb17vabdCHh qF5v3F5rhFqcOBo2lthQKya57NL5mY9mVjt7uHv4ZvgMzd7bPW4xlpaCQh+mhpcCR0o0 K87EK2yl2ctzaJykUwVtAS5MHeQfpY1Y3YDCNFpXULJDs2fHt+Mt3nNvuyyiVLplBEZ5 dohPCD+CY9DbdvlfFPa5XlXC4HBtT5Gb9Sxxsgcxem2SBH6cK0VusTvLEKpi8wSvELyb JBGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=lwNCB4Dsry2wZ58/xIrXOOv8YhkYu6cJrmOfJMlkcmo=; b=u9H/0K/zcC3LcIyYfgoV9lMwiRlt/b8D3ONdVUwdbvj0ywOT09s4qjxhovqpQ+8BOV dkyYSqiP8ncZYfl4rZp1tPTIsnjULp4Rc/h6Cdnc/NpVOH3XsDiOaGaMUFN+7b0hc7Lu yGrFPOdgdx72EDcGlcY0Ki4EEgfsWUlO5hQpKsNs3mncEOmD4/nJ8zo6ixmQwDCf82Zc ZPQe3Y/0pjyg9jXYIlEMHtyuXXRW/ifVA9WKQUnapMOt0ceKoQJ98D3cOY/0mIODq7wz /B60Yo1c07wO7c6k95uYpheRPcuErj5uPrLxIaMPGGnomIqjgOp2XN3ouZgcbG9BhbXk yvCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="FGO/koYG"; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f8si655068edy.149.2020.05.19.18.53.11; Tue, 19 May 2020 18:53:35 -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; dkim=pass header.i=@chromium.org header.s=google header.b="FGO/koYG"; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728421AbgETBvq (ORCPT + 99 others); Tue, 19 May 2020 21:51:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728300AbgETBvq (ORCPT ); Tue, 19 May 2020 21:51:46 -0400 Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16E12C061A0F for ; Tue, 19 May 2020 18:51:45 -0700 (PDT) Received: by mail-pl1-x644.google.com with SMTP id u22so666011plq.12 for ; Tue, 19 May 2020 18:51:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=lwNCB4Dsry2wZ58/xIrXOOv8YhkYu6cJrmOfJMlkcmo=; b=FGO/koYG5KrQ3cEFeVBk/aC5T5tsFvhsdPbYmeApeHsY1N86CXmNLZfCZRW/x7y5DW CQnPqHgiW5IjtF+sE1w2/7oI2K7WweQUdw+FSniShG8Q+SRER/2bxbIuNrdO28ov4Npn exgg+xPnAA6W8/iOdo1ApNTzOkzp85dDVUivc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=lwNCB4Dsry2wZ58/xIrXOOv8YhkYu6cJrmOfJMlkcmo=; b=MoWGwPxSWn5T6dQtXxHzlx1NvbNbBmRxQAX306AdXcyZeVaCd/Sc2UguQV1z1zCFnm aT4zQL59km1GdGZj3recNWkRf3dK8WlsBdPhzGsGq/fM1ADszACOMk4jYqzoq3l2lpUR tbPvKXPBPuxnZRnQE5XnWpzg6yyoYlrbCB32IcMsre07JeG7SrT4gsHscpDEfZGhvD2p G6v5K3eYtJRZ8pt4cotZ/hpeQyyPFrVgnOBlRoA06vIbD6Z6beXaoTCrq3eyFGJ5jBgi qId5L95lcpDEZ73/hvQLFA/Tfk6vOyxE5Xvpx8vD5YP8i5Ic42CaQKJ+dBQESNPFvL/y Wljw== X-Gm-Message-State: AOAM530Ibv3qiYAFD0OsFDmxAFrCpQlaRFdK+31C2pLlc1+0z7rknxTi YehfnIdSwTbUqcHwNBdsb4Prsehi22A= X-Received: by 2002:a17:90a:7787:: with SMTP id v7mr2620624pjk.199.1589939504221; Tue, 19 May 2020 18:51:44 -0700 (PDT) Received: from google.com ([2620:15c:202:201:476b:691:abc3:38db]) by smtp.gmail.com with ESMTPSA id a16sm610238pff.41.2020.05.19.18.51.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 May 2020 18:51:43 -0700 (PDT) Date: Tue, 19 May 2020 18:51:41 -0700 From: Prashant Malani To: linux-kernel@vger.kernel.org Cc: heikki.krogerus@linux.intel.com, Benson Leung , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Enric Balletbo i Serra , Guenter Roeck , Rob Herring Subject: Re: [PATCH v2 1/2] dt-bindings: chrome: Add cros-ec-typec mux props Message-ID: <20200520015141.GA124149@google.com> References: <20200518071707.161843-1-pmalani@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200518071707.161843-1-pmalani@chromium.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rob, On Mon, May 18, 2020 at 12:17:04AM -0700, 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 > Acked-By: Benson Leung Sorry, looks like I made a typo while adding the "Acked-by" from a previous version. I have uploaded v3 with this fixed. Thanks, > --- > > Changes in v2: > - Added more text to the switch descriptions, explaining their purpose, > and relation to the Type C connector class framework. > > .../bindings/chrome/google,cros-ec-typec.yaml | 40 ++++++++++++++++++- > 1 file changed, 39 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..800c005a0e44 100644 > --- a/Documentation/devicetree/bindings/chrome/google,cros-ec-typec.yaml > +++ b/Documentation/devicetree/bindings/chrome/google,cros-ec-typec.yaml > @@ -21,7 +21,34 @@ 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 > + for this connector. This switch controls the data lines routing > + for this connector for various operation modes, including > + Alternate Modes. This switch is assumed registered with the Type C > + connector class framework by its driver. The Type C connector > + class framework assumes that the mode switch property uses this > + name. > + > + orientation-switch: > + description: Reference to a DT node for the USB Type C orientation > + switch for this connector. This switch controls routing the > + correct data pairs depending on the cable plug orientation from > + this connector to the USB / Alternate Mode controllers. This > + switch is assumed registered with the Type C connector class > + framework by its driver. The Type C connector class framework > + assumes that the orientation switch property uses this name. > + > + usb-role-switch: > + description: Reference to a DT node for the USB Data role switch > + for this connector. This switch is assumed registered with the > + Type C connector class framework by its driver. The Type C > + connector class framework assumes that the USB role switch > + property uses this name. > > required: > - compatible > @@ -49,6 +76,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>; > + }; > }; > }; > }; > -- > 2.26.2.761.g0e0b3e54be-goog >