Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp802095ybm; Fri, 29 May 2020 12:31:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyz6BZSJ5rh+1Dw54oHx2dQi61u/RuKI/JTpjEzgTt4y0Ls/zqWj3drVb2Se/njnnR3L09Z X-Received: by 2002:a05:6402:645:: with SMTP id u5mr9989655edx.273.1590780691094; Fri, 29 May 2020 12:31:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590780691; cv=none; d=google.com; s=arc-20160816; b=IcDJl3sU+D1pbJMllUSHkmhdESstY7r2haNGyA0bNuxxevS9KN/8MxRlLCmzGy6z+O an4XjhYdZW8CWg1ECbtbcg9xUe1BQ50K/GI0t9BfVRZmzYw57q6TGnUS37mcAC5On7sd GjPba/N3gjPslwTkoZrsneTVIj+cNFrptftLIpNsdMu0+mWudFw+t/3PnfqjUu8x14d1 YaxjBDmQ5KGMvpyL7RBcHEohl8BH6JOgIOEQxrToqkHxcGJjLW1kyc33gnNXwglbg2ru O6/TctFwIlCLTVelPENzaGgOxI4/o+3w4tw7+Utfl31OWYs1ZWrVEY68NoJt9m/6OvEI m8/Q== 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=ZUPYQ00DC7rLfUUH3JDdCSp5GxeLlc9fJl+uaK0OPX4=; b=oi2sgnrlo/8tqWY0fckNkmRdzGdrtaDnQe4vGpdUEQ9rnkNdm/MQtX01KIixT+amDX zFJB4g4NO+/SePZY+b0vV0/jO6fDeBnByhiRj5zjuiZDmh11wSlCDofWfLPd4abbcjP7 tyOALB2XuFM0gPNXZ9i7tH3bynrDKDNt6/yJxmEJbAbs+7sJ7NcEngFfQMJ07ajLgVvb LM1HtsWPPkQ86dOatxD6i+FfuMb+uw0+sE5Lr16asxheEITnzRnKMxBg/wNOenXmOqSn Tl6vIZeD9xRIlcG8U2nj8weT1H6kidB2vuFHCgTpveerLA2unNJwPJlkUoJJwFRVdq0m 305w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=RfvfsSBA; 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 i12si316100ejo.471.2020.05.29.12.31.07; Fri, 29 May 2020 12:31:31 -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=RfvfsSBA; 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 S1728077AbgE2T26 (ORCPT + 99 others); Fri, 29 May 2020 15:28:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59150 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728025AbgE2T25 (ORCPT ); Fri, 29 May 2020 15:28:57 -0400 Received: from mail-qv1-xf44.google.com (mail-qv1-xf44.google.com [IPv6:2607:f8b0:4864:20::f44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9DDF6C08C5C8 for ; Fri, 29 May 2020 12:28:57 -0700 (PDT) Received: by mail-qv1-xf44.google.com with SMTP id fb16so1625516qvb.5 for ; Fri, 29 May 2020 12:28:57 -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=ZUPYQ00DC7rLfUUH3JDdCSp5GxeLlc9fJl+uaK0OPX4=; b=RfvfsSBALcYZ0d8tPv24jfR4X6Co2E9cs1V4RP9DtRLRpjXo0sDiD0kSlb/W54ZkKi JmLGrhhXYBaTbg07Osd/4G4uptniWI3z6wUYmLhqoD4grEHE3SUPipuMuu6e35Y2yLFG cA+vnVcWloaPASoR1eJ9otsbdhxrty87SyjSw= 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=ZUPYQ00DC7rLfUUH3JDdCSp5GxeLlc9fJl+uaK0OPX4=; b=SAVGVSnLd7AhH9kShI6rp/ZcEYxF6Yh4uvmgDmjmWIz7rC7eVqeHr2cyQcl2SlQGvR /YcdtuIUOvifk3HkBAipWMg/TidlIsRoYe3cPXmjDYzzos1Ny3YwU0Z2BuRkeBfNJ7A2 O/j1eETumvWyD33DTvb4f4fGsehtuDrJLDHt77l1eKJexKhTR7/Of4lAZLs7Zbfi4yQQ mzh0lOUhXc+fQAd8dH8wVPQNGpxYwzDphgQN7WeI+OqLhFdqkYeZWgclW2KfHabHMA5H klljRMtKHJ+2TyqZ4zj6wFN/6mEcX6HJ+QjHxzHVid64CeW90nZoST5aD2/zNgbHOpV3 L+2Q== X-Gm-Message-State: AOAM5327ravOGuAUimJ2ScOFHNXZoZWbzkaXknn9QJut4ju7Ti1cD4m2 0//V9ELWuy2ypNyuD9LhX8rQX1M9LM61nObW3r2B2Aza X-Received: by 2002:a05:6214:a0c:: with SMTP id dw12mr10216031qvb.219.1590780536388; Fri, 29 May 2020 12:28:56 -0700 (PDT) MIME-Version: 1.0 References: <20200519214604.180036-1-pmalani@chromium.org> In-Reply-To: <20200519214604.180036-1-pmalani@chromium.org> From: Prashant Malani Date: Fri, 29 May 2020 12:28:46 -0700 Message-ID: Subject: Re: [PATCH v3 1/2] dt-bindings: chrome: Add cros-ec-typec mux props To: Linux Kernel Mailing List , Rob Herring Cc: Heikki Krogerus , Benson Leung , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Enric Balletbo i Serra , Guenter Roeck 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 Hi Rob, Would you prefer these switches to be defined in the usb-connector.yaml bindings file? If there are no other concerns, I can push a fresh version of the patch with the properties defined in usb-connector.yaml. Thanks, On Tue, May 19, 2020 at 2:46 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 > Acked-by: Benson Leung > --- > > Changes in v3: > - Fixed Acked-by tag typo. > > 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 >