Skip to contentSkip to conversation

dt-bindings: Fix SPI and I2C bus node names in examples

PATCH Applied Rob Herring 11 participants 12 messages Feb 28, 2023 – Mar 8, 2023 1 message not in the archive

Subsystems (53)
lore
Share & tools
lore

Rob Herring

author maintainer
#0 lore raw

PATCH 1/1 dt-bindings: Fix SPI and I2C bus node names in examples

SPI and I2C bus node names are expected to be "spi" or "i2c", respectively, with nothing else, a unit-address, or a '-N' index. A pattern of 'spi0' or 'i2c0' or similar has crept in. Fix all these cases. Mostly scripted with the following commands:

git grep -l '\si2c[0-9] {' Documentation/devicetree/ | xargs sed -i -e 's/i2c[0-9] {/i2c {/' git grep -l '\sspi[0-9] {' Documentation/devicetree/ | xargs sed -i -e 's/spi[0-9] {/spi {/'

With this, a few errors in examples were exposed and fixed.

---
Cc: Miguel Ojeda <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: Benson Leung <[email protected]>
Cc: Guenter Roeck <[email protected]>
Cc: Stephen Boyd <[email protected]>
Cc: Andrzej Hajda <[email protected]>
Cc: Neil Armstrong <[email protected]>
Cc: Robert Foss <[email protected]>
Cc: Thierry Reding <[email protected]>
Cc: Sam Ravnborg <[email protected]>
Cc: MyungJoo Ham <[email protected]>
Cc: Chanwoo Choi <[email protected]>
Cc: Linus Walleij <[email protected]>
Cc: Bartosz Golaszewski <[email protected]>
Cc: Pavel Machek <[email protected]>
Cc: Lee Jones <[email protected]>
Cc: Mauro Carvalho Chehab <[email protected]>
Cc: "David S. Miller" <[email protected]>
Cc: Eric Dumazet <[email protected]>
Cc: Jakub Kicinski <[email protected]>
Cc: Paolo Abeni <[email protected]>
Cc: Wolfgang Grandegger <[email protected]>
Cc: Kalle Valo <[email protected]>
Cc: Sebastian Reichel <[email protected]>
Cc: Mark Brown <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

---
 .../bindings/auxdisplay/holtek,ht16k33.yaml       |  2 +-
 .../bindings/chrome/google,cros-ec-typec.yaml     |  2 +-
 .../chrome/google,cros-kbd-led-backlight.yaml     |  2 +-
 .../devicetree/bindings/clock/ti,lmk04832.yaml    |  2 +-
 .../bindings/display/bridge/analogix,anx7625.yaml |  2 +-
 .../bindings/display/bridge/anx6345.yaml          |  2 +-
 .../bindings/display/bridge/lontium,lt8912b.yaml  |  2 +-
 .../bindings/display/bridge/nxp,ptn3460.yaml      |  2 +-
 .../bindings/display/bridge/ps8640.yaml           |  2 +-
 .../bindings/display/bridge/sil,sii9234.yaml      |  2 +-
 .../bindings/display/bridge/ti,dlpc3433.yaml      |  2 +-
 .../bindings/display/bridge/toshiba,tc358762.yaml |  2 +-
 .../bindings/display/bridge/toshiba,tc358768.yaml |  2 +-
 .../bindings/display/panel/nec,nl8048hl11.yaml    |  2 +-
 .../bindings/display/solomon,ssd1307fb.yaml       |  4 ++--
 .../devicetree/bindings/eeprom/at25.yaml          |  2 +-
 .../bindings/extcon/extcon-usbc-cros-ec.yaml      |  2 +-
 .../bindings/extcon/extcon-usbc-tusb320.yaml      |  2 +-
 .../devicetree/bindings/gpio/gpio-pca9570.yaml    |  2 +-
 .../devicetree/bindings/gpio/gpio-pca95xx.yaml    |  8 ++++----
 .../bindings/i2c/google,cros-ec-i2c-tunnel.yaml   |  2 +-
 .../bindings/leds/cznic,turris-omnia-leds.yaml    |  2 +-
 .../devicetree/bindings/leds/issi,is31fl319x.yaml |  2 +-
 .../devicetree/bindings/leds/leds-aw2013.yaml     |  2 +-
 .../devicetree/bindings/leds/leds-rt4505.yaml     |  2 +-
 .../devicetree/bindings/leds/ti,tca6507.yaml      |  2 +-
 .../bindings/media/i2c/aptina,mt9p031.yaml        |  2 +-
 .../bindings/media/i2c/aptina,mt9v111.yaml        |  2 +-
 .../devicetree/bindings/media/i2c/imx219.yaml     |  2 +-
 .../devicetree/bindings/media/i2c/imx258.yaml     |  4 ++--
 .../devicetree/bindings/media/i2c/mipi-ccs.yaml   |  2 +-
 .../bindings/media/i2c/ovti,ov5648.yaml           |  2 +-
 .../bindings/media/i2c/ovti,ov772x.yaml           |  2 +-
 .../bindings/media/i2c/ovti,ov8865.yaml           |  2 +-
 .../bindings/media/i2c/ovti,ov9282.yaml           |  2 +-
 .../bindings/media/i2c/rda,rda5807.yaml           |  2 +-
 .../bindings/media/i2c/sony,imx214.yaml           |  2 +-
 .../bindings/media/i2c/sony,imx274.yaml           |  2 +-
 .../bindings/media/i2c/sony,imx334.yaml           |  2 +-
 .../bindings/media/i2c/sony,imx335.yaml           |  2 +-
 .../bindings/media/i2c/sony,imx412.yaml           |  2 +-
 .../devicetree/bindings/mfd/actions,atc260x.yaml  |  2 +-
 .../devicetree/bindings/mfd/google,cros-ec.yaml   |  6 +++---
 .../devicetree/bindings/mfd/ti,tps65086.yaml      |  2 +-
 .../devicetree/bindings/mfd/x-powers,axp152.yaml  |  4 ++--
 .../devicetree/bindings/net/asix,ax88796c.yaml    |  2 +-
 .../bindings/net/can/microchip,mcp251xfd.yaml     |  2 +-
 .../bindings/net/dsa/microchip,ksz.yaml           |  2 +-
 .../bindings/net/nfc/samsung,s3fwrn5.yaml         |  2 +-
 .../bindings/net/vertexcom-mse102x.yaml           |  2 +-
 .../bindings/net/wireless/ti,wlcore.yaml          | 10 ++++++++--
 .../devicetree/bindings/pinctrl/pinmux-node.yaml  |  2 +-
 .../bindings/pinctrl/starfive,jh7100-pinctrl.yaml |  2 +-
 .../devicetree/bindings/power/supply/bq2415x.yaml |  2 +-
 .../devicetree/bindings/power/supply/bq24190.yaml |  2 +-
 .../devicetree/bindings/power/supply/bq24257.yaml |  4 ++--
 .../devicetree/bindings/power/supply/bq24735.yaml |  2 +-
 .../devicetree/bindings/power/supply/bq2515x.yaml |  2 +-
 .../devicetree/bindings/power/supply/bq25890.yaml |  2 +-
 .../devicetree/bindings/power/supply/bq25980.yaml |  2 +-
 .../devicetree/bindings/power/supply/bq27xxx.yaml | 15 ++++++++-------
 .../bindings/power/supply/lltc,ltc294x.yaml       |  2 +-
 .../bindings/power/supply/ltc4162-l.yaml          |  2 +-
 .../bindings/power/supply/maxim,max14656.yaml     |  2 +-
 .../bindings/power/supply/maxim,max17040.yaml     |  4 ++--
 .../bindings/power/supply/maxim,max17042.yaml     |  2 +-
 .../bindings/power/supply/richtek,rt9455.yaml     |  2 +-
 .../bindings/power/supply/ti,lp8727.yaml          |  2 +-
 .../bindings/regulator/active-semi,act8865.yaml   |  2 +-
 .../regulator/google,cros-ec-regulator.yaml       |  2 +-
 .../bindings/regulator/nxp,pf8x00-regulator.yaml  |  2 +-
 .../devicetree/bindings/sound/everest,es8316.yaml |  2 +-
 .../devicetree/bindings/sound/tas2562.yaml        |  2 +-
 .../devicetree/bindings/sound/tas2770.yaml        |  2 +-
 .../devicetree/bindings/sound/tas27xx.yaml        |  2 +-
 .../devicetree/bindings/sound/tas5805m.yaml       |  2 +-
 .../devicetree/bindings/sound/tlv320adcx140.yaml  |  2 +-
 .../devicetree/bindings/sound/zl38060.yaml        |  2 +-
 .../devicetree/bindings/usb/maxim,max33359.yaml   |  2 +-
 .../bindings/usb/maxim,max3420-udc.yaml           |  2 +-
 .../bindings/usb/mediatek,mt6360-tcpc.yaml        |  2 +-
 .../devicetree/bindings/usb/richtek,rt1711h.yaml  |  2 +-
 .../devicetree/bindings/usb/richtek,rt1719.yaml   |  2 +-
 .../devicetree/bindings/usb/st,stusb160x.yaml     |  2 +-
 .../devicetree/bindings/usb/ti,hd3ss3220.yaml     |  2 +-
 .../devicetree/bindings/usb/ti,tps6598x.yaml      |  2 +-
 86 files changed, 110 insertions(+), 103 deletions(-)
Documentation/devicetree/bindings/auxdisplay/holtek,ht16k33.yaml +1 -1
index fc4873deb76f..286e726cd052 100644
@@ -72,7 +72,7 @@ examples:
     #include <dt-bindings/interrupt-controller/irq.h>
     #include <dt-bindings/input/input.h>
     #include <dt-bindings/leds/common.h>
-    i2c1 {
+    i2c {
             #address-cells = <1>;
             #size-cells = <0>;
 
Documentation/devicetree/bindings/chrome/google,cros-ec-typec.yaml +1 -1
index defcf1e12aa1..3b0548c34791 100644
@@ -41,7 +41,7 @@ additionalProperties: false
 
 examples:
   - |+
-    spi0 {
+    spi {
       #address-cells = <1>;
       #size-cells = <0>;
 
Documentation/devicetree/bindings/chrome/google,cros-kbd-led-backlight.yaml +1 -1
index 40244d003c32..c94ab8f9e0b8 100644
@@ -20,7 +20,7 @@ additionalProperties: false
 
 examples:
   - |
-    spi0 {
+    spi {
       #address-cells = <1>;
       #size-cells = <0>;
 
Documentation/devicetree/bindings/clock/ti,lmk04832.yaml +1 -1
index 73d17830f165..13d7b3d03d84 100644
@@ -160,7 +160,7 @@ examples:
         };
     };
 
-    spi0 {
+    spi {
         #address-cells = <1>;
         #size-cells = <0>;
 
Documentation/devicetree/bindings/display/bridge/analogix,anx7625.yaml +1 -1
index 4590186c4a0b..27026c78cd9b 100644
@@ -134,7 +134,7 @@ examples:
   - |
     #include <dt-bindings/gpio/gpio.h>
 
-    i2c0 {
+    i2c {
         #address-cells = <1>;
         #size-cells = <0>;
 
Documentation/devicetree/bindings/display/bridge/anx6345.yaml +1 -1
index 9bf2cbcea69f..514f58852990 100644
@@ -61,7 +61,7 @@ additionalProperties: false
 
 examples:
   - |
-    i2c0 {
+    i2c {
       #address-cells = <1>;
       #size-cells = <0>;
 
Documentation/devicetree/bindings/display/bridge/lontium,lt8912b.yaml +1 -1
index 674891ee2f8e..f201ae4af4fb 100644
@@ -67,7 +67,7 @@ examples:
   - |
     #include <dt-bindings/gpio/gpio.h>
 
-    i2c4 {
+    i2c {
       #address-cells = <1>;
       #size-cells = <0>;
 
Documentation/devicetree/bindings/display/bridge/nxp,ptn3460.yaml +1 -1
index 107dd138e6c6..0f61291d4268 100644
@@ -71,7 +71,7 @@ examples:
   - |
     #include <dt-bindings/gpio/gpio.h>
 
-    i2c1 {
+    i2c {
       #address-cells = <1>;
       #size-cells = <0>;
 
Documentation/devicetree/bindings/display/bridge/ps8640.yaml +1 -1
index 28811aff2c5a..5856450c5da7 100644
@@ -73,7 +73,7 @@ additionalProperties: false
 examples:
   - |
     #include <dt-bindings/gpio/gpio.h>
-    i2c0 {
+    i2c {
         #address-cells = <1>;
         #size-cells = <0>;
 
Documentation/devicetree/bindings/display/bridge/sil,sii9234.yaml +1 -1
index f88ddfe4818b..176181d25530 100644
@@ -71,7 +71,7 @@ examples:
     #include <dt-bindings/gpio/gpio.h>
     #include <dt-bindings/interrupt-controller/irq.h>
 
-    i2c1 {
+    i2c {
       #address-cells = <1>;
       #size-cells = <0>;
 
Documentation/devicetree/bindings/display/bridge/ti,dlpc3433.yaml +1 -1
index 542193d77cdf..d3f84d220723 100644
@@ -83,7 +83,7 @@ examples:
   - |
     #include <dt-bindings/gpio/gpio.h>
 
-    i2c1 {
+    i2c {
         #address-cells = <1>;
         #size-cells = <0>;
 
Documentation/devicetree/bindings/display/bridge/toshiba,tc358762.yaml +1 -1
index a412a1da950f..81ca3cbc7abe 100644
@@ -51,7 +51,7 @@ additionalProperties: false
 
 examples:
   - |
-    i2c1 {
+    i2c {
       #address-cells = <1>;
       #size-cells = <0>;
 
Documentation/devicetree/bindings/display/bridge/toshiba,tc358768.yaml +1 -1
index 0b6f5bef120f..779d8c57f854 100644
@@ -87,7 +87,7 @@ examples:
   - |
     #include <dt-bindings/gpio/gpio.h>
 
-    i2c1 {
+    i2c {
       #address-cells = <1>;
       #size-cells = <0>;
 
Documentation/devicetree/bindings/display/panel/nec,nl8048hl11.yaml +1 -1
index 3b09b359023e..accf933d6e46 100644
@@ -41,7 +41,7 @@ examples:
   - |
     #include <dt-bindings/gpio/gpio.h>
 
-    spi0 {
+    spi {
       #address-cells = <1>;
       #size-cells = <0>;
 
Documentation/devicetree/bindings/display/solomon,ssd1307fb.yaml +2 -2
index 669f70b1b4c4..8bd58913804a 100644
@@ -226,7 +226,7 @@ unevaluatedProperties: false
 
 examples:
   - |
-    i2c1 {
+    i2c {
             #address-cells = <1>;
             #size-cells = <0>;
 
@@ -239,7 +239,7 @@ examples:
 
             ssd1306_i2c: oled@3d {
                     compatible = "solomon,ssd1306";
-                    reg = <0x3c>;
+                    reg = <0x3d>;
                     pwms = <&pwm 4 3000>;
                     reset-gpios = <&gpio2 7>;
                     solomon,com-lrremap;
Documentation/devicetree/bindings/eeprom/at25.yaml +1 -1
index 0f5a8ef996d3..11e2a95a7bcb 100644
@@ -122,7 +122,7 @@ unevaluatedProperties: false
 examples:
   - |
     #include <dt-bindings/gpio/gpio.h>
-    spi0 {
+    spi {
         #address-cells = <1>;
         #size-cells = <0>;
 
Documentation/devicetree/bindings/extcon/extcon-usbc-cros-ec.yaml +1 -1
index 2e5b39881449..e00c8072bae9 100644
@@ -34,7 +34,7 @@ additionalProperties: false
 
 examples:
   - |
-    spi0 {
+    spi {
         #address-cells = <1>;
         #size-cells = <0>;
         cros-ec@0 {
Documentation/devicetree/bindings/extcon/extcon-usbc-tusb320.yaml +1 -1
index 71a9f2e5d0dc..126107dd57b1 100644
@@ -30,7 +30,7 @@ additionalProperties: false
 
 examples:
   - |
-    i2c0 {
+    i2c {
         #address-cells = <1>;
         #size-cells = <0>;
         tusb320@61 {
Documentation/devicetree/bindings/gpio/gpio-pca9570.yaml +1 -1
index 48bf414aa50e..5b0134304e51 100644
@@ -34,7 +34,7 @@ additionalProperties: false
 
 examples:
   - |
-    i2c0 {
+    i2c {
         #address-cells = <1>;
         #size-cells = <0>;
 
Documentation/devicetree/bindings/gpio/gpio-pca95xx.yaml +4 -4
index 1b70e9f308f3..fa116148ee90 100644
@@ -151,7 +151,7 @@ examples:
     #include <dt-bindings/gpio/gpio.h>
     #include <dt-bindings/interrupt-controller/irq.h>
 
-    i2c0 {
+    i2c {
         #address-cells = <1>;
         #size-cells = <0>;
 
@@ -177,7 +177,7 @@ examples:
   - |
     #include <dt-bindings/interrupt-controller/irq.h>
 
-    i2c1 {
+    i2c {
         #address-cells = <1>;
         #size-cells = <0>;
 
@@ -203,7 +203,7 @@ examples:
   - |
     #include <dt-bindings/interrupt-controller/irq.h>
 
-    i2c2 {
+    i2c {
         #address-cells = <1>;
         #size-cells = <0>;
 
@@ -221,7 +221,7 @@ examples:
     };
 
   - |
-    i2c3 {
+    i2c {
         #address-cells = <1>;
         #size-cells = <0>;
 
Documentation/devicetree/bindings/i2c/google,cros-ec-i2c-tunnel.yaml +1 -1
index cf523615f5e3..ab151c9db219 100644
@@ -39,7 +39,7 @@ unevaluatedProperties: false
 
 examples:
   - |
-    spi0 {
+    spi {
         #address-cells = <1>;
         #size-cells = <0>;
 
Documentation/devicetree/bindings/leds/cznic,turris-omnia-leds.yaml +1 -1
index 14bebe1ad8f8..34ef5215c150 100644
@@ -58,7 +58,7 @@ examples:
 
     #include <dt-bindings/leds/common.h>
 
-    i2c0 {
+    i2c {
         #address-cells = <1>;
         #size-cells = <0>;
 
Documentation/devicetree/bindings/leds/issi,is31fl319x.yaml +1 -1
index d1b01bae9f63..3c0431c51159 100644
@@ -165,7 +165,7 @@ examples:
     #include <dt-bindings/gpio/gpio.h>
     #include <dt-bindings/leds/common.h>
 
-    i2c0 {
+    i2c {
         #address-cells = <1>;
         #size-cells = <0>;
 
Documentation/devicetree/bindings/leds/leds-aw2013.yaml +1 -1
index 6c3ea0f06cef..08f3e1cfc1b1 100644
@@ -54,7 +54,7 @@ examples:
     #include <dt-bindings/gpio/gpio.h>
     #include <dt-bindings/leds/common.h>
 
-    i2c0 {
+    i2c {
         #address-cells = <1>;
         #size-cells = <0>;
 
Documentation/devicetree/bindings/leds/leds-rt4505.yaml +1 -1
index cb71fec173c1..bfd0e240f7d6 100644
@@ -39,7 +39,7 @@ examples:
   - |
     #include <dt-bindings/leds/common.h>
 
-    i2c0 {
+    i2c {
       #address-cells = <1>;
       #size-cells = <0>;
 
Documentation/devicetree/bindings/leds/ti,tca6507.yaml +1 -1
index 9ce5c0f16e17..4b1575e4f180 100644
@@ -87,7 +87,7 @@ examples:
     #include <dt-bindings/gpio/gpio.h>
     #include <dt-bindings/leds/common.h>
 
-    i2c0 {
+    i2c {
         #address-cells = <1>;
         #size-cells = <0>;
 
Documentation/devicetree/bindings/media/i2c/aptina,mt9p031.yaml +1 -1
index 1d6af1bf9a6b..be00de2f2d58 100644
@@ -82,7 +82,7 @@ additionalProperties: false
 
 examples:
   - |
-    i2c0 {
+    i2c {
         #address-cells = <1>;
         #size-cells = <0>;
 
Documentation/devicetree/bindings/media/i2c/aptina,mt9v111.yaml +1 -1
index e53b8d65f381..088022f88010 100644
@@ -55,7 +55,7 @@ additionalProperties: false
 
 examples:
   - |
-    i2c0 {
+    i2c {
         #address-cells = <1>;
         #size-cells = <0>;
 
Documentation/devicetree/bindings/media/i2c/imx219.yaml +1 -1
index 5fc96944b448..07d088cf66e0 100644
@@ -83,7 +83,7 @@ additionalProperties: false
 
 examples:
   - |
-    i2c0 {
+    i2c {
         #address-cells = <1>;
         #size-cells = <0>;
 
Documentation/devicetree/bindings/media/i2c/imx258.yaml +2 -2
index cde0f7383b2a..80d24220baa0 100644
@@ -84,7 +84,7 @@ additionalProperties: false
 
 examples:
   - |
-    i2c0 {
+    i2c {
         #address-cells = <1>;
         #size-cells = <0>;
 
@@ -111,7 +111,7 @@ examples:
     };
 
   - |
-    i2c0 {
+    i2c {
         #address-cells = <1>;
         #size-cells = <0>;
 
Documentation/devicetree/bindings/media/i2c/mipi-ccs.yaml +1 -1
index edde4201116f..f8ace8cbccdb 100644
@@ -106,7 +106,7 @@ examples:
     #include <dt-bindings/gpio/gpio.h>
     #include <dt-bindings/media/video-interfaces.h>
 
-    i2c2 {
+    i2c {
         #address-cells = <1>;
         #size-cells = <0>;
 
Documentation/devicetree/bindings/media/i2c/ovti,ov5648.yaml +1 -1
index 61e4e9cf8783..1f497679168c 100644
@@ -81,7 +81,7 @@ examples:
     #include <dt-bindings/clock/sun8i-v3s-ccu.h>
     #include <dt-bindings/gpio/gpio.h>
 
-    i2c0 {
+    i2c {
         #address-cells = <1>;
         #size-cells = <0>;
 
Documentation/devicetree/bindings/media/i2c/ovti,ov772x.yaml +1 -1
index 161e6d598e1c..5d24edba8f99 100644
@@ -107,7 +107,7 @@ examples:
     #include <dt-bindings/gpio/gpio.h>
     #include <dt-bindings/media/video-interfaces.h>
 
-    i2c0 {
+    i2c {
         #address-cells = <1>;
         #size-cells = <0>;
         ov772x: camera@21 {
Documentation/devicetree/bindings/media/i2c/ovti,ov8865.yaml +1 -1
index 6bac326dceaf..8a70e23ba6ab 100644
@@ -82,7 +82,7 @@ examples:
     #include <dt-bindings/clock/sun8i-a83t-ccu.h>
     #include <dt-bindings/gpio/gpio.h>
 
-    i2c2 {
+    i2c {
         #address-cells = <1>;
         #size-cells = <0>;
 
Documentation/devicetree/bindings/media/i2c/ovti,ov9282.yaml +1 -1
index 0c4654e70d46..79a7658f6d05 100644
@@ -78,7 +78,7 @@ additionalProperties: false
 
 examples:
   - |
-    i2c0 {
+    i2c {
         #address-cells = <1>;
         #size-cells = <0>;
 
Documentation/devicetree/bindings/media/i2c/rda,rda5807.yaml +1 -1
index f50e54a722eb..34a05df786ce 100644
@@ -50,7 +50,7 @@ additionalProperties: false
 
 examples:
   - |
-    i2c0 {
+    i2c {
       #address-cells = <1>;
       #size-cells = <0>;
 
Documentation/devicetree/bindings/media/i2c/sony,imx214.yaml +1 -1
index c9760f895b3e..e2470dd5920c 100644
@@ -97,7 +97,7 @@ examples:
   - |
     #include <dt-bindings/gpio/gpio.h>
 
-    i2c0 {
+    i2c {
         #address-cells = <1>;
         #size-cells = <0>;
 
Documentation/devicetree/bindings/media/i2c/sony,imx274.yaml +1 -1
index 4271fc3cc623..b397a730ee94 100644
@@ -52,7 +52,7 @@ additionalProperties: false
 
 examples:
   - |
-    i2c0 {
+    i2c {
         #address-cells = <1>;
         #size-cells = <0>;
 
Documentation/devicetree/bindings/media/i2c/sony,imx334.yaml +1 -1
index f5055b9db693..592cbcebc8ea 100644
@@ -65,7 +65,7 @@ additionalProperties: false
 
 examples:
   - |
-    i2c0 {
+    i2c {
         #address-cells = <1>;
         #size-cells = <0>;
 
Documentation/devicetree/bindings/media/i2c/sony,imx335.yaml +1 -1
index cf2ca2702cc9..a167dcdb3a32 100644
@@ -66,7 +66,7 @@ additionalProperties: false
 
 examples:
   - |
-    i2c0 {
+    i2c {
         #address-cells = <1>;
         #size-cells = <0>;
 
Documentation/devicetree/bindings/media/i2c/sony,imx412.yaml +1 -1
index 60dc25ff2b9e..d9b7815650fd 100644
@@ -77,7 +77,7 @@ additionalProperties: false
 
 examples:
   - |
-    i2c0 {
+    i2c {
         #address-cells = <1>;
         #size-cells = <0>;
 
Documentation/devicetree/bindings/mfd/actions,atc260x.yaml +1 -1
index c3a368a0fe93..6811246c5771 100644
@@ -129,7 +129,7 @@ required:
 examples:
   - |
     #include <dt-bindings/interrupt-controller/arm-gic.h>
-    i2c0 {
+    i2c {
         #address-cells = <1>;
         #size-cells = <0>;
 
Documentation/devicetree/bindings/mfd/google,cros-ec.yaml +3 -3
index cdf1d719efe9..8caa48f4570e 100644
@@ -246,7 +246,7 @@ examples:
     #include <dt-bindings/gpio/gpio.h>
     #include <dt-bindings/interrupt-controller/irq.h>
 
-    i2c0 {
+    i2c {
         #address-cells = <1>;
         #size-cells = <0>;
 
@@ -263,7 +263,7 @@ examples:
     #include <dt-bindings/gpio/gpio.h>
     #include <dt-bindings/interrupt-controller/irq.h>
 
-    spi0 {
+    spi {
         #address-cells = <1>;
         #size-cells = <0>;
 
@@ -296,7 +296,7 @@ examples:
 
   # Example for FPMCU
   - |
-    spi0 {
+    spi {
       #address-cells = <0x1>;
       #size-cells = <0x0>;
 
Documentation/devicetree/bindings/mfd/ti,tps65086.yaml +1 -1
index 3fdd9cb5b347..bd36a07c1721 100644
@@ -95,7 +95,7 @@ required:
 examples:
   - |
     #include <dt-bindings/interrupt-controller/irq.h>
-    i2c0 {
+    i2c {
         #address-cells = <1>;
         #size-cells = <0>;
 
Documentation/devicetree/bindings/mfd/x-powers,axp152.yaml +2 -2
index b7a8747d5fa0..24d03996b93a 100644
@@ -299,7 +299,7 @@ additionalProperties: false
 
 examples:
   - |
-      i2c0 {
+      i2c {
           #address-cells = <1>;
           #size-cells = <0>;
 
@@ -315,7 +315,7 @@ examples:
   - |
       #include <dt-bindings/interrupt-controller/irq.h>
 
-      i2c0 {
+      i2c {
           #address-cells = <1>;
           #size-cells = <0>;
 
Documentation/devicetree/bindings/net/asix,ax88796c.yaml +1 -1
index 164d1ff9e83c..6b849a4349c0 100644
@@ -58,7 +58,7 @@ examples:
   - |
     #include <dt-bindings/interrupt-controller/irq.h>
     #include <dt-bindings/gpio/gpio.h>
-    spi0 {
+    spi {
         #address-cells = <1>;
         #size-cells = <0>;
 
Documentation/devicetree/bindings/net/can/microchip,mcp251xfd.yaml +1 -1
index fce84aecae77..2a98b26630cb 100644
@@ -62,7 +62,7 @@ examples:
     #include <dt-bindings/gpio/gpio.h>
     #include <dt-bindings/interrupt-controller/irq.h>
 
-    spi0 {
+    spi {
         #address-cells = <1>;
         #size-cells = <0>;
 
Documentation/devicetree/bindings/net/dsa/microchip,ksz.yaml +1 -1
index a4b53434c85c..e51be1ac0362 100644
@@ -67,7 +67,7 @@ examples:
         };
     };
 
-    spi0 {
+    spi {
         #address-cells = <1>;
         #size-cells = <0>;
 
Documentation/devicetree/bindings/net/nfc/samsung,s3fwrn5.yaml +1 -1
index 41c9760227cd..12baee45752c 100644
@@ -69,7 +69,7 @@ examples:
     #include <dt-bindings/gpio/gpio.h>
     #include <dt-bindings/interrupt-controller/irq.h>
 
-    i2c4 {
+    i2c {
         #address-cells = <1>;
         #size-cells = <0>;
 
Documentation/devicetree/bindings/net/vertexcom-mse102x.yaml +1 -1
index 6a71f694cb55..1a2fec4857f5 100644
@@ -55,7 +55,7 @@ additionalProperties: false
 examples:
   - |
     #include <dt-bindings/interrupt-controller/irq.h>
-    spi0 {
+    spi {
         #address-cells = <1>;
         #size-cells = <0>;
 
Documentation/devicetree/bindings/net/wireless/ti,wlcore.yaml +8 -2
index f799a1e52173..75c9489f319b 100644
@@ -89,7 +89,7 @@ examples:
     #include <dt-bindings/interrupt-controller/irq.h>
 
     // For wl12xx family:
-    spi1 {
+    spi {
         #address-cells = <1>;
         #size-cells = <0>;
 
@@ -104,8 +104,11 @@ examples:
         };
     };
 
+  - |
+    #include <dt-bindings/interrupt-controller/irq.h>
+
     // For wl18xx family:
-    spi2 {
+    spi {
         #address-cells = <1>;
         #size-cells = <0>;
 
@@ -118,6 +121,9 @@ examples:
         };
     };
 
+  - |
+    #include <dt-bindings/interrupt-controller/irq.h>
+
     // SDIO example:
     mmc3 {
         vmmc-supply = <&wlan_en_reg>;
Documentation/devicetree/bindings/pinctrl/pinmux-node.yaml +1 -1
index 008c3ab7f1bb..ca9d246d46fe 100644
@@ -31,7 +31,7 @@ description: |
     };
   };
   state_1_node_a {
-    spi0 {
+    spi {
       function = "spi0";
       groups = "spi0pins";
     };
Documentation/devicetree/bindings/pinctrl/starfive,jh7100-pinctrl.yaml +1 -1
index 69c0dd9998ea..d78c3cd0c295 100644
@@ -293,7 +293,7 @@ examples:
             pinctrl-names = "default";
         };
 
-        i2c0 {
+        i2c {
             pinctrl-0 = <&i2c0_pins_default>;
             pinctrl-names = "default";
         };
Documentation/devicetree/bindings/power/supply/bq2415x.yaml +1 -1
index f7287ffd4b12..13822346e708 100644
@@ -77,7 +77,7 @@ additionalProperties: false
 
 examples:
   - |
-    i2c0 {
+    i2c {
       #address-cells = <1>;
       #size-cells = <0>;
 
Documentation/devicetree/bindings/power/supply/bq24190.yaml +1 -1
index 001c0ffb408d..d3ebc9de8c0b 100644
@@ -75,7 +75,7 @@ examples:
       charge-term-current-microamp = <128000>;
     };
 
-    i2c0 {
+    i2c {
       #address-cells = <1>;
       #size-cells = <0>;
 
Documentation/devicetree/bindings/power/supply/bq24257.yaml +2 -2
index cc45939d385b..eb064bbf876c 100644
@@ -84,7 +84,7 @@ examples:
   - |
     #include <dt-bindings/gpio/gpio.h>
     #include <dt-bindings/interrupt-controller/irq.h>
-    i2c0 {
+    i2c {
       #address-cells = <1>;
       #size-cells = <0>;
 
@@ -104,7 +104,7 @@ examples:
   - |
     #include <dt-bindings/gpio/gpio.h>
     #include <dt-bindings/interrupt-controller/irq.h>
-    i2c0 {
+    i2c {
       #address-cells = <1>;
       #size-cells = <0>;
 
Documentation/devicetree/bindings/power/supply/bq24735.yaml +1 -1
index 388ee16f8a1e..af41e7ccd784 100644
@@ -77,7 +77,7 @@ examples:
   - |
     #include <dt-bindings/gpio/gpio.h>
 
-    i2c0 {
+    i2c {
       #address-cells = <1>;
       #size-cells = <0>;
 
Documentation/devicetree/bindings/power/supply/bq2515x.yaml +1 -1
index 1a1b240034ef..845822c87f2a 100644
@@ -73,7 +73,7 @@ examples:
       constant-charge-voltage-max-microvolt = <4000000>;
     };
     #include <dt-bindings/gpio/gpio.h>
-    i2c0 {
+    i2c {
       #address-cells = <1>;
       #size-cells = <0>;
 
Documentation/devicetree/bindings/power/supply/bq25890.yaml +1 -1
index dae27e93af09..0ad302ab2bcc 100644
@@ -102,7 +102,7 @@ unevaluatedProperties: false
 examples:
   - |
     #include <dt-bindings/interrupt-controller/irq.h>
-    i2c0 {
+    i2c {
       #address-cells = <1>;
       #size-cells = <0>;
 
Documentation/devicetree/bindings/power/supply/bq25980.yaml +1 -1
index b687b8bcd705..b70ce8d7f86c 100644
@@ -95,7 +95,7 @@ examples:
     };
     #include <dt-bindings/gpio/gpio.h>
     #include <dt-bindings/interrupt-controller/irq.h>
-    i2c0 {
+    i2c {
       #address-cells = <1>;
       #size-cells = <0>;
 
Documentation/devicetree/bindings/power/supply/bq27xxx.yaml +8 -7
index 347d4433adc5..309ea33b5b25 100644
@@ -75,15 +75,16 @@ additionalProperties: false
 
 examples:
   - |
-    i2c0 {
+    bat: battery {
+      compatible = "simple-battery";
+      voltage-min-design-microvolt = <3200000>;
+      energy-full-design-microwatt-hours = <5290000>;
+      charge-full-design-microamp-hours = <1430000>;
+    };
+
+    i2c {
       #address-cells = <1>;
       #size-cells = <0>;
-      bat: battery {
-        compatible = "simple-battery";
-        voltage-min-design-microvolt = <3200000>;
-        energy-full-design-microwatt-hours = <5290000>;
-        charge-full-design-microamp-hours = <1430000>;
-      };
 
       bq27510g3: fuel-gauge@55 {
         compatible = "ti,bq27510g3";
Documentation/devicetree/bindings/power/supply/lltc,ltc294x.yaml +1 -1
index 774582cd3a2c..e68a97cb49fe 100644
@@ -54,7 +54,7 @@ additionalProperties: false
 
 examples:
   - |
-    i2c0 {
+    i2c {
       #address-cells = <1>;
       #size-cells = <0>;
       battery@64 {
Documentation/devicetree/bindings/power/supply/ltc4162-l.yaml +1 -1
index cfffaeef8b09..29d536541152 100644
@@ -54,7 +54,7 @@ additionalProperties: false
 
 examples:
   - |
-    i2c0 {
+    i2c {
       #address-cells = <1>;
       #size-cells = <0>;
       charger: battery-charger@68 {
Documentation/devicetree/bindings/power/supply/maxim,max14656.yaml +1 -1
index 711066b8cdb9..b444b799848e 100644
@@ -32,7 +32,7 @@ additionalProperties: false
 examples:
   - |
     #include <dt-bindings/interrupt-controller/irq.h>
-    i2c0 {
+    i2c {
       #address-cells = <1>;
       #size-cells = <0>;
 
Documentation/devicetree/bindings/power/supply/maxim,max17040.yaml +2 -2
index 3a529326ecbd..2627cd3eed83 100644
@@ -68,7 +68,7 @@ unevaluatedProperties: false
 
 examples:
   - |
-    i2c0 {
+    i2c {
       #address-cells = <1>;
       #size-cells = <0>;
 
@@ -82,7 +82,7 @@ examples:
     };
   - |
     #include <dt-bindings/interrupt-controller/irq.h>
-    i2c0 {
+    i2c {
       #address-cells = <1>;
       #size-cells = <0>;
 
Documentation/devicetree/bindings/power/supply/maxim,max17042.yaml +1 -1
index 64a0edb7bc47..085e2504d0dc 100644
@@ -69,7 +69,7 @@ additionalProperties: false
 
 examples:
   - |
-    i2c0 {
+    i2c {
       #address-cells = <1>;
       #size-cells = <0>;
 
Documentation/devicetree/bindings/power/supply/richtek,rt9455.yaml +1 -1
index 27bebc1757ba..07e38be39f1b 100644
@@ -68,7 +68,7 @@ additionalProperties: false
 examples:
   - |
     #include <dt-bindings/interrupt-controller/irq.h>
-    i2c0 {
+    i2c {
       #address-cells = <1>;
       #size-cells = <0>;
 
Documentation/devicetree/bindings/power/supply/ti,lp8727.yaml +1 -1
index ce6fbdba8f6b..3a9e4310b433 100644
@@ -61,7 +61,7 @@ additionalProperties: false
 examples:
   - |
     #include <dt-bindings/interrupt-controller/irq.h>
-    i2c0 {
+    i2c {
       #address-cells = <1>;
       #size-cells = <0>;
 
Documentation/devicetree/bindings/regulator/active-semi,act8865.yaml +1 -1
index e8bf09faafb8..afe1abc2d727 100644
@@ -90,7 +90,7 @@ examples:
   - |
     #include <dt-bindings/regulator/active-semi,8865-regulator.h>
 
-    i2c1 {
+    i2c {
       #address-cells = <1>;
       #size-cells = <0>;
 
Documentation/devicetree/bindings/regulator/google,cros-ec-regulator.yaml +1 -1
index 0921f012c901..0c6032de593a 100644
@@ -32,7 +32,7 @@ unevaluatedProperties: false
 
 examples:
   - |
-    spi0 {
+    spi {
         #address-cells = <1>;
         #size-cells = <0>;
 
Documentation/devicetree/bindings/regulator/nxp,pf8x00-regulator.yaml +1 -1
index aabf50f5b39e..e094c40a7072 100644
@@ -109,7 +109,7 @@ additionalProperties: false
 
 examples:
   - |
-    i2c1 {
+    i2c {
         #address-cells = <1>;
         #size-cells = <0>;
 
Documentation/devicetree/bindings/sound/everest,es8316.yaml +1 -1
index d9f8f0c7f6bb..9f2b111818ea 100644
@@ -40,7 +40,7 @@ unevaluatedProperties: false
 
 examples:
   - |
-    i2c0 {
+    i2c {
       #address-cells = <1>;
       #size-cells = <0>;
       es8316: codec@11 {
Documentation/devicetree/bindings/sound/tas2562.yaml +1 -1
index 1085592cefcc..a5bb561bfcfb 100644
@@ -66,7 +66,7 @@ unevaluatedProperties: false
 examples:
   - |
    #include <dt-bindings/gpio/gpio.h>
-   i2c0 {
+   i2c {
      #address-cells = <1>;
      #size-cells = <0>;
      codec: codec@4c {
Documentation/devicetree/bindings/sound/tas2770.yaml +1 -1
index 982949ba8a4b..26088adb9dc2 100644
@@ -68,7 +68,7 @@ unevaluatedProperties: false
 examples:
   - |
    #include <dt-bindings/gpio/gpio.h>
-   i2c0 {
+   i2c {
      #address-cells = <1>;
      #size-cells = <0>;
      codec: codec@41 {
Documentation/devicetree/bindings/sound/tas27xx.yaml +1 -1
index 0957dd435bb4..8cba01316855 100644
@@ -61,7 +61,7 @@ unevaluatedProperties: false
 examples:
   - |
    #include <dt-bindings/gpio/gpio.h>
-   i2c0 {
+   i2c {
      #address-cells = <1>;
      #size-cells = <0>;
      codec: codec@38 {
Documentation/devicetree/bindings/sound/tas5805m.yaml +1 -1
index 3aade02d8a96..63edf52f061c 100644
@@ -39,7 +39,7 @@ properties:
 
 examples:
   - |
-    i2c0 {
+    i2c {
         #address-cells = <1>;
         #size-cells = <0>;
         tas5805m: tas5805m@2c {
Documentation/devicetree/bindings/sound/tlv320adcx140.yaml +1 -1
index 6b8214071115..c16e1760cf85 100644
@@ -192,7 +192,7 @@ additionalProperties: false
 examples:
   - |
     #include <dt-bindings/gpio/gpio.h>
-    i2c0 {
+    i2c {
       #address-cells = <1>;
       #size-cells = <0>;
       codec: codec@4c {
Documentation/devicetree/bindings/sound/zl38060.yaml +1 -1
index 2c5c02e34573..8bd201e573aa 100644
@@ -56,7 +56,7 @@ unevaluatedProperties: false
 examples:
   - |
     #include <dt-bindings/gpio/gpio.h>
-    spi0 {
+    spi {
         #address-cells = <1>;
         #size-cells = <0>;
 
Documentation/devicetree/bindings/usb/maxim,max33359.yaml +1 -1
index 8e513a6af378..3cb631ea7079 100644
@@ -40,7 +40,7 @@ examples:
   - |
     #include <dt-bindings/interrupt-controller/irq.h>
     #include <dt-bindings/usb/pd.h>
-    i2c0 {
+    i2c {
         #address-cells = <1>;
         #size-cells = <0>;
 
Documentation/devicetree/bindings/usb/maxim,max3420-udc.yaml +1 -1
index 1d893d3d3432..8e0f4ecc010d 100644
@@ -52,7 +52,7 @@ examples:
   - |
       #include <dt-bindings/gpio/gpio.h>
       #include <dt-bindings/interrupt-controller/irq.h>
-      spi0 {
+      spi {
             #address-cells = <1>;
             #size-cells = <0>;
 
Documentation/devicetree/bindings/usb/mediatek,mt6360-tcpc.yaml +1 -1
index c72257c19220..6cad7ae2c70d 100644
@@ -43,7 +43,7 @@ examples:
   - |
     #include <dt-bindings/interrupt-controller/irq.h>
     #include <dt-bindings/usb/pd.h>
-    i2c0 {
+    i2c {
       #address-cells = <1>;
       #size-cells = <0>;
 
Documentation/devicetree/bindings/usb/richtek,rt1711h.yaml +1 -1
index 1999f614c89b..dd864b25a148 100644
@@ -51,7 +51,7 @@ examples:
   - |
     #include <dt-bindings/interrupt-controller/irq.h>
     #include <dt-bindings/usb/pd.h>
-    i2c0 {
+    i2c {
       #address-cells = <1>;
       #size-cells = <0>;
 
Documentation/devicetree/bindings/usb/richtek,rt1719.yaml +1 -1
index e3e87e4d3292..8b9bd2cc58e9 100644
@@ -48,7 +48,7 @@ required:
 examples:
   - |
     #include <dt-bindings/interrupt-controller/irq.h>
-    i2c0 {
+    i2c {
       #address-cells = <1>;
       #size-cells = <0>;
 
Documentation/devicetree/bindings/usb/st,stusb160x.yaml +1 -1
index ffcd9897ea38..f6840cd5750d 100644
@@ -56,7 +56,7 @@ additionalProperties: false
 examples:
   - |
     #include <dt-bindings/interrupt-controller/irq.h>
-    i2c4 {
+    i2c {
         #address-cells = <1>;
         #size-cells = <0>;
 
Documentation/devicetree/bindings/usb/ti,hd3ss3220.yaml +1 -1
index a1cffb70c621..54c6586cb56d 100644
@@ -51,7 +51,7 @@ additionalProperties: false
 
 examples:
   - |
-    i2c0 {
+    i2c {
         #address-cells = <1>;
         #size-cells = <0>;
 
Documentation/devicetree/bindings/usb/ti,tps6598x.yaml +1 -1
index 348a715d61f4..7dfa34d11b0e 100644
@@ -43,7 +43,7 @@ additionalProperties: true
 examples:
   - |
     #include <dt-bindings/interrupt-controller/irq.h>
-    i2c0 {
+    i2c {
         #address-cells = <1>;
         #size-cells = <0>;
 
Signature · 1 line
2.39.2
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 4 lines · Rob Herring

SPI and I2C bus node names are expected to be "spi" or "i2c", respectively, with nothing else, a unit-address, or a '-N' index. A pattern of 'spi0' or 'i2c0' or similar has crept in. Fix all these cases. Mostly scripted with the following commands:

Acked-by on v1 1/1
#2 lore raw
In reply to Rob Herring
Quoted 11 lines · Rob Herring

SPI and I2C bus node names are expected to be "spi" or "i2c", respectively, with nothing else, a unit-address, or a '-N' index. A pattern of 'spi0' or 'i2c0' or similar has crept in. Fix all these cases. Mostly scripted with the following commands:

git grep -l '\si2c[0-9] {' Documentation/devicetree/ | xargs sed -i -e 's/i2c[0-9] {/i2c {/' git grep -l '\sspi[0-9] {' Documentation/devicetree/ | xargs sed -i -e 's/spi[0-9] {/spi {/'

With this, a few errors in examples were exposed and fixed.

maintainer Acked-by on v1 1/1
#3 lore raw
In reply to Rob Herring
Quoted 52 lines · Rob Herring

SPI and I2C bus node names are expected to be "spi" or "i2c", respectively, with nothing else, a unit-address, or a '-N' index. A pattern of 'spi0' or 'i2c0' or similar has crept in. Fix all these cases. Mostly scripted with the following commands:

git grep -l '\si2c[0-9] {' Documentation/devicetree/ | xargs sed -i -e 's/i2c[0-9] {/i2c {/' git grep -l '\sspi[0-9] {' Documentation/devicetree/ | xargs sed -i -e 's/spi[0-9] {/spi {/'

With this, a few errors in examples were exposed and fixed.

---
Cc: Miguel Ojeda <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: Benson Leung <[email protected]>
Cc: Guenter Roeck <[email protected]>
Cc: Stephen Boyd <[email protected]>
Cc: Andrzej Hajda <[email protected]>
Cc: Neil Armstrong <[email protected]>
Cc: Robert Foss <[email protected]>
Cc: Thierry Reding <[email protected]>
Cc: Sam Ravnborg <[email protected]>
Cc: MyungJoo Ham <[email protected]>
Cc: Chanwoo Choi <[email protected]>
Cc: Linus Walleij <[email protected]>
Cc: Bartosz Golaszewski <[email protected]>
Cc: Pavel Machek <[email protected]>
Cc: Lee Jones <[email protected]>
Cc: Mauro Carvalho Chehab <[email protected]>
Cc: "David S. Miller" <[email protected]>
Cc: Eric Dumazet <[email protected]>
Cc: Jakub Kicinski <[email protected]>
Cc: Paolo Abeni <[email protected]>
Cc: Wolfgang Grandegger <[email protected]>
Cc: Kalle Valo <[email protected]>
Cc: Sebastian Reichel <[email protected]>
Cc: Mark Brown <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
---

Quoted 1 line
 .../bindings/net/can/microchip,mcp251xfd.yaml     |  2 +-
Signature · 4 lines
Pengutronix e.K.                 | Marc Kleine-Budde           |
Embedded Linux                   | https://www.pengutronix.de  |
Vertretung West/Dortmund         | Phone: +49-231-2826-924     |
Amtsgericht Hildesheim, HRA 2686 | Fax:   +49-5121-206917-5555 |
maintainer Acked-by Acked-by on v1 1/1
#4 lore raw
In reply to Rob Herring
Quoted 73 lines · Rob Herring

SPI and I2C bus node names are expected to be "spi" or "i2c", respectively, with nothing else, a unit-address, or a '-N' index. A pattern of 'spi0' or 'i2c0' or similar has crept in. Fix all these cases. Mostly scripted with the following commands:

git grep -l '\si2c[0-9] {' Documentation/devicetree/ | xargs sed -i -e 's/i2c[0-9] {/i2c {/' git grep -l '\sspi[0-9] {' Documentation/devicetree/ | xargs sed -i -e 's/spi[0-9] {/spi {/'

With this, a few errors in examples were exposed and fixed.

---
Cc: Miguel Ojeda <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: Benson Leung <[email protected]>
Cc: Guenter Roeck <[email protected]>
Cc: Stephen Boyd <[email protected]>
Cc: Andrzej Hajda <[email protected]>
Cc: Neil Armstrong <[email protected]>
Cc: Robert Foss <[email protected]>
Cc: Thierry Reding <[email protected]>
Cc: Sam Ravnborg <[email protected]>
Cc: MyungJoo Ham <[email protected]>
Cc: Chanwoo Choi <[email protected]>
Cc: Linus Walleij <[email protected]>
Cc: Bartosz Golaszewski <[email protected]>
Cc: Pavel Machek <[email protected]>
Cc: Lee Jones <[email protected]>
Cc: Mauro Carvalho Chehab <[email protected]>
Cc: "David S. Miller" <[email protected]>
Cc: Eric Dumazet <[email protected]>
Cc: Jakub Kicinski <[email protected]>
Cc: Paolo Abeni <[email protected]>
Cc: Wolfgang Grandegger <[email protected]>
Cc: Kalle Valo <[email protected]>
Cc: Sebastian Reichel <[email protected]>
Cc: Mark Brown <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

---
 .../bindings/auxdisplay/holtek,ht16k33.yaml       |  2 +-
 .../bindings/chrome/google,cros-ec-typec.yaml     |  2 +-
 .../chrome/google,cros-kbd-led-backlight.yaml     |  2 +-
 .../devicetree/bindings/clock/ti,lmk04832.yaml    |  2 +-
 .../bindings/display/bridge/analogix,anx7625.yaml |  2 +-
 .../bindings/display/bridge/anx6345.yaml          |  2 +-
 .../bindings/display/bridge/lontium,lt8912b.yaml  |  2 +-
 .../bindings/display/bridge/nxp,ptn3460.yaml      |  2 +-
 .../bindings/display/bridge/ps8640.yaml           |  2 +-
 .../bindings/display/bridge/sil,sii9234.yaml      |  2 +-
 .../bindings/display/bridge/ti,dlpc3433.yaml      |  2 +-
 .../bindings/display/bridge/toshiba,tc358762.yaml |  2 +-
 .../bindings/display/bridge/toshiba,tc358768.yaml |  2 +-
 .../bindings/display/panel/nec,nl8048hl11.yaml    |  2 +-
 .../bindings/display/solomon,ssd1307fb.yaml       |  4 ++--
 .../devicetree/bindings/eeprom/at25.yaml          |  2 +-
 .../bindings/extcon/extcon-usbc-cros-ec.yaml      |  2 +-
 .../bindings/extcon/extcon-usbc-tusb320.yaml      |  2 +-
 .../devicetree/bindings/gpio/gpio-pca9570.yaml    |  2 +-
 .../devicetree/bindings/gpio/gpio-pca95xx.yaml    |  8 ++++----
 .../bindings/i2c/google,cros-ec-i2c-tunnel.yaml   |  2 +-
 .../bindings/leds/cznic,turris-omnia-leds.yaml    |  2 +-

[...]

Quoted 4 lines
 .../devicetree/bindings/leds/issi,is31fl319x.yaml |  2 +-
 .../devicetree/bindings/leds/leds-aw2013.yaml     |  2 +-
 .../devicetree/bindings/leds/leds-rt4505.yaml     |  2 +-
 .../devicetree/bindings/leds/ti,tca6507.yaml      |  2 +-
Quoted 5 lines
 .../devicetree/bindings/mfd/actions,atc260x.yaml  |  2 +-
 .../devicetree/bindings/mfd/google,cros-ec.yaml   |  6 +++---
 .../devicetree/bindings/mfd/ti,tps65086.yaml      |  2 +-
 .../devicetree/bindings/mfd/x-powers,axp152.yaml  |  4 ++--
 .../devicetree/bindings/net/asix,ax88796c.yaml    |  2 +-

[...]

Signature · 1 line
Lee Jones [李琼斯]
Reviewed-by on v1 1/1
#5 lore raw
In reply to Rob Herring
Quoted 44 lines · Rob Herring

SPI and I2C bus node names are expected to be "spi" or "i2c", respectively, with nothing else, a unit-address, or a '-N' index. A pattern of 'spi0' or 'i2c0' or similar has crept in. Fix all these cases. Mostly scripted with the following commands:

git grep -l '\si2c[0-9] {' Documentation/devicetree/ | xargs sed -i -e 's/i2c[0-9] {/i2c {/' git grep -l '\sspi[0-9] {' Documentation/devicetree/ | xargs sed -i -e 's/spi[0-9] {/spi {/'

With this, a few errors in examples were exposed and fixed.

---
Cc: Miguel Ojeda <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: Benson Leung <[email protected]>
Cc: Guenter Roeck <[email protected]>
Cc: Stephen Boyd <[email protected]>
Cc: Andrzej Hajda <[email protected]>
Cc: Neil Armstrong <[email protected]>
Cc: Robert Foss <[email protected]>
Cc: Thierry Reding <[email protected]>
Cc: Sam Ravnborg <[email protected]>
Cc: MyungJoo Ham <[email protected]>
Cc: Chanwoo Choi <[email protected]>
Cc: Linus Walleij <[email protected]>
Cc: Bartosz Golaszewski <[email protected]>
Cc: Pavel Machek <[email protected]>
Cc: Lee Jones <[email protected]>
Cc: Mauro Carvalho Chehab <[email protected]>
Cc: "David S. Miller" <[email protected]>
Cc: Eric Dumazet <[email protected]>
Cc: Jakub Kicinski <[email protected]>
Cc: Paolo Abeni <[email protected]>
Cc: Wolfgang Grandegger <[email protected]>
Cc: Kalle Valo <[email protected]>
Cc: Sebastian Reichel <[email protected]>
Cc: Mark Brown <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

Quoted 8 lines

Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
---

maintainer Reviewed-by on v1 1/1
#6 lore raw
In reply to Rob Herring

Quoting Rob Herring (2023-02-28 13:54:33)

Quoted 5 lines

SPI and I2C bus node names are expected to be "spi" or "i2c", respectively, with nothing else, a unit-address, or a '-N' index. A pattern of 'spi0' or 'i2c0' or similar has crept in. Fix all these cases. Mostly scripted with the following commands:

Quoted 7 lines

git grep -l '\si2c[0-9] {' Documentation/devicetree/ | xargs sed -i -e 's/i2c[0-9] {/i2c {/' git grep -l '\sspi[0-9] {' Documentation/devicetree/ | xargs sed -i -e 's/spi[0-9] {/spi {/'

With this, a few errors in examples were exposed and fixed.

---

Quoted 13 lines
Documentation/devicetree/bindings/clock/ti,lmk04832.yaml +1 -1
index 73d17830f165..13d7b3d03d84 100644
@@ -160,7 +160,7 @@ examples:
         };
     };
 
-    spi0 {
+    spi {
         #address-cells = <1>;
         #size-cells = <0>;
 
Acked-by on v1 1/1
#7 lore raw
In reply to Rob Herring

Hi,

Quoted 5 lines · Rob Herring

SPI and I2C bus node names are expected to be "spi" or "i2c", respectively, with nothing else, a unit-address, or a '-N' index. A pattern of 'spi0' or 'i2c0' or similar has crept in. Fix all these cases. Mostly scripted with the following commands:

Quoted 7 lines

git grep -l '\si2c[0-9] {' Documentation/devicetree/ | xargs sed -i -e 's/i2c[0-9] {/i2c {/' git grep -l '\sspi[0-9] {' Documentation/devicetree/ | xargs sed -i -e 's/spi[0-9] {/spi {/'

With this, a few errors in examples were exposed and fixed.

---

-- Sebastian

...

Quoted 15 lines
 .../devicetree/bindings/power/supply/bq2415x.yaml |  2 +-
 .../devicetree/bindings/power/supply/bq24190.yaml |  2 +-
 .../devicetree/bindings/power/supply/bq24257.yaml |  4 ++--
 .../devicetree/bindings/power/supply/bq24735.yaml |  2 +-
 .../devicetree/bindings/power/supply/bq2515x.yaml |  2 +-
 .../devicetree/bindings/power/supply/bq25890.yaml |  2 +-
 .../devicetree/bindings/power/supply/bq25980.yaml |  2 +-
 .../devicetree/bindings/power/supply/bq27xxx.yaml | 15 ++++++++-------
 .../bindings/power/supply/lltc,ltc294x.yaml       |  2 +-
 .../bindings/power/supply/ltc4162-l.yaml          |  2 +-
 .../bindings/power/supply/maxim,max14656.yaml     |  2 +-
 .../bindings/power/supply/maxim,max17040.yaml     |  4 ++--
 .../bindings/power/supply/maxim,max17042.yaml     |  2 +-
 .../bindings/power/supply/richtek,rt9455.yaml     |  2 +-
 .../bindings/power/supply/ti,lp8727.yaml          |  2 +-

...

Quoted 228 lines
Documentation/devicetree/bindings/power/supply/bq2415x.yaml +1 -1
index f7287ffd4b12..13822346e708 100644
@@ -77,7 +77,7 @@ additionalProperties: false
 
 examples:
   - |
-    i2c0 {
+    i2c {
       #address-cells = <1>;
       #size-cells = <0>;
 
Documentation/devicetree/bindings/power/supply/bq24190.yaml +1 -1
index 001c0ffb408d..d3ebc9de8c0b 100644
@@ -75,7 +75,7 @@ examples:
       charge-term-current-microamp = <128000>;
     };
 
-    i2c0 {
+    i2c {
       #address-cells = <1>;
       #size-cells = <0>;
 
Documentation/devicetree/bindings/power/supply/bq24257.yaml +2 -2
index cc45939d385b..eb064bbf876c 100644
@@ -84,7 +84,7 @@ examples:
   - |
     #include <dt-bindings/gpio/gpio.h>
     #include <dt-bindings/interrupt-controller/irq.h>
-    i2c0 {
+    i2c {
       #address-cells = <1>;
       #size-cells = <0>;
 
@@ -104,7 +104,7 @@ examples:
   - |
     #include <dt-bindings/gpio/gpio.h>
     #include <dt-bindings/interrupt-controller/irq.h>
-    i2c0 {
+    i2c {
       #address-cells = <1>;
       #size-cells = <0>;
 
Documentation/devicetree/bindings/power/supply/bq24735.yaml +1 -1
index 388ee16f8a1e..af41e7ccd784 100644
@@ -77,7 +77,7 @@ examples:
   - |
     #include <dt-bindings/gpio/gpio.h>
 
-    i2c0 {
+    i2c {
       #address-cells = <1>;
       #size-cells = <0>;
 
Documentation/devicetree/bindings/power/supply/bq2515x.yaml +1 -1
index 1a1b240034ef..845822c87f2a 100644
@@ -73,7 +73,7 @@ examples:
       constant-charge-voltage-max-microvolt = <4000000>;
     };
     #include <dt-bindings/gpio/gpio.h>
-    i2c0 {
+    i2c {
       #address-cells = <1>;
       #size-cells = <0>;
 
Documentation/devicetree/bindings/power/supply/bq25890.yaml +1 -1
index dae27e93af09..0ad302ab2bcc 100644
@@ -102,7 +102,7 @@ unevaluatedProperties: false
 examples:
   - |
     #include <dt-bindings/interrupt-controller/irq.h>
-    i2c0 {
+    i2c {
       #address-cells = <1>;
       #size-cells = <0>;
 
Documentation/devicetree/bindings/power/supply/bq25980.yaml +1 -1
index b687b8bcd705..b70ce8d7f86c 100644
@@ -95,7 +95,7 @@ examples:
     };
     #include <dt-bindings/gpio/gpio.h>
     #include <dt-bindings/interrupt-controller/irq.h>
-    i2c0 {
+    i2c {
       #address-cells = <1>;
       #size-cells = <0>;
 
Documentation/devicetree/bindings/power/supply/bq27xxx.yaml +8 -7
index 347d4433adc5..309ea33b5b25 100644
@@ -75,15 +75,16 @@ additionalProperties: false
 
 examples:
   - |
-    i2c0 {
+    bat: battery {
+      compatible = "simple-battery";
+      voltage-min-design-microvolt = <3200000>;
+      energy-full-design-microwatt-hours = <5290000>;
+      charge-full-design-microamp-hours = <1430000>;
+    };
+
+    i2c {
       #address-cells = <1>;
       #size-cells = <0>;
-      bat: battery {
-        compatible = "simple-battery";
-        voltage-min-design-microvolt = <3200000>;
-        energy-full-design-microwatt-hours = <5290000>;
-        charge-full-design-microamp-hours = <1430000>;
-      };
 
       bq27510g3: fuel-gauge@55 {
         compatible = "ti,bq27510g3";
Documentation/devicetree/bindings/power/supply/lltc,ltc294x.yaml +1 -1
index 774582cd3a2c..e68a97cb49fe 100644
@@ -54,7 +54,7 @@ additionalProperties: false
 
 examples:
   - |
-    i2c0 {
+    i2c {
       #address-cells = <1>;
       #size-cells = <0>;
       battery@64 {
Documentation/devicetree/bindings/power/supply/ltc4162-l.yaml +1 -1
index cfffaeef8b09..29d536541152 100644
@@ -54,7 +54,7 @@ additionalProperties: false
 
 examples:
   - |
-    i2c0 {
+    i2c {
       #address-cells = <1>;
       #size-cells = <0>;
       charger: battery-charger@68 {
Documentation/devicetree/bindings/power/supply/maxim,max14656.yaml +1 -1
index 711066b8cdb9..b444b799848e 100644
@@ -32,7 +32,7 @@ additionalProperties: false
 examples:
   - |
     #include <dt-bindings/interrupt-controller/irq.h>
-    i2c0 {
+    i2c {
       #address-cells = <1>;
       #size-cells = <0>;
 
Documentation/devicetree/bindings/power/supply/maxim,max17040.yaml +2 -2
index 3a529326ecbd..2627cd3eed83 100644
@@ -68,7 +68,7 @@ unevaluatedProperties: false
 
 examples:
   - |
-    i2c0 {
+    i2c {
       #address-cells = <1>;
       #size-cells = <0>;
 
@@ -82,7 +82,7 @@ examples:
     };
   - |
     #include <dt-bindings/interrupt-controller/irq.h>
-    i2c0 {
+    i2c {
       #address-cells = <1>;
       #size-cells = <0>;
 
Documentation/devicetree/bindings/power/supply/maxim,max17042.yaml +1 -1
index 64a0edb7bc47..085e2504d0dc 100644
@@ -69,7 +69,7 @@ additionalProperties: false
 
 examples:
   - |
-    i2c0 {
+    i2c {
       #address-cells = <1>;
       #size-cells = <0>;
 
Documentation/devicetree/bindings/power/supply/richtek,rt9455.yaml +1 -1
index 27bebc1757ba..07e38be39f1b 100644
@@ -68,7 +68,7 @@ additionalProperties: false
 examples:
   - |
     #include <dt-bindings/interrupt-controller/irq.h>
-    i2c0 {
+    i2c {
       #address-cells = <1>;
       #size-cells = <0>;
 
Documentation/devicetree/bindings/power/supply/ti,lp8727.yaml +1 -1
index ce6fbdba8f6b..3a9e4310b433 100644
@@ -61,7 +61,7 @@ additionalProperties: false
 examples:
   - |
     #include <dt-bindings/interrupt-controller/irq.h>
-    i2c0 {
+    i2c {
       #address-cells = <1>;
       #size-cells = <0>;
 

...

Acked-by Acked-by on v1 1/1
#8 lore raw
In reply to Rob Herring

Hi Rob.

Quoted 10 lines
 .../bindings/display/bridge/analogix,anx7625.yaml |  2 +-
 .../bindings/display/bridge/anx6345.yaml          |  2 +-
 .../bindings/display/bridge/lontium,lt8912b.yaml  |  2 +-
 .../bindings/display/bridge/nxp,ptn3460.yaml      |  2 +-
 .../bindings/display/bridge/ps8640.yaml           |  2 +-
 .../bindings/display/bridge/sil,sii9234.yaml      |  2 +-
 .../bindings/display/bridge/ti,dlpc3433.yaml      |  2 +-
 .../bindings/display/bridge/toshiba,tc358762.yaml |  2 +-
 .../bindings/display/bridge/toshiba,tc358768.yaml |  2 +-
 .../bindings/display/panel/nec,nl8048hl11.yaml    |  2 +-
Quoted 13 lines

index 669f70b1b4c4..8bd58913804a 100644

Documentation/devicetree/bindings/display/solomon,ssd1307fb.yaml +1 -1
@@ -226,7 +226,7 @@ unevaluatedProperties: false
 
 examples:
   - |
-    i2c1 {
+    i2c {
             #address-cells = <1>;
             #size-cells = <0>;
 

Documentation/devicetree/bindings/display/solomon,ssd1307fb.yaml examples: · line 245

Quoted 8 lines
Documentation/devicetree/bindings/display/solomon,ssd1307fb.yaml +1 -1
@@ -239,7 +239,7 @@ examples:
 
             ssd1306_i2c: oled@3d {
                     compatible = "solomon,ssd1306";
-                    reg = <0x3c>;
+                    reg = <0x3d>;
                     pwms = <&pwm 4 3000>;
                     reset-gpios = <&gpio2 7>;
                     solomon,com-lrremap;

I can see this align the example with i2c-mux-gpio.yaml so the change should be fine. I am just positive surprised the tooling caught it.

The change is

the above was just me thinking loud.

Sam

A message that is not in the archive (sent off-list or not yet received): CANiq72mm9qX8uuS2y_vvtcza2hAgG3zFEy24koQTfSEOWkKDYQ@mail.gmail.com

maintainer Acked-by
#10 lore raw
Quoted 81 lines

From: Rob Herring <[email protected]>
Date: Tue, Feb 28, 2023 at 10:54 PM
Subject: [PATCH] dt-bindings: Fix SPI and I2C bus node names in examples
To: Krzysztof Kozlowski <[email protected]>
Cc: <[email protected]>, Miguel Ojeda <[email protected]>, Benson Leung <[email protected]>, Guenter Roeck <[email protected]>, Stephen Boyd <[email protected]>, Andrzej Hajda <[email protected]>, Neil Armstrong <[email protected]>, Robert Foss <[email protected]>, Thierry Reding <[email protected]>, Sam Ravnborg <[email protected]>, MyungJoo Ham <[email protected]>, Chanwoo Choi <[email protected]>, Linus Walleij <[email protected]>, Bartosz Golaszewski <[email protected]>, Pavel Machek <[email protected]>, Lee Jones <[email protected]>, Mauro Carvalho Chehab <[email protected]>, David S. Miller <[email protected]>, Eric Dumazet <[email protected]>, Jakub Kicinski <[email protected]>, Paolo Abeni <[email protected]>, Wolfgang Grandegger <[email protected]>, Kalle Valo <[email protected]>, Sebastian Reichel <[email protected]>, Mark Brown <[email protected]>, Greg Kroah-Hartman <[email protected]>, <[email protected]>, <[email protected]>, <[email protected]>, <[email protected]>, <[email protected]>, <[email protected]>, <[email protected]>, <[email protected]>, <[email protected]>, <[email protected]>, <[email protected]>, <[email protected]>

SPI and I2C bus node names are expected to be "spi" or "i2c", respectively, with nothing else, a unit-address, or a '-N' index. A pattern of 'spi0' or 'i2c0' or similar has crept in. Fix all these cases. Mostly scripted with the following commands:

git grep -l '\si2c[0-9] {' Documentation/devicetree/ | xargs sed -i -e 's/i2c[0-9] {/i2c {/'
git grep -l '\sspi[0-9] {' Documentation/devicetree/ | xargs sed -i -e 's/spi[0-9] {/spi {/'

With this, a few errors in examples were exposed and fixed.

---
Cc: Miguel Ojeda <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: Benson Leung <[email protected]>
Cc: Guenter Roeck <[email protected]>
Cc: Stephen Boyd <[email protected]>
Cc: Andrzej Hajda <[email protected]>
Cc: Neil Armstrong <[email protected]>
Cc: Robert Foss <[email protected]>
Cc: Thierry Reding <[email protected]>
Cc: Sam Ravnborg <[email protected]>
Cc: MyungJoo Ham <[email protected]>
Cc: Chanwoo Choi <[email protected]>
Cc: Linus Walleij <[email protected]>
Cc: Bartosz Golaszewski <[email protected]>
Cc: Pavel Machek <[email protected]>
Cc: Lee Jones <[email protected]>
Cc: Mauro Carvalho Chehab <[email protected]>
Cc: "David S. Miller" <[email protected]>
Cc: Eric Dumazet <[email protected]>
Cc: Jakub Kicinski <[email protected]>
Cc: Paolo Abeni <[email protected]>
Cc: Wolfgang Grandegger <[email protected]>
Cc: Kalle Valo <[email protected]>
Cc: Sebastian Reichel <[email protected]>
Cc: Mark Brown <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

---
 .../bindings/auxdisplay/holtek,ht16k33.yaml       |  2 +-

....

Quoted 8 lines
 86 files changed, 110 insertions(+), 103 deletions(-)
Documentation/devicetree/bindings/auxdisplay/holtek,ht16k33.yaml +0 -0
index fc4873deb76f..286e726cd052 100644

Documentation/devicetree/bindings/auxdisplay/holtek,ht16k33.yaml examples: · line 77

Quoted 7 lines
Documentation/devicetree/bindings/auxdisplay/holtek,ht16k33.yaml +1 -1
@@ -72,7 +72,7 @@ examples:
     #include <dt-bindings/interrupt-controller/irq.h>
     #include <dt-bindings/input/input.h>
     #include <dt-bindings/leds/common.h>
-    i2c1 {
+    i2c {
             #address-cells = <1>;
             #size-cells = <0>;
Acked-by on v1 1/1
#11 lore raw
In reply to Rob Herring
Quoted 64 lines · Rob Herring

SPI and I2C bus node names are expected to be "spi" or "i2c", respectively, with nothing else, a unit-address, or a '-N' index. A pattern of 'spi0' or 'i2c0' or similar has crept in. Fix all these cases. Mostly scripted with the following commands:

git grep -l '\si2c[0-9] {' Documentation/devicetree/ | xargs sed -i -e 's/i2c[0-9] {/i2c {/' git grep -l '\sspi[0-9] {' Documentation/devicetree/ | xargs sed -i -e 's/spi[0-9] {/spi {/'

With this, a few errors in examples were exposed and fixed.

---
Cc: Miguel Ojeda <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: Benson Leung <[email protected]>
Cc: Guenter Roeck <[email protected]>
Cc: Stephen Boyd <[email protected]>
Cc: Andrzej Hajda <[email protected]>
Cc: Neil Armstrong <[email protected]>
Cc: Robert Foss <[email protected]>
Cc: Thierry Reding <[email protected]>
Cc: Sam Ravnborg <[email protected]>
Cc: MyungJoo Ham <[email protected]>
Cc: Chanwoo Choi <[email protected]>
Cc: Linus Walleij <[email protected]>
Cc: Bartosz Golaszewski <[email protected]>
Cc: Pavel Machek <[email protected]>
Cc: Lee Jones <[email protected]>
Cc: Mauro Carvalho Chehab <[email protected]>
Cc: "David S. Miller" <[email protected]>
Cc: Eric Dumazet <[email protected]>
Cc: Jakub Kicinski <[email protected]>
Cc: Paolo Abeni <[email protected]>
Cc: Wolfgang Grandegger <[email protected]>
Cc: Kalle Valo <[email protected]>
Cc: Sebastian Reichel <[email protected]>
Cc: Mark Brown <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

---
 .../bindings/auxdisplay/holtek,ht16k33.yaml       |  2 +-
 .../bindings/chrome/google,cros-ec-typec.yaml     |  2 +-
 .../chrome/google,cros-kbd-led-backlight.yaml     |  2 +-
 .../devicetree/bindings/clock/ti,lmk04832.yaml    |  2 +-
 .../bindings/display/bridge/analogix,anx7625.yaml |  2 +-
 .../bindings/display/bridge/anx6345.yaml          |  2 +-
 .../bindings/display/bridge/lontium,lt8912b.yaml  |  2 +-
 .../bindings/display/bridge/nxp,ptn3460.yaml      |  2 +-
 .../bindings/display/bridge/ps8640.yaml           |  2 +-
 .../bindings/display/bridge/sil,sii9234.yaml      |  2 +-
 .../bindings/display/bridge/ti,dlpc3433.yaml      |  2 +-
 .../bindings/display/bridge/toshiba,tc358762.yaml |  2 +-
Quoted 8 lines
 .../bindings/display/bridge/toshiba,tc358768.yaml |  2 +-
 .../bindings/display/panel/nec,nl8048hl11.yaml    |  2 +-
 .../bindings/display/solomon,ssd1307fb.yaml       |  4 ++--
 .../devicetree/bindings/eeprom/at25.yaml          |  2 +-
 .../bindings/extcon/extcon-usbc-cros-ec.yaml      |  2 +-
 .../bindings/extcon/extcon-usbc-tusb320.yaml      |  2 +-
 .../devicetree/bindings/gpio/gpio-pca9570.yaml    |  2 +-
 .../devicetree/bindings/gpio/gpio-pca95xx.yaml    |  8 ++++----
author maintainer Applied
#12 lore raw
In reply to Rob Herring
Quoted 130 lines · Rob Herring

SPI and I2C bus node names are expected to be "spi" or "i2c", respectively, with nothing else, a unit-address, or a '-N' index. A pattern of 'spi0' or 'i2c0' or similar has crept in. Fix all these cases. Mostly scripted with the following commands:

git grep -l '\si2c[0-9] {' Documentation/devicetree/ | xargs sed -i -e 's/i2c[0-9] {/i2c {/' git grep -l '\sspi[0-9] {' Documentation/devicetree/ | xargs sed -i -e 's/spi[0-9] {/spi {/'

With this, a few errors in examples were exposed and fixed.

---
Cc: Miguel Ojeda <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: Benson Leung <[email protected]>
Cc: Guenter Roeck <[email protected]>
Cc: Stephen Boyd <[email protected]>
Cc: Andrzej Hajda <[email protected]>
Cc: Neil Armstrong <[email protected]>
Cc: Robert Foss <[email protected]>
Cc: Thierry Reding <[email protected]>
Cc: Sam Ravnborg <[email protected]>
Cc: MyungJoo Ham <[email protected]>
Cc: Chanwoo Choi <[email protected]>
Cc: Linus Walleij <[email protected]>
Cc: Bartosz Golaszewski <[email protected]>
Cc: Pavel Machek <[email protected]>
Cc: Lee Jones <[email protected]>
Cc: Mauro Carvalho Chehab <[email protected]>
Cc: "David S. Miller" <[email protected]>
Cc: Eric Dumazet <[email protected]>
Cc: Jakub Kicinski <[email protected]>
Cc: Paolo Abeni <[email protected]>
Cc: Wolfgang Grandegger <[email protected]>
Cc: Kalle Valo <[email protected]>
Cc: Sebastian Reichel <[email protected]>
Cc: Mark Brown <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

---
 .../bindings/auxdisplay/holtek,ht16k33.yaml       |  2 +-
 .../bindings/chrome/google,cros-ec-typec.yaml     |  2 +-
 .../chrome/google,cros-kbd-led-backlight.yaml     |  2 +-
 .../devicetree/bindings/clock/ti,lmk04832.yaml    |  2 +-
 .../bindings/display/bridge/analogix,anx7625.yaml |  2 +-
 .../bindings/display/bridge/anx6345.yaml          |  2 +-
 .../bindings/display/bridge/lontium,lt8912b.yaml  |  2 +-
 .../bindings/display/bridge/nxp,ptn3460.yaml      |  2 +-
 .../bindings/display/bridge/ps8640.yaml           |  2 +-
 .../bindings/display/bridge/sil,sii9234.yaml      |  2 +-
 .../bindings/display/bridge/ti,dlpc3433.yaml      |  2 +-
 .../bindings/display/bridge/toshiba,tc358762.yaml |  2 +-
 .../bindings/display/bridge/toshiba,tc358768.yaml |  2 +-
 .../bindings/display/panel/nec,nl8048hl11.yaml    |  2 +-
 .../bindings/display/solomon,ssd1307fb.yaml       |  4 ++--
 .../devicetree/bindings/eeprom/at25.yaml          |  2 +-
 .../bindings/extcon/extcon-usbc-cros-ec.yaml      |  2 +-
 .../bindings/extcon/extcon-usbc-tusb320.yaml      |  2 +-
 .../devicetree/bindings/gpio/gpio-pca9570.yaml    |  2 +-
 .../devicetree/bindings/gpio/gpio-pca95xx.yaml    |  8 ++++----
 .../bindings/i2c/google,cros-ec-i2c-tunnel.yaml   |  2 +-
 .../bindings/leds/cznic,turris-omnia-leds.yaml    |  2 +-
 .../devicetree/bindings/leds/issi,is31fl319x.yaml |  2 +-
 .../devicetree/bindings/leds/leds-aw2013.yaml     |  2 +-
 .../devicetree/bindings/leds/leds-rt4505.yaml     |  2 +-
 .../devicetree/bindings/leds/ti,tca6507.yaml      |  2 +-
 .../bindings/media/i2c/aptina,mt9p031.yaml        |  2 +-
 .../bindings/media/i2c/aptina,mt9v111.yaml        |  2 +-
 .../devicetree/bindings/media/i2c/imx219.yaml     |  2 +-
 .../devicetree/bindings/media/i2c/imx258.yaml     |  4 ++--
 .../devicetree/bindings/media/i2c/mipi-ccs.yaml   |  2 +-
 .../bindings/media/i2c/ovti,ov5648.yaml           |  2 +-
 .../bindings/media/i2c/ovti,ov772x.yaml           |  2 +-
 .../bindings/media/i2c/ovti,ov8865.yaml           |  2 +-
 .../bindings/media/i2c/ovti,ov9282.yaml           |  2 +-
 .../bindings/media/i2c/rda,rda5807.yaml           |  2 +-
 .../bindings/media/i2c/sony,imx214.yaml           |  2 +-
 .../bindings/media/i2c/sony,imx274.yaml           |  2 +-
 .../bindings/media/i2c/sony,imx334.yaml           |  2 +-
 .../bindings/media/i2c/sony,imx335.yaml           |  2 +-
 .../bindings/media/i2c/sony,imx412.yaml           |  2 +-
 .../devicetree/bindings/mfd/actions,atc260x.yaml  |  2 +-
 .../devicetree/bindings/mfd/google,cros-ec.yaml   |  6 +++---
 .../devicetree/bindings/mfd/ti,tps65086.yaml      |  2 +-
 .../devicetree/bindings/mfd/x-powers,axp152.yaml  |  4 ++--
 .../devicetree/bindings/net/asix,ax88796c.yaml    |  2 +-
 .../bindings/net/can/microchip,mcp251xfd.yaml     |  2 +-
 .../bindings/net/dsa/microchip,ksz.yaml           |  2 +-
 .../bindings/net/nfc/samsung,s3fwrn5.yaml         |  2 +-
 .../bindings/net/vertexcom-mse102x.yaml           |  2 +-
 .../bindings/net/wireless/ti,wlcore.yaml          | 10 ++++++++--
 .../devicetree/bindings/pinctrl/pinmux-node.yaml  |  2 +-
 .../bindings/pinctrl/starfive,jh7100-pinctrl.yaml |  2 +-
 .../devicetree/bindings/power/supply/bq2415x.yaml |  2 +-
 .../devicetree/bindings/power/supply/bq24190.yaml |  2 +-
 .../devicetree/bindings/power/supply/bq24257.yaml |  4 ++--
 .../devicetree/bindings/power/supply/bq24735.yaml |  2 +-
 .../devicetree/bindings/power/supply/bq2515x.yaml |  2 +-
 .../devicetree/bindings/power/supply/bq25890.yaml |  2 +-
 .../devicetree/bindings/power/supply/bq25980.yaml |  2 +-
 .../devicetree/bindings/power/supply/bq27xxx.yaml | 15 ++++++++-------
 .../bindings/power/supply/lltc,ltc294x.yaml       |  2 +-
 .../bindings/power/supply/ltc4162-l.yaml          |  2 +-
 .../bindings/power/supply/maxim,max14656.yaml     |  2 +-
 .../bindings/power/supply/maxim,max17040.yaml     |  4 ++--
 .../bindings/power/supply/maxim,max17042.yaml     |  2 +-
 .../bindings/power/supply/richtek,rt9455.yaml     |  2 +-
 .../bindings/power/supply/ti,lp8727.yaml          |  2 +-
 .../bindings/regulator/active-semi,act8865.yaml   |  2 +-
 .../regulator/google,cros-ec-regulator.yaml       |  2 +-
 .../bindings/regulator/nxp,pf8x00-regulator.yaml  |  2 +-
 .../devicetree/bindings/sound/everest,es8316.yaml |  2 +-
 .../devicetree/bindings/sound/tas2562.yaml        |  2 +-
 .../devicetree/bindings/sound/tas2770.yaml        |  2 +-
 .../devicetree/bindings/sound/tas27xx.yaml        |  2 +-
 .../devicetree/bindings/sound/tas5805m.yaml       |  2 +-
 .../devicetree/bindings/sound/tlv320adcx140.yaml  |  2 +-
 .../devicetree/bindings/sound/zl38060.yaml        |  2 +-
 .../devicetree/bindings/usb/maxim,max33359.yaml   |  2 +-
Quoted 9 lines
 .../bindings/usb/maxim,max3420-udc.yaml           |  2 +-
 .../bindings/usb/mediatek,mt6360-tcpc.yaml        |  2 +-
 .../devicetree/bindings/usb/richtek,rt1711h.yaml  |  2 +-
 .../devicetree/bindings/usb/richtek,rt1719.yaml   |  2 +-
 .../devicetree/bindings/usb/st,stusb160x.yaml     |  2 +-
 .../devicetree/bindings/usb/ti,hd3ss3220.yaml     |  2 +-
 .../devicetree/bindings/usb/ti,tps6598x.yaml      |  2 +-
 86 files changed, 110 insertions(+), 103 deletions(-)

Applied, thanks!