Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp3089104rdb; Tue, 6 Feb 2024 07:00:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IFBUhZaHd2rRkJhhYrYgWnpKroybTArmNmH9iJDnyMzl+FyF1QHdy9dEjcHRjezYKYpfMbB X-Received: by 2002:ac2:4244:0:b0:510:ee2c:e9c4 with SMTP id m4-20020ac24244000000b00510ee2ce9c4mr1818723lfl.17.1707231632961; Tue, 06 Feb 2024 07:00:32 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707231632; cv=pass; d=google.com; s=arc-20160816; b=FJi7SXxbFRjenhxjfbpK3hFbui9WuWUD/MOt2kXKarHJ8t/z5pQGLpvuxPa8T2peES Fe3N9SbA+YLutJIlKV0jcDvWHpz0cwcGsNwaKD6R6dnaJZdMkJFDBG2fp4txPJjS0bCI Ic16zUStHj5DT7Byz6ymC1/FlEtJ6nOCF4eX/Rm9Zm4kUpV5aVJcC8uY5NnTdG7czUWa rH9jyTmuA8A0iMpPUu+E8gPjt5Uh3t5K5MjG+nmCXv14Cy+z2ex9yHug1gdcio1MDriK 4jExgB9HJsqgscM3hsdzE7AoO7iNI90lZK0s+PVWoV7AkpEeRulta62LIAmh6nobJxED 3D3Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=Z8iZzKrVGxYAjbwa2BmUtHBsZJS9i75EidndBT47vZQ=; fh=uKaFP4T4uGMTy2z/VR+3JP+Fd6TnnTMGPpw+P4wr7ZI=; b=OeazEQVRivJ9hT9Pj5jRESK3R71eYxdT9e+M6ib7YBY/OazTOrOgLvZZHaZHRJMZA2 a3RFzyju2ZznHJhyxIoSjMhYAwfjyvtcAAHJpT+c3Vvb60CP3OQosG8R4whJdDgw6m3A qdy75ScMBYp0A4adVNrTmcx/c2gCNusMfNUqnd78EwQ80YDTuVpuXnw1ib30vHNXog4o hH8WTk36SYqMkcJW+knS/LmlOWy4UvTlBqRujW1/iZpzzUAE7Uui0I+k0CiVyzOThgJz vXEfRnjdLosXgW7ibLpyGwQIWrL1pANPAcJlR5Lrw9iJvc6evxquTOhPfjQnduvTHSXX 1ccw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-55162-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55162-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=1; AJvYcCX0zn8qxwdryw5mVYA7t3lLhQ3pf+bKmzSNO4QWNMTdnVtUQ63MXRDQzN81eMhDgJ0qDoQkQr0g3lAAajqJfl4OsZEOYNkZz34dfo6rwA== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id d18-20020a056402401200b00560b80e153bsi426977eda.66.2024.02.06.07.00.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 07:00:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-55162-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-55162-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55162-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id AC1061F25C0A for ; Tue, 6 Feb 2024 15:00:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 517E813540C; Tue, 6 Feb 2024 14:57:47 +0000 (UTC) Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6155013540B for ; Tue, 6 Feb 2024 14:57:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707231466; cv=none; b=VXfvgJ4duoTriDs7FJSNv+aLqiX1qYsNGYtiexXbzaEVbcYZN78F7eOLIFORQfChS7lrzKEY37YE/772UTcbjDloTWYtqHtvaVGVndh1+/ieyPGpSV2YnXxJga5TXP2fgCKwI6K9sNoeoj87VT6h21DrI5c7tcSEkHklS3P82ls= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707231466; c=relaxed/simple; bh=A9nNSZrt4hurMz6xLomG7N1/raJg7y8TWifVzUduITw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=JrVU3YY1wm2QCYRZLpieQUXjDEMOs4PRIsfOVPi3MTbiGlA6C8IAgrmGlEZVvirPp2dRjcGlKn4yYp57tJra85LUVOOpsUvZkltNBuyXc/KNXCbR6NNJUCmKfkERdsf2gvH5FTXSJaTy/X21268Vf9Vk+pIV8/8xAenr8NQgH+E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rXMtH-0006zs-Eu; Tue, 06 Feb 2024 15:57:39 +0100 Received: from [2a0a:edc0:2:b01:1d::c5] (helo=pty.whiteo.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rXMtG-004qYw-N3; Tue, 06 Feb 2024 15:57:38 +0100 Received: from mfe by pty.whiteo.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1rXMtG-00EG1G-1y; Tue, 06 Feb 2024 15:57:38 +0100 Date: Tue, 6 Feb 2024 15:57:38 +0100 From: Marco Felsch To: Krzysztof Kozlowski Cc: devicetree@vger.kernel.org, conor+dt@kernel.org, heikki.krogerus@linux.intel.com, kernel@pengutronix.de, gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux@roeck-us.net Subject: Re: [PATCH 1/4] dt-bindings: usb: typec-tcpci: add tcpci compatible binding Message-ID: <20240206145738.kchqgzpigfq5ryli@pengutronix.de> References: <20240205164316.805408-1-m.felsch@pengutronix.de> <20240205164316.805408-2-m.felsch@pengutronix.de> <004dbeb3-f863-416c-a4e4-18739302ae58@linaro.org> <20240206145253.u555h3rvtetv3qaf@pengutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240206145253.u555h3rvtetv3qaf@pengutronix.de> X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: mfe@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org On 24-02-06, Marco Felsch wrote: > On 24-02-06, Krzysztof Kozlowski wrote: > > On 05/02/2024 17:43, Marco Felsch wrote: > > > This binding descripes the generic TCPCI specification [1]. So add the > > > > Typo: describes. > > Argh. > > > No, this binding describes PTN5110, not generic TCPCI. This is not > > accurate commit description. > > This binding is currently missued if another TCPCI conform chip is used /missused/misused/ > which requires no special handling. I could have dropped this commit > since the 'tcpci' is already present at i2c-device-id level. > > > > > > generic binding support since which can be used if an different TCPC is > > > used compatible which is compatible to [1]. > > > > Sorry, cannot parse it. Please run it through native speaker, Google > > grammar check, ChatGPT or some other way. > > Argh.. you're right, sorry. I will rephrase it. > > > > [1] https://www.usb.org/sites/default/files/documents/usb-port_controller_specification_rev2.0_v1.0_0.pdf > > > > > > Signed-off-by: Marco Felsch > > > --- > > > Documentation/devicetree/bindings/usb/nxp,ptn5110.yaml | 4 +++- > > > 1 file changed, 3 insertions(+), 1 deletion(-) > > > > > > diff --git a/Documentation/devicetree/bindings/usb/nxp,ptn5110.yaml b/Documentation/devicetree/bindings/usb/nxp,ptn5110.yaml > > > index eaedb4cc6b6c..7bd7bbbac9e0 100644 > > > --- a/Documentation/devicetree/bindings/usb/nxp,ptn5110.yaml > > > +++ b/Documentation/devicetree/bindings/usb/nxp,ptn5110.yaml > > > @@ -11,7 +11,9 @@ maintainers: > > > > > > properties: > > > compatible: > > > - const: nxp,ptn5110 > > > + enum: > > > + - nxp,ptn5110 > > > + - tcpci > > > > I don't think this is correct. First, this is binding for NXP chip, so > > why generic implementation should be here? I would expect it in its own > > dedicated binding. > > The nxp,ptn5110 device was the first driver which implements an TCPCI > conform driver. The driver already support the tcpci binding for i2c-id > devices as I mentioned above. IMHO this whole binding (file) should be > converted and the nxp,ptn5110 compatible should be marked as deprecated. > > > Second, we rarely want generic compatibles. Care to share more details? > > As said above this particular NXP chip is an TCPCI conform chip. There > is nothing special about it. There are other vendors like OnSemi (in my > case) which implement also an TCPCI conform chip. The (Linux) driver > already binds to the generic tcpci compatible if the i2c-core falls back > to the i2c-device id. It's even more confusing that the i2c-id supports > only the generic binding the of-compatible support only the specifc one. > > > Are all details expected to follow spec, without need of quirks? > > Please see above, I hope this helps. > > Regards, > Marco > > > > > Best regards, > > Krzysztof > > > > > >