Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1378086ybz; Wed, 22 Apr 2020 20:03:12 -0700 (PDT) X-Google-Smtp-Source: APiQypLaeyiS1tVl6aVGMcoZpKzjczxn/GpyxEq+Ke4UuTKniEHPKQ+lTXuK503WkBTOTIti+cs2 X-Received: by 2002:aa7:ca41:: with SMTP id j1mr1069796edt.279.1587610991884; Wed, 22 Apr 2020 20:03:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587610991; cv=none; d=google.com; s=arc-20160816; b=ZEdo2kET9HCjI8BZZgCBSAJ9NzDApSCifEywYfSkY5WWHMx6WEg133JnGJ3U6FFKG9 A7gE8we2j44lhJM6C1aSHv4VZiaSxLfC+MXIaOH04TkyQn/48aYtlg+qiujTfmUxsc38 5361S8K9Y6+CCZRmZUZiobM2DdKHducwvQrFQ0asNGkZr6lYEW+u9Op33BupPE9sb3d1 9ICeaHbtHdb2N2dQ77lh/LoMy/v/DRZi2ilTXPoiYNjP4Bpc1eJ3W+oXpcu1Z/46P7cq N5SHBUSmlX4iSqCmWpYEM+xWMob1rPT29bdfdow5viiArdqBs9+eLhT2I2Pqvdi1lASP CtTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=tiG4estVhkFDvM3fXIKf3Waa3WQxJTqbvQi4eb+IlFk=; b=bIHZ1jfexOYIm76U76QdnLTq6O/C51REY+olc/7TklNkfQhQjX3xtWO6gxb3WY6Ng/ 4emnpOxCXXhcWtMi4Em1EO4RZpfED+D0zSr2sYeEws32j8ryPQBfDgQI2mZU/ba/LmGQ huLPrRc8ZbC7nGPcdqExq5o9lZiZo0IFSWbuU1wVdvgfAX33DcVFp9fU6q0kR0K9U4qT FjpbNryU8XhT5SN8P2tmhgNmOb1Vs5mWX5AeibCIOQlqlvPV7IJ/VvXkjeYWNZmx3OAq DjpCSIErGrqpWqIN6laRiB6NwZAty1oVogfJI5Pl3HBmFnvlCBltxdkFTIPhTpl878UV +gfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=BEm38iFu; 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 h5si537879eja.417.2020.04.22.20.02.48; Wed, 22 Apr 2020 20:03:11 -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=BEm38iFu; 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 S1726659AbgDWC7R (ORCPT + 99 others); Wed, 22 Apr 2020 22:59:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725562AbgDWC7R (ORCPT ); Wed, 22 Apr 2020 22:59:17 -0400 Received: from mail-qt1-x844.google.com (mail-qt1-x844.google.com [IPv6:2607:f8b0:4864:20::844]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE843C03C1AB for ; Wed, 22 Apr 2020 19:59:16 -0700 (PDT) Received: by mail-qt1-x844.google.com with SMTP id h26so3412202qtu.8 for ; Wed, 22 Apr 2020 19:59:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=tiG4estVhkFDvM3fXIKf3Waa3WQxJTqbvQi4eb+IlFk=; b=BEm38iFuYJaWYHZu4YEtpMBohffRFeUHGf98irjkVIwRUruQ7r5/ohPVTNK3INRwJT lzarfHB7qxX+JuPKX7/k+n5nTH7KTloOr5Ycpyng8ugKdKQn5/PwLTu3P7MDvxZrYgwH PBvncRLWUzg8UvPrzZjeRSE8kPoygagwyj3u4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=tiG4estVhkFDvM3fXIKf3Waa3WQxJTqbvQi4eb+IlFk=; b=cV2A43XVBOmWtqYktXpFwrT84eVaIO9tvZF6QS2l0ST4PjqfnwT6zzddk30QEMORRu 6hcQK2MYndXuV2mT5vzLk+xA+cfN9GYAkfLd1LLjfgCTmSPsMA/wU9drPYTOrc6ZG2eO bUkFldVapA89aOJ+Hl36zRMaTXazNjYeyXfDR38UpnxN8YSWglinWXaNaTBY+STxQ3CE jr5fsgKPg9sOH0vInP+vbKaCOJjk+hCq6Rm9Ysc8eDphXl+ZY4P3C60haM+Mv96KvznB 3loRp8hkEGIJqmEAA0/ra4YjeZ4aAJvKRZUuqzOZ8OPieQJb32ngz97leb6OJy3gyvpA 2iqw== X-Gm-Message-State: AGi0PuY5LGVP0eMLuIApjTNmjj2j7ESe26bSOhm28bWlLenzLybciJxp ZseEAGdCeKBYrLFXHOLD4S07lMbEPAmT9t0venvIxAat X-Received: by 2002:aed:2dc1:: with SMTP id i59mr1964615qtd.182.1587610755161; Wed, 22 Apr 2020 19:59:15 -0700 (PDT) MIME-Version: 1.0 References: <20200422222242.241699-1-pmalani@chromium.org> In-Reply-To: <20200422222242.241699-1-pmalani@chromium.org> From: Prashant Malani Date: Wed, 22 Apr 2020 19:59:03 -0700 Message-ID: Subject: Re: [PATCH 1/2] dt-bindings: chrome: Add cros-ec-typec mux props To: Linux Kernel Mailing List Cc: Heikki Krogerus , Tim Wawrzynczak , Benson Leung , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Enric Balletbo i Serra , Guenter Roeck , Rob Herring , Stephen Boyd Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org (Forgot to add swboyd to the email, so adding now) On Wed, Apr 22, 2020 at 3:22 PM 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 > --- > .../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>; > + }; > }; > }; > }; > -- > 2.26.1.301.g55bc3eb7cb9-goog >