Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: dts: mscc: Add i2c on ocelot

Ocelot has an i2c controller, add it. There is only one possible pinmux
configuration so add it as well.

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/20353/
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>

authored by

Alexandre Belloni and committed by
Paul Burton
9ca953a3 52c985ac

+19
+19
arch/mips/boot/dts/mscc/ocelot.dtsi
··· 78 78 status = "disabled"; 79 79 }; 80 80 81 + i2c: i2c@100400 { 82 + compatible = "mscc,ocelot-i2c", "snps,designware-i2c"; 83 + pinctrl-0 = <&i2c_pins>; 84 + pinctrl-names = "default"; 85 + reg = <0x100400 0x100>, <0x198 0x8>; 86 + #address-cells = <1>; 87 + #size-cells = <0>; 88 + interrupts = <8>; 89 + clocks = <&ahb_clk>; 90 + 91 + status = "disabled"; 92 + }; 93 + 81 94 uart2: serial@100800 { 82 95 pinctrl-0 = <&uart2_pins>; 83 96 pinctrl-names = "default"; ··· 196 183 interrupts = <13>; 197 184 #interrupt-cells = <2>; 198 185 186 + i2c_pins: i2c-pins { 187 + pins = "GPIO_16", "GPIO_17"; 188 + function = "twi"; 189 + }; 190 + 199 191 uart_pins: uart-pins { 200 192 pins = "GPIO_6", "GPIO_7"; 201 193 function = "uart"; ··· 215 197 pins = "GPIO_14", "GPIO_15"; 216 198 function = "miim1"; 217 199 }; 200 + 218 201 }; 219 202 220 203 mdio0: mdio@107009c {