linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: dts: lan966x: Add mcan1 node.
@ 2022-06-27 11:05 Kavyasree Kotagiri
  2022-07-01  8:16 ` Nicolas Ferre
  2022-07-04  6:48 ` Claudiu.Beznea
  0 siblings, 2 replies; 3+ messages in thread
From: Kavyasree Kotagiri @ 2022-06-27 11:05 UTC (permalink / raw)
  To: alexandre.belloni, krzysztof.kozlowski+dt, robh+dt, nicolas.ferre
  Cc: arnd, soc, linux-arm-kernel, devicetree, linux-kernel,
	UNGLinuxDriver, Kavyasree.Kotagiri

Add the mcan1 node. By default, keep it disabled.

Signed-off-by: Kavyasree Kotagiri <kavyasree.kotagiri@microchip.com>
---
 arch/arm/boot/dts/lan966x.dtsi | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/arch/arm/boot/dts/lan966x.dtsi b/arch/arm/boot/dts/lan966x.dtsi
index 3cb02fffe716..25cfa89dde7b 100644
--- a/arch/arm/boot/dts/lan966x.dtsi
+++ b/arch/arm/boot/dts/lan966x.dtsi
@@ -473,6 +473,21 @@
 			status = "disabled";
 		};
 
+		can1: can@e0820000 {
+			compatible = "bosch,m_can";
+			reg = <0xe0820000 0xfc>, <0x00100000 0x8000>;
+			reg-names = "m_can", "message_ram";
+			interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>,
+				     <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>;
+			interrupt-names = "int0", "int1";
+			clocks = <&clks GCK_ID_MCAN1>, <&clks GCK_ID_MCAN1>;
+			clock-names = "hclk", "cclk";
+			assigned-clocks = <&clks GCK_ID_MCAN1>;
+			assigned-clock-rates = <40000000>;
+			bosch,mram-cfg = <0x4000 0 0 64 0 0 32 32>;
+			status = "disabled";
+		};
+
 		reset: reset-controller@e200400c {
 			compatible = "microchip,lan966x-switch-reset";
 			reg = <0xe200400c 0x4>;
-- 
2.17.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] ARM: dts: lan966x: Add mcan1 node.
  2022-06-27 11:05 [PATCH] ARM: dts: lan966x: Add mcan1 node Kavyasree Kotagiri
@ 2022-07-01  8:16 ` Nicolas Ferre
  2022-07-04  6:48 ` Claudiu.Beznea
  1 sibling, 0 replies; 3+ messages in thread
From: Nicolas Ferre @ 2022-07-01  8:16 UTC (permalink / raw)
  To: Kavyasree Kotagiri, alexandre.belloni, krzysztof.kozlowski+dt,
	robh+dt, Claudiu Beznea
  Cc: arnd, soc, linux-arm-kernel, devicetree, linux-kernel, UNGLinuxDriver

On 27/06/2022 at 13:05, Kavyasree Kotagiri wrote:
> Add the mcan1 node. By default, keep it disabled.
> 
> Signed-off-by: Kavyasree Kotagiri <kavyasree.kotagiri@microchip.com>

Looks good to me:
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>

We'll queue in the next dt branch soon, for integration through arm-soc 
tree.

Thanks, regards,
   Nicolas

> ---
>   arch/arm/boot/dts/lan966x.dtsi | 15 +++++++++++++++
>   1 file changed, 15 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/lan966x.dtsi b/arch/arm/boot/dts/lan966x.dtsi
> index 3cb02fffe716..25cfa89dde7b 100644
> --- a/arch/arm/boot/dts/lan966x.dtsi
> +++ b/arch/arm/boot/dts/lan966x.dtsi
> @@ -473,6 +473,21 @@
>   			status = "disabled";
>   		};
>   
> +		can1: can@e0820000 {
> +			compatible = "bosch,m_can";
> +			reg = <0xe0820000 0xfc>, <0x00100000 0x8000>;
> +			reg-names = "m_can", "message_ram";
> +			interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>,
> +				     <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>;
> +			interrupt-names = "int0", "int1";
> +			clocks = <&clks GCK_ID_MCAN1>, <&clks GCK_ID_MCAN1>;
> +			clock-names = "hclk", "cclk";
> +			assigned-clocks = <&clks GCK_ID_MCAN1>;
> +			assigned-clock-rates = <40000000>;
> +			bosch,mram-cfg = <0x4000 0 0 64 0 0 32 32>;
> +			status = "disabled";
> +		};
> +
>   		reset: reset-controller@e200400c {
>   			compatible = "microchip,lan966x-switch-reset";
>   			reg = <0xe200400c 0x4>;


-- 
Nicolas Ferre

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] ARM: dts: lan966x: Add mcan1 node.
  2022-06-27 11:05 [PATCH] ARM: dts: lan966x: Add mcan1 node Kavyasree Kotagiri
  2022-07-01  8:16 ` Nicolas Ferre
@ 2022-07-04  6:48 ` Claudiu.Beznea
  1 sibling, 0 replies; 3+ messages in thread
From: Claudiu.Beznea @ 2022-07-04  6:48 UTC (permalink / raw)
  To: Kavyasree.Kotagiri, alexandre.belloni, krzysztof.kozlowski+dt,
	robh+dt, Nicolas.Ferre
  Cc: arnd, soc, linux-arm-kernel, devicetree, linux-kernel, UNGLinuxDriver

On 27.06.2022 14:05, Kavyasree Kotagiri wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
> 
> Add the mcan1 node. By default, keep it disabled.
> 
> Signed-off-by: Kavyasree Kotagiri <kavyasree.kotagiri@microchip.com>

Applied to at91-dt, thanks!

> ---
>  arch/arm/boot/dts/lan966x.dtsi | 15 +++++++++++++++
>  1 file changed, 15 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/lan966x.dtsi b/arch/arm/boot/dts/lan966x.dtsi
> index 3cb02fffe716..25cfa89dde7b 100644
> --- a/arch/arm/boot/dts/lan966x.dtsi
> +++ b/arch/arm/boot/dts/lan966x.dtsi
> @@ -473,6 +473,21 @@
>                         status = "disabled";
>                 };
> 
> +               can1: can@e0820000 {
> +                       compatible = "bosch,m_can";
> +                       reg = <0xe0820000 0xfc>, <0x00100000 0x8000>;
> +                       reg-names = "m_can", "message_ram";
> +                       interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>,
> +                                    <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>;
> +                       interrupt-names = "int0", "int1";
> +                       clocks = <&clks GCK_ID_MCAN1>, <&clks GCK_ID_MCAN1>;
> +                       clock-names = "hclk", "cclk";
> +                       assigned-clocks = <&clks GCK_ID_MCAN1>;
> +                       assigned-clock-rates = <40000000>;
> +                       bosch,mram-cfg = <0x4000 0 0 64 0 0 32 32>;
> +                       status = "disabled";
> +               };
> +
>                 reset: reset-controller@e200400c {
>                         compatible = "microchip,lan966x-switch-reset";
>                         reg = <0xe200400c 0x4>;
> --
> 2.17.1
> 
> 
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-07-04  6:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-27 11:05 [PATCH] ARM: dts: lan966x: Add mcan1 node Kavyasree Kotagiri
2022-07-01  8:16 ` Nicolas Ferre
2022-07-04  6:48 ` Claudiu.Beznea

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).