Linux Serial subsystem development
 help / color / mirror / Atom feed
* [PATCH v2] dt-bindings: serial: Move rs485.yaml reference to serial.yaml
@ 2026-12-01  7:32 Kryštof Černý via B4 Relay
  2026-12-01  8:15 ` sashiko-bot
  0 siblings, 1 reply; 2+ messages in thread
From: Kryštof Černý via B4 Relay @ 2026-12-01  7:32 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Jiri Slaby, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Richard Genoud, Radu Pirea, Nicolas Ferre,
	Alexandre Belloni, Claudiu Beznea, Frank Li, Sascha Hauer,
	Pengutronix Kernel Team, Fabio Estevam, Markus Probst,
	Maxime Coquelin, Alexandre Torgue, Vignesh Raghavendra,
	Michal Simek, Fugang Duan, Hugo Villeneuve, Le Ray,
	Lino Sanfilippo
  Cc: linux-kernel, linux-serial, devicetree, linux-spi,
	linux-arm-kernel, imx, linux-stm32, Matous Hybl, Miroslav Ondra,
	Kryštof Černý

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>



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-12-01  8:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-01  7:32 [PATCH v2] dt-bindings: serial: Move rs485.yaml reference to serial.yaml Kryštof Černý via B4 Relay
2026-12-01  8:15 ` sashiko-bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox