From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796297004; b=Ixxm1ePSLkW1p2EiZ3TiUGCoHkYeY+lqF74wkCto523tCZsfy0VK9C/pp0e2zu4ijDzk e0aJvw94OieP0ZnONfaq2fgErjGTiJ1j4Rv82KUuN4mqaELr3xMAVy2dryDnxL733K2L6 Nz1+fiFACY0lmpHZuMpgM8o1fctclNfeJxoseXNKBwP/u3BPf9zY829u/OALvnN05Y1s1 d8NmtRDemUYdU0//zWq0BUxQ2iK41rt5+jb77FhDMrFcGsxOI5PsZ31zfA395hHqG8OQW MoA/ceoSaczoxj9uSEE7e4yEIxgxpWdtZJoCDWKM4TiceDaOADdgASCn3ykkXUsRhxw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796297004; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=8GgjJRxMW+xpF60JgNPK2Q1xdbCKS4FNikG/NM5Dd/M=; b=lqwo7gdTzMeO9UUHvvR4VBy0qw2cnZfbaUSwLMpxqwltaiJF54PG1kJTeT46qWh4w3ju p6jTYA7tx2s//gmaT9tAfsXEPmsYICrhvoTptIraHpLJzYdZu3TtlIiMfSOLnwtHgUNJZ eQuDb0W/72G8JVFTN45tYC9Ia3cgsVP05P/kUcKbsyyPR2xQmCtFYn3X9v5L3MWjOI821 LTBi6PiJJE7EArGskYDj15D/mO9+GMzR8zHohW2O8wGaPcYYdcHgS17YQpKQarnSJIL5H xV0atYjjoUrFuswcx67IEE53awMJ7KBY2HrZnSxOpIZ1PJfwZkWN9TsNDqneya4PHbA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Y3IKBLPk; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3A088606A332; Thu, 3 Dec 2026 11:23:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Y3IKBLPk Received: by smtp.kernel.org (Postfix) with ESMTPSA id E34841F0089C; Thu, 3 Dec 2026 11:23:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796297003; bh=8GgjJRxMW+xpF60JgNPK2Q1xdbCKS4FNikG/NM5Dd/M=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=Y3IKBLPkZgl9FOC3muAjkfFzJeQ6xDHRE0C7d9v0PDj8Fjasp+cfbimdyPuCA9432 xv6cBSZUEtjiI/lzoPwcn+/MkGdS6nBtupJvqK90B1HltGV9UYbFBKAG5WEzDU1IaW i+FEfPkxjyiZqoDVcQxjrYvdXX9TIfZDTPQqRamd+DO5t+MZSTedDi4P7eUmZp5W9O 1N1+MLr3FaJrgxcsVUtk7HdfG4ADeMDqcdtC5adGN4r5HazQuXXgON14+VvMNabrVs 4tHs38phErQyw4LSzt+1DYD0GId456fDXux2IdOi+5uDPonuo6D0H1r6DV23jOCcgs 7FqmgIeEvwkuQ== Date: Thu, 3 Dec 2026 12:23:20 +0100 From: Krzysztof Kozlowski To: Tapio Reijonen Cc: Greg Kroah-Hartman , Jiri Slaby , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Markus Probst , linux-serial@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Lukas Wunner , Christoph Niedermaier , Ilpo =?utf-8?B?SsOkcnZpbmVu?= , Lino Sanfilippo , Hugo Villeneuve Subject: Re: [PATCH 2/7] dt-bindings: serial: Add the line transceiver enable GPIO Message-ID: <20261203-arrogant-finicky-impala-c4ee7b@quoll> References: <20261111-serial-transceiver-supply-v1-0-40bad0f912f2@vaisala.com> <20261111-serial-transceiver-supply-v1-2-40bad0f912f2@vaisala.com> <20261123-transparent-coucal-of-persistence-8cfbdd@quoll> <9a659dc6-2ba0-4f97-86b4-ded8a48ac7e0@kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: 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 Best regards, Krzysztof