Devicetree
 help / color / mirror / Atom feed
From: "Kryštof Černý via B4 Relay" <devnull+cleverline1mc.gmail.com@kernel.org>
To: 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>,
	 Richard Genoud <richard.genoud@bootlin.com>,
	 Radu Pirea <radu_nicolae.pirea@upb.ro>,
	 Nicolas Ferre <nicolas.ferre@microchip.com>,
	 Alexandre Belloni <alexandre.belloni@bootlin.com>,
	 Claudiu Beznea <claudiu.beznea@tuxon.dev>,
	Frank Li <Frank.Li@nxp.com>,
	 Sascha Hauer <s.hauer@pengutronix.de>,
	 Pengutronix Kernel Team <kernel@pengutronix.de>,
	 Fabio Estevam <festevam@gmail.com>,
	Markus Probst <markus.probst@posteo.de>,
	 Maxime Coquelin <mcoquelin.stm32@gmail.com>,
	 Alexandre Torgue <alexandre.torgue@foss.st.com>,
	 Vignesh Raghavendra <vigneshr@ti.com>,
	Michal Simek <michal.simek@amd.com>,
	 Fugang Duan <fugang.duan@nxp.com>,
	 Hugo Villeneuve <hvilleneuve@dimonoff.com>,
	 Le Ray <erwan.leray@foss.st.com>,
	Lino Sanfilippo <LinoSanfilippo@gmx.de>
Cc: linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org,
	devicetree@vger.kernel.org, linux-spi@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org, imx@lists.linux.dev,
	linux-stm32@st-md-mailman.stormreply.com,
	"Matous Hybl" <hyblmatous@gmail.com>,
	"Miroslav Ondra" <ondra@faster.cz>,
	"Kryštof Černý" <cleverline1mc@gmail.com>
Subject: [PATCH v2] dt-bindings: serial: Move rs485.yaml reference to serial.yaml
Date: Tue, 01 Dec 2026 08:32:29 +0100	[thread overview]
Message-ID: <20261201-pl011-rs485-v2-1-35dd1fdf6d97@gmail.com> (raw)

From: Kryštof Černý <cleverline1mc@gmail.com>

RS-485 support is not specific to a particular UART. The rs485.yaml
properties describe the transceiver attached to the UART and how it is
wired, so a UART binding should not need to opt in to them, whether its
driver supports RS-485 or not.

Reference rs485.yaml from serial.yaml and drop the now redundant
references from the bindings that included it next to serial.yaml.
UART bindings that reference only serial.yaml, such as arm,pl011, now
accept the RS-485 properties; dtbs_check rejected
linux,rs485-enabled-at-boot-time on the PL011 UARTs of a BCM2711 board
used for RS-485.

Signed-off-by: Kryštof Černý <cleverline1mc@gmail.com>
---
dtbs_check rejects RS-485 properties such as
linux,rs485-enabled-at-boot-time on PL011 UARTs, although the driver
supports RS-485. As Rob suggested on v1, the properties are not specific
to a UART, so reference rs485.yaml from serial.yaml instead of from the
individual bindings. Thanks for the suggestion.

An AI assistant (Claude) helped write the commit message and this
cover letter, following the commit-message, find-fixes and stable-tag
skills from Sasha Levin's agents branch
(git://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux.git agents,
d8d07dd58c62).
---
Changes in v2:
- Reference rs485.yaml from serial.yaml instead of pl011.yaml and drop
  the now redundant references from the other serial bindings (Rob)
- v1 subject was "dt-bindings: serial: pl011: Reference rs485.yaml"
- Drop the Fixes tag
- Link to v1: https://patch.msgid.link/20261121-pl011-rs485-v1-1-0d18008f4a12@gmail.com
---
 Documentation/devicetree/bindings/serial/8250_omap.yaml        | 1 -
 Documentation/devicetree/bindings/serial/atmel,at91-usart.yaml | 1 -
 Documentation/devicetree/bindings/serial/cdns,uart.yaml        | 1 -
 Documentation/devicetree/bindings/serial/fsl-imx-uart.yaml     | 1 -
 Documentation/devicetree/bindings/serial/fsl-lpuart.yaml       | 1 -
 Documentation/devicetree/bindings/serial/maxim,max310x.yaml    | 2 --
 Documentation/devicetree/bindings/serial/nxp,sc16is7xx.yaml    | 1 -
 Documentation/devicetree/bindings/serial/serial.yaml           | 2 ++
 Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml | 1 -
 Documentation/devicetree/bindings/serial/st,stm32-uart.yaml    | 1 -
 10 files changed, 2 insertions(+), 10 deletions(-)

diff --git a/Documentation/devicetree/bindings/serial/8250_omap.yaml b/Documentation/devicetree/bindings/serial/8250_omap.yaml
index aabacca2b2fa6..b3c1596873349 100644
--- a/Documentation/devicetree/bindings/serial/8250_omap.yaml
+++ b/Documentation/devicetree/bindings/serial/8250_omap.yaml
@@ -11,7 +11,6 @@ maintainers:
 
 allOf:
   - $ref: /schemas/serial/serial.yaml#
-  - $ref: /schemas/serial/rs485.yaml#
 
 properties:
   compatible:
diff --git a/Documentation/devicetree/bindings/serial/atmel,at91-usart.yaml b/Documentation/devicetree/bindings/serial/atmel,at91-usart.yaml
index 375cd50bc5cca..efc9cfc586ae0 100644
--- a/Documentation/devicetree/bindings/serial/atmel,at91-usart.yaml
+++ b/Documentation/devicetree/bindings/serial/atmel,at91-usart.yaml
@@ -127,7 +127,6 @@ allOf:
     else:
       allOf:
         - $ref: /schemas/serial/serial.yaml#
-        - $ref: /schemas/serial/rs485.yaml#
 
 unevaluatedProperties: false
 
diff --git a/Documentation/devicetree/bindings/serial/cdns,uart.yaml b/Documentation/devicetree/bindings/serial/cdns,uart.yaml
index 11292de42c67b..3c90c71fdb26f 100644
--- a/Documentation/devicetree/bindings/serial/cdns,uart.yaml
+++ b/Documentation/devicetree/bindings/serial/cdns,uart.yaml
@@ -60,7 +60,6 @@ required:
 
 allOf:
   - $ref: serial.yaml#
-  - $ref: rs485.yaml#
   - if:
       properties:
         compatible:
diff --git a/Documentation/devicetree/bindings/serial/fsl-imx-uart.yaml b/Documentation/devicetree/bindings/serial/fsl-imx-uart.yaml
index 9c6dc16f88a6f..3d66fd55f645a 100644
--- a/Documentation/devicetree/bindings/serial/fsl-imx-uart.yaml
+++ b/Documentation/devicetree/bindings/serial/fsl-imx-uart.yaml
@@ -112,7 +112,6 @@ required:
 
 allOf:
   - $ref: serial.yaml#
-  - $ref: rs485.yaml#
 
   - if:
       properties:
diff --git a/Documentation/devicetree/bindings/serial/fsl-lpuart.yaml b/Documentation/devicetree/bindings/serial/fsl-lpuart.yaml
index c42261b5a80a8..6e1cd91ddd015 100644
--- a/Documentation/devicetree/bindings/serial/fsl-lpuart.yaml
+++ b/Documentation/devicetree/bindings/serial/fsl-lpuart.yaml
@@ -10,7 +10,6 @@ maintainers:
   - Fugang Duan <fugang.duan@nxp.com>
 
 allOf:
-  - $ref: rs485.yaml#
   - $ref: serial.yaml#
 
 properties:
diff --git a/Documentation/devicetree/bindings/serial/maxim,max310x.yaml b/Documentation/devicetree/bindings/serial/maxim,max310x.yaml
index e598dda4d13f5..efa7127c6e73b 100644
--- a/Documentation/devicetree/bindings/serial/maxim,max310x.yaml
+++ b/Documentation/devicetree/bindings/serial/maxim,max310x.yaml
@@ -67,7 +67,6 @@ allOf:
     then:
       allOf:
         - $ref: /schemas/serial/serial.yaml#
-        - $ref: /schemas/serial/rs485.yaml#
 
   - if:
       properties:
@@ -88,7 +87,6 @@ allOf:
           description: A single UART channel of the chip.
           allOf:
             - $ref: /schemas/serial/serial.yaml#
-            - $ref: /schemas/serial/rs485.yaml#
           properties:
             reg:
               description: UART channel number on the chip.
diff --git a/Documentation/devicetree/bindings/serial/nxp,sc16is7xx.yaml b/Documentation/devicetree/bindings/serial/nxp,sc16is7xx.yaml
index ab39b95dae402..880f7adefd1aa 100644
--- a/Documentation/devicetree/bindings/serial/nxp,sc16is7xx.yaml
+++ b/Documentation/devicetree/bindings/serial/nxp,sc16is7xx.yaml
@@ -82,7 +82,6 @@ required:
 allOf:
   - $ref: /schemas/spi/spi-peripheral-props.yaml#
   - $ref: /schemas/serial/serial.yaml#
-  - $ref: /schemas/serial/rs485.yaml#
 
 oneOf:
   - required:
diff --git a/Documentation/devicetree/bindings/serial/serial.yaml b/Documentation/devicetree/bindings/serial/serial.yaml
index 96eb1de8771e9..ca62b3a606ed3 100644
--- a/Documentation/devicetree/bindings/serial/serial.yaml
+++ b/Documentation/devicetree/bindings/serial/serial.yaml
@@ -19,6 +19,8 @@ description:
   where N is the port number (non-negative decimal integer) as printed on the
   label next to the physical port.
 
+$ref: rs485.yaml#
+
 properties:
   $nodename:
     pattern: "^serial(@.*)?$"
diff --git a/Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml b/Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml
index e2ca126d58ba8..f669262f81521 100644
--- a/Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml
+++ b/Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml
@@ -11,7 +11,6 @@ maintainers:
 
 allOf:
   - $ref: serial.yaml#
-  - $ref: rs485.yaml#
 
   - if:
       properties:
diff --git a/Documentation/devicetree/bindings/serial/st,stm32-uart.yaml b/Documentation/devicetree/bindings/serial/st,stm32-uart.yaml
index 2ed526139269c..6f5598d139c77 100644
--- a/Documentation/devicetree/bindings/serial/st,stm32-uart.yaml
+++ b/Documentation/devicetree/bindings/serial/st,stm32-uart.yaml
@@ -78,7 +78,6 @@ properties:
     maxItems: 2
 
 allOf:
-  - $ref: rs485.yaml#
   - $ref: serial.yaml#
   - if:
       required:

---
base-commit: 909ef7a9a30fa139e69e555e3606680f5cca7726
change-id: 20261121-pl011-rs485-6e5113a8faad

Best regards,
--  
Kryštof Černý <cleverline1mc@gmail.com>



             reply	other threads:[~2026-12-01  8:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-01  7:32 Kryštof Černý via B4 Relay [this message]
2026-12-01 16:40 ` [PATCH v2] dt-bindings: serial: Move rs485.yaml reference to serial.yaml Frank Li

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=20261201-pl011-rs485-v2-1-35dd1fdf6d97@gmail.com \
    --to=devnull+cleverline1mc.gmail.com@kernel.org \
    --cc=Frank.Li@nxp.com \
    --cc=LinoSanfilippo@gmx.de \
    --cc=alexandre.belloni@bootlin.com \
    --cc=alexandre.torgue@foss.st.com \
    --cc=claudiu.beznea@tuxon.dev \
    --cc=cleverline1mc@gmail.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=erwan.leray@foss.st.com \
    --cc=festevam@gmail.com \
    --cc=fugang.duan@nxp.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=hvilleneuve@dimonoff.com \
    --cc=hyblmatous@gmail.com \
    --cc=imx@lists.linux.dev \
    --cc=jirislaby@kernel.org \
    --cc=kernel@pengutronix.de \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-serial@vger.kernel.org \
    --cc=linux-spi@vger.kernel.org \
    --cc=linux-stm32@st-md-mailman.stormreply.com \
    --cc=markus.probst@posteo.de \
    --cc=mcoquelin.stm32@gmail.com \
    --cc=michal.simek@amd.com \
    --cc=nicolas.ferre@microchip.com \
    --cc=ondra@faster.cz \
    --cc=radu_nicolae.pirea@upb.ro \
    --cc=richard.genoud@bootlin.com \
    --cc=robh@kernel.org \
    --cc=s.hauer@pengutronix.de \
    --cc=vigneshr@ti.com \
    /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