linux-riscv.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH] riscv: dts: spacemit: initial i2c support for OrangePi RV2
@ 2025-10-25  7:45 michael.opdenacker
  2025-10-25  7:48 ` Michael Opdenacker
  0 siblings, 1 reply; 7+ messages in thread
From: michael.opdenacker @ 2025-10-25  7:45 UTC (permalink / raw)
  To: linux-riscv, spacemit; +Cc: Michael Opdenacker

From: Michael Opdenacker <michael.opdenacker@rootcommit.com>

The OrangePi RV2 board exposes i2c2 and i2c8 buses from the Spacemit K1 SoC.

Signed-off-by: Michael Opdenacker <michael.opdenacker@rootcommit.com>
---
 arch/riscv/boot/dts/spacemit/k1-orangepi-rv2.dts | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/arch/riscv/boot/dts/spacemit/k1-orangepi-rv2.dts b/arch/riscv/boot/dts/spacemit/k1-orangepi-rv2.dts
index 41dc8e35e6eb..c4b25dd30f54 100644
--- a/arch/riscv/boot/dts/spacemit/k1-orangepi-rv2.dts
+++ b/arch/riscv/boot/dts/spacemit/k1-orangepi-rv2.dts
@@ -17,6 +17,8 @@ aliases {
 		serial0 = &uart0;
 		ethernet0 = &eth0;
 		ethernet1 = &eth1;
+                i2c2 = &i2c2;
+                i2c8 = &i2c8;
 	};
 
 	chosen {
@@ -81,6 +83,18 @@ rgmii1: phy@1 {
 	};
 };
 
+&i2c2 {
+	pinctrl-0 = <&i2c2_0_cfg>;
+	pinctrl-names = "default";
+	status = "okay";
+};
+
+&i2c8 {
+	pinctrl-0 = <&i2c8_cfg>;
+	pinctrl-names = "default";
+	status = "okay";
+};
+
 &pdma {
 	status = "okay";
 };

_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-11-14 13:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-25  7:45 [RFC PATCH] riscv: dts: spacemit: initial i2c support for OrangePi RV2 michael.opdenacker
2025-10-25  7:48 ` Michael Opdenacker
2025-10-27  1:18   ` Troy Mitchell
2025-11-03  2:44     ` Troy Mitchell
2025-11-03 20:51       ` Michael Opdenacker
2025-11-04  1:21         ` Troy Mitchell
2025-11-14 13:33     ` Troy Mitchell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).