Commit 20a72af1 authored by Rob Herring's avatar Rob Herring
Browse files

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.

Acked-by: default avatarSam Ravnborg <sam@ravnborg.org>
Reviewed-by: default avatarStephen Boyd <sboyd@kernel.org>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
Acked-by: Marc Kleine-Budde <mkl@pengutronix.de> # for the microchip,mcp251xfd.yaml
Acked-by: default avatarMark Brown <broonie@kernel.org>
Acked-by: default avatarBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Acked-by: Sebastian Reichel <sebastian.reichel@collabora.com> # for power-supply
Acked-by: default avatarWolfram Sang <wsa@kernel.org>
Acked-by: default avatarLee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/20230228215433.3944508-1-robh@kernel.org


Signed-off-by: default avatarRob Herring <robh@kernel.org>
parent ab82b4f1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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>;

+1 −1
Original line number Diff line number Diff line
@@ -41,7 +41,7 @@ additionalProperties: false

examples:
  - |+
    spi0 {
    spi {
      #address-cells = <1>;
      #size-cells = <0>;

+1 −1
Original line number Diff line number Diff line
@@ -20,7 +20,7 @@ additionalProperties: false

examples:
  - |
    spi0 {
    spi {
      #address-cells = <1>;
      #size-cells = <0>;

+1 −1
Original line number Diff line number Diff line
@@ -160,7 +160,7 @@ examples:
        };
    };

    spi0 {
    spi {
        #address-cells = <1>;
        #size-cells = <0>;

+1 −1
Original line number Diff line number Diff line
@@ -134,7 +134,7 @@ examples:
  - |
    #include <dt-bindings/gpio/gpio.h>

    i2c0 {
    i2c {
        #address-cells = <1>;
        #size-cells = <0>;

Loading