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
6 The DRAM gates controls direct memory access for some peripherals.
7 These peripherals include the display pipeline, so add the required
8 gates to the simplefb nodes as well.
10 Signed-off-by: Chen-Yu Tsai <wens@csie.org>
11 Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
13 arch/arm/boot/dts/sun4i-a10.dtsi | 36 ++++++++++++++++++++++++++++++++----
14 1 file changed, 32 insertions(+), 4 deletions(-)
16 diff --git a/arch/arm/boot/dts/sun4i-a10.dtsi b/arch/arm/boot/dts/sun4i-a10.dtsi
17 index aa90f31..849d024 100644
18 --- a/arch/arm/boot/dts/sun4i-a10.dtsi
19 +++ b/arch/arm/boot/dts/sun4i-a10.dtsi
22 allwinner,pipeline = "de_be0-lcd0-hdmi";
23 clocks = <&pll5 1>, <&ahb_gates 36>, <&ahb_gates 43>,
25 + <&ahb_gates 44>, <&dram_gates 26>;
31 allwinner,pipeline = "de_fe0-de_be0-lcd0-hdmi";
32 clocks = <&pll5 1>, <&ahb_gates 36>, <&ahb_gates 43>,
33 - <&ahb_gates 44>, <&ahb_gates 46>;
34 + <&ahb_gates 44>, <&ahb_gates 46>,
35 + <&dram_gates 25>, <&dram_gates 26>;
41 allwinner,pipeline = "de_fe0-de_be0-lcd0";
42 clocks = <&pll5 1>, <&ahb_gates 36>, <&ahb_gates 44>,
44 + <&ahb_gates 46>, <&dram_gates 25>,
51 allwinner,pipeline = "de_fe0-de_be0-lcd0-tve0";
52 clocks = <&pll5 1>, <&ahb_gates 34>, <&ahb_gates 36>,
53 - <&ahb_gates 44>, <&ahb_gates 46>;
54 + <&ahb_gates 44>, <&ahb_gates 46>,
55 + <&dram_gates 25>, <&dram_gates 26>;
60 clock-output-names = "spi3";
63 + dram_gates: clk@01c20100 {
65 + compatible = "allwinner,sun4i-a10-dram-gates-clk";
66 + reg = <0x01c20100 0x4>;
68 + clock-indices = <0>,
77 + clock-output-names = "dram_ve",
78 + "dram_csi0", "dram_csi1",
81 + "dram_tve0", "dram_tve1",
83 + "dram_de_fe1", "dram_de_fe0",
84 + "dram_de_be0", "dram_de_be1",
85 + "dram_de_mp", "dram_ace";
88 codec_clk: clk@01c20140 {
90 compatible = "allwinner,sun4i-a10-codec-clk";