Thread (11 messages) 11 messages, 3 authors, 2018-09-05
STALE2854d
Revisions (2)
  1. v4 [diff vs current]
  2. v5 current

[PATCH v5 7/7] MIPS: dts: mscc: enable i2c on ocelot_pcb123

From: Alexandre Belloni <alexandre.belloni@bootlin.com>
Date: 2018-08-31 15:12:01
Also in: linux-i2c, linux-mips, lkml
Subsystem: microsemi mips socs, mips, the rest · Maintainers: Alexandre Belloni, Thomas Bogendoerfer, Linus Torvalds

Enable the i2c controller on ocelot PCB123. While there are no i2c devices
on the board itself, it can be used to control the SFP transceivers.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
---
 arch/mips/boot/dts/mscc/ocelot_pcb123.dts | 6 ++++++
 1 file changed, 6 insertions(+)
diff --git a/arch/mips/boot/dts/mscc/ocelot_pcb123.dts b/arch/mips/boot/dts/mscc/ocelot_pcb123.dts
index 2266027759f9..ef852f382da8 100644
--- a/arch/mips/boot/dts/mscc/ocelot_pcb123.dts
+++ b/arch/mips/boot/dts/mscc/ocelot_pcb123.dts
@@ -36,6 +36,12 @@
 	};
 };
 
+&i2c {
+	clock-frequency = <100000>;
+	i2c-sda-hold-time-ns = <300>;
+	status = "okay";
+};
+
 &mdio0 {
 	status = "okay";
 };
-- 
2.19.0.rc1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help