145-3-dt-sun5i-add-a13-spi.patch 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. From aeb3b73fc416e14afd25f25e69f8713488edcc1b Mon Sep 17 00:00:00 2001
  2. From: Maxime Ripard <maxime.ripard@free-electrons.com>
  3. Date: Sat, 22 Feb 2014 22:35:57 +0100
  4. Subject: [PATCH] ARM: dt: sun5i: Add A13 SPI controller nodes
  5. The A13 has 3 SPI controllers compatible with the one found in the A10. Add
  6. them in the DT.
  7. Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
  8. ---
  9. arch/arm/boot/dts/sun5i-a13.dtsi | 33 +++++++++++++++++++++++++++++++++
  10. 1 file changed, 33 insertions(+)
  11. --- a/arch/arm/boot/dts/sun5i-a13.dtsi
  12. +++ b/arch/arm/boot/dts/sun5i-a13.dtsi
  13. @@ -298,6 +298,39 @@
  14. #size-cells = <1>;
  15. ranges;
  16. + spi0: spi@01c05000 {
  17. + compatible = "allwinner,sun4i-a10-spi";
  18. + reg = <0x01c05000 0x1000>;
  19. + interrupts = <10>;
  20. + clocks = <&ahb_gates 20>, <&spi0_clk>;
  21. + clock-names = "ahb", "mod";
  22. + status = "disabled";
  23. + #address-cells = <1>;
  24. + #size-cells = <0>;
  25. + };
  26. +
  27. + spi1: spi@01c06000 {
  28. + compatible = "allwinner,sun4i-a10-spi";
  29. + reg = <0x01c06000 0x1000>;
  30. + interrupts = <11>;
  31. + clocks = <&ahb_gates 21>, <&spi1_clk>;
  32. + clock-names = "ahb", "mod";
  33. + status = "disabled";
  34. + #address-cells = <1>;
  35. + #size-cells = <0>;
  36. + };
  37. +
  38. + spi2: spi@01c17000 {
  39. + compatible = "allwinner,sun4i-a10-spi";
  40. + reg = <0x01c17000 0x1000>;
  41. + interrupts = <12>;
  42. + clocks = <&ahb_gates 22>, <&spi2_clk>;
  43. + clock-names = "ahb", "mod";
  44. + status = "disabled";
  45. + #address-cells = <1>;
  46. + #size-cells = <0>;
  47. + };
  48. +
  49. intc: interrupt-controller@01c20400 {
  50. compatible = "allwinner,sun4i-ic";
  51. reg = <0x01c20400 0x400>;