]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
riscv: dts: spacemit: reorder i2c2 node
authorTroy Mitchell <troy.mitchell@linux.spacemit.com>
Wed, 5 Nov 2025 03:37:43 +0000 (11:37 +0800)
committerYixun Lan <dlan@gentoo.org>
Wed, 12 Nov 2025 10:38:12 +0000 (18:38 +0800)
Reorder the i2c2 node to its correct position according to its
register address.This improves the readability and maintainability
of the device tree file by adhering to the established ordering convention.

No functional change is introduced by this reordering.

Signed-off-by: Troy Mitchell <troy.mitchell@linux.spacemit.com>
Link: https://lore.kernel.org/r/20251105-k1-add-i2c-node-v1-1-d18dae246137@linux.spacemit.com
Signed-off-by: Yixun Lan <dlan@gentoo.org>
arch/riscv/boot/dts/spacemit/k1.dtsi

index 47f97105bff0ba860b034845e4baa2f911d2645c..e3de4815e811cd22e7199159a1f248df493e1e83 100644 (file)
                        #reset-cells = <1>;
                };
 
+               i2c2: i2c@d4012000 {
+                       compatible = "spacemit,k1-i2c";
+                       reg = <0x0 0xd4012000 0x0 0x38>;
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       clocks = <&syscon_apbc CLK_TWSI2>,
+                                <&syscon_apbc CLK_TWSI2_BUS>;
+                       clock-names = "func", "bus";
+                       clock-frequency = <400000>;
+                       interrupts = <38>;
+                       status = "disabled";
+               };
+
                syscon_apbc: system-controller@d4015000 {
                        compatible = "spacemit,k1-syscon-apbc";
                        reg = <0x0 0xd4015000 0x0 0x1000>;
                        status = "disabled";
                };
 
-               i2c2: i2c@d4012000 {
-                       compatible = "spacemit,k1-i2c";
-                       reg = <0x0 0xd4012000 0x0 0x38>;
-                       #address-cells = <1>;
-                       #size-cells = <0>;
-                       clocks = <&syscon_apbc CLK_TWSI2>,
-                                <&syscon_apbc CLK_TWSI2_BUS>;
-                       clock-names = "func", "bus";
-                       clock-frequency = <400000>;
-                       interrupts = <38>;
-                       status = "disabled";
-               };
-
                i2c8: i2c@d401d800 {
                        compatible = "spacemit,k1-i2c";
                        reg = <0x0 0xd401d800 0x0 0x38>;