2020-05-28 01:18:24 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2020 Google LLC.
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
/dts-v1/;
|
|
|
|
#include <atmel/samd5xx19.dtsi>
|
2022-03-11 09:42:59 +08:00
|
|
|
#include "adafruit_itsybitsy_m4_express-pinctrl.dtsi"
|
2020-05-28 01:18:24 +08:00
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "Adafruit ItsyBitsy M4 Express";
|
|
|
|
compatible = "adafruit,itsybitsy-m4-express";
|
|
|
|
|
|
|
|
chosen {
|
|
|
|
zephyr,console = &sercom3;
|
|
|
|
zephyr,shell-uart = &sercom3;
|
|
|
|
zephyr,sram = &sram0;
|
|
|
|
zephyr,flash = &flash0;
|
|
|
|
zephyr,code-partition = &code_partition;
|
|
|
|
};
|
|
|
|
|
|
|
|
/* These aliases are provided for compatibility with samples */
|
|
|
|
aliases {
|
|
|
|
led0 = &led0;
|
2020-05-29 23:35:41 +08:00
|
|
|
pwm-led0 = &pwm_led0;
|
|
|
|
pwm-0 = &tcc0;
|
2020-05-28 01:18:24 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
leds {
|
|
|
|
compatible = "gpio-leds";
|
|
|
|
led0: led_0 {
|
|
|
|
gpios = <&porta 22 0>;
|
|
|
|
label = "LED";
|
|
|
|
};
|
|
|
|
};
|
2020-05-29 23:35:41 +08:00
|
|
|
|
|
|
|
pwmleds {
|
|
|
|
compatible = "pwm-leds";
|
|
|
|
pwm_led0: pwm_led_0 {
|
2022-04-22 17:36:20 +08:00
|
|
|
pwms = <&tcc0 2 PWM_MSEC(20)>;
|
2020-05-29 23:35:41 +08:00
|
|
|
};
|
|
|
|
};
|
2020-05-28 01:18:24 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
&cpu0 {
|
|
|
|
clock-frequency = <120000000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&sercom3 {
|
|
|
|
status = "okay";
|
|
|
|
compatible = "atmel,sam0-uart";
|
|
|
|
current-speed = <115200>;
|
|
|
|
rxpo = <1>;
|
|
|
|
txpo = <0>;
|
2021-05-19 06:38:06 +08:00
|
|
|
|
2022-03-11 09:42:59 +08:00
|
|
|
pinctrl-0 = <&sercom3_uart_default>;
|
|
|
|
pinctrl-names = "default";
|
2020-05-28 01:18:24 +08:00
|
|
|
};
|
|
|
|
|
2020-05-29 23:35:41 +08:00
|
|
|
&sercom1 {
|
|
|
|
status = "okay";
|
|
|
|
compatible = "atmel,sam0-spi";
|
|
|
|
dipo = <3>;
|
|
|
|
dopo = <0>;
|
|
|
|
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
2022-03-13 11:22:39 +08:00
|
|
|
|
|
|
|
pinctrl-0 = <&sercom1_spi_default>;
|
|
|
|
pinctrl-names = "default";
|
2020-05-29 23:35:41 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
&tcc0 {
|
|
|
|
status = "okay";
|
|
|
|
compatible = "atmel,sam0-tcc-pwm";
|
|
|
|
prescaler = <8>;
|
2022-04-22 17:36:20 +08:00
|
|
|
#pwm-cells = <2>;
|
2022-03-13 23:30:30 +08:00
|
|
|
|
|
|
|
pinctrl-0 = <&pwm0_default>;
|
|
|
|
pinctrl-names = "default";
|
2020-05-29 23:35:41 +08:00
|
|
|
};
|
|
|
|
|
2021-08-05 21:46:23 +08:00
|
|
|
zephyr_udc0: &usb0 {
|
2020-05-29 23:35:41 +08:00
|
|
|
status = "okay";
|
2022-03-13 23:45:17 +08:00
|
|
|
|
|
|
|
pinctrl-0 = <&usb_dc_default>;
|
|
|
|
pinctrl-names = "default";
|
2020-05-29 23:35:41 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
&dmac {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2020-05-28 01:18:24 +08:00
|
|
|
&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(512-16-16)>;
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
* The final 16 KiB is reserved for the application.
|
|
|
|
* Storage partition will be used by FCB/LittleFS/NVS
|
|
|
|
* if enabled.
|
|
|
|
*/
|
|
|
|
storage_partition: partition@7c000 {
|
|
|
|
label = "storage";
|
|
|
|
reg = <0x7c000 DT_SIZE_K(16)>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|