From: Dimitri Fedrau <dima.fedrau@gmail.com>
To: Conor Dooley <conor@kernel.org>
Cc: dimitri.fedrau@liebherr.com, Vinod Koul <vkoul@kernel.org>,
Kishon Vijay Abraham I <kishon@kernel.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
linux-phy@lists.infradead.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org,
Marc Kleine-Budde <mkl@pengutronix.de>,
linux-can@vger.kernel.org
Subject: Re: [PATCH v3 1/2] dt-bindings: phy: add support for NXPs TJA1145 CAN transceiver
Date: Tue, 14 Oct 2025 14:19:26 +0200 [thread overview]
Message-ID: <20251014121926.GA63762@legfed1> (raw)
In-Reply-To: <20251013-supplier-edition-0ffc88286b5d@spud>
Am Mon, Oct 13, 2025 at 08:41:49PM +0100 schrieb Conor Dooley:
> On Mon, Oct 13, 2025 at 11:19:18AM +0200, Dimitri Fedrau via B4 Relay wrote:
> > From: Dimitri Fedrau <dimitri.fedrau@liebherr.com>
> >
> > Adding documentation for NXPs TJA1145 CAN transceiver, which resides like
> > the ti,tcan104x-can.yaml in the same directory as other generic PHY
> > subsystem bindings. At the moment there is only support for simple PHYs
> > by using regulator bindings in combination with can-transceiver.yaml or
> > PHYs that implement the generic PHY subsystem like the NXP TJA1145.
> >
> > Signed-off-by: Dimitri Fedrau <dimitri.fedrau@liebherr.com>
> > ---
> > .../devicetree/bindings/phy/nxp,tja1145-can.yaml | 79 ++++++++++++++++++++++
> > 1 file changed, 79 insertions(+)
> >
> > diff --git a/Documentation/devicetree/bindings/phy/nxp,tja1145-can.yaml b/Documentation/devicetree/bindings/phy/nxp,tja1145-can.yaml
> > new file mode 100644
> > index 0000000000000000000000000000000000000000..3b81a2e1ead8452ed5fcf2021f33d628d4e12346
> > --- /dev/null
> > +++ b/Documentation/devicetree/bindings/phy/nxp,tja1145-can.yaml
> > @@ -0,0 +1,79 @@
> > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
> > +%YAML 1.2
> > +---
> > +$id: http://devicetree.org/schemas/phy/nxp,tja1145-can.yaml#
> > +$schema: http://devicetree.org/meta-schemas/core.yaml#
> > +
> > +title: TJA1145 CAN transceiver
> > +
> > +maintainers:
> > + - Dimitri Fedrau <dimitri.fedrau@liebherr.com>
> > +
> > +allOf:
> > + - $ref: /schemas/spi/spi-peripheral-props.yaml#
> > +
> > +properties:
> > + compatible:
> > + const: nxp,tja1145-can
>
> I'd drop the -can here, since I don't think the device can be anything
> else?
>
Will drop the -can. Device cannot be anything else.
> > +
> > + reg:
> > + maxItems: 1
> > +
> > + "#phy-cells":
> > + const: 0
> > +
> > + spi-max-frequency:
> > + maximum: 4000000
> > +
> > + spi-cpha: true
>
> Is this optionally cpha or always? I'd mark it required if it is always
> needed for the device to function.
>
According to the datasheet it is cpha. Didn't test if the device is
running with a different configuration. I mark it as required then.
> > +
> > + spi-cs-setup-delay-ns:
> > + minimum: 50
> > + default: 50
> > +
> > + spi-cs-hold-delay-ns:
> > + minimum: 50
> > + default: 50
> > +
> > + spi-cs-inactive-delay-ns:
> > + minimum: 250
> > + default: 250
> > +
> > + vcc-supply:
> > + description:
> > + CAN transceiver supply voltage
> > +
> > + vio-supply:
> > + description:
> > + Supply voltage for I/O level adaptor
> > +
> > + vbat-supply:
> > + description:
> > + Battery supply voltage
> > +
> > +required:
> > + - compatible
> > + - reg
> > + - "#phy-cells"
> > +
> > +unevaluatedProperties: false
>
> If the properties you've listed above from spi-peripheral-props are the
> only ones suitable for the device, I think additionalProperties: false
> is sufficient here.
>
I switch to additionalProperties: false then
Best regards,
Dimitri Fedrau
WARNING: multiple messages have this Message-ID (diff)
From: Dimitri Fedrau <dima.fedrau@gmail.com>
To: Conor Dooley <conor@kernel.org>
Cc: dimitri.fedrau@liebherr.com, Vinod Koul <vkoul@kernel.org>,
Kishon Vijay Abraham I <kishon@kernel.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
linux-phy@lists.infradead.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org,
Marc Kleine-Budde <mkl@pengutronix.de>,
linux-can@vger.kernel.org
Subject: Re: [PATCH v3 1/2] dt-bindings: phy: add support for NXPs TJA1145 CAN transceiver
Date: Tue, 14 Oct 2025 14:19:26 +0200 [thread overview]
Message-ID: <20251014121926.GA63762@legfed1> (raw)
In-Reply-To: <20251013-supplier-edition-0ffc88286b5d@spud>
Am Mon, Oct 13, 2025 at 08:41:49PM +0100 schrieb Conor Dooley:
> On Mon, Oct 13, 2025 at 11:19:18AM +0200, Dimitri Fedrau via B4 Relay wrote:
> > From: Dimitri Fedrau <dimitri.fedrau@liebherr.com>
> >
> > Adding documentation for NXPs TJA1145 CAN transceiver, which resides like
> > the ti,tcan104x-can.yaml in the same directory as other generic PHY
> > subsystem bindings. At the moment there is only support for simple PHYs
> > by using regulator bindings in combination with can-transceiver.yaml or
> > PHYs that implement the generic PHY subsystem like the NXP TJA1145.
> >
> > Signed-off-by: Dimitri Fedrau <dimitri.fedrau@liebherr.com>
> > ---
> > .../devicetree/bindings/phy/nxp,tja1145-can.yaml | 79 ++++++++++++++++++++++
> > 1 file changed, 79 insertions(+)
> >
> > diff --git a/Documentation/devicetree/bindings/phy/nxp,tja1145-can.yaml b/Documentation/devicetree/bindings/phy/nxp,tja1145-can.yaml
> > new file mode 100644
> > index 0000000000000000000000000000000000000000..3b81a2e1ead8452ed5fcf2021f33d628d4e12346
> > --- /dev/null
> > +++ b/Documentation/devicetree/bindings/phy/nxp,tja1145-can.yaml
> > @@ -0,0 +1,79 @@
> > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
> > +%YAML 1.2
> > +---
> > +$id: http://devicetree.org/schemas/phy/nxp,tja1145-can.yaml#
> > +$schema: http://devicetree.org/meta-schemas/core.yaml#
> > +
> > +title: TJA1145 CAN transceiver
> > +
> > +maintainers:
> > + - Dimitri Fedrau <dimitri.fedrau@liebherr.com>
> > +
> > +allOf:
> > + - $ref: /schemas/spi/spi-peripheral-props.yaml#
> > +
> > +properties:
> > + compatible:
> > + const: nxp,tja1145-can
>
> I'd drop the -can here, since I don't think the device can be anything
> else?
>
Will drop the -can. Device cannot be anything else.
> > +
> > + reg:
> > + maxItems: 1
> > +
> > + "#phy-cells":
> > + const: 0
> > +
> > + spi-max-frequency:
> > + maximum: 4000000
> > +
> > + spi-cpha: true
>
> Is this optionally cpha or always? I'd mark it required if it is always
> needed for the device to function.
>
According to the datasheet it is cpha. Didn't test if the device is
running with a different configuration. I mark it as required then.
> > +
> > + spi-cs-setup-delay-ns:
> > + minimum: 50
> > + default: 50
> > +
> > + spi-cs-hold-delay-ns:
> > + minimum: 50
> > + default: 50
> > +
> > + spi-cs-inactive-delay-ns:
> > + minimum: 250
> > + default: 250
> > +
> > + vcc-supply:
> > + description:
> > + CAN transceiver supply voltage
> > +
> > + vio-supply:
> > + description:
> > + Supply voltage for I/O level adaptor
> > +
> > + vbat-supply:
> > + description:
> > + Battery supply voltage
> > +
> > +required:
> > + - compatible
> > + - reg
> > + - "#phy-cells"
> > +
> > +unevaluatedProperties: false
>
> If the properties you've listed above from spi-peripheral-props are the
> only ones suitable for the device, I think additionalProperties: false
> is sufficient here.
>
I switch to additionalProperties: false then
Best regards,
Dimitri Fedrau
--
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy
next prev parent reply other threads:[~2025-10-14 12:19 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-13 9:19 [PATCH v3 0/2] phy: add basic support for NXPs TJA1145 CAN transceiver Dimitri Fedrau
2025-10-13 9:19 ` Dimitri Fedrau via B4 Relay
2025-10-13 9:19 ` Dimitri Fedrau via B4 Relay
2025-10-13 9:19 ` [PATCH v3 1/2] dt-bindings: phy: add " Dimitri Fedrau
2025-10-13 9:19 ` Dimitri Fedrau via B4 Relay
2025-10-13 9:19 ` Dimitri Fedrau via B4 Relay
2025-10-13 19:41 ` Conor Dooley
2025-10-13 19:41 ` Conor Dooley
2025-10-14 12:19 ` Dimitri Fedrau [this message]
2025-10-14 12:19 ` Dimitri Fedrau
2025-10-13 9:19 ` [PATCH v3 2/2] phy: add basic " Dimitri Fedrau
2025-10-13 9:19 ` Dimitri Fedrau via B4 Relay
2025-10-13 9:19 ` Dimitri Fedrau via B4 Relay
2025-10-13 9:36 ` Marc Kleine-Budde
2025-10-13 9:36 ` Marc Kleine-Budde
2025-10-13 9:51 ` Marc Kleine-Budde
2025-10-13 9:51 ` Marc Kleine-Budde
2025-10-13 11:36 ` Dimitri Fedrau
2025-10-13 11:36 ` Dimitri Fedrau
2025-10-13 11:44 ` Marc Kleine-Budde
2025-10-13 11:44 ` Marc Kleine-Budde
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251014121926.GA63762@legfed1 \
--to=dima.fedrau@gmail.com \
--cc=conor+dt@kernel.org \
--cc=conor@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dimitri.fedrau@liebherr.com \
--cc=kishon@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-can@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-phy@lists.infradead.org \
--cc=mkl@pengutronix.de \
--cc=robh@kernel.org \
--cc=vkoul@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.