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 <romain.sioen@microchip.com>
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&dma0 {
36	status = "okay";
37};
38
39&dma1 {
40	status = "okay";
41};
42
43&dma2 {
44	status = "okay";
45};
46
47&flx6 {
48	atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_USART>;
49	status = "okay";
50};
51
52&uart6 {
53	pinctrl-names = "default";
54	pinctrl-0 = <&pinctrl_uart6_default>;
55	status = "okay";
56};
57
58&flx10 {
59	atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_TWI>;
60	status = "okay";
61};
62
63&i2c10 {
64	dmas = <0>, <0>;
65	i2c-analog-filter;
66	i2c-digital-filter;
67	i2c-digital-filter-width-ns = <35>;
68	pinctrl-names = "default";
69	pinctrl-0 = <&pinctrl_i2c10_default>;
70	status = "okay";
71
72	power-monitor@10 {
73		compatible = "microchip,pac1934";
74		reg = <0x10>;
75		#address-cells = <1>;
76		#size-cells = <0>;
77
78		channel@1 {
79			reg = <0x1>;
80			shunt-resistor-micro-ohms = <47000>;
81			label = "VDD3V3";
82		};
83
84		channel@2 {
85			reg = <0x2>;
86			shunt-resistor-micro-ohms = <47000>;
87			label = "VDDIODDR";
88		};
89
90		channel@3 {
91			reg = <0x3>;
92			shunt-resistor-micro-ohms = <47000>;
93			label = "VDDCORE";
94		};
95
96		channel@4 {
97			reg = <0x4>;
98			shunt-resistor-micro-ohms = <47000>;
99			label = "VDDCPU";
100		};
101	};
102};
103
104&main_xtal {
105	clock-frequency = <24000000>;
106};
107
108&pioa {
109	pinctrl_i2c10_default: i2c10-default{
110		pinmux = <PIN_PB19__FLEXCOM10_IO1>,
111			 <PIN_PB20__FLEXCOM10_IO0>;
112		bias-pull-up;
113	};
114
115	pinctrl_sdmmc1_default: sdmmc1-default {
116		cmd-data {
117			pinmux = <PIN_PB22__SDMMC1_CMD>,
118				 <PIN_PB24__SDMMC1_DAT0>,
119				 <PIN_PB25__SDMMC1_DAT1>,
120				 <PIN_PB26__SDMMC1_DAT2>,
121				 <PIN_PB27__SDMMC1_DAT3>;
122			slew-rate = <0>;
123			bias-disable;
124		};
125
126		ck-cd-rstn-vddsel {
127			pinmux = <PIN_PB23__SDMMC1_CK>,
128				 <PIN_PB21__SDMMC1_RSTN>,
129				 <PIN_PB30__SDMMC1_1V8SEL>,
130				 <PIN_PB29__SDMMC1_CD>,
131				 <PIN_PB28__SDMMC1_WP>;
132			slew-rate = <0>;
133			bias-disable;
134		};
135	};
136
137	pinctrl_uart6_default: uart6-default {
138		pinmux = <PIN_PD18__FLEXCOM6_IO0>,
139			 <PIN_PD19__FLEXCOM6_IO1>;
140		bias-disable;
141	};
142};
143
144&sdmmc1 {
145	bus-width = <4>;
146	pinctrl-names = "default";
147	pinctrl-0 = <&pinctrl_sdmmc1_default>;
148	status = "okay";
149};
150
151&shdwc {
152	debounce-delay-us = <976>;
153	status = "okay";
154
155	input@0 {
156		reg = <0>;
157	};
158};
159
160&slow_xtal {
161	clock-frequency = <32768>;
162};
163