From: =?utf-8?q?Kry=C5=A1tof_=C4=8Cern=C3=BD?= Date: Tue, 01 Dec 2026 08:32:29 +0100 Subject: [PATCH v2] dt-bindings: serial: Move rs485.yaml reference to serial.yaml MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20261201-pl011-rs485-v2-1-35dd1fdf6d97@gmail.com> X-B4-Tracking: v=1; b=H4sIAAx4DmsC/22Nyw6CMBBFf4XM2ppOBdK48j8Mi0oHGMMrLTYa0 n+3xa3Lk5x77g6eHJOHa7GDo8CelzmBOhXQDmbuSbBNDEqqGlGhWEeJKJwvdSVqqhAvRnfGWEi L1VHH76N2b37sX48ntVtOZGNgvy3uc9wFzN7/ckCBQlrUUuquNKhu/WR4PLfLBE2M8QvtgXaeu AAAAA== X-Change-ID: 20261121-pl011-rs485-6e5113a8faad 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@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 , Miroslav Ondra , =?utf-8?q?Kry=C5=A1tof_=C4=8Cern=C3=BD?= X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1796112755; l=7558; i=cleverline1mc@gmail.com; s=20261121; h=from:subject:message-id; bh=iTqo/8pQDWBBvJUe6G3WuyxVv+MfwUoIsXhpdFBgl6Q=; b=Po2R+TDADjVGsmYS4ZHLEjrJt6X5w/+QZphlDRRE6itdrfhsJjLN2LAS2VjSpBDfumCCXGw+w tde8oeOodibAZ69r9ZTNbZ+3G2HcEuKwv0Yvdbr+Z2kTARBFFNE1kwz X-Developer-Key: i=cleverline1mc@gmail.com; a=ed25519; pk=2UEUVmQyfsiFZkNS7dkgFg0rUmhbcMIytM6NYhxFt/Y= X-Endpoint-Received: by B4 Relay for cleverline1mc@gmail.com/20261121 with auth_id=1594 List-Id: B4 Relay Submissions 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ý --- 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 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ý