From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DB4D7CA1002 for ; Tue, 2 Sep 2025 00:52:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=W6EQgq/z/1Gegf1AuKQwoezTlghfDoyoxuD6x2TRfKk=; b=Z2iCWlbIUhyHt8d+Wh1gzvdmIA eyFdzBovUaJScJaiKxBcuiSAHDzXRJaDnjgY43ziJwasWmkDBps8r83t0rG91dLzgFsggpT7eV4oG IqfdOpPn0sIHuIcT8TVWB9z80UxK/V7CmoNKAZVMV2EP74tQ/A5KP4tJ7EercYSCqTd6FvjWt73cd q661GqYGXfNim6hRLIYH5H+GHQSEpkUZ5iXXlRWjEURUSEkzMjPN9uepYTC5wSeFExN+yuW/F5gR2 8mypmmKqlUn7GMdsJq8mtFbSpkF5E+oP5pGpGxZ3oCAM5xAtjmspZbw+0/EVSjcR0E/DcVKHXvqb7 2U+jtSjg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1utFFt-0000000EXxm-1GtY; Tue, 02 Sep 2025 00:52:13 +0000 Received: from sea.source.kernel.org ([2600:3c0a:e001:78e:0:1991:8:25]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1ut9lX-0000000Dckn-3pHp; Mon, 01 Sep 2025 19:00:33 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sea.source.kernel.org (Postfix) with ESMTP id 7ACCE44571; Mon, 1 Sep 2025 19:00:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7F547C4CEF1; Mon, 1 Sep 2025 19:00:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1756753231; bh=LctdjUhGxf71qHtiYonh2qpbLAV3p/deNyRN07fjZos=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=A5UYpFbKND00c/aB/57avZ/pTSSw0GM987HdW/KZ2QHrq/x1ScaszBRAv8e2eecuj 92YwLjPpWuTC2KTeKExOJdKfpqs3xKc4hgudiRj+2VkGIA3H5azimMH/QkP7c6SH9N ET9LA7wRZpS2GdgvuTmMwq0/anCo/hC47WO9jDoCTVnm+9GQ+SSqYKIqKyVkkmROSh HSloiWdyvTS7Z3COVahZZsBCJd8tIGT758/GF32UWyVh+iKqsnUM7dRptcen7+zLuC lBWwtunR1SUg3aazWx4bRgzUtP4DV514EtIFf94KZyzGjjpkOpBldRsPoTEYu7L8Hn MUeHcsiA6MWjA== Date: Mon, 1 Sep 2025 20:00:25 +0100 From: Conor Dooley To: Peng Fan Cc: Marc Kleine-Budde , Vincent Mailhol , Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Aswath Govindraju , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Frank Li , Haibo Chen , linux-can@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v4 1/6] dt-bindings: phy: ti,tcan104x-can: Document NXP TJA105X/1048 Message-ID: <20250901-uproar-shrill-07d51ea21a29@spud> References: <20250901-can-v4-0-e42b5fe2cf9e@nxp.com> <20250901-can-v4-1-e42b5fe2cf9e@nxp.com> <20250901-diligent-dreaded-59b9ad5c3976@spud> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Fac7BrZqSni97b6k" Content-Disposition: inline In-Reply-To: <20250901-diligent-dreaded-59b9ad5c3976@spud> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250901_120031_993204_AF84FE02 X-CRM114-Status: GOOD ( 26.03 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --Fac7BrZqSni97b6k Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Sep 01, 2025 at 07:54:01PM +0100, Conor Dooley wrote: > On Mon, Sep 01, 2025 at 11:18:11AM +0800, Peng Fan wrote: > > The TJA105[1,7] is a high-speed CAN transceiver which is a pin-compatib= le > > alternative for TI TCAN1043 with sleep mode supported, and has a compat= ible > > programming model, therefore use ti,tcan1043 as fallback compatible. > >=20 > > The TJA1048 is a dual high-speed CAN transceiver with sleep mode suppor= ted. > >=20 > > Reviewed-by: Frank Li > > Signed-off-by: Peng Fan > > --- > > .../devicetree/bindings/phy/ti,tcan104x-can.yaml | 30 ++++++++++++++= ++++++-- > > 1 file changed, 28 insertions(+), 2 deletions(-) > >=20 > > diff --git a/Documentation/devicetree/bindings/phy/ti,tcan104x-can.yaml= b/Documentation/devicetree/bindings/phy/ti,tcan104x-can.yaml > > index 4a8c3829d85d3c4a4963750d03567c1c345beb91..f8e0c24856a2ba83b5c988b= 246464f47e11a032f 100644 > > --- a/Documentation/devicetree/bindings/phy/ti,tcan104x-can.yaml > > +++ b/Documentation/devicetree/bindings/phy/ti,tcan104x-can.yaml > > @@ -19,18 +19,25 @@ properties: > > - enum: > > - microchip,ata6561 > > - const: ti,tcan1042 > > + - items: > > + - enum: > > + - nxp,tja1051 > > + - nxp,tja1057 > > + - const: ti,tcan1043 > > - enum: > > - ti,tcan1042 > > - ti,tcan1043 > > + - nxp,tja1048 > > - nxp,tjr1443 > > =20 > > '#phy-cells': > > - const: 0 > > + enum: [0, 1] > > =20 > > standby-gpios: > > description: > > gpio node to toggle standby signal on transceiver > > - maxItems: 1 > > + minItems: 1 > > + maxItems: 2 >=20 > You're adding a second standby gpio, which one is which? > I assume you mean that item 1 is stbn1 and item 2 is stbn 2 for tja1048. > Might be kinda obvious, but I think it should be mentioned. >=20 > tja105{1,7} don't have a standby gpio, but they do have a silent mode. > silent mode seems fundamentally different to standby, since the receiver > still works. Seems like that should be handled differently, no? The docs for standby mode for the tcan1043 don't match with the tja1051, "Standby mode is a low power mode where the driver and receiver are disabled," so does the fallback compatible even make sense? Seems like a combination of enable and standby gpios are used to put the tcan device into silent mode but the tja1051 has a pin for that alone and seemingly does not support standby at all? >=20 > > =20 > > enable-gpios: > > description: > > @@ -53,6 +60,25 @@ required: > > - compatible > > - '#phy-cells' > > =20 > > +allOf: > > + - if: > > + properties: > > + compatible: > > + contains: > > + const: nxp,tja1048 > > + then: > > + properties: > > + '#phy-cells': > > + const: 1 > > + standby-gpios: > > + minItems: 2 > > + else: > > + properties: > > + '#phy-cells': > > + const: 0 > > + standby-gpios: > > + maxItems: 1 > > + > > additionalProperties: false > > =20 > > examples: > >=20 > > --=20 > > 2.37.1 > >=20 --Fac7BrZqSni97b6k Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCaLXtSQAKCRB4tDGHoIJi 0vFGAQCYNzumk6MUDIsHrTq+zb2rPK0wlmaEJB3AP3SpQVUxnAEAqIUZeoqA5+in UbteyD3yR0gqvOwaghcsU1k+0rcDpgs= =Zpms -----END PGP SIGNATURE----- --Fac7BrZqSni97b6k--