Skip to content

Commit f1a2647

Browse files
committed
Merge tag 'at91-dt-6.14-2' of https://git.kernel.org/pub/scm/linux/kernel/git/at91/linux into soc/dt
Microchip AT91 device tree updates for v6.14 #2 This update includes: - device tree files for the SAMA7D65 SoC and its evaluation board * tag 'at91-dt-6.14-2' of https://git.kernel.org/pub/scm/linux/kernel/git/at91/linux: ARM: dts: microchip: add support for sama7d65_curiosity board ARM: dts: microchip: add sama7d65 SoC DT Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnd Bergmann <[email protected]>
2 parents 36ad662 + deaa14a commit f1a2647

File tree

3 files changed

+236
-0
lines changed

3 files changed

+236
-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+
};
Lines changed: 144 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,144 @@
1+
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2+
/*
3+
* sama7d65.dtsi - Device Tree Include file for SAMA7D65 SoC
4+
*
5+
* Copyright (C) 2024 Microchip Technology Inc. and its subsidiaries
6+
*
7+
* Author: Ryan Wanner <[email protected]>
8+
*
9+
*/
10+
11+
#include <dt-bindings/clock/at91.h>
12+
#include <dt-bindings/gpio/gpio.h>
13+
#include <dt-bindings/interrupt-controller/arm-gic.h>
14+
#include <dt-bindings/interrupt-controller/irq.h>
15+
#include <dt-bindings/mfd/at91-usart.h>
16+
17+
/ {
18+
model = "Microchip SAMA7D65 family SoC";
19+
compatible = "microchip,sama7d65";
20+
#address-cells = <1>;
21+
#size-cells = <1>;
22+
interrupt-parent = <&gic>;
23+
24+
cpus {
25+
#address-cells = <1>;
26+
#size-cells = <0>;
27+
28+
cpu0: cpu@0 {
29+
compatible = "arm,cortex-a7";
30+
reg = <0x0>;
31+
device_type = "cpu";
32+
clocks = <&pmc PMC_TYPE_CORE PMC_CPUPLL>;
33+
clock-names = "cpu";
34+
};
35+
};
36+
37+
clocks {
38+
main_xtal: clock-mainxtal {
39+
compatible = "fixed-clock";
40+
#clock-cells = <0>;
41+
};
42+
43+
slow_xtal: clock-slowxtal {
44+
compatible = "fixed-clock";
45+
#clock-cells = <0>;
46+
};
47+
};
48+
49+
soc {
50+
compatible = "simple-bus";
51+
ranges;
52+
#address-cells = <1>;
53+
#size-cells = <1>;
54+
55+
pioa: pinctrl@e0014000 {
56+
compatible = "microchip,sama7d65-pinctrl", "microchip,sama7g5-pinctrl";
57+
reg = <0xe0014000 0x800>;
58+
interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>,
59+
<GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
60+
<GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>,
61+
<GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>,
62+
<GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
63+
clocks = <&pmc PMC_TYPE_PERIPHERAL 10>;
64+
interrupt-controller;
65+
#interrupt-cells = <2>;
66+
gpio-controller;
67+
#gpio-cells = <2>;
68+
};
69+
70+
pmc: clock-controller@e0018000 {
71+
compatible = "microchip,sama7d65-pmc", "syscon";
72+
reg = <0xe0018000 0x200>;
73+
interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
74+
#clock-cells = <2>;
75+
clocks = <&clk32k 1>, <&clk32k 0>, <&main_xtal>;
76+
clock-names = "td_slck", "md_slck", "main_xtal";
77+
};
78+
79+
clk32k: clock-controller@e001d500 {
80+
compatible = "microchip,sama7d65-sckc", "microchip,sam9x60-sckc";
81+
reg = <0xe001d500 0x4>;
82+
clocks = <&slow_xtal>;
83+
#clock-cells = <1>;
84+
};
85+
86+
sdmmc1: mmc@e1208000 {
87+
compatible = "microchip,sama7d65-sdhci", "microchip,sam9x60-sdhci";
88+
reg = <0xe1208000 0x400>;
89+
interrupts = <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>;
90+
clocks = <&pmc PMC_TYPE_PERIPHERAL 76>, <&pmc PMC_TYPE_GCK 76>;
91+
clock-names = "hclock", "multclk";
92+
assigned-clocks = <&pmc PMC_TYPE_GCK 76>;
93+
assigned-clock-rates = <200000000>;
94+
assigned-clock-parents = <&pmc PMC_TYPE_CORE PMC_MCK1>;
95+
status = "disabled";
96+
};
97+
98+
pit64b0: timer@e1800000 {
99+
compatible = "microchip,sama7d65-pit64b", "microchip,sam9x60-pit64b";
100+
reg = <0xe1800000 0x100>;
101+
interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>;
102+
clocks = <&pmc PMC_TYPE_PERIPHERAL 66>, <&pmc PMC_TYPE_GCK 66>;
103+
clock-names = "pclk", "gclk";
104+
};
105+
106+
pit64b1: timer@e1804000 {
107+
compatible = "microchip,sama7d65-pit64b", "microchip,sam9x60-pit64b";
108+
reg = <0xe1804000 0x100>;
109+
interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>;
110+
clocks = <&pmc PMC_TYPE_PERIPHERAL 67>, <&pmc PMC_TYPE_GCK 67>;
111+
clock-names = "pclk", "gclk";
112+
};
113+
114+
flx6: flexcom@e2020000 {
115+
compatible = "microchip,sama7d65-flexcom", "atmel,sama5d2-flexcom";
116+
reg = <0xe2020000 0x200>;
117+
ranges = <0x0 0xe2020000 0x800>;
118+
#address-cells = <1>;
119+
#size-cells = <1>;
120+
clocks = <&pmc PMC_TYPE_PERIPHERAL 40>;
121+
status = "disabled";
122+
123+
uart6: serial@200 {
124+
compatible = "microchip,sama7d65-usart", "atmel,at91sam9260-usart";
125+
reg = <0x200 0x200>;
126+
interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
127+
clocks = <&pmc PMC_TYPE_PERIPHERAL 40>;
128+
clock-names = "usart";
129+
atmel,usart-mode = <AT91_USART_MODE_SERIAL>;
130+
atmel,fifo-size = <16>;
131+
status = "disabled";
132+
};
133+
};
134+
135+
gic: interrupt-controller@e8c11000 {
136+
compatible = "arm,cortex-a7-gic";
137+
reg = <0xe8c11000 0x1000>,
138+
<0xe8c12000 0x2000>;
139+
#interrupt-cells = <3>;
140+
#address-cells = <0>;
141+
interrupt-controller;
142+
};
143+
};
144+
};

0 commit comments

Comments
 (0)