149-dt-sun7i-add-spi-on-olinuxinom.patch 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. From 3f134732aaf4d785532c716f4ef7703d631a510b Mon Sep 17 00:00:00 2001
  2. From: Maxime Ripard <maxime.ripard@free-electrons.com>
  3. Date: Sat, 22 Feb 2014 22:35:59 +0100
  4. Subject: [PATCH] ARM: dts: sun7i: Enable the SPI controllers of the
  5. A20-olinuxino-micro
  6. The A20-Olinuxino-micro has two SPI bus exposed on its UEXT connectors, enable
  7. them.
  8. Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
  9. ---
  10. arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts | 17 +++++++++++++++++
  11. 1 file changed, 17 insertions(+)
  12. --- a/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts
  13. +++ b/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts
  14. @@ -18,7 +18,24 @@
  15. model = "Olimex A20-Olinuxino Micro";
  16. compatible = "olimex,a20-olinuxino-micro", "allwinner,sun7i-a20";
  17. + aliases {
  18. + spi0 = &spi1;
  19. + spi1 = &spi2;
  20. + };
  21. +
  22. soc@01c00000 {
  23. + spi1: spi@01c06000 {
  24. + pinctrl-names = "default";
  25. + pinctrl-0 = <&spi1_pins_a>;
  26. + status = "okay";
  27. + };
  28. +
  29. + spi2: spi@01c17000 {
  30. + pinctrl-names = "default";
  31. + pinctrl-0 = <&spi2_pins_a>;
  32. + status = "okay";
  33. + };
  34. +
  35. pinctrl@01c20800 {
  36. led_pins_olinuxino: led_pins@0 {
  37. allwinner,pins = "PH2";