]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
MIPS: dts: mscc: enable i2c on ocelot_pcb123
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 31 Aug 2018 15:11:14 +0000 (17:11 +0200)
committerPaul Burton <paul.burton@mips.com>
Wed, 5 Sep 2018 23:05:58 +0000 (16:05 -0700)
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>
Signed-off-by: Paul Burton <paul.burton@mips.com>
Patchwork: https://patchwork.linux-mips.org/patch/20352/
Cc: Wolfram Sang <wsa@the-dreams.de>
Cc: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Cc: James Hogan <jhogan@kernel.org>
Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Mika Westerberg <mika.westerberg@linux.intel.com>
Cc: linux-i2c@vger.kernel.org
Cc: devicetree@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: linux-mips@linux-mips.org
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Cc: Allan Nielsen <allan.nielsen@microchip.com>
arch/mips/boot/dts/mscc/ocelot_pcb123.dts

index 2266027759f989fe1187ddc4be42ec5ccf08cf1a..ef852f382da8d6ed66906a818419bb10b6b8c905 100644 (file)
@@ -36,6 +36,12 @@ flash@0 {
        };
 };
 
+&i2c {
+       clock-frequency = <100000>;
+       i2c-sda-hold-time-ns = <300>;
+       status = "okay";
+};
+
 &mdio0 {
        status = "okay";
 };