Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1284504 > unrolled thread
| Started by | Chen-Yu Tsai <wens@csie.org> |
|---|---|
| First post | 2015-12-05 10:10 +0100 |
| Last post | 2015-12-05 10:10 +0100 |
| Articles | 3 — 1 participant |
Back to article view | Back to linux.kernel
[PATCH 0/6] ARM: sunxi: Add support for A10/A20 Video Engine clocks Chen-Yu Tsai <wens@csie.org> - 2015-12-05 10:10 +0100
[PATCH 3/6] ARM: dts: sun4i: Add DRAM gates Chen-Yu Tsai <wens@csie.org> - 2015-12-05 10:10 +0100
[PATCH 4/6] ARM: dts: sun4i: Add VE (Video Engine) module clock node Chen-Yu Tsai <wens@csie.org> - 2015-12-05 10:10 +0100
| From | Chen-Yu Tsai <wens@csie.org> |
|---|---|
| Date | 2015-12-05 10:10 +0100 |
| Subject | [PATCH 0/6] ARM: sunxi: Add support for A10/A20 Video Engine clocks |
| Message-ID | <qCh0R-7yx-3@gated-at.bofh.it> |
Hi everyone, This series adds support for the clocks used by the Video Engine (VPU / video codec hardware) on the Allwinner A10/A20. The series purposely excludes sun5i (A10s/A13/R8) to avoid any conflicts with Maxime's KMS driver series, but adding it should be easy. VE clocks for the newer generation of SoCs are the same, except the reset control is moved to the common bus reset controls. These can be supported later on. The series is meant to get platform stuff out of the way so people who want to work on a proper driver for the VPU can do so. The patches are pretty self-explanatory. Regards ChenYu Chen-Yu Tsai (6): clk: sunxi: Add DRAM gates support for sun4i-a10 clk: sunxi: Add VE (Video Engine) module clock driver for sun[457]i ARM: dts: sun4i: Add DRAM gates ARM: dts: sun4i: Add VE (Video Engine) module clock node ARM: dts: sun7i: Add DRAM gates ARM: dts: sun7i: Add VE (Video Engine) module clock node Documentation/devicetree/bindings/clock/sunxi.txt | 5 + arch/arm/boot/dts/sun4i-a10.dtsi | 45 +++++- arch/arm/boot/dts/sun7i-a20.dtsi | 41 +++++- drivers/clk/sunxi/Makefile | 1 + drivers/clk/sunxi/clk-a10-ve.c | 171 ++++++++++++++++++++++ drivers/clk/sunxi/clk-simple-gates.c | 12 ++ 6 files changed, 268 insertions(+), 7 deletions(-) create mode 100644 drivers/clk/sunxi/clk-a10-ve.c -- 2.6.2 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [next] | [standalone]
| From | Chen-Yu Tsai <wens@csie.org> |
|---|---|
| Date | 2015-12-05 10:10 +0100 |
| Subject | [PATCH 3/6] ARM: dts: sun4i: Add DRAM gates |
| Message-ID | <qCh0R-7yx-11@gated-at.bofh.it> |
| In reply to | #1284504 |
The DRAM gates controls direct memory access for some peripherals.
These peripherals include the display pipeline, so add the required
gates to the simplefb nodes as well.
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
---
arch/arm/boot/dts/sun4i-a10.dtsi | 36 ++++++++++++++++++++++++++++++++----
1 file changed, 32 insertions(+), 4 deletions(-)
diff --git a/arch/arm/boot/dts/sun4i-a10.dtsi b/arch/arm/boot/dts/sun4i-a10.dtsi
index aa90f319309b..849d0242ece8 100644
--- a/arch/arm/boot/dts/sun4i-a10.dtsi
+++ b/arch/arm/boot/dts/sun4i-a10.dtsi
@@ -66,7 +66,7 @@
"simple-framebuffer";
allwinner,pipeline = "de_be0-lcd0-hdmi";
clocks = <&pll5 1>, <&ahb_gates 36>, <&ahb_gates 43>,
- <&ahb_gates 44>;
+ <&ahb_gates 44>, <&dram_gates 26>;
status = "disabled";
};
@@ -75,7 +75,8 @@
"simple-framebuffer";
allwinner,pipeline = "de_fe0-de_be0-lcd0-hdmi";
clocks = <&pll5 1>, <&ahb_gates 36>, <&ahb_gates 43>,
- <&ahb_gates 44>, <&ahb_gates 46>;
+ <&ahb_gates 44>, <&ahb_gates 46>,
+ <&dram_gates 25>, <&dram_gates 26>;
status = "disabled";
};
@@ -84,7 +85,8 @@
"simple-framebuffer";
allwinner,pipeline = "de_fe0-de_be0-lcd0";
clocks = <&pll5 1>, <&ahb_gates 36>, <&ahb_gates 44>,
- <&ahb_gates 46>;
+ <&ahb_gates 46>, <&dram_gates 25>,
+ <&dram_gates 26>;
status = "disabled";
};
@@ -93,7 +95,8 @@
"simple-framebuffer";
allwinner,pipeline = "de_fe0-de_be0-lcd0-tve0";
clocks = <&pll5 1>, <&ahb_gates 34>, <&ahb_gates 36>,
- <&ahb_gates 44>, <&ahb_gates 46>;
+ <&ahb_gates 44>, <&ahb_gates 46>,
+ <&dram_gates 25>, <&dram_gates 26>;
status = "disabled";
};
};
@@ -492,6 +495,31 @@
clock-output-names = "spi3";
};
+ dram_gates: clk@01c20100 {
+ #clock-cells = <1>;
+ compatible = "allwinner,sun4i-a10-dram-gates-clk";
+ reg = <0x01c20100 0x4>;
+ clocks = <&pll5 0>;
+ clock-indices = <0>,
+ <1>, <2>,
+ <3>,
+ <4>,
+ <5>, <6>,
+ <15>,
+ <24>, <25>,
+ <26>, <27>,
+ <28>, <29>;
+ clock-output-names = "dram_ve",
+ "dram_csi0", "dram_csi1",
+ "dram_ts",
+ "dram_tvd",
+ "dram_tve0", "dram_tve1",
+ "dram_output",
+ "dram_de_fe1", "dram_de_fe0",
+ "dram_de_be0", "dram_de_be1",
+ "dram_de_mp", "dram_ace";
+ };
+
codec_clk: clk@01c20140 {
#clock-cells = <0>;
compatible = "allwinner,sun4i-a10-codec-clk";
--
2.6.2
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Chen-Yu Tsai <wens@csie.org> |
|---|---|
| Date | 2015-12-05 10:10 +0100 |
| Subject | [PATCH 4/6] ARM: dts: sun4i: Add VE (Video Engine) module clock node |
| Message-ID | <qCh0R-7yx-15@gated-at.bofh.it> |
| In reply to | #1284504 |
The video engine has its own module clock, which also includes a
reset control for it.
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
---
arch/arm/boot/dts/sun4i-a10.dtsi | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/arch/arm/boot/dts/sun4i-a10.dtsi b/arch/arm/boot/dts/sun4i-a10.dtsi
index 849d0242ece8..2c8f5e6ad905 100644
--- a/arch/arm/boot/dts/sun4i-a10.dtsi
+++ b/arch/arm/boot/dts/sun4i-a10.dtsi
@@ -520,6 +520,15 @@
"dram_de_mp", "dram_ace";
};
+ ve_clk: clk@01c2013c {
+ #clock-cells = <0>;
+ #reset-cells = <0>;
+ compatible = "allwinner,sun4i-a10-ve-clk";
+ reg = <0x01c2013c 0x4>;
+ clocks = <&pll4>;
+ clock-output-names = "ve";
+ };
+
codec_clk: clk@01c20140 {
#clock-cells = <0>;
compatible = "allwinner,sun4i-a10-codec-clk";
--
2.6.2
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web