Message ID | 20240215212852.1202339-2-m.felsch@pengutronix.de |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-67695-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:c619:b0:108:e6aa:91d0 with SMTP id hn25csp133303dyb; Thu, 15 Feb 2024 13:30:02 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXQ+PE3w+jcv81M4Gj/QyShyMhkIQP8uVDMo51oHY+hpUHiuLaadeh95iTGmo+ootM6X8Na+veNQBbctQKkjnqyvq+5GQ== X-Google-Smtp-Source: AGHT+IFvBd1fDa/kqoKLBfztuR5kipU7iTqCz8GCDCGRpSoyW/L7NiKadtZZQwI3hWNwFfkZwNQq X-Received: by 2002:a0d:d685:0:b0:5ff:790d:62a with SMTP id y127-20020a0dd685000000b005ff790d062amr2927563ywd.5.1708032602626; Thu, 15 Feb 2024 13:30:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708032602; cv=pass; d=google.com; s=arc-20160816; b=kypKbw3MvUgc2D8HAt4jBTGyePi8Na6yzxTaiF1LanhfBt492i70NOL93towHtlVM8 S8SB7TXbDV8fGSIcjLVUN4L2hpetpPkvi0ZoU/2BP8twT+1F77Z3DBjtPkPpFYazrCjq Rg0XfY1MZ6aiIEqEi0BFF2QV88jwZrXyrJsjQuhoX95wabKUgSbbJlIuVNEe9PbVtbcW bskQvM/cepPTm4fyx9DfPvkpXx4WQPVyC/gmYKeqR8H4uQbQKcfwnjUji6ktBylURslj jxSM0gTsEf6w+fJsV6EgRaUe8Q9mxBjQPcpdfPiVkV/AwsSoyz13oAIHtnpkTRN6QFFj fYWg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=Dtuvwyxc5GGUyjktW02wc115eFkVK27FDBCfL6x2JyE=; fh=/cbLjW7Rfwzb3I2vrEK+NHt6YgOcJ+Bp+XUtKNVrstM=; b=dbLqMOK+YxGcnnjc4onssDILpuX0FdBdK+rvmO2oepGrWdfAW4+lm2JlQDYjqlkhNP CH1YLvn/GuRytnfgu2M5VcdnYfKBrtl4eZw2J+SOKSFC/R5HLw/tnO6CH5+dMvoyO4fw SF+ykQajbKsRyO6vK30vMoNB04AVkSLuisqXeHMNAktjpDjgVAqOV91QQmnY+f/6+2F3 UAvxT38uijzaIGiAwYZz29vWLqRU6jqDuokzdiWimZ05dmoOVQoTWN3Hj/m/BXFmHA7e J+vRFNY+AGPsNIXEwkzto68BaY9cvdeUy4icjR9nr86ZBHGB/FTlApotOHybRdzmwmTY zA1w==; 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-67695-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67695-ouuuleilei=gmail.com@vger.kernel.org" Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id s26-20020a05622a1a9a00b0042dd9363935si961065qtc.444.2024.02.15.13.30.02 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 13:30:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-67695-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-67695-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67695-ouuuleilei=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 66BB71C23157 for <ouuuleilei@gmail.com>; Thu, 15 Feb 2024 21:30:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 83625145B13; Thu, 15 Feb 2024 21:29:14 +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 97373145320 for <linux-kernel@vger.kernel.org>; Thu, 15 Feb 2024 21:29:11 +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=1708032553; cv=none; b=d3XtAapCagsLOSt3sv054paMWmzKYV68uBqSlsI9/7QAdRGoc/lNxRuJSc4vnZd+XW2F5I6w4vQs8TXsyEIm2+NgFKyXoLACGHQ0E+XEuxJZBfWoejwfBqDLVTCa3t1CP8PbtiehFxSr5RyX4y4Bmm6jZ88jeMJ/w6RJrj66K5Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708032553; c=relaxed/simple; bh=Pp1gNDwQrjYX8JdcQvv3H9tjki5TYsWrM8W3/pzFDaw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Iq762umvpRxBOT36G4mfvqUjQPQRPirh7CHVZcmsbLvafDwGJJ0HdnEJ9OwmLlS2Qg+XlJZLlavydamXnxD6zblIfOYrj14bUfh9dc4/mFe5b4BqdegIixx/h6jkEfPEffQBY25m2HIamHaBgZkup+0BYojhH2fmHhHybpjl+xU= 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 dude02.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::28]) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from <m.felsch@pengutronix.de>) id 1rajHr-0001xh-Du; Thu, 15 Feb 2024 22:28:55 +0100 From: Marco Felsch <m.felsch@pengutronix.de> To: gregkh@linuxfoundation.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, linux@roeck-us.net, heikki.krogerus@linux.intel.com, jun.li@nxp.com Cc: linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@pengutronix.de Subject: [PATCH v2 1/4] dt-bindings: usb: typec-tcpci: add tcpci fallback binding Date: Thu, 15 Feb 2024 22:28:49 +0100 Message-Id: <20240215212852.1202339-2-m.felsch@pengutronix.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240215212852.1202339-1-m.felsch@pengutronix.de> References: <20240215212852.1202339-1-m.felsch@pengutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 2a0a:edc0:0:1101:1d::28 X-SA-Exim-Mail-From: m.felsch@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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791001994300687192 X-GMAIL-MSGID: 1791001994300687192 |
Series |
USB-C TCPM Orientation Support
|
|
Commit Message
Marco Felsch
Feb. 15, 2024, 9:28 p.m. UTC
The NXP PTN5110 [1] is an TCPCI [2] compatible chip, so add the fallback
binding.
[1] https://www.nxp.com/docs/en/data-sheet/PTN5110.pdf
[2] https://www.usb.org/sites/default/files/documents/usb-port_controller_specification_rev2.0_v1.0_0.pdf
Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
---
v2:
- rephrase commit message
Documentation/devicetree/bindings/usb/nxp,ptn5110.yaml | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
Comments
On 15/02/2024 22:28, Marco Felsch wrote: > The NXP PTN5110 [1] is an TCPCI [2] compatible chip, so add the fallback > binding. > > [1] https://www.nxp.com/docs/en/data-sheet/PTN5110.pdf > [2] https://www.usb.org/sites/default/files/documents/usb-port_controller_specification_rev2.0_v1.0_0.pdf > > Signed-off-by: Marco Felsch <m.felsch@pengutronix.de> > --- > v2: > - rephrase commit message > > 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 That's not a fallback, but enum. Fallback is "items" and then you could also send a follow-up patchset (separate, so Greg won't take it) fixing DTS (if not, let me know, so I will fix it). Best regards, Krzysztof
On 24-02-22, Krzysztof Kozlowski wrote: > On 15/02/2024 22:28, Marco Felsch wrote: > > The NXP PTN5110 [1] is an TCPCI [2] compatible chip, so add the fallback > > binding. > > > > [1] https://www.nxp.com/docs/en/data-sheet/PTN5110.pdf > > [2] https://www.usb.org/sites/default/files/documents/usb-port_controller_specification_rev2.0_v1.0_0.pdf > > > > Signed-off-by: Marco Felsch <m.felsch@pengutronix.de> > > --- > > v2: > > - rephrase commit message > > > > 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 > > That's not a fallback, but enum. Fallback is "items" and then you could Damn, you're right. Sorry. > also send a follow-up patchset (separate, so Greg won't take it) fixing > DTS (if not, let me know, so I will fix it). Sry. but I don't get this. Why do I need to send a follow-up? Greg did not apply anything, at least I didn't received an e-mail, that this patchset was picked. Regards, Marco > > Best regards, > Krzysztof > >
On 24-02-22, Marco Felsch wrote: > On 24-02-22, Krzysztof Kozlowski wrote: > > On 15/02/2024 22:28, Marco Felsch wrote: > > > The NXP PTN5110 [1] is an TCPCI [2] compatible chip, so add the fallback > > > binding. > > > > > > [1] https://www.nxp.com/docs/en/data-sheet/PTN5110.pdf > > > [2] https://www.usb.org/sites/default/files/documents/usb-port_controller_specification_rev2.0_v1.0_0.pdf > > > > > > Signed-off-by: Marco Felsch <m.felsch@pengutronix.de> > > > --- > > > v2: > > > - rephrase commit message > > > > > > 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 > > > > That's not a fallback, but enum. Fallback is "items" and then you could > > Damn, you're right. Sorry. > > > also send a follow-up patchset (separate, so Greg won't take it) fixing > > DTS (if not, let me know, so I will fix it). > > Sry. but I don't get this. Why do I need to send a follow-up? Greg did > not apply anything, at least I didn't received an e-mail, that this > patchset was picked. Got it now and made it this way. Regards, Marco
On 22/02/2024 21:23, Marco Felsch wrote: > On 24-02-22, Krzysztof Kozlowski wrote: >> On 15/02/2024 22:28, Marco Felsch wrote: >>> The NXP PTN5110 [1] is an TCPCI [2] compatible chip, so add the fallback >>> binding. >>> >>> [1] https://www.nxp.com/docs/en/data-sheet/PTN5110.pdf >>> [2] https://www.usb.org/sites/default/files/documents/usb-port_controller_specification_rev2.0_v1.0_0.pdf >>> >>> Signed-off-by: Marco Felsch <m.felsch@pengutronix.de> >>> --- >>> v2: >>> - rephrase commit message >>> >>> 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 >> >> That's not a fallback, but enum. Fallback is "items" and then you could > > Damn, you're right. Sorry. > >> also send a follow-up patchset (separate, so Greg won't take it) fixing >> DTS (if not, let me know, so I will fix it). > > Sry. but I don't get this. Why do I need to send a follow-up? Greg did > not apply anything, at least I didn't received an e-mail, that this > patchset was picked. If you change existing ptn5110 to a list of ptn5110+fallback, then all existing will DTS start report warnings. Someone needs to fix this. Best regards, Krzysztof
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 reg: maxItems: 1