]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
arm64: dts: exynos5433: Align i2c-gpio node names with dtschema
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Thu, 12 Jun 2025 09:55:50 +0000 (11:55 +0200)
committerKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Wed, 25 Jun 2025 14:12:02 +0000 (16:12 +0200)
New dtschema v2025.6 enforces different naming on I2C nodes thus new
dtbs_check warnings appeared for I2C GPIO nodes:

  exynos5433-tm2.dtb: i2c-gpio-0 (i2c-gpio):
    $nodename:0: 'i2c-gpio-0' does not match '^i2c(@.+|-[a-z0-9]+)?$'
  exynos5433-tm2.dtb: i2c-gpio-0 (i2c-gpio):
    Unevaluated properties are not allowed ('#address-cells', '#size-cells', 'amplifier@31' were unexpected)

Rename the nodes to a generic i2c-[0-9]+ style with numbers continuing
the SoC I2C controller indexing (3 controllers) for simplicity and
obviousness, even if the SoC I2C controller is not enabled on given
board.  The names anyway would not conflict with SoC ones because of
unit addresses.

Verified with comparing two fdt (after fdtdump).

Reported-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Closes: https://lore.kernel.org/all/aCtD7BH5N_uPGkq7@shikoro/
Link: https://lore.kernel.org/r/20250612095549.77954-2-krzysztof.kozlowski@linaro.org
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi

index 8f02de8480b63d0a3a7609ac947792aae8047ee2..a1fb354dea9fd7925ca413479af53bb441687663 100644 (file)
@@ -85,7 +85,7 @@
                };
        };
 
-       i2c_max98504: i2c-gpio-0 {
+       i2c_max98504: i2c-13 {
                compatible = "i2c-gpio";
                sda-gpios = <&gpd0 1 GPIO_ACTIVE_HIGH>;
                scl-gpios = <&gpd0 0 GPIO_ACTIVE_HIGH>;