Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1420581

Re: [PATCH v2 11/17] sh: SH7750/51 clock driver

From Geert Uytterhoeven <geert@linux-m68k.org>
Newsgroups linux.kernel
Subject Re: [PATCH v2 11/17] sh: SH7750/51 clock driver
Date 2016-06-13 10:20 +0200
Message-ID <rJvgd-3EL-31@gated-at.bofh.it> (permalink)
References <rJ7xf-5js-3@gated-at.bofh.it> <rJ7xg-5js-29@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi Sato-san,

On Sun, Jun 12, 2016 at 8:54 AM, Yoshinori Sato
<ysato@users.sourceforge.jp> wrote:
> Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
> ---
>  .../bindings/clock/renesas,sh7750-div-clock.txt    |  27 +++
>  .../bindings/clock/renesas,sh7750-pll-clock.txt    |  26 +++
>  drivers/clk/sh/clk-sh7750.c                        | 240 +++++++++++++++++++++
>  3 files changed, 293 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/clock/renesas,sh7750-div-clock.txt
>  create mode 100644 Documentation/devicetree/bindings/clock/renesas,sh7750-pll-clock.txt
>  create mode 100644 drivers/clk/sh/clk-sh7750.c
>
> diff --git a/Documentation/devicetree/bindings/clock/renesas,sh7750-div-clock.txt b/Documentation/devicetree/bindings/clock/renesas,sh7750-div-clock.txt
> new file mode 100644
> index 0000000..8c57ab5
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/clock/renesas,sh7750-div-clock.txt
> @@ -0,0 +1,27 @@
> +* Renesas SH7750/51 divider clock
> +
> +Required Properties:
> +
> +  - compatible: Must be "renesas,sh7750-div-clock"
> +
> +  - clocks: Reference to the parent clocks (mostly PLL)
> +
> +  - #clock-cells: Must be 0
> +
> +  - reg: Base address and length of the divide rate selector
> +
> +  - renesas,offset: bit offset of selector
> +
> +  - clock-output-names: The names of the clocks.
> +
> +Example
> +-------
> +
> +        iclk: iclk {
> +                compatible = "renesas,sh7750-div-clock";
> +                clocks = <&pllclk>;
> +                #clock-cells = <0>;
> +                reg = <0xffc00000 2>;
> +               renesas,offset = <6>;
> +               clock-output-names = "ick";
> +        };
> diff --git a/Documentation/devicetree/bindings/clock/renesas,sh7750-pll-clock.txt b/Documentation/devicetree/bindings/clock/renesas,sh7750-pll-clock.txt
> new file mode 100644
> index 0000000..06a3d31
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/clock/renesas,sh7750-pll-clock.txt

> +CLK_OF_DECLARE(sh7750_div_clk, "renesas,sh7750-div-clock",
> +              sh7750_div_clk_setup);
> +CLK_OF_DECLARE(sh7750_pll_clk, "renesas,sh7750-pll-clock",
> +              sh7750_pll_clk_setup);
> +

Cfr. my comment on the .dtsi, which didn't have linux-clk in CC:

I think it will be much easier for maintenance and code reuse to just have a
single "cpg" node that's compatible with "renesas,sh7750-cpg", covering all
CPG registers. Especially since the various clocks use the same registers.

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

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v2 00/17] sh: LANDISK convert to device tree Yoshinori Sato <ysato@users.sourceforge.jp> - 2016-06-12 09:00 +0200
  [PATCH v2 10/17] sh: convert generic drivers framework Yoshinori Sato <ysato@users.sourceforge.jp> - 2016-06-12 09:00 +0200
    Re: [PATCH v2 10/17] sh: convert generic drivers framework Geert Uytterhoeven <geert@linux-m68k.org> - 2016-06-13 10:10 +0200
  [PATCH v2 11/17] sh: SH7750/51 clock driver Yoshinori Sato <ysato@users.sourceforge.jp> - 2016-06-12 09:00 +0200
    Re: [PATCH v2 11/17] sh: SH7750/51 clock driver Geert Uytterhoeven <geert@linux-m68k.org> - 2016-06-13 10:20 +0200
  [PATCH v2 09/17] sh: Use GENERIC_IOMAP on device tree mode Yoshinori Sato <ysato@users.sourceforge.jp> - 2016-06-12 09:00 +0200
  [PATCH v2 14/17] sh: SH3/4 Generic IRQCHIP driever Yoshinori Sato <ysato@users.sourceforge.jp> - 2016-06-12 09:00 +0200
    [PATCH v2 14/17] sh: SH3/4 Generic IRQCHIP driever Yoshinori Sato <ysato@users.sourceforge.jp> - 2016-06-12 09:50 +0200
      Re: [PATCH v2 14/17] sh: SH3/4 Generic IRQCHIP driever Rob Herring <robh@kernel.org> - 2016-06-15 00:20 +0200
  [PATCH v2 13/17] sh: Add PCI definetion Yoshinori Sato <ysato@users.sourceforge.jp> - 2016-06-12 09:00 +0200
    Re: [PATCH v2 13/17] sh: Add PCI definetion Geert Uytterhoeven <geert@linux-m68k.org> - 2016-06-13 10:10 +0200
  [PATCH v2 01/17] sh: Add sh-specific early_init_dt_reserve_memory_arch Yoshinori Sato <ysato@users.sourceforge.jp> - 2016-06-12 09:00 +0200
    Re: [PATCH v2 01/17] sh: Add sh-specific  early_init_dt_reserve_memory_arch Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> - 2016-06-12 13:30 +0200

csiph-web