Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: horms@verge.net.au (Simon Horman)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/2] arm64: dts: renesas: r8a77980: add CAN-FD support
Date: Wed, 2 May 2018 11:36:01 +0200	[thread overview]
Message-ID: <20180502093601.6wokrocz4knh33ds@verge.net.au> (raw)
In-Reply-To: <f07c00b3-228c-e0d2-f7fe-38b8e9f25a4d@cogentembedded.com>

On Fri, Apr 27, 2018 at 10:12:51PM +0300, Sergei Shtylyov wrote:
> Define the generic R8A77980 part of the CAN-FD device node.
> 
> Based on the original (and large) patch by Vladimir Barinov.
> 
> Signed-off-by: Vladimir Barinov <vladimir.barinov@cogentembedded.com>
> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>

Thanks applied with the minor update noted below.

> 
> ---
>  arch/arm64/boot/dts/renesas/r8a77980.dtsi |   31 ++++++++++++++++++++++++++++++
>  1 file changed, 31 insertions(+)
> 
> Index: renesas/arch/arm64/boot/dts/renesas/r8a77980.dtsi
> ===================================================================
> --- renesas.orig/arch/arm64/boot/dts/renesas/r8a77980.dtsi
> +++ renesas/arch/arm64/boot/dts/renesas/r8a77980.dtsi
> @@ -38,6 +38,13 @@
>  		};
>  	};
>  
> +	/* External CAN clock - to be overridden by boards that provide it */
> +	can_clk: can {
> +		compatible = "fixed-clock";
> +		#clock-cells = <0>;
> +		clock-frequency = <0>;
> +	};
> +
>  	extal_clk: extal {
>  		compatible = "fixed-clock";
>  		#clock-cells = <0>;
> @@ -170,6 +177,30 @@
>  			status = "disabled";
>  		};
>  
> +		canfd: can at e66c0000 {
> +			compatible = "renesas,r8a77980-canfd",
> +				     "renesas,rcar-gen3-canfd";
> +			reg = <0 0xe66c0000 0 0x8000>;
> +			interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>,
> +				     <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
> +			clocks = <&cpg CPG_MOD 914>,
> +			         <&cpg CPG_CORE R8A77980_CLK_CANFD>,

checkpatch tells me that line above uses spaces for indentation where
a tab could be used. I fixed that up when applying the patch.

> +				 <&can_clk>;

> +			clock-names = "fck", "canfd", "can_clk";
> +			assigned-clocks = <&cpg CPG_CORE R8A77980_CLK_CANFD>;
> +			assigned-clock-rates = <40000000>;
> +			power-domains = <&sysc R8A77980_PD_ALWAYS_ON>;
> +			status = "disabled";
> +
> +			channel0 {
> +				status = "disabled";
> +			};
> +
> +			channel1 {
> +				status = "disabled";
> +			};
> +		};
> +
>  		avb: ethernet at e6800000 {
>  			compatible = "renesas,etheravb-r8a77980",
>  				     "renesas,etheravb-rcar-gen3";
> 

  reply	other threads:[~2018-05-02  9:36 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-27 19:10 [PATCH 0/2] Add R8A77980/Condor CAN-FD support Sergei Shtylyov
2018-04-27 19:12 ` [PATCH 1/2] arm64: dts: renesas: r8a77980: add " Sergei Shtylyov
2018-05-02  9:36   ` Simon Horman [this message]
2018-05-02  9:41     ` Sergei Shtylyov
2018-05-04  7:52   ` Geert Uytterhoeven
2018-05-09 17:54     ` Simon Horman
2018-04-27 19:14 ` [PATCH 2/2] arm64: dts: renesas: condor: " Sergei Shtylyov
2018-05-02  9:36   ` Simon Horman

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=20180502093601.6wokrocz4knh33ds@verge.net.au \
    --to=horms@verge.net.au \
    --cc=linux-arm-kernel@lists.infradead.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox