216-dt-sun7i-add-i2c-to-cubietruck.patch 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. From 6267355f0e513bed9a5009924abc7a1e7de22ab3 Mon Sep 17 00:00:00 2001
  2. From: Chen-Yu Tsai <wens@csie.org>
  3. Date: Mon, 6 Jan 2014 13:58:12 +0800
  4. Subject: [PATCH] arm: sun7i: cubietruck: Enable the i2c controllers
  5. The Cubietruck makes use of the first three i2c controllers found on the
  6. Allwinner A20; i2c-0 is used internally for the PMIC, i2c-1 is exposed on
  7. the board headers, and i2c-2 is used for DDC on the VGA connector. This
  8. patch enables them in the device tree.
  9. Signed-off-by: Chen-Yu Tsai <wens@csie.org>
  10. Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
  11. ---
  12. arch/arm/boot/dts/sun7i-a20-cubietruck.dts | 18 ++++++++++++++++++
  13. 1 file changed, 18 insertions(+)
  14. --- a/arch/arm/boot/dts/sun7i-a20-cubietruck.dts
  15. +++ b/arch/arm/boot/dts/sun7i-a20-cubietruck.dts
  16. @@ -130,6 +130,24 @@
  17. reg = <1>;
  18. };
  19. };
  20. +
  21. + i2c0: i2c@01c2ac00 {
  22. + pinctrl-names = "default";
  23. + pinctrl-0 = <&i2c0_pins_a>;
  24. + status = "okay";
  25. + };
  26. +
  27. + i2c1: i2c@01c2b000 {
  28. + pinctrl-names = "default";
  29. + pinctrl-0 = <&i2c1_pins_a>;
  30. + status = "okay";
  31. + };
  32. +
  33. + i2c2: i2c@01c2b400 {
  34. + pinctrl-names = "default";
  35. + pinctrl-0 = <&i2c2_pins_a>;
  36. + status = "okay";
  37. + };
  38. };
  39. leds {