Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2123581ybk; Mon, 11 May 2020 12:29:44 -0700 (PDT) X-Google-Smtp-Source: APiQypK30nYMnSrulGZdtOytjmbmX4JFsY1S6Ty1xy6VXb8Pbre3nGAWyIArYKhdmsoLhCVt6H/z X-Received: by 2002:a05:6402:35c:: with SMTP id r28mr13103293edw.295.1589225384279; Mon, 11 May 2020 12:29:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589225384; cv=none; d=google.com; s=arc-20160816; b=RaBgYKpuIIv1s4hJARUPJl9Cw13Jgogq7+wfx71qQqdOFoyA5uLmYfriN088O0ubZG 0xFuynn5btVomXc1p/TiAh59V5chbvwcNiKLfW6rddfwVfytlr5Noqyw8c03KZZ1upvT DwNUt5vrcHoohAdrHl0xV25jmdS4B3897qCcMA3Hb2deC2jF0S1LiG/X+BZfS4YAqaBr IfiO7Ls/b0+SONC6r+MdGYuAlmv9c7ptt2RMiYbnvPlZ0++myvtKswCinZYMA3lVC8L4 A3lmLG1RcuHNv1K6uS5Xlv0gYa5um9VxoLnYvmYazzZtIB9TiXImEHd2mVbHAyH4uNcZ LrMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=Emf4N/7dlv5y0nf57uZJUU2fdy2hoXmMKpVjXqXIJnw=; b=RIVTuvKgEW90gJKIBBBR04hQ5d35OfTGfxOe0N6FcVuDAO2qGbBvdUuRu1K9QBsKqp 5oO4Zyjbit6qQsCW75goBQDf2l9dxT+/QbC5fBLdQAQcButER1wIg5x4Bufrrn24oeff 2bR4SKOlDIvvOm1jTqWYIU+FPx1J0gsEShcCNQOtaMsMKjfC47WF3f8gqbRe0xEDf7Lh N5CqB6elv8hd2RV54fgIGIDnUaYKeTx6KIx8KBDZpFIrXUV6UwmaveKJhojwLs66z5iT Y/H0zbA6JTkGvgE8ATufDlNwT0GAMJ7jKxx4EMJqa4Zaf2fVrCtNb+tw2D/IkpYSk6Qz 72Qg== 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u22si7106159edd.207.2020.05.11.12.29.21; Mon, 11 May 2020 12:29:44 -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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731312AbgEKT2F (ORCPT + 99 others); Mon, 11 May 2020 15:28:05 -0400 Received: from mail-oo1-f65.google.com ([209.85.161.65]:42238 "EHLO mail-oo1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731041AbgEKT2E (ORCPT ); Mon, 11 May 2020 15:28:04 -0400 Received: by mail-oo1-f65.google.com with SMTP id a83so383996oob.9; Mon, 11 May 2020 12:28:04 -0700 (PDT) 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:user-agent; bh=Emf4N/7dlv5y0nf57uZJUU2fdy2hoXmMKpVjXqXIJnw=; b=PaoxMhLZ6A+CwO41EyxPlZquzVLoeujqodWX6an5ILlza+iFxAv8pyLlK9g9T3S3df kqRVSutiIPmVlElaqaoH3SfmjkPcErSsMZw/bRceRRsWrAFyWWoTqKuahQXZTByCzvbP k04o35T3wtNp9mKNtBj25N6yD971tqY0a0qfNJlDECD1k9XahxFTB7m431tNR2b+QDTO 41/U5KdMiWWRer6i59KmJ/gZOa1zEJn+rp9KbN+XRmEdFEYwBrGdbCEYCrbyhqWvf+mm M47JByf5BGSrrOvMi+FaGHK++3PCyzjSVyXs/le38PgfGuSnqE8YparKWI+DA9iB+txN qWMg== X-Gm-Message-State: AGi0PuZIR7hqdPob/yIs+//D47WxTs0InjN8eYjyaAuElCv1NO7sJ1pN jE2bo8CP6YD/nR3Y2oQmUA== X-Received: by 2002:a4a:254f:: with SMTP id v15mr6119240ooe.17.1589225282244; Mon, 11 May 2020 12:28:02 -0700 (PDT) Received: from rob-hp-laptop (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id 64sm2885440otb.14.2020.05.11.12.28.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 May 2020 12:28:01 -0700 (PDT) Received: (nullmailer pid 14321 invoked by uid 1000); Mon, 11 May 2020 19:28:00 -0000 Date: Mon, 11 May 2020 14:28:00 -0500 From: Rob Herring To: Prashant Malani Cc: linux-kernel@vger.kernel.org, heikki.krogerus@linux.intel.com, twawrzynczak@chromium.org, Benson Leung , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Enric Balletbo i Serra , Guenter Roeck Subject: Re: [PATCH 1/2] dt-bindings: chrome: Add cros-ec-typec mux props Message-ID: <20200511192800.GA28762@bogus> References: <20200422222242.241699-1-pmalani@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200422222242.241699-1-pmalani@chromium.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 22, 2020 at 03:22:39PM -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 > --- > .../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: These don't seem CrOS EC specific, so why document them as such. > + mode-switch: > + description: Reference to a DT node for the USB Type C Multiplexer > + controlling the data lines routing for this connector. This is for alternate mode muxing I presume. We already have a mux-control binding. Why not use that here? > + > + orientation-switch: > + description: Reference to a DT node for the USB Type C orientation > + switch for this connector. What's in this node? > + > + 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 >