Re: [PATCH 2/7] dt-bindings: serial: Add the line transceiver enable GPIO
From: Tapio Reijonen
Date: Tue Nov 24 2026 - 01:48:21 EST
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