Linux Renesas SOC kernel development
 help / color / mirror / Atom feed
* [PATCH] spi: dt-bindings: Relax node name suffixes again
@ 2026-09-16 15:18 Geert Uytterhoeven
  2026-09-18 20:00 ` Rob Herring
  0 siblings, 1 reply; 3+ messages in thread
From: Geert Uytterhoeven @ 2026-09-16 15:18 UTC (permalink / raw)
  To: Mark Brown, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Marek Vasut
  Cc: linux-spi, devicetree, linux-renesas-soc, Geert Uytterhoeven,
	kernel test robot

From: Geert Uytterhoeven <geert+renesas@glider.be>

An SPI bus node name can have either a unit address, or a suffix.
Commit c4fb6880edc15866 ("spi: dt-bindings: restrict node name
suffixes") restricted these suffixes to decimal numbers.
However, SPI bus node names with suffixes are typically used for
board-level bit-banged SPI busses ("spi-gpio"), which live at the root
of the device tree.  Limiting their node names to numbers is prone to
conflicts, and may cause silent overwrites, especially when a stack of
sub-boards or expansion boards is involved.

Hence relax node name suffixes to alphanumerical characters, so users
can write more descriptive SPI bus names, which are less prone to
conflicts.

While at it, reject empty unit addresses.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202609150228.Nh4nZzbQ-lkp@intel.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
Other subsystems (regulator, i2c) had similar issues, and numbered
regulators caused conflicts before, see e.g. commit 45f5d5a9e34d3fe4
("arm64: dts: renesas: r8a77995: draak: Fix backlight regulator name").
---
 Documentation/devicetree/bindings/spi/spi-controller.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/spi/spi-controller.yaml b/Documentation/devicetree/bindings/spi/spi-controller.yaml
index 3b8e990e30c4789a..4d817f9e23a5e0b5 100644
--- a/Documentation/devicetree/bindings/spi/spi-controller.yaml
+++ b/Documentation/devicetree/bindings/spi/spi-controller.yaml
@@ -17,7 +17,7 @@ description: |
 
 properties:
   $nodename:
-    pattern: "^spi(@.*|-([0-9]|[1-9][0-9]+))?$"
+    pattern: "^spi(@.+|-[0-9a-z-]+)?$"
 
   "#address-cells":
     enum: [0, 1]
-- 
2.43.0


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

end of thread, other threads:[~2026-09-21  7:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-16 15:18 [PATCH] spi: dt-bindings: Relax node name suffixes again Geert Uytterhoeven
2026-09-18 20:00 ` Rob Herring
2026-09-21  7:25   ` Geert Uytterhoeven

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