2
0

102-dt-sun7i-add-dram-gates.patch 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. From 0b4bf5a5200b9ac5ddf545665f171feb5594677d Mon Sep 17 00:00:00 2001
  2. From: Chen-Yu Tsai <wens@csie.org>
  3. Date: Sat, 5 Dec 2015 21:16:46 +0800
  4. Subject: [PATCH] ARM: dts: sun7i: 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/sun7i-a20.dtsi | 32 +++++++++++++++++++++++++++++---
  12. 1 file changed, 29 insertions(+), 3 deletions(-)
  13. --- a/arch/arm/boot/dts/sun7i-a20.dtsi
  14. +++ b/arch/arm/boot/dts/sun7i-a20.dtsi
  15. @@ -68,7 +68,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. @@ -76,7 +76,8 @@
  24. compatible = "allwinner,simple-framebuffer",
  25. "simple-framebuffer";
  26. allwinner,pipeline = "de_be0-lcd0";
  27. - clocks = <&pll5 1>, <&ahb_gates 36>, <&ahb_gates 44>;
  28. + clocks = <&pll5 1>, <&ahb_gates 36>, <&ahb_gates 44>,
  29. + <&dram_gates 26>;
  30. status = "disabled";
  31. };
  32. @@ -85,7 +86,7 @@
  33. "simple-framebuffer";
  34. allwinner,pipeline = "de_be0-lcd0-tve0";
  35. clocks = <&pll5 1>, <&ahb_gates 34>, <&ahb_gates 36>,
  36. - <&ahb_gates 44>;
  37. + <&ahb_gates 44>, <&dram_gates 26>;
  38. status = "disabled";
  39. };
  40. };
  41. @@ -501,6 +502,31 @@
  42. clock-output-names = "spi3";
  43. };
  44. + dram_gates: clk@01c20100 {
  45. + #clock-cells = <1>;
  46. + compatible = "allwinner,sun4i-a10-dram-gates-clk";
  47. + reg = <0x01c20100 0x4>;
  48. + clocks = <&pll5 0>;
  49. + clock-indices = <0>,
  50. + <1>, <2>,
  51. + <3>,
  52. + <4>,
  53. + <5>, <6>,
  54. + <15>,
  55. + <24>, <25>,
  56. + <26>, <27>,
  57. + <28>, <29>;
  58. + clock-output-names = "dram_ve",
  59. + "dram_csi0", "dram_csi1",
  60. + "dram_ts",
  61. + "dram_tvd",
  62. + "dram_tve0", "dram_tve1",
  63. + "dram_output",
  64. + "dram_de_fe1", "dram_de_fe0",
  65. + "dram_de_be0", "dram_de_be1",
  66. + "dram_de_mp", "dram_ace";
  67. + };
  68. +
  69. codec_clk: clk@01c20140 {
  70. #clock-cells = <0>;
  71. compatible = "allwinner,sun4i-a10-codec-clk";