From: Troy Mitchell Date: Wed, 5 Nov 2025 03:37:43 +0000 (+0800) Subject: riscv: dts: spacemit: reorder i2c2 node X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3b70f972b6fb769bdee780b5b4639585845d6af4;p=thirdparty%2Flinux.git riscv: dts: spacemit: reorder i2c2 node 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 Link: https://lore.kernel.org/r/20251105-k1-add-i2c-node-v1-1-d18dae246137@linux.spacemit.com Signed-off-by: Yixun Lan --- diff --git a/arch/riscv/boot/dts/spacemit/k1.dtsi b/arch/riscv/boot/dts/spacemit/k1.dtsi index 47f97105bff0b..e3de4815e811c 100644 --- a/arch/riscv/boot/dts/spacemit/k1.dtsi +++ b/arch/riscv/boot/dts/spacemit/k1.dtsi @@ -358,6 +358,19 @@ #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>; @@ -459,19 +472,6 @@ 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>;