Skip to contentSkip to conversation

ARM64: renesas: r8a7795: Add graphics-related MSTP clocks

DISCUSSION Laurent Pinchart 1 participant 1 message Oct 21, 2015 SuperH

lore
Share & tools
lore
#0 lore raw

Hi Geert,

Quoted 53 lines · On Wednesday 30 September 2015 14:19:34 Geert Uytterhoeven wrote:

Hi Laurent,

http://git.linuxtv.org/cgit.cgi/pinchartl/media.git/commit/?h=vsp1-kms-gen3-20150929&id12906b34fe88e4eceface078af9cd6b2fa0955e:

Quoted 36 lines
(quoted diff) +0 -0

b/arch/arm64/boot/dts/renesas/r8a7795.dtsi index
ed192d480e355e11..bcba6b4b86f8e24f 100644

arch/arm64/boot/dts/renesas/r8a7795.dtsi +2 -0
@@ -413,6 +413,41 @@
 
                                      clock-indices = <R8A7795_CLK_SCIF2>;
 
                              };
 
+                             mstp6_clks: mstp6@e61501c0 {
+                                     compatible > > "renesas,r8a7795-mstp-clocks", +                                         
        "renesas,cpg-mstp-clocks"; +                                    

reg = <0 0xe6150148 0 4>, <0 0xe61501c0 0 4>; +
clocks = <
+ &s2d1_clk &s2d1_clk
&s2d1_clk &s2d1_clk +
&s2d1_clk &s2d1_clk &s2d1_clk &s2d1_clk +

            &s2d1_clk
arch/arm64/boot/dts/renesas/r8a7795.dtsi +4 -0
+                                     >;
+                                     #clock-cells = <1>;
+                                     clock-indices = <
+                                             R8A7795_CLK_VSPD3

R8A7795_CLK_VSPD2 +
R8A7795_CLK_VSPD1 R8A7795_CLK_VSPD0 +

        R8A7795_CLK_VSPBC R8A7795_CLK_VSPBD +                            
                R8A7795_CLK_VSPI2 R8A7795_CLK_VSPI1 +                    
                        R8A7795_CLK_VSPI0
arch/arm64/boot/dts/renesas/r8a7795.dtsi +5 -0
+                                     >;
+                             };
+
+                             mstp7_clks: mstp7@e615014c {
+                                     compatible > > "renesas,r8a7795-mstp-clocks", +                                         
        "renesas,cpg-mstp-clocks"; +                                    

reg = <0 0xe615014c 0 4>, <0 0xe61501c4 0 4>; +

Quoted 4 lines
          clocks =  <&s2d1_clk>, <&s2d1_clk>, <&s2d1_clk>, +             
                                 <&s2d1_clk>, <&s2d1_clk>, <&s2d1_clk>, +
                                              <&lvds_clk>, <&hdmi_clk>,

<&hdmi_clk>;

This property counts 9 parent clocks...

Quoted 7 lines
arch/arm64/boot/dts/renesas/r8a7795.dtsi +3 -0
+                                     #clock-cells = <1>;
+                                     clock-indices = <
+                                             R8A7795_CLK_DU3

R8A7795_CLK_DU2 +
R8A7795_CLK_DU1 R8A7795_CLK_DU0 +

    R8A7795_CLK_LVDS R8A7795_CLK_HDMI1 +                                 
           R8A7795_CLK_HDMI0
Quoted 3 lines

... while this property counts only 7 indices.

I guess the first two parent clocks should be removed?

Oops :-) Yes, they should. I'll make sure to drop them when porting the patch to the mssr DT bindings.

Quoted 2 lines
Quoted 2 lines
arch/arm64/boot/dts/renesas/r8a7795.dtsi +2 -0
+                                     >;
+                             };
Signature · 3 lines
Regards,

Laurent Pinchart