Re: [PATCH v3 1/2] dt-bindings: can: mcp251xfd: add microchip,xstbyen property
From: Conor Dooley
Date: Mon Mar 23 2026 - 15:52:57 EST
On Sat, Mar 21, 2026 at 07:20:30PM +0530, Viken Dadhaniya wrote:
> Add the boolean property 'microchip,xstbyen' to enable the dedicated
> transceiver standby control function on the INT0/GPIO0/XSTBY pin of
> the MCP251xFD family.
>
> Signed-off-by: Viken Dadhaniya <viken.dadhaniya@xxxxxxxxxxxxxxxx>
> ---
> v2 -> v3:
>
> - No change.
>
> v2 Link: https://lore.kernel.org/all/20260316131950.859748-2-viken.dadhaniya@xxxxxxxxxxxxxxxx/
>
> v1 -> v2:
>
> - Drop the gpio-hog approach as suggested by Dmitry.
> - Add the microchip,xstbyen property to enable transceiver standby control.
>
> v1 Link: https://lore.kernel.org/all/20260108125200.2803112-2-viken.dadhaniya@xxxxxxxxxxxxxxxx/
> ---
> .../devicetree/bindings/net/can/microchip,mcp251xfd.yaml | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/net/can/microchip,mcp251xfd.yaml b/Documentation/devicetree/bindings/net/can/microchip,mcp251xfd.yaml
> index 2d13638ebc6a..28e494262cd9 100644
> --- a/Documentation/devicetree/bindings/net/can/microchip,mcp251xfd.yaml
> +++ b/Documentation/devicetree/bindings/net/can/microchip,mcp251xfd.yaml
> @@ -44,6 +44,14 @@ properties:
> signals a pending RX interrupt.
> maxItems: 1
>
> + microchip,xstbyen:
> + type: boolean
> + description:
> + If present, configure the INT0/GPIO0/XSTBY pin as transceiver standby
> + control. The pin is driven low when the controller is active and high
> + when it enters Sleep mode, allowing automatic standby control of an
> + external CAN transceiver connected to this pin.
What I don't understand from this patch is why a property for this is
required.
Why can't this mode be implied from the lack of rx-int-gpios or
interrupts?
> +
> spi-max-frequency:
> description:
> Must be half or less of "clocks" frequency.
> --
> 2.34.1
>
Attachment:
signature.asc
Description: PGP signature