Skip to content

Commit ec9a309

Browse files
ryan-wannerclaudiubeznea
authored andcommitted
ARM: dts: microchip: sama7d65: Add CAN bus support
Add support for CAN bus to the SAMA7D65 SoC. Signed-off-by: Ryan Wanner <Ryan.Wanner@microchip.com> Reviewed-by: Claudiu Beznea <claudiu.beznea@tuxon.dev> Link: https://lore.kernel.org/r/f80a4206c05ed5d80a9527476963a18070ca42b6.1749666053.git.Ryan.Wanner@microchip.com Signed-off-by: Claudiu Beznea <claudiu.beznea@tuxon.dev>
1 parent a9ea0d5 commit ec9a309

1 file changed

Lines changed: 80 additions & 0 deletions

File tree

arch/arm/boot/dts/microchip/sama7d65.dtsi

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,86 @@
163163
reg = <0xe0020000 0x8>;
164164
};
165165

166+
can0: can@e0828000 {
167+
compatible = "bosch,m_can";
168+
reg = <0xe0828000 0x200>, <0x100000 0x7800>;
169+
reg-names = "m_can", "message_ram";
170+
interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>,
171+
<GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH>;
172+
interrupt-names = "int0", "int1";
173+
clocks = <&pmc PMC_TYPE_PERIPHERAL 58>, <&pmc PMC_TYPE_GCK 58>;
174+
clock-names = "hclk", "cclk";
175+
assigned-clocks = <&pmc PMC_TYPE_GCK 58>;
176+
assigned-clock-rates = <40000000>;
177+
assigned-clock-parents = <&pmc PMC_TYPE_CORE PMC_UTMI>;
178+
bosch,mram-cfg = <0x3400 0 0 64 0 0 32 32>;
179+
status = "disabled";
180+
};
181+
182+
can1: can@e082c000 {
183+
compatible = "bosch,m_can";
184+
reg = <0xe082c000 0x200>, <0x100000 0xbc00>;
185+
reg-names = "m_can", "message_ram";
186+
interrupts = <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>,
187+
<GIC_SPI 115 IRQ_TYPE_LEVEL_HIGH>;
188+
interrupt-names = "int0", "int1";
189+
clocks = <&pmc PMC_TYPE_PERIPHERAL 59>, <&pmc PMC_TYPE_GCK 59>;
190+
clock-names = "hclk", "cclk";
191+
assigned-clocks = <&pmc PMC_TYPE_GCK 59>;
192+
assigned-clock-rates = <40000000>;
193+
assigned-clock-parents = <&pmc PMC_TYPE_CORE PMC_UTMI>;
194+
bosch,mram-cfg = <0x7800 0 0 64 0 0 32 32>;
195+
status = "disabled";
196+
};
197+
198+
can2: can@e0830000 {
199+
compatible = "bosch,m_can";
200+
reg = <0xe0830000 0x200>, <0x100000 0x10000>;
201+
reg-names = "m_can", "message_ram";
202+
interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>,
203+
<GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>;
204+
interrupt-names = "int0", "int1";
205+
clocks = <&pmc PMC_TYPE_PERIPHERAL 60>, <&pmc PMC_TYPE_GCK 60>;
206+
clock-names = "hclk", "cclk";
207+
assigned-clocks = <&pmc PMC_TYPE_GCK 60>;
208+
assigned-clock-rates = <40000000>;
209+
assigned-clock-parents = <&pmc PMC_TYPE_CORE PMC_UTMI>;
210+
bosch,mram-cfg = <0xbc00 0 0 64 0 0 32 32>;
211+
status = "disabled";
212+
};
213+
214+
can3: can@e0834000 {
215+
compatible = "bosch,m_can";
216+
reg = <0xe0834000 0x200>, <0x110000 0x4400>;
217+
reg-names = "m_can", "message_ram";
218+
interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>,
219+
<GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>;
220+
interrupt-names = "int0", "int1";
221+
clocks = <&pmc PMC_TYPE_PERIPHERAL 61>, <&pmc PMC_TYPE_GCK 61>;
222+
clock-names = "hclk", "cclk";
223+
assigned-clocks = <&pmc PMC_TYPE_GCK 61>;
224+
assigned-clock-rates = <40000000>;
225+
assigned-clock-parents = <&pmc PMC_TYPE_CORE PMC_UTMI>;
226+
bosch,mram-cfg = <0x0 0 0 64 0 0 32 32>;
227+
status = "disabled";
228+
};
229+
230+
can4: can@e0838000 {
231+
compatible = "bosch,m_can";
232+
reg = <0xe0838000 0x200>, <0x110000 0x8800>;
233+
reg-names = "m_can", "message_ram";
234+
interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>,
235+
<GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>;
236+
interrupt-names = "int0", "int1";
237+
clocks = <&pmc PMC_TYPE_PERIPHERAL 62>, <&pmc PMC_TYPE_GCK 62>;
238+
clock-names = "hclk", "cclk";
239+
assigned-clocks = <&pmc PMC_TYPE_GCK 62>;
240+
assigned-clock-rates = <40000000>;
241+
assigned-clock-parents = <&pmc PMC_TYPE_CORE PMC_UTMI>;
242+
bosch,mram-cfg = <0x4400 0 0 64 0 0 32 32>;
243+
status = "disabled";
244+
};
245+
166246
dma2: dma-controller@e1200000 {
167247
compatible = "microchip,sama7d65-dma", "microchip,sama7g5-dma";
168248
reg = <0xe1200000 0x1000>;

0 commit comments

Comments
 (0)