mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Tapio Reijonen <tapio.reijonen@vaisala.com>
To: Krzysztof Kozlowski <krzk@kernel.org>
Cc: "Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
	"Jiri Slaby" <jirislaby@kernel.org>,
	"Rob Herring" <robh@kernel.org>,
	"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
	"Conor Dooley" <conor+dt@kernel.org>,
	"Markus Probst" <markus.probst@posteo.de>,
	linux-serial@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org, "Lukas Wunner" <lukas@wunner.de>,
	"Christoph Niedermaier" <cniedermaier@dh-electronics.com>,
	"Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>,
	"Lino Sanfilippo" <l.sanfilippo@kunbus.com>,
	"Hugo Villeneuve" <hvilleneuve@dimonoff.com>
Subject: Re: [PATCH 2/7] dt-bindings: serial: Add the line transceiver enable GPIO
Date: Tue, 24 Nov 2026 08:48:04 +0200	[thread overview]
Message-ID: <f00b7050-ac43-4c50-b702-575d37c26d7e@vaisala.com> (raw)
In-Reply-To: <9a659dc6-2ba0-4f97-86b4-ded8a48ac7e0@kernel.org>



On 11/23/26 10:08, Krzysztof Kozlowski wrote:
> On 23/11/2026 09:03, Krzysztof Kozlowski wrote:
>> On Wed, Nov 11, 2026 at 12:28:01PM +0000, Tapio Reijonen wrote:
>>> A UART's line transceiver (RS-232, RS-485, an isolated or a
>>> multiprotocol part) is a dumb device with no node of its own, yet on
>>> many boards it is the largest consumer behind the port and can be
>>> switched off, through a shutdown input of the part or a switch in its
>>> supply. Device trees have no way to say so, and the transceiver stays
>>> powered for as long as the system is up, whether or not the port is
>>> open.
>>
>> To me transceiver is part of the UART device node, so this should be
>> handled by device schema. Commit msg lacks actual hardware names
>> justifying the change.
> 
> Feel free to reference at least two devices/schematics etc showing they
> have separate transceiver pin for that...
Thanks for the review. Boards that are already in the tree:

- Toradex Iris carrier board (Colibri modules). The published V2.0
  schematics show two MAX3243 RS-232 transceivers; FORCEOFF# of the
  first (UART_A) is on module pin SODIMM 102 and FORCEOFF# of the
  second (UART_B and UART_C) on SODIMM 104, each with a pull-up.
  arch/arm/boot/dts/nxp/imx/imx6dl-colibri-iris.dts has the pin groups
  uart1_forceoff and uart23_forceoff and two hogs that hold the lines
  high. The comment there says that to turn the transceiver off the
  hog has to be deleted and the GPIO handled in userspace.
  vf-colibri-iris.dtsi, imx6ull-colibri-iris.dtsi and
  imx7-colibri-iris.dtsi do the same.

- Toradex Ixora carrier board (Apalis modules). In the published
  V1.2 schematics the transceiver for UART2 and UART3 is an
  SN65C3243 (a MAX3243 from V1.3 on), with FORCEOFF# on the signal
  UART2/3_RS232_FOFF#, module pin MXM3 180. That is the line
  imx6q-apalis-ixora-v1.2.dts hogs high, with the same kind of
  comment, and UART24-FORCEOFF in imx8-apalis-ixora-v1.2.dtsi.

- Sierra Wireless mangOH Green. In the DV4 schematic the RS-232
  transceiver of the console port (U700) has FORCEON and FORCEOFF on
  the signal RS232_Enable, which is output 15 of the SX1509 GPIO
  expander in qcom-mdm9615-wp8548-mangoh-green.dts. The vendor's
  developer guide lists it as "Enable/disable console port". The
  devicetree only names that output in a comment and leaves it
  unused, so the transceiver stays on through the board's pull-up.

In all of them the pin is a board signal next to the transceiver, and
today it can only be kept "on", with a hog or a pull-up. I can put
these into the commit message.

On the device schema: the transceiver sits behind an i.MX UART on the
i.MX Colibri and Apalis boards, behind an LPUART on the Vybrid Colibri
and behind a MAX14830 on my board. In each case it is a transceiver
with a shutdown input. That is why I put the property into
serial.yaml, next to where rs485.yaml already has rs485-term-gpios and
rs485-rx-during-tx-gpios for the same class of board signals. Would
the property be acceptable there with the hardware named in the commit
message, or do you want it in the bindings of the individual UARTs?

Best regards,
Tapio

  reply	other threads:[~2026-11-24  6:48 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-11 12:27 [PATCH 0/7] serial: core: Power the line transceiver with the port Tapio Reijonen
2026-11-11 12:28 ` [PATCH 1/7] serial: max310x: Look up all channels before adding any port Tapio Reijonen
2026-11-11 12:28 ` [PATCH 2/7] dt-bindings: serial: Add the line transceiver enable GPIO Tapio Reijonen
2026-11-23  8:03   ` Krzysztof Kozlowski
2026-11-23  8:08     ` Krzysztof Kozlowski
2026-11-24  6:48       ` Tapio Reijonen [this message]
2026-11-11 12:28 ` [PATCH 3/7] dt-bindings: serial: sc16is7xx: Disallow transceiver GPIO on dual parts Tapio Reijonen
2026-11-23  8:00   ` Krzysztof Kozlowski
2026-11-24  6:56     ` Tapio Reijonen
2026-11-11 12:28 ` [PATCH 4/7] serial: core: Power the line transceiver with the port Tapio Reijonen
2026-11-11 12:28 ` [PATCH 5/7] serial: max310x: Request the line transceiver per port Tapio Reijonen
2026-11-11 12:28 ` [PATCH 6/7] dt-bindings: serial: max310x: Add maxim,tristate-when-closed Tapio Reijonen
2026-11-23  8:05   ` Krzysztof Kozlowski
2026-11-24  7:07     ` Tapio Reijonen
2026-11-11 12:28 ` [PATCH 7/7] serial: max310x: Three-state TX and RTS while the port is closed Tapio Reijonen

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=f00b7050-ac43-4c50-b702-575d37c26d7e@vaisala.com \
    --to=tapio.reijonen@vaisala.com \
    --cc=cniedermaier@dh-electronics.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=hvilleneuve@dimonoff.com \
    --cc=ilpo.jarvinen@linux.intel.com \
    --cc=jirislaby@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=krzk@kernel.org \
    --cc=l.sanfilippo@kunbus.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-serial@vger.kernel.org \
    --cc=lukas@wunner.de \
    --cc=markus.probst@posteo.de \
    --cc=robh@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®