[PATCH 0/2] Add R8A7792 JPEG codec support

STALE3732d

5 messages, 3 authors, 2016-06-20 · open the first message on its own page

[PATCH 0/2] Add R8A7792 JPEG codec support

From: Sergei Shtylyov <hidden>
Date: 2016-06-16 22:00:36

Hello.

   Here's the set of 2 patches against Simon Horman's 'renesas.git' repo,
'renesas-devel-20160616-v4.7-rc3' tag. We add the device tree support for
the R8A7792 JPEG Processing Unit (JPU).

[1/2] ARM: dts: r8a7792: add JPU clocks
[2/2] ARM: dts: r8a7792: add JPU support

WBR, Sergei

[PATCH 1/2] ARM: dts: r8a7792: add JPU clocks

From: Sergei Shtylyov <hidden>
Date: 2016-06-16 22:02:48

Add JPU clock and its parent, M2 clock to the R8A7792 device tree.

Signed-off-by: Sergei Shtylyov <redacted>

---
 arch/arm/boot/dts/r8a7792.dtsi            |   16 ++++++++++++++++
 include/dt-bindings/clock/r8a7792-clock.h |    1 +
 2 files changed, 17 insertions(+)

Index: renesas/arch/arm/boot/dts/r8a7792.dtsi
===================================================================
--- renesas.orig/arch/arm/boot/dts/r8a7792.dtsi
+++ renesas/arch/arm/boot/dts/r8a7792.dtsi
@@ -280,8 +280,24 @@
 			clock-div = <48>;
 			clock-mult = <1>;
 		};
+		m2_clk: m2 {
+			compatible = "fixed-factor-clock";
+			clocks = <&cpg_clocks R8A7792_CLK_PLL1>;
+			#clock-cells = <0>;
+			clock-div = <8>;
+			clock-mult = <1>;
+		};
 
 		/* Gate clocks */
+		mstp1_clks: mstp1_clks at e6150134 {
+			compatible = "renesas,r8a7792-mstp-clocks",
+				     "renesas,cpg-mstp-clocks";
+			reg = <0 0xe6150134 0 4>, <0 0xe6150038 0 4>;
+			clocks = <&m2_clk>;
+			#clock-cells = <1>;
+			clock-indices = <R8A7792_CLK_JPU>;
+			clock-output-names = "jpu";
+		};
 		mstp2_clks: mstp2_clks at e6150138 {
 			compatible = "renesas,r8a7792-mstp-clocks",
 				     "renesas,cpg-mstp-clocks";
Index: renesas/include/dt-bindings/clock/r8a7792-clock.h
===================================================================
--- renesas.orig/include/dt-bindings/clock/r8a7792-clock.h
+++ renesas/include/dt-bindings/clock/r8a7792-clock.h
@@ -24,6 +24,7 @@
 #define R8A7792_CLK_MSIOF0		0
 
 /* MSTP1 */
+#define R8A7792_CLK_JPU			6
 #define R8A7792_CLK_TMU1		11
 #define R8A7792_CLK_TMU3		21
 #define R8A7792_CLK_TMU2		22

[PATCH 2/2] ARM: dts: r8a7792: add JPU support

From: Sergei Shtylyov <hidden>
Date: 2016-06-16 22:03:53

Describe JPEG Processing Unit (JPU) in the R8A7792 device tree.

Signed-off-by: Sergei Shtylyov <redacted>

---
 arch/arm/boot/dts/r8a7792.dtsi |    9 +++++++++
 1 file changed, 9 insertions(+)

Index: renesas/arch/arm/boot/dts/r8a7792.dtsi
===================================================================
--- renesas.orig/arch/arm/boot/dts/r8a7792.dtsi
+++ renesas/arch/arm/boot/dts/r8a7792.dtsi
@@ -246,6 +246,15 @@
 			status = "disabled";
 		};
 
+		jpu: jpeg-codec at fe980000 {
+			compatible = "renesas,jpu-r8a7792",
+				     "renesas,rcar-gen2-jpu";
+			reg = <0 0xfe980000 0 0x10300>;
+			interrupts = <GIC_SPI 272 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&mstp1_clks R8A7792_CLK_JPU>;
+			power-domains = <&sysc R8A7792_PD_ALWAYS_ON>;
+		};
+
 		/* Special CPG clocks */
 		cpg_clocks: cpg_clocks at e6150000 {
 			compatible = "renesas,r8a7792-cpg-clocks",

Re: [PATCH 1/2] ARM: dts: r8a7792: add JPU clocks

From: Geert Uytterhoeven <geert@linux-m68k.org>
Date: 2016-06-17 07:19:21

On Fri, Jun 17, 2016 at 12:02 AM, Sergei Shtylyov
[off-list ref] wrote:
Add JPU clock and its parent, M2 clock to the R8A7792 device tree.

Signed-off-by: Sergei Shtylyov <redacted>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

Re: [PATCH 0/2] Add R8A7792 JPEG codec support

From: Simon Horman <horms@verge.net.au>
Date: 2016-06-20 08:30:13

On Fri, Jun 17, 2016 at 01:00:36AM +0300, Sergei Shtylyov wrote:
Hello.

   Here's the set of 2 patches against Simon Horman's 'renesas.git' repo,
'renesas-devel-20160616-v4.7-rc3' tag. We add the device tree support for
the R8A7792 JPEG Processing Unit (JPU).

[1/2] ARM: dts: r8a7792: add JPU clocks
[2/2] ARM: dts: r8a7792: add JPU support
Thanks, I have queued these up.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help