All of lore.kernel.org
 help / color / mirror / Atom feed
From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: linux-sh@vger.kernel.org
Subject: Re: [PATCH v8 04/07] arm64: renesas: r8a7795 dtsi: Add all SCIF nodes
Date: Mon, 31 Aug 2015 10:40:22 +0000	[thread overview]
Message-ID: <1725723.s5bbTO4ZUM@avalon> (raw)
In-Reply-To: <20150831062952.24004.17072.sendpatchset@little-apple>

Hi Magnus and Geert,

Thank you for the patch.

On Monday 31 August 2015 15:29:52 Magnus Damm wrote:
> From: Geert Uytterhoeven <geert+renesas@glider.be>
> 
> Add the device nodes for all R-Car H3 SCIF serial ports, incl. clocks,
> clock domain, and dma properties.
> 
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
> Signed-off-by: Gaku Inami <gaku.inami.xw@bp.renesas.com>
> Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
> ---
> 
>  Based on:
>   [PATCH 9/25] arm64: renesas: r8a7795: Add SCIF2 support
>   [PATCH 1/6] arm64: renesas: r8a7795 dtsi: Mark scif2 disabled
>   [PATCH 3/6] arm64: renesas: r8a7795 dtsi: Add all SCIF nodes
> 
>  Changes: (Magnus Damm <damm+renesas@opensource.se>)
>  - Folded together above SCIF2 patches
>  - Added SCIF2 DMA bits
>  - Got rid of clock-output-names
>  - Replaced renesas,clock-indices with clock-indices
> 
>  TODO:
>  - Double check if R-Car H3 SCIF2 really has DMA support or not
> 
>  arch/arm64/boot/dts/renesas/r8a7795.dtsi  |  105 ++++++++++++++++++++++++++
>  include/dt-bindings/clock/r8a7795-clock.h |    6 +
>  2 files changed, 111 insertions(+)
> 
> --- 0014/arch/arm64/boot/dts/renesas/r8a7795.dtsi
> +++ work/arch/arm64/boot/dts/renesas/r8a7795.dtsi	2015-08-29
> 18:25:06.922366518 +0900 @@ -231,6 +231,11 @@
>  			};
> 
>  			cpg_clocks: cpg_clocks@e6150000 {
> +				#address-cells = <2>;
> +				#size-cells = <2>;
> +				#clock-cells = <1>;
> +				ranges;
> +
>  				compatible = "renesas,r8a7795-cpg-clocks",
>  					     "renesas,rcar-gen3-cpg-clocks";
>  				reg = <0 0xe6150000 0 0x1000>;
> @@ -241,6 +246,34 @@
>  					R8A7795_CLK_PLL3 R8A7795_CLK_PLL4
> 
>  				>;
> 
>  				#power-domain-cells = <0>;
> +
> +				mstp2_clks: mstp2_clks@e6150138 {
> +					compatible > +						"renesas,r8a7795-mstp-clocks",
> +						"renesas,cpg-mstp-clocks";
> +					reg = <0 0xe6150138 0 4>,
> +					      <0 0xe6150040 0 4>;
> +					clocks = <&s3d4_clk>, <&s3d4_clk>,
> +						 <&s3d4_clk>, <&s3d4_clk>,
> +						 <&s3d4_clk>;
> +					#clock-cells = <1>;
> +					clock-indices = <
> +						R8A7795_CLK_SCIF5
> +						R8A7795_CLK_SCIF4
> +						R8A7795_CLK_SCIF3
> +						R8A7795_CLK_SCIF1
> +						R8A7795_CLK_SCIF0
> +					>;
> +				};
> +
> +				mstp3_clks: mstp3_clks@e615013c {
> +					compatible = "renesas,r8a7795-mstp-clocks",
> +					             "renesas,cpg-mstp-clocks";
> +					reg = <0 0xe615013c 0 4>, <0 0xe6150048 0 4>;
> +					clocks =  <&s3d4_clk>;
> +					#clock-cells = <1>;
> +					clock-indices = <R8A7795_CLK_SCIF2>;
> +				};
>  			};
>  		};
> 
> @@ -255,5 +288,77 @@
>  		dmac2: dma-controller@e7310000 {
>  			/* Empty node for now */
>  		};
> +
> +		scif0: serial@e6e60000 {
> +			compatible = "renesas,scif-r8a7795", "renesas,scif";
> +			reg = <0 0xe6e60000 0 64>;
> +			interrupts = <GIC_SPI 152 IRQ_TYPE_LEVEL_HIGH>;
> +			clocks = <&mstp2_clks R8A7795_CLK_SCIF0>;
> +			clock-names = "sci_ick";
> +			dmas = <&dmac1 0x51>, <&dmac1 0x50>;
> +			dma-names = "tx", "rx";
> +			power-domains = <&cpg_clocks>;
> +			status = "disabled";
> +		};
> +
> +		scif1: serial@e6e68000 {
> +			compatible = "renesas,scif-r8a7795", "renesas,scif";
> +			reg = <0 0xe6e68000 0 64>;
> +			interrupts = <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>;
> +			clocks = <&mstp2_clks R8A7795_CLK_SCIF1>;
> +			clock-names = "sci_ick";
> +			dmas = <&dmac1 0x53>, <&dmac1 0x52>;
> +			dma-names = "tx", "rx";
> +			power-domains = <&cpg_clocks>;
> +			status = "disabled";
> +		};
> +
> +		scif2: serial@e6e88000 {
> +			compatible = "renesas,scif-r8a7795", "renesas,scif";
> +			reg = <0 0xe6e88000 0 64>;
> +			interrupts = <GIC_SPI 164 IRQ_TYPE_LEVEL_HIGH>;
> +			clocks = <&mstp3_clks R8A7795_CLK_SCIF2>;
> +			clock-names = "sci_ick";
> +			dmas = <&dmac0 0x55>, <&dmac0 0x54>;
> +			dma-names = "tx", "rx";

Depending at which version of the datasheet you look at SCIF2 will or will not 
support DMA. This needs to be clarified, in the meantime I'd drop the DMA 
channels.

Apart from that, everything looks good to me.

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

> +			power-domains = <&cpg_clocks>;
> +			status = "disabled";
> +		};
> +
> +		scif3: serial@e6c50000 {
> +			compatible = "renesas,scif-r8a7795", "renesas,scif";
> +			reg = <0 0xe6c50000 0 64>;
> +			interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
> +			clocks = <&mstp2_clks R8A7795_CLK_SCIF3>;
> +			clock-names = "sci_ick";
> +			dmas = <&dmac0 0x57>, <&dmac0 0x56>;
> +			dma-names = "tx", "rx";
> +			power-domains = <&cpg_clocks>;
> +			status = "disabled";
> +		};
> +
> +		scif4: serial@e6c40000 {
> +			compatible = "renesas,scif-r8a7795", "renesas,scif";
> +			reg = <0 0xe6c40000 0 64>;
> +			interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
> +			clocks = <&mstp2_clks R8A7795_CLK_SCIF4>;
> +			clock-names = "sci_ick";
> +			dmas = <&dmac0 0x59>, <&dmac0 0x58>;
> +			dma-names = "tx", "rx";
> +			power-domains = <&cpg_clocks>;
> +			status = "disabled";
> +		};
> +
> +		scif5: serial@e6f30000 {
> +			compatible = "renesas,scif-r8a7795", "renesas,scif";
> +			reg = <0 0xe6f30000 0 64>;
> +			interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
> +			clocks = <&mstp2_clks R8A7795_CLK_SCIF5>;
> +			clock-names = "sci_ick";
> +			dmas = <&dmac1 0x5b>, <&dmac1 0x5a>;
> +			dma-names = "tx", "rx";
> +			power-domains = <&cpg_clocks>;
> +			status = "disabled";
> +		};
>  	};
>  };
> --- 0012/include/dt-bindings/clock/r8a7795-clock.h
> +++ work/include/dt-bindings/clock/r8a7795-clock.h	2015-08-29
> 18:22:14.282366518 +0900 @@ -22,8 +22,14 @@
>  /* MSTP1 */
> 
>  /* MSTP2 */
> +#define R8A7795_CLK_SCIF5		2
> +#define R8A7795_CLK_SCIF4		3
> +#define R8A7795_CLK_SCIF3		4
> +#define R8A7795_CLK_SCIF1		6
> +#define R8A7795_CLK_SCIF0		7
> 
>  /* MSTP3 */
> +#define R8A7795_CLK_SCIF2		10
> 
>  /* MSTP5 */

-- 
Regards,

Laurent Pinchart


  reply	other threads:[~2015-08-31 10:40 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-31  6:29 [PATCH v8 04/07] arm64: renesas: r8a7795 dtsi: Add all SCIF nodes Magnus Damm
2015-08-31 10:40 ` Laurent Pinchart [this message]
2015-08-31 12:47 ` Geert Uytterhoeven
2015-08-31 12:59 ` Magnus Damm
2015-08-31 13:08 ` Geert Uytterhoeven
2015-09-03  7:41 ` Magnus Damm
2015-09-03  7:54 ` Geert Uytterhoeven
2015-09-03  8:06 ` Magnus Damm
2015-09-03  8:23 ` Geert Uytterhoeven
2015-09-03  8:28 ` Magnus Damm
2015-09-03 11:48 ` Laurent Pinchart
2015-09-03 19:03 ` Geert Uytterhoeven
2015-09-07 19:43 ` Laurent Pinchart

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1725723.s5bbTO4ZUM@avalon \
    --to=laurent.pinchart@ideasonboard.com \
    --cc=linux-sh@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.