Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1939878ybh; Sun, 15 Mar 2020 15:06:32 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvskey8zzhmjKGWvS02nJsGVbSvL1yyo0OWh7GucjBli7gPSodwfb8to9Ec9sgUz9926+Eo X-Received: by 2002:a9d:4c15:: with SMTP id l21mr20913912otf.185.1584309992814; Sun, 15 Mar 2020 15:06:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584309992; cv=none; d=google.com; s=arc-20160816; b=cjllfsZkDGd8Kt6mcy2Yd4yu0u21ZNnSD/U+lQwQO3lbmQw41kMy3XPT6ytMKH7Rxe a2MSBG6ihVBaY0RWOKMtmW2G4bib7H8La3TLlidlNNSnnW20N4aESdeZgrnT70tmqVxD OEvGvzpefXtxu0FEcJ7O8lWuWsE8Je9ZiRGliWl4q58y2LDzVOitStBXAZhK7BIXW/pu Xvu5ZWnN6GgcPeVkqooc9T39paIR6I8nFvCLdtbErQIDS7ia0eqnKmcHe37DWlDjbDni RYmAJC7FIMNtGDWZ69NRDg7If7+ZxpmCbqzp/13r2FcpzF/WbfZmQxMdrr7tVSNICKdO MrFw== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=I+XiXVOGotUKaKw9DdToNhk8ohjeSdQyehSxYIi/Dqw=; b=hFZ+KMWeYN2kRYZeNGcZ97QZItwnCvCP1GnO/9IIO7MggrnTaaPduvG1Z47lSIq239 CznE7Y4YK4LvJ2qgfjTxrJPbX42K5mYz2QaV0sbhtuzv62RHS/uKjSmMS+53PVEYiV1p 6KvlEsat5lTDO5AASHToD6e40A8sTkzB0nEa0TENi/78v+oYGRPwrJrno7LhvR9/bZ3u +gzI+d0J5GnA4bt1tKA//qoZ1MW8H6xMFTt36lNS+/LPgJ2jHUYsd0eMBV5vOyUbilHr gAkfNr5H2L9uZStyHf6IvHpjj1jkBe/nmuqMcIF/UGenFMIwUWsKpw+ahr+pNLyQvIMH t42w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=isAp5v3+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id s200si7056827oie.188.2020.03.15.15.06.19; Sun, 15 Mar 2020 15:06:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=isAp5v3+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1729259AbgCOWFd (ORCPT + 99 others); Sun, 15 Mar 2020 18:05:33 -0400 Received: from mail-pj1-f68.google.com ([209.85.216.68]:55755 "EHLO mail-pj1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729241AbgCOWFd (ORCPT ); Sun, 15 Mar 2020 18:05:33 -0400 Received: by mail-pj1-f68.google.com with SMTP id mj6so6980862pjb.5 for ; Sun, 15 Mar 2020 15:05:32 -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:content-transfer-encoding:in-reply-to :user-agent; bh=I+XiXVOGotUKaKw9DdToNhk8ohjeSdQyehSxYIi/Dqw=; b=isAp5v3+IBzMibR4bQqxzXEJS0HxKyS3u6FrMrVddsdWQTLziUGroT2mBOBtP4A6gT 4r+ajQo5rsOrf0K5tL4Flyq9ljeLTMUpxRH1ZqvB8wTbVknvnFTdWqW2Pam2wweHL3J/ 2TNsANOgqtpdJyI8yhgARGEZlX5IOuHo3HV5o= 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:content-transfer-encoding :in-reply-to:user-agent; bh=I+XiXVOGotUKaKw9DdToNhk8ohjeSdQyehSxYIi/Dqw=; b=ENtqGDRovGKmraHRzM3tMW8/Qzw3/LYrPD6/5LfMfGHCgDVRUG5NJ6le4nJ/7NROun WmbNdVrGGUSDyRv9AmyNYhYcs1UuCIx2XxNcNbS64GErdG1ZyiN+VGoHXAayDJRUuEs6 s2KB2gmUiR6NXOrNjEu96CQ7MMtVbrTyQ3hns/MYYrEl8GDvCknzAzCx10K9RhCsecML gnS7rx5M1xW0pUzL1WSXtewVQQk7ZhuN6cswPy70vrdyS5+GLhSg6XkYbVGEaIib2k2y wkbvWUHSBQiIsf/2VHBi3AtAPW0c48ksjJlfDJETpq92qQzoZToZOur6t2h3yzcy+PyL c5/A== X-Gm-Message-State: ANhLgQ1eb1A4ThEsuzrtfM77Ch+YFP1s7QicQjTRLgX4jdVL+dure2l8 FFT635+gNT477yFaL7YxvpO80g== X-Received: by 2002:a17:90a:bb92:: with SMTP id v18mr17322259pjr.54.1584309931993; Sun, 15 Mar 2020 15:05:31 -0700 (PDT) Received: from google.com ([2620:15c:202:201:476b:691:abc3:38db]) by smtp.gmail.com with ESMTPSA id y207sm14328036pfb.189.2020.03.15.15.05.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Mar 2020 15:05:31 -0700 (PDT) Date: Sun, 15 Mar 2020 15:05:30 -0700 From: Prashant Malani To: Enric Balletbo i Serra Cc: linux-kernel@vger.kernel.org, Benson Leung , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Guenter Roeck , Mark Rutland , Rob Herring Subject: Re: [PATCH v4 1/4] dt-bindings: Add cros-ec Type C port driver Message-ID: <20200315220530.GC185829@google.com> References: <20200312225719.14753-1-pmalani@chromium.org> <20200312225719.14753-2-pmalani@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.12.2 (2019-09-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Enric, On Fri, Mar 13, 2020 at 05:26:19PM +0100, Enric Balletbo i Serra wrote: > Hi Prashant, > > On 12/3/20 23:57, Prashant Malani wrote: > > Some Chrome OS devices with Embedded Controllers (EC) can read and > > modify Type C port state. > > > > Add an entry in the DT Bindings documentation that lists out the logical > > device and describes the relevant port information, to be used by the > > corresponding driver. > > > > Signed-off-by: Prashant Malani > > --- > > > > Changes in v4: > > - Rebased on top of usb-connector.yaml file, so the “connector” property > > now directly references the “usb-connector” DT binding. > > > > Changes in v3: > > - Fixed license identifier. > > - Renamed "port" to "connector". > > - Made "connector" be a "usb-c-connector" compatible property. > > - Updated port-number description to explain min and max values, > > and removed $ref which was causing dt_binding_check errors. > > - Fixed power-role, data-role and try-power-role details to make > > dt_binding_check pass. > > - Fixed example to include parent EC SPI DT Node. > > > > Changes in v2: > > - No changes. Patch first introduced in v2 of series. > > > > .../bindings/chrome/google,cros-ec-typec.yaml | 48 +++++++++++++++++++ > > 1 file changed, 48 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/chrome/google,cros-ec-typec.yaml > > > > diff --git a/Documentation/devicetree/bindings/chrome/google,cros-ec-typec.yaml b/Documentation/devicetree/bindings/chrome/google,cros-ec-typec.yaml > > new file mode 100644 > > index 0000000000000..6668d678dbcb4 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/chrome/google,cros-ec-typec.yaml > > @@ -0,0 +1,48 @@ > > +# SPDX-License-Identifier: GPL-2.0-only > > Could you use dual licensing here (GPL-2.0-only OR BSD-2-Clause). In general > Google is fine with it for bindings. > Sure, Will do. > > +%YAML 1.2 > > +--- > > +$id: http://devicetree.org/schemas/chrome/google,cros-ec-typec.yaml# > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > + > > +title: Google Chrome OS EC(Embedded Controller) Type C port driver. > > + > > +maintainers: > > + - Benson Leung > > + - Prashant Malani > > + > > +description: > > + Chrome OS devices have an Embedded Controller(EC) which has access to > > + Type C port state. This node is intended to allow the host to read and > > + control the Type C ports. The node for this device should be under a > > + cros-ec node like google,cros-ec-spi. > > + > > +properties: > > + compatible: > > + const: google,cros-ec-typec > > + > > + connector: > > + $ref: /schemas/connector/usb-connector.yaml# > > + > > +required: > > + - compatible > > + > > +examples: > > + - |+ > > + cros_ec: ec { > > + compatible = "google,cros-ec-spi"; > > + > > I guess that it will trigger some warnings once google,cros-ec.yaml is merged. > Use a full example. Thanks, will make this modification in the next version. > > +examples: > + - | > + spi0 { > + #address-cells = <1>; > + #size-cells = <0>; > + cros-ec@0 { > + compatible = "google,cros-ec-spi"; > + reg = <0>; > > > > + typec { > > + compatible = "google,cros-ec-typec"; > > + > > + #address-cells = <1>; > > + #size-cells = <0>; > > + > > + connector@0 { > > + compatible = "usb-c-connector"; > > + reg = <0>; > > + power-role = "dual"; > > + data-role = "dual"; > > + try-power-role = "source"; > > + }; > > + }; > > + }; > >