aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaxime Ripard <maxime.ripard@free-electrons.com>2014-03-04 11:28:39 -0500
committerMaxime Ripard <maxime.ripard@free-electrons.com>2014-03-07 09:28:03 -0500
commit96c7cc9b1adb211e6f989c8118aea2b84cb5214b (patch)
treed25a2d9ca1864b8931a5af1f4ddac9db4ae51c11
parente2315012c63ab34c6df5989aa336f6ba49e1e833 (diff)
ARM: sun6i: Enable the I2C controllers
The A31 has 4 I2C controllers that are the same than the one in the other Allwinner SoCs, except for the fact that they are asserted in reset by the reset unit. Add these i2c controllers to the DTSI. Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
-rw-r--r--arch/arm/boot/dts/sun6i-a31.dtsi40
1 files changed, 40 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/sun6i-a31.dtsi b/arch/arm/boot/dts/sun6i-a31.dtsi
index 42f310a925c4..7c724d9fc60a 100644
--- a/arch/arm/boot/dts/sun6i-a31.dtsi
+++ b/arch/arm/boot/dts/sun6i-a31.dtsi
@@ -359,6 +359,46 @@
359 status = "disabled"; 359 status = "disabled";
360 }; 360 };
361 361
362 i2c0: i2c@01c2ac00 {
363 compatible = "allwinner,sun6i-a31-i2c";
364 reg = <0x01c2ac00 0x400>;
365 interrupts = <0 6 4>;
366 clocks = <&apb2_gates 0>;
367 clock-frequency = <100000>;
368 resets = <&apb2_rst 0>;
369 status = "disabled";
370 };
371
372 i2c1: i2c@01c2b000 {
373 compatible = "allwinner,sun6i-a31-i2c";
374 reg = <0x01c2b000 0x400>;
375 interrupts = <0 7 4>;
376 clocks = <&apb2_gates 1>;
377 clock-frequency = <100000>;
378 resets = <&apb2_rst 1>;
379 status = "disabled";
380 };
381
382 i2c2: i2c@01c2b400 {
383 compatible = "allwinner,sun6i-a31-i2c";
384 reg = <0x01c2b400 0x400>;
385 interrupts = <0 8 4>;
386 clocks = <&apb2_gates 2>;
387 clock-frequency = <100000>;
388 resets = <&apb2_rst 2>;
389 status = "disabled";
390 };
391
392 i2c3: i2c@01c2b800 {
393 compatible = "allwinner,sun6i-a31-i2c";
394 reg = <0x01c2b800 0x400>;
395 interrupts = <0 9 4>;
396 clocks = <&apb2_gates 3>;
397 clock-frequency = <100000>;
398 resets = <&apb2_rst 3>;
399 status = "disabled";
400 };
401
362 spi0: spi@01c68000 { 402 spi0: spi@01c68000 {
363 compatible = "allwinner,sun6i-a31-spi"; 403 compatible = "allwinner,sun6i-a31-spi";
364 reg = <0x01c68000 0x1000>; 404 reg = <0x01c68000 0x1000>;