145-2-dt-sun4i-add-a10-spi.patch 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. From cac3c4d67c80c4895d0d44e609beb535d66af6a3 Mon Sep 17 00:00:00 2001
  2. From: Maxime Ripard <maxime.ripard@free-electrons.com>
  3. Date: Sat, 22 Feb 2014 22:35:55 +0100
  4. Subject: [PATCH] ARM: dt: sun4i: Add A10 SPI controller nodes
  5. The A10 has 4 SPI controllers that are now supported. Add them in the DT.
  6. Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
  7. ---
  8. arch/arm/boot/dts/sun4i-a10.dtsi | 44 ++++++++++++++++++++++++++++++++++++++++
  9. 1 file changed, 44 insertions(+)
  10. --- a/arch/arm/boot/dts/sun4i-a10.dtsi
  11. +++ b/arch/arm/boot/dts/sun4i-a10.dtsi
  12. @@ -339,6 +339,28 @@
  13. #size-cells = <1>;
  14. ranges;
  15. + spi0: spi@01c05000 {
  16. + compatible = "allwinner,sun4i-a10-spi";
  17. + reg = <0x01c05000 0x1000>;
  18. + interrupts = <10>;
  19. + clocks = <&ahb_gates 20>, <&spi0_clk>;
  20. + clock-names = "ahb", "mod";
  21. + status = "disabled";
  22. + #address-cells = <1>;
  23. + #size-cells = <0>;
  24. + };
  25. +
  26. + spi1: spi@01c06000 {
  27. + compatible = "allwinner,sun4i-a10-spi";
  28. + reg = <0x01c06000 0x1000>;
  29. + interrupts = <11>;
  30. + clocks = <&ahb_gates 21>, <&spi1_clk>;
  31. + clock-names = "ahb", "mod";
  32. + status = "disabled";
  33. + #address-cells = <1>;
  34. + #size-cells = <0>;
  35. + };
  36. +
  37. emac: ethernet@01c0b000 {
  38. compatible = "allwinner,sun4i-a10-emac";
  39. reg = <0x01c0b000 0x1000>;
  40. @@ -355,6 +377,28 @@
  41. #size-cells = <0>;
  42. };
  43. + spi2: spi@01c17000 {
  44. + compatible = "allwinner,sun4i-a10-spi";
  45. + reg = <0x01c17000 0x1000>;
  46. + interrupts = <12>;
  47. + clocks = <&ahb_gates 22>, <&spi2_clk>;
  48. + clock-names = "ahb", "mod";
  49. + status = "disabled";
  50. + #address-cells = <1>;
  51. + #size-cells = <0>;
  52. + };
  53. +
  54. + spi3: spi@01c1f000 {
  55. + compatible = "allwinner,sun4i-a10-spi";
  56. + reg = <0x01c1f000 0x1000>;
  57. + interrupts = <50>;
  58. + clocks = <&ahb_gates 23>, <&spi3_clk>;
  59. + clock-names = "ahb", "mod";
  60. + status = "disabled";
  61. + #address-cells = <1>;
  62. + #size-cells = <0>;
  63. + };
  64. +
  65. intc: interrupt-controller@01c20400 {
  66. compatible = "allwinner,sun4i-ic";
  67. reg = <0x01c20400 0x400>;