Re: [PATCH 2/7] dt-bindings: serial: Add the line transceiver enable GPIO
From: Krzysztof Kozlowski
Date: Thu Dec 03 2026 - 06:23:31 EST
On Tue, Nov 24, 2026 at 08:48:04AM +0200, Tapio Reijonen wrote:
>
>
> 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.
>
Please capture pieces of above - device names and pins, not more than 2-3
sentences - in the commit msg.
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxxxxxxxx>
Best regards,
Krzysztof