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
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/sun7i-a20.dtsi | 32 +++++++++++++++++++++++++++++---
14 1 file changed, 29 insertions(+), 3 deletions(-)
16 diff --git a/arch/arm/boot/dts/sun7i-a20.dtsi b/arch/arm/boot/dts/sun7i-a20.dtsi
17 index e02eb72..21169c0 100644
18 --- a/arch/arm/boot/dts/sun7i-a20.dtsi
19 +++ b/arch/arm/boot/dts/sun7i-a20.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>;
30 compatible = "allwinner,simple-framebuffer",
32 allwinner,pipeline = "de_be0-lcd0";
33 - clocks = <&pll5 1>, <&ahb_gates 36>, <&ahb_gates 44>;
34 + clocks = <&pll5 1>, <&ahb_gates 36>, <&ahb_gates 44>,
41 allwinner,pipeline = "de_be0-lcd0-tve0";
42 clocks = <&pll5 1>, <&ahb_gates 34>, <&ahb_gates 36>,
44 + <&ahb_gates 44>, <&dram_gates 26>;
49 clock-output-names = "spi3";
52 + dram_gates: clk@01c20100 {
54 + compatible = "allwinner,sun4i-a10-dram-gates-clk";
55 + reg = <0x01c20100 0x4>;
57 + clock-indices = <0>,
66 + clock-output-names = "dram_ve",
67 + "dram_csi0", "dram_csi1",
70 + "dram_tve0", "dram_tve1",
72 + "dram_de_fe1", "dram_de_fe0",
73 + "dram_de_be0", "dram_de_be1",
74 + "dram_de_mp", "dram_ace";
77 codec_clk: clk@01c20140 {
79 compatible = "allwinner,sun4i-a10-codec-clk";