1
0

101-dt-sun4i-add-dram-gates.patch 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. From 82f8582feef4c048ee7ef0155a71c23614a7856d Mon Sep 17 00:00:00 2001
  2. From: Chen-Yu Tsai <wens@csie.org>
  3. Date: Sat, 5 Dec 2015 21:16:44 +0800
  4. Subject: [PATCH] ARM: dts: sun4i: Add DRAM gates
  5. The DRAM gates controls direct memory access for some peripherals.
  6. These peripherals include the display pipeline, so add the required
  7. gates to the simplefb nodes as well.
  8. Signed-off-by: Chen-Yu Tsai <wens@csie.org>
  9. Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
  10. ---
  11. arch/arm/boot/dts/sun4i-a10.dtsi | 36 ++++++++++++++++++++++++++++++++----
  12. 1 file changed, 32 insertions(+), 4 deletions(-)
  13. --- a/arch/arm/boot/dts/sun4i-a10.dtsi
  14. +++ b/arch/arm/boot/dts/sun4i-a10.dtsi
  15. @@ -66,7 +66,7 @@
  16. "simple-framebuffer";
  17. allwinner,pipeline = "de_be0-lcd0-hdmi";
  18. clocks = <&pll5 1>, <&ahb_gates 36>, <&ahb_gates 43>,
  19. - <&ahb_gates 44>;
  20. + <&ahb_gates 44>, <&dram_gates 26>;
  21. status = "disabled";
  22. };
  23. @@ -75,7 +75,8 @@
  24. "simple-framebuffer";
  25. allwinner,pipeline = "de_fe0-de_be0-lcd0-hdmi";
  26. clocks = <&pll5 1>, <&ahb_gates 36>, <&ahb_gates 43>,
  27. - <&ahb_gates 44>, <&ahb_gates 46>;
  28. + <&ahb_gates 44>, <&ahb_gates 46>,
  29. + <&dram_gates 25>, <&dram_gates 26>;
  30. status = "disabled";
  31. };
  32. @@ -84,7 +85,8 @@
  33. "simple-framebuffer";
  34. allwinner,pipeline = "de_fe0-de_be0-lcd0";
  35. clocks = <&pll5 1>, <&ahb_gates 36>, <&ahb_gates 44>,
  36. - <&ahb_gates 46>;
  37. + <&ahb_gates 46>, <&dram_gates 25>,
  38. + <&dram_gates 26>;
  39. status = "disabled";
  40. };
  41. @@ -93,7 +95,8 @@
  42. "simple-framebuffer";
  43. allwinner,pipeline = "de_fe0-de_be0-lcd0-tve0";
  44. clocks = <&pll5 1>, <&ahb_gates 34>, <&ahb_gates 36>,
  45. - <&ahb_gates 44>, <&ahb_gates 46>;
  46. + <&ahb_gates 44>, <&ahb_gates 46>,
  47. + <&dram_gates 25>, <&dram_gates 26>;
  48. status = "disabled";
  49. };
  50. };
  51. @@ -492,6 +495,31 @@
  52. clock-output-names = "spi3";
  53. };
  54. + dram_gates: clk@01c20100 {
  55. + #clock-cells = <1>;
  56. + compatible = "allwinner,sun4i-a10-dram-gates-clk";
  57. + reg = <0x01c20100 0x4>;
  58. + clocks = <&pll5 0>;
  59. + clock-indices = <0>,
  60. + <1>, <2>,
  61. + <3>,
  62. + <4>,
  63. + <5>, <6>,
  64. + <15>,
  65. + <24>, <25>,
  66. + <26>, <27>,
  67. + <28>, <29>;
  68. + clock-output-names = "dram_ve",
  69. + "dram_csi0", "dram_csi1",
  70. + "dram_ts",
  71. + "dram_tvd",
  72. + "dram_tve0", "dram_tve1",
  73. + "dram_output",
  74. + "dram_de_fe1", "dram_de_fe0",
  75. + "dram_de_be0", "dram_de_be1",
  76. + "dram_de_mp", "dram_ace";
  77. + };
  78. +
  79. codec_clk: clk@01c20140 {
  80. #clock-cells = <0>;
  81. compatible = "allwinner,sun4i-a10-codec-clk";