blob: 5cc038332b1fff1064416d370919225a9d54c39f [file] [log] [blame]
/*
* Copyright (c) 2023 Lukas Jung <lukas.jung@mailbox.org>
* SPDX-License-Identifier: Apache-2.0
*/
/dts-v1/;
#include <atmel/samd5xx20.dtsi>
#include "adafruit_grand_central_m4_express-pinctrl.dtsi"
/ {
model = "Adafruit Grand Central M4 Express";
compatible = "adafruit,grand-central-m4-express";
chosen {
zephyr,console = &sercom0;
zephyr,shell-uart = &sercom0;
zephyr,sram = &sram0;
zephyr,flash = &flash0;
zephyr,code-partition = &code_partition;
};
/* These aliases are provided for compatibility with samples */
aliases {
led0 = &led0;
sdhc0 = &sdhc0;
};
leds {
compatible = "gpio-leds";
led0: led_0 {
gpios = <&portb 1 0>;
label = "LED";
};
};
};
&cpu0 {
clock-frequency = <120000000>;
};
&sercom0 {
status = "okay";
compatible = "atmel,sam0-uart";
current-speed = <115200>;
rxpo = <1>;
txpo = <0>;
pinctrl-0 = <&sercom0_uart_default>;
pinctrl-names = "default";
};
&sercom2 {
status = "okay";
compatible = "atmel,sam0-spi";
dipo = <3>;
dopo = <0>;
#address-cells = <1>;
#size-cells = <0>;
pinctrl-0 = <&sercom2_spi_default>;
pinctrl-names = "default";
cs-gpios = <&portb 28 GPIO_ACTIVE_LOW>;
/* microSD Card */
sdhc0: sdhc@0 {
status = "okay";
compatible = "zephyr,sdhc-spi-slot";
reg = <0>;
spi-max-frequency = <20000000>;
mmc {
status = "okay";
compatible = "zephyr,sdmmc-disk";
};
};
};
&sercom3 {
status = "okay";
compatible = "atmel,sam0-i2c";
clock-frequency = <I2C_BITRATE_FAST>;
#address-cells = <1>;
#size-cells = <0>;
pinctrl-0 = <&sercom3_i2c_default>;
pinctrl-names = "default";
};
&sercom7 {
status = "okay";
compatible = "atmel,sam0-spi";
dipo = <3>;
dopo = <0>;
#address-cells = <1>;
#size-cells = <0>;
pinctrl-0 = <&sercom7_spi_default>;
pinctrl-names = "default";
};
zephyr_udc0: &usb0 {
status = "okay";
pinctrl-0 = <&usb_dc_default>;
pinctrl-names = "default";
};
&dmac {
status = "okay";
};
&flash0 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
boot_partition: partition@0 {
label = "uf2";
reg = <0x00000000 DT_SIZE_K(16)>;
read-only;
};
code_partition: partition@4000 {
label = "code";
reg = <0x4000 DT_SIZE_K(1024-16)>;
read-only;
};
};
};