[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20251105-k1-add-i2c-node-v1-1-d18dae246137@linux.spacemit.com>
Date: Wed, 05 Nov 2025 11:37:43 +0800
From: Troy Mitchell <troy.mitchell@...ux.spacemit.com>
To: Rob Herring <robh@...nel.org>, Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>, Paul Walmsley <pjw@...nel.org>,
Palmer Dabbelt <palmer@...belt.com>, Albert Ou <aou@...s.berkeley.edu>,
Alexandre Ghiti <alex@...ti.fr>, Yixun Lan <dlan@...too.org>,
Encrow Thorne <jyc0019@...il.com>
Cc: devicetree@...r.kernel.org, linux-riscv@...ts.infradead.org,
spacemit@...ts.linux.dev, linux-kernel@...r.kernel.org,
Troy Mitchell <troy.mitchell@...ux.spacemit.com>
Subject: [PATCH 1/2] 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 <troy.mitchell@...ux.spacemit.com>
---
arch/riscv/boot/dts/spacemit/k1.dtsi | 26 +++++++++++++-------------
1 file changed, 13 insertions(+), 13 deletions(-)
diff --git a/arch/riscv/boot/dts/spacemit/k1.dtsi b/arch/riscv/boot/dts/spacemit/k1.dtsi
index af35f9cd643513a1c68a00ccfb3ead688a8b1929..5b46ce2edb059e22d878890b3b6192118dfdb2f4 100644
--- a/arch/riscv/boot/dts/spacemit/k1.dtsi
+++ b/arch/riscv/boot/dts/spacemit/k1.dtsi
@@ -358,6 +358,19 @@ syscon_rcpu2: system-controller@...88000 {
#reset-cells = <1>;
};
+ i2c2: i2c@...12000 {
+ 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@...15000 {
compatible = "spacemit,k1-syscon-apbc";
reg = <0x0 0xd4015000 0x0 0x1000>;
@@ -459,19 +472,6 @@ pwm7: pwm@...1bc00 {
status = "disabled";
};
- i2c2: i2c@...12000 {
- 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@...1d800 {
compatible = "spacemit,k1-i2c";
reg = <0x0 0xd401d800 0x0 0x38>;
--
2.51.1
Powered by blists - more mailing lists