* [PATCH] ARM: shmobile: r8a7794: Add MMCIF clock to device tree
@ 2014-12-13 0:09 Simon Horman
2014-12-15 10:52 ` Geert Uytterhoeven
0 siblings, 1 reply; 3+ messages in thread
From: Simon Horman @ 2014-12-13 0:09 UTC (permalink / raw)
To: linux-arm-kernel
From: Shinobu Uehara <shinobu.uehara.xc@renesas.com>
Signed-off-by: Shinobu Uehara <shinobu.uehara.xc@renesas.com>
[horms: omitted device node; only add clock]
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
Based on the renesas-devel-20141212-v3.18 tag of my renesas tree
Depends on
"[PATCH v2] ARM: shmobile: r8a7794: Add SDHI clocks to device tree"
to apply cleanly.
v1 [Simon Horman]
* Removed portion of patch which adds device node
* Renamed patch from
"ARM: shmobile: r8a7794: Add MMCIF clock and device to device tree" to
"ARM: shmobile: r8a7794: Add MMCIF clock to device tree"
---
arch/arm/boot/dts/r8a7794.dtsi | 15 +++++++++++----
include/dt-bindings/clock/r8a7794-clock.h | 1 +
2 files changed, 12 insertions(+), 4 deletions(-)
diff --git a/arch/arm/boot/dts/r8a7794.dtsi b/arch/arm/boot/dts/r8a7794.dtsi
index 8794df8..fd8a19c 100644
--- a/arch/arm/boot/dts/r8a7794.dtsi
+++ b/arch/arm/boot/dts/r8a7794.dtsi
@@ -308,6 +308,13 @@
#clock-cells = <0>;
clock-output-names = "sd2";
};
+ mmc0_clk: mmc0_clk at e6150240 {
+ compatible = "renesas,r8a7794-div6-clock", "renesas,cpg-div6-clock";
+ reg = <0 0xe6150240 0 4>;
+ clocks = <&pll1_div2_clk>;
+ #clock-cells = <0>;
+ clock-output-names = "mmc0";
+ };
/* Fixed factor clocks */
pll1_div2_clk: pll1_div2_clk {
@@ -512,16 +519,16 @@
compatible = "renesas,r8a7794-mstp-clocks", "renesas,cpg-mstp-clocks";
reg = <0 0xe615013c 0 4>, <0 0xe6150048 0 4>;
clocks = <&sd2_clk>, <&sd1_clk>, <&cpg_clocks R8A7794_CLK_SD0>,
- <&rclk_clk>, <&hp_clk>, <&hp_clk>;
+ <&mmc0_clk>, <&rclk_clk>, <&hp_clk>, <&hp_clk>;
#clock-cells = <1>;
clock-indices = <
R8A7794_CLK_SDHI2 R8A7794_CLK_SDHI1 R8A7794_CLK_SDHI0
- R8A7794_CLK_CMT1 R8A7794_CLK_USBDMAC0
- R8A7794_CLK_USBDMAC1
+ R8A7794_CLK_CMT1 R8A7794_CLK_MMCIF0
+ R8A7794_CLK_USBDMAC0 R8A7794_CLK_USBDMAC1
>;
clock-output-names =
"sdhi2", "sdhi1", "sdhi0",
- "cmt1", "usbdmac0", "usbdmac1";
+ "mmcif0", "cmt1", "usbdmac0", "usbdmac1";
};
mstp7_clks: mstp7_clks at e615014c {
compatible = "renesas,r8a7794-mstp-clocks", "renesas,cpg-mstp-clocks";
diff --git a/include/dt-bindings/clock/r8a7794-clock.h b/include/dt-bindings/clock/r8a7794-clock.h
index f013cdc..4555b0f 100644
--- a/include/dt-bindings/clock/r8a7794-clock.h
+++ b/include/dt-bindings/clock/r8a7794-clock.h
@@ -55,6 +55,7 @@
#define R8A7794_CLK_SDHI2 11
#define R8A7794_CLK_SDHI1 12
#define R8A7794_CLK_SDHI0 14
+#define R8A7794_CLK_MMCIF0 15
#define R8A7794_CLK_CMT1 29
#define R8A7794_CLK_USBDMAC0 30
#define R8A7794_CLK_USBDMAC1 31
--
2.1.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH] ARM: shmobile: r8a7794: Add MMCIF clock to device tree
2014-12-13 0:09 [PATCH] ARM: shmobile: r8a7794: Add MMCIF clock to device tree Simon Horman
@ 2014-12-15 10:52 ` Geert Uytterhoeven
2014-12-17 0:20 ` Simon Horman
0 siblings, 1 reply; 3+ messages in thread
From: Geert Uytterhoeven @ 2014-12-15 10:52 UTC (permalink / raw)
To: linux-arm-kernel
On Sat, Dec 13, 2014 at 1:09 AM, Simon Horman
<horms+renesas@verge.net.au> wrote:
> From: Shinobu Uehara <shinobu.uehara.xc@renesas.com>
>
> Signed-off-by: Shinobu Uehara <shinobu.uehara.xc@renesas.com>
> [horms: omitted device node; only add clock]
> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
>
> ---
> Based on the renesas-devel-20141212-v3.18 tag of my renesas tree
>
> Depends on
> "[PATCH v2] ARM: shmobile: r8a7794: Add SDHI clocks to device tree"
> to apply cleanly.
>
> v1 [Simon Horman]
> * Removed portion of patch which adds device node
> * Renamed patch from
> "ARM: shmobile: r8a7794: Add MMCIF clock and device to device tree" to
> "ARM: shmobile: r8a7794: Add MMCIF clock to device tree"
> ---
> arch/arm/boot/dts/r8a7794.dtsi | 15 +++++++++++----
> include/dt-bindings/clock/r8a7794-clock.h | 1 +
> 2 files changed, 12 insertions(+), 4 deletions(-)
>
> diff --git a/arch/arm/boot/dts/r8a7794.dtsi b/arch/arm/boot/dts/r8a7794.dtsi
> index 8794df8..fd8a19c 100644
> --- a/arch/arm/boot/dts/r8a7794.dtsi
> +++ b/arch/arm/boot/dts/r8a7794.dtsi
> @@ -308,6 +308,13 @@
> #clock-cells = <0>;
> clock-output-names = "sd2";
> };
> + mmc0_clk: mmc0_clk at e6150240 {
> + compatible = "renesas,r8a7794-div6-clock", "renesas,cpg-div6-clock";
> + reg = <0 0xe6150240 0 4>;
> + clocks = <&pll1_div2_clk>;
> + #clock-cells = <0>;
> + clock-output-names = "mmc0";
> + };
>
> /* Fixed factor clocks */
> pll1_div2_clk: pll1_div2_clk {
> @@ -512,16 +519,16 @@
> compatible = "renesas,r8a7794-mstp-clocks", "renesas,cpg-mstp-clocks";
> reg = <0 0xe615013c 0 4>, <0 0xe6150048 0 4>;
> clocks = <&sd2_clk>, <&sd1_clk>, <&cpg_clocks R8A7794_CLK_SD0>,
> - <&rclk_clk>, <&hp_clk>, <&hp_clk>;
> + <&mmc0_clk>, <&rclk_clk>, <&hp_clk>, <&hp_clk>;
> #clock-cells = <1>;
> clock-indices = <
> R8A7794_CLK_SDHI2 R8A7794_CLK_SDHI1 R8A7794_CLK_SDHI0
> - R8A7794_CLK_CMT1 R8A7794_CLK_USBDMAC0
> - R8A7794_CLK_USBDMAC1
> + R8A7794_CLK_CMT1 R8A7794_CLK_MMCIF0
R8A7794_CLK_MMCIF0 R8A7794_CLK_CMT1
> + R8A7794_CLK_USBDMAC0 R8A7794_CLK_USBDMAC1
> >;
> clock-output-names =
> "sdhi2", "sdhi1", "sdhi0",
> - "cmt1", "usbdmac0", "usbdmac1";
> + "mmcif0", "cmt1", "usbdmac0", "usbdmac1";
> };
> mstp7_clks: mstp7_clks at e615014c {
> compatible = "renesas,r8a7794-mstp-clocks", "renesas,cpg-mstp-clocks";
> diff --git a/include/dt-bindings/clock/r8a7794-clock.h b/include/dt-bindings/clock/r8a7794-clock.h
> index f013cdc..4555b0f 100644
> --- a/include/dt-bindings/clock/r8a7794-clock.h
> +++ b/include/dt-bindings/clock/r8a7794-clock.h
> @@ -55,6 +55,7 @@
> #define R8A7794_CLK_SDHI2 11
> #define R8A7794_CLK_SDHI1 12
> #define R8A7794_CLK_SDHI0 14
> +#define R8A7794_CLK_MMCIF0 15
> #define R8A7794_CLK_CMT1 29
> #define R8A7794_CLK_USBDMAC0 30
> #define R8A7794_CLK_USBDMAC1 31
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] ARM: shmobile: r8a7794: Add MMCIF clock to device tree
2014-12-15 10:52 ` Geert Uytterhoeven
@ 2014-12-17 0:20 ` Simon Horman
0 siblings, 0 replies; 3+ messages in thread
From: Simon Horman @ 2014-12-17 0:20 UTC (permalink / raw)
To: linux-arm-kernel
On Mon, Dec 15, 2014 at 11:52:16AM +0100, Geert Uytterhoeven wrote:
> On Sat, Dec 13, 2014 at 1:09 AM, Simon Horman
> <horms+renesas@verge.net.au> wrote:
> > From: Shinobu Uehara <shinobu.uehara.xc@renesas.com>
> >
> > Signed-off-by: Shinobu Uehara <shinobu.uehara.xc@renesas.com>
> > [horms: omitted device node; only add clock]
> > Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
> >
> > ---
> > Based on the renesas-devel-20141212-v3.18 tag of my renesas tree
> >
> > Depends on
> > "[PATCH v2] ARM: shmobile: r8a7794: Add SDHI clocks to device tree"
> > to apply cleanly.
> >
> > v1 [Simon Horman]
> > * Removed portion of patch which adds device node
> > * Renamed patch from
> > "ARM: shmobile: r8a7794: Add MMCIF clock and device to device tree" to
> > "ARM: shmobile: r8a7794: Add MMCIF clock to device tree"
> > ---
> > arch/arm/boot/dts/r8a7794.dtsi | 15 +++++++++++----
> > include/dt-bindings/clock/r8a7794-clock.h | 1 +
> > 2 files changed, 12 insertions(+), 4 deletions(-)
> >
> > diff --git a/arch/arm/boot/dts/r8a7794.dtsi b/arch/arm/boot/dts/r8a7794.dtsi
> > index 8794df8..fd8a19c 100644
> > --- a/arch/arm/boot/dts/r8a7794.dtsi
> > +++ b/arch/arm/boot/dts/r8a7794.dtsi
> > @@ -308,6 +308,13 @@
> > #clock-cells = <0>;
> > clock-output-names = "sd2";
> > };
> > + mmc0_clk: mmc0_clk at e6150240 {
> > + compatible = "renesas,r8a7794-div6-clock", "renesas,cpg-div6-clock";
> > + reg = <0 0xe6150240 0 4>;
> > + clocks = <&pll1_div2_clk>;
> > + #clock-cells = <0>;
> > + clock-output-names = "mmc0";
> > + };
> >
> > /* Fixed factor clocks */
> > pll1_div2_clk: pll1_div2_clk {
> > @@ -512,16 +519,16 @@
> > compatible = "renesas,r8a7794-mstp-clocks", "renesas,cpg-mstp-clocks";
> > reg = <0 0xe615013c 0 4>, <0 0xe6150048 0 4>;
> > clocks = <&sd2_clk>, <&sd1_clk>, <&cpg_clocks R8A7794_CLK_SD0>,
> > - <&rclk_clk>, <&hp_clk>, <&hp_clk>;
> > + <&mmc0_clk>, <&rclk_clk>, <&hp_clk>, <&hp_clk>;
> > #clock-cells = <1>;
> > clock-indices = <
> > R8A7794_CLK_SDHI2 R8A7794_CLK_SDHI1 R8A7794_CLK_SDHI0
> > - R8A7794_CLK_CMT1 R8A7794_CLK_USBDMAC0
> > - R8A7794_CLK_USBDMAC1
> > + R8A7794_CLK_CMT1 R8A7794_CLK_MMCIF0
>
> R8A7794_CLK_MMCIF0 R8A7794_CLK_CMT1
Thanks, I have queued up this patch after making that change.
>
> > + R8A7794_CLK_USBDMAC0 R8A7794_CLK_USBDMAC1
> > >;
> > clock-output-names =
> > "sdhi2", "sdhi1", "sdhi0",
> > - "cmt1", "usbdmac0", "usbdmac1";
> > + "mmcif0", "cmt1", "usbdmac0", "usbdmac1";
> > };
> > mstp7_clks: mstp7_clks at e615014c {
> > compatible = "renesas,r8a7794-mstp-clocks", "renesas,cpg-mstp-clocks";
> > diff --git a/include/dt-bindings/clock/r8a7794-clock.h b/include/dt-bindings/clock/r8a7794-clock.h
> > index f013cdc..4555b0f 100644
> > --- a/include/dt-bindings/clock/r8a7794-clock.h
> > +++ b/include/dt-bindings/clock/r8a7794-clock.h
> > @@ -55,6 +55,7 @@
> > #define R8A7794_CLK_SDHI2 11
> > #define R8A7794_CLK_SDHI1 12
> > #define R8A7794_CLK_SDHI0 14
> > +#define R8A7794_CLK_MMCIF0 15
> > #define R8A7794_CLK_CMT1 29
> > #define R8A7794_CLK_USBDMAC0 30
> > #define R8A7794_CLK_USBDMAC1 31
>
> 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
> --
> To unsubscribe from this list: send the line "unsubscribe linux-sh" in
> the body of a message to majordomo at vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-12-17 0:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-13 0:09 [PATCH] ARM: shmobile: r8a7794: Add MMCIF clock to device tree Simon Horman
2014-12-15 10:52 ` Geert Uytterhoeven
2014-12-17 0:20 ` Simon Horman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).