Skip to content

Commit deaa14a

Browse files
Romain Sioenclaudiubeznea
authored andcommitted
ARM: dts: microchip: add support for sama7d65_curiosity board
Add device tree support for the SAMA7D65 Curiosity board. Update the Makefile to include the new device tree file. uart6 is related to flexcom6, hence not sorted in alphabetical order. Signed-off-by: Romain Sioen <[email protected]> Signed-off-by: Varshini Rajendran <[email protected]> Signed-off-by: Ryan Wanner <[email protected]> Link: https://lore.kernel.org/r/[email protected] [claudiu.beznea: moved chosen node after alias for aphanumerically sortage, added a space in front of <PIN_PD19__FLEXCOM6_IO1> for alignment] Signed-off-by: Claudiu Beznea <[email protected]>
1 parent 261dcfa commit deaa14a

File tree

2 files changed

+92
-0
lines changed

2 files changed

+92
-0
lines changed

arch/arm/boot/dts/microchip/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ DTC_FLAGS_at91-sama5d2_xplained := -@
1212
DTC_FLAGS_at91-sama5d3_eds := -@
1313
DTC_FLAGS_at91-sama5d3_xplained := -@
1414
DTC_FLAGS_at91-sama5d4_xplained := -@
15+
DTC_FLAGS_at91-sama7d65_curiosity := -@
1516
DTC_FLAGS_at91-sama7g54_curiosity := -@
1617
DTC_FLAGS_at91-sama7g5ek := -@
1718
dtb-$(CONFIG_SOC_AT91RM9200) += \
@@ -90,6 +91,8 @@ dtb-$(CONFIG_SOC_SAM_V7) += \
9091
at91-sama5d4_xplained.dtb \
9192
at91-sama5d4ek.dtb \
9293
at91-vinco.dtb
94+
dtb-$(CONFIG_SOC_SAMA7D65) += \
95+
at91-sama7d65_curiosity.dtb
9396
dtb-$(CONFIG_SOC_SAMA7G5) += \
9497
at91-sama7g54_curiosity.dtb \
9598
at91-sama7g5ek.dtb
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2+
/*
3+
* at91-sama7d65_curiosity.dts - Device Tree file for SAMA7D65 Curiosity board
4+
*
5+
* Copyright (c) 2024 Microchip Technology Inc. and its subsidiaries
6+
*
7+
* Author: Romain Sioen <[email protected]>
8+
*
9+
*/
10+
/dts-v1/;
11+
#include "sama7d65-pinfunc.h"
12+
#include "sama7d65.dtsi"
13+
#include <dt-bindings/mfd/atmel-flexcom.h>
14+
#include <dt-bindings/pinctrl/at91.h>
15+
16+
/ {
17+
model = "Microchip SAMA7D65 Curiosity";
18+
compatible = "microchip,sama7d65-curiosity", "microchip,sama7d65",
19+
"microchip,sama7d6", "microchip,sama7";
20+
21+
aliases {
22+
serial0 = &uart6;
23+
};
24+
25+
chosen {
26+
stdout-path = "serial0:115200n8";
27+
};
28+
29+
memory@60000000 {
30+
device_type = "memory";
31+
reg = <0x60000000 0x40000000>;
32+
};
33+
};
34+
35+
&flx6 {
36+
atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_USART>;
37+
status = "okay";
38+
};
39+
40+
&uart6 {
41+
pinctrl-names = "default";
42+
pinctrl-0 = <&pinctrl_uart6_default>;
43+
status = "okay";
44+
};
45+
46+
&main_xtal {
47+
clock-frequency = <24000000>;
48+
};
49+
50+
&pioa {
51+
pinctrl_sdmmc1_default: sdmmc1-default {
52+
cmd-data {
53+
pinmux = <PIN_PB22__SDMMC1_CMD>,
54+
<PIN_PB24__SDMMC1_DAT0>,
55+
<PIN_PB25__SDMMC1_DAT1>,
56+
<PIN_PB26__SDMMC1_DAT2>,
57+
<PIN_PB27__SDMMC1_DAT3>;
58+
slew-rate = <0>;
59+
bias-disable;
60+
};
61+
62+
ck-cd-rstn-vddsel {
63+
pinmux = <PIN_PB23__SDMMC1_CK>,
64+
<PIN_PB21__SDMMC1_RSTN>,
65+
<PIN_PB30__SDMMC1_1V8SEL>,
66+
<PIN_PB29__SDMMC1_CD>,
67+
<PIN_PB28__SDMMC1_WP>;
68+
slew-rate = <0>;
69+
bias-disable;
70+
};
71+
};
72+
73+
pinctrl_uart6_default: uart6-default {
74+
pinmux = <PIN_PD18__FLEXCOM6_IO0>,
75+
<PIN_PD19__FLEXCOM6_IO1>;
76+
bias-disable;
77+
};
78+
};
79+
80+
&sdmmc1 {
81+
bus-width = <4>;
82+
pinctrl-names = "default";
83+
pinctrl-0 = <&pinctrl_sdmmc1_default>;
84+
status = "okay";
85+
};
86+
87+
&slow_xtal {
88+
clock-frequency = <32768>;
89+
};

0 commit comments

Comments
 (0)