Message ID | 1441035401-5843-2-git-send-email-ulrich.hecht+renesas@gmail.com (mailing list archive) |
---|---|
State | RFC |
Delegated to: | Simon Horman |
Headers | show |
Hi Uli, On Mon, Aug 31, 2015 at 5:36 PM, Ulrich Hecht <ulrich.hecht+renesas@gmail.com> wrote: > --- a/arch/arm64/boot/dts/renesas/r8a7795.dtsi > +++ b/arch/arm64/boot/dts/renesas/r8a7795.dtsi > @@ -70,6 +70,14 @@ > #clock-cells = <1>; > ranges; > > + cp_clk: cp_clk { In the absence of "clock-output-names", the node should be called "cp", to avoid the clock name having a "_clk" suffix. > + compatible = "fixed-factor-clock"; > + clocks = <&extal_clk>; > + #clock-cells = <0>; > + clock-div = <2>; > + clock-mult = <1>; > + }; > + > zt_clk: zt { > compatible = "fixed-factor-clock"; > clocks = <&cpg_clocks R8A7795_CLK_PLL1>; > @@ -274,6 +282,22 @@ > #clock-cells = <1>; > clock-indices = <R8A7795_CLK_SCIF2>; > }; > + > + mstp9_clks: mstp9_clks@e6150994 { Likewise. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@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 -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/arch/arm64/boot/dts/renesas/r8a7795.dtsi b/arch/arm64/boot/dts/renesas/r8a7795.dtsi index 0df0dea..ca1970d 100644 --- a/arch/arm64/boot/dts/renesas/r8a7795.dtsi +++ b/arch/arm64/boot/dts/renesas/r8a7795.dtsi @@ -70,6 +70,14 @@ #clock-cells = <1>; ranges; + cp_clk: cp_clk { + compatible = "fixed-factor-clock"; + clocks = <&extal_clk>; + #clock-cells = <0>; + clock-div = <2>; + clock-mult = <1>; + }; + zt_clk: zt { compatible = "fixed-factor-clock"; clocks = <&cpg_clocks R8A7795_CLK_PLL1>; @@ -274,6 +282,22 @@ #clock-cells = <1>; clock-indices = <R8A7795_CLK_SCIF2>; }; + + mstp9_clks: mstp9_clks@e6150994 { + compatible = "renesas,r8a7795-mstp-clocks", + "renesas,cpg-mstp-clocks"; + reg = <0 0xe6150994 0 4>, <0 0xe61509a4 0 4>; + clocks = <&cp_clk>, <&cp_clk>, <&cp_clk>, + <&cp_clk>, <&cp_clk>, <&cp_clk>, + <&cp_clk>, <&cp_clk>; + #clock-cells = <1>; + clock-indices = < + R8A7795_CLK_GPIO7 R8A7795_CLK_GPIO6 + R8A7795_CLK_GPIO5 R8A7795_CLK_GPIO4 + R8A7795_CLK_GPIO3 R8A7795_CLK_GPIO2 + R8A7795_CLK_GPIO1 R8A7795_CLK_GPIO0 + >; + }; }; }; diff --git a/include/dt-bindings/clock/r8a7795-clock.h b/include/dt-bindings/clock/r8a7795-clock.h index d661602..bf7fd98 100644 --- a/include/dt-bindings/clock/r8a7795-clock.h +++ b/include/dt-bindings/clock/r8a7795-clock.h @@ -38,6 +38,14 @@ /* MSTP8 */ /* MSTP9 */ +#define R8A7795_CLK_GPIO0 12 +#define R8A7795_CLK_GPIO1 11 +#define R8A7795_CLK_GPIO2 10 +#define R8A7795_CLK_GPIO3 9 +#define R8A7795_CLK_GPIO4 8 +#define R8A7795_CLK_GPIO5 7 +#define R8A7795_CLK_GPIO6 6 +#define R8A7795_CLK_GPIO7 5 /* MSTP10 */