Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp6203820ybv; Wed, 12 Feb 2020 07:53:50 -0800 (PST) X-Google-Smtp-Source: APXvYqxz3sAaoT8DmzYlgPQszwDHRHGO3ISKpRVewUhsPfEoy+uzEnyHk/S6pQ6zUDJ/ipSQhmIL X-Received: by 2002:aca:b70a:: with SMTP id h10mr6951597oif.20.1581522829997; Wed, 12 Feb 2020 07:53:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581522829; cv=none; d=google.com; s=arc-20160816; b=Q+c/W+Woxtsu3y5+kJwp6mrLikFwUNk1nzT8vUlhOGc/e/d/hskqzayeIchFNxy/1b db9+gEIojADaM+juzWj0FrBgz7VuDlw6xuZX/T7osws2qI1PCDMUhHAppa/zLprNrwRs nPh2APIEhDVhJ2xz1CJcP8x6iV+sPKtjsuZq2sy1+/CDMnYDZ9sht67l/ay9tC0DzDtC +wadLsxfuWz8XoCekDmd5IX+2DmInPDR91DHPnHTjyQ1TqtoGMwJ/x6b6e8+HrNJiy0K NUZzRvXf2RKbVZafvurEtQqFUqqmOFLVfR+obByhoLDtDExcsHI3xlNQ8P5KHc4jckdd zWIw== 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; bh=RbmwFZs6luLWjjowtibGIYeFISLLE5olc0vf5XnPMgI=; b=plH3L3nFiOv0WkxIg/dflbWSvK22iHybT6DLw42If+5tZ1sq/2ssCzwdF7YKJnVN+m HHn3CLMRUQWaec0sN8B3aZSp8oaYsfhCsAlm60dqCFKQgWkfojmSHfiLP5gdO2D5MF9z NBuKOk4iLc4FmLLJcEiMAi6nKMNrJPy/VKijqPrwmbhGFx3/jVGqV9fX6vH5/0c37XUC h+qswPdSN57PQi/o+ZrGDzIB7CHFFa/+TTmH5aA78AxlVyByRZCV483yttlt6PyB0f9h nJoVYjGTwD5nwG12Q8qhzCPVlhR2AM/dBeY3wjo9hTfeBceCsu26fSzJT+tZuzmw0j7g 0oWA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a205si3476277oif.159.2020.02.12.07.53.37; Wed, 12 Feb 2020 07:53:49 -0800 (PST) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728687AbgBLPxP (ORCPT + 99 others); Wed, 12 Feb 2020 10:53:15 -0500 Received: from mga04.intel.com ([192.55.52.120]:37261 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728052AbgBLPxO (ORCPT ); Wed, 12 Feb 2020 10:53:14 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Feb 2020 07:53:13 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,433,1574150400"; d="scan'208";a="347535140" Received: from kuha.fi.intel.com ([10.237.72.53]) by fmsmga001.fm.intel.com with SMTP; 12 Feb 2020 07:53:10 -0800 Received: by kuha.fi.intel.com (sSMTP sendmail emulation); Wed, 12 Feb 2020 17:53:09 +0200 Date: Wed, 12 Feb 2020 17:53:09 +0200 From: Heikki Krogerus To: Rob Herring Cc: Prashant Malani , "linux-kernel@vger.kernel.org" , heikki.krogerus@intel.com, Enric Balletbo i Serra , Benson Leung , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Guenter Roeck , Mark Rutland Subject: Re: [PATCH v2 1/4] dt-bindings: Add cros-ec Type C port driver Message-ID: <20200212155309.GG1498@kuha.fi.intel.com> References: <20200207203752.209296-1-pmalani@chromium.org> <20200207203752.209296-2-pmalani@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rob, On Tue, Feb 11, 2020 at 05:25:13PM -0600, Rob Herring wrote: > > +examples: > > + - |+ > > + typec { > > + compatible = "google,cros-ec-typec"; > > + > > + port@0 { > > 'port' is reserved for OF graph binding which this is not. > > > + port-number = <0>; > > + power-role = "dual"; > > + data-role = "dual"; > > + try-power-role = "source"; > > These are usb-connector binding properties, but this is not a > usb-connector node. However, I think it should be. The main thing to > work out seems to be have multiple connectors. > > With your binding, how does one associate the USB host controller with > each port/connector? That's a solved problem with the connector > binding. It looks like OF graph is required to be used for that. The plan was actually to propose that we use device properties "usb2-port" and "usb3-port" that directly reference the port nodes under the USB host controller, but I guess that's too late for that. OF graph creates one problem. We are going to need to identify the endpoints somehow in the USB Type-C drivers, so how do we know which endpoint is for example the USB2 port, which is USB3, which is DisplayPort, etc? Does the remote-endpoint parent need to have a specific compatible property, like the USB2 port needs to have compatible = "usb2-port" and so on? thanks, -- heikki