diff mbox

[RFC,1/5] ARM: shmobile: r8a7790: add mstp4 and rwdt clock

Message ID 1422802074-1921-2-git-send-email-wsa@the-dreams.de (mailing list archive)
State RFC
Headers show

Commit Message

Wolfram Sang Feb. 1, 2015, 2:47 p.m. UTC
From: Wolfram Sang <wsa+renesas@sang-engineering.com>

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
---
 arch/arm/boot/dts/r8a7790.dtsi            | 10 ++++++++++
 include/dt-bindings/clock/r8a7790-clock.h |  3 +++
 2 files changed, 13 insertions(+)

Comments

Laurent Pinchart Feb. 1, 2015, 3:50 p.m. UTC | #1
Hi Wolfram,

Thank you for the patch.

On Sunday 01 February 2015 15:47:50 Wolfram Sang wrote:
> From: Wolfram Sang <wsa+renesas@sang-engineering.com>
> 
> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>

Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

> ---
>  arch/arm/boot/dts/r8a7790.dtsi            | 10 ++++++++++
>  include/dt-bindings/clock/r8a7790-clock.h |  3 +++
>  2 files changed, 13 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/r8a7790.dtsi b/arch/arm/boot/dts/r8a7790.dtsi
> index 56847bf09c3b..999d437496de 100644
> --- a/arch/arm/boot/dts/r8a7790.dtsi
> +++ b/arch/arm/boot/dts/r8a7790.dtsi
> @@ -1126,6 +1126,16 @@
>  				"iic0", "pciec", "iic1", "ssusb", "cmt1",
>  				"usbdmac0", "usbdmac1";
>  		};
> +		mstp4_clks: mstp4_clks@e6150140 {
> +			compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-
clocks";
> +			reg = <0 0xe6150140 0 4>, <0 0xe615004c 0 4>;
> +			clocks = <&rclk_clk>;
> +			#clock-cells = <1>;
> +			clock-indices = <
> +				R8A7790_CLK_RWDT
> +			>;
> +			clock-output-names = "rwdt";
> +		};
>  		mstp5_clks: mstp5_clks@e6150144 {
>  			compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-
clocks";
>  			reg = <0 0xe6150144 0 4>, <0 0xe615003c 0 4>;
> diff --git a/include/dt-bindings/clock/r8a7790-clock.h
> b/include/dt-bindings/clock/r8a7790-clock.h index
> 91940271cf83..34e4c12e3f6e 100644
> --- a/include/dt-bindings/clock/r8a7790-clock.h
> +++ b/include/dt-bindings/clock/r8a7790-clock.h
> @@ -77,6 +77,9 @@
>  #define R8A7790_CLK_USBDMAC0		30
>  #define R8A7790_CLK_USBDMAC1		31
> 
> +/* MSTP4 */
> +#define R8A7790_CLK_RWDT		2
> +
>  /* MSTP5 */
>  #define R8A7790_CLK_AUDIO_DMAC1		1
>  #define R8A7790_CLK_AUDIO_DMAC0		2
Geert Uytterhoeven Feb. 2, 2015, 9:07 a.m. UTC | #2
On Sun, Feb 1, 2015 at 3:47 PM, Wolfram Sang <wsa@the-dreams.de> wrote:
> From: Wolfram Sang <wsa+renesas@sang-engineering.com>
>
> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>

Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>

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 mbox

Patch

diff --git a/arch/arm/boot/dts/r8a7790.dtsi b/arch/arm/boot/dts/r8a7790.dtsi
index 56847bf09c3b..999d437496de 100644
--- a/arch/arm/boot/dts/r8a7790.dtsi
+++ b/arch/arm/boot/dts/r8a7790.dtsi
@@ -1126,6 +1126,16 @@ 
 				"iic0", "pciec", "iic1", "ssusb", "cmt1",
 				"usbdmac0", "usbdmac1";
 		};
+		mstp4_clks: mstp4_clks@e6150140 {
+			compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks";
+			reg = <0 0xe6150140 0 4>, <0 0xe615004c 0 4>;
+			clocks = <&rclk_clk>;
+			#clock-cells = <1>;
+			clock-indices = <
+				R8A7790_CLK_RWDT
+			>;
+			clock-output-names = "rwdt";
+		};
 		mstp5_clks: mstp5_clks@e6150144 {
 			compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks";
 			reg = <0 0xe6150144 0 4>, <0 0xe615003c 0 4>;
diff --git a/include/dt-bindings/clock/r8a7790-clock.h b/include/dt-bindings/clock/r8a7790-clock.h
index 91940271cf83..34e4c12e3f6e 100644
--- a/include/dt-bindings/clock/r8a7790-clock.h
+++ b/include/dt-bindings/clock/r8a7790-clock.h
@@ -77,6 +77,9 @@ 
 #define R8A7790_CLK_USBDMAC0		30
 #define R8A7790_CLK_USBDMAC1		31
 
+/* MSTP4 */
+#define R8A7790_CLK_RWDT		2
+
 /* MSTP5 */
 #define R8A7790_CLK_AUDIO_DMAC1		1
 #define R8A7790_CLK_AUDIO_DMAC0		2