2017-11-22 09:01:18 +01:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2017 Google LLC.
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
/dts-v1/;
|
|
|
|
#include <atmel/samd21.dtsi>
|
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "Arduino Zero";
|
|
|
|
compatible = "arduino,zero", "atmel,samd21g18a", "atmel,samd21";
|
|
|
|
|
|
|
|
chosen {
|
|
|
|
zephyr,console = &sercom5;
|
2018-11-27 12:11:04 +01:00
|
|
|
zephyr,shell-uart = &sercom5;
|
2017-11-22 09:01:18 +01:00
|
|
|
zephyr,sram = &sram0;
|
|
|
|
zephyr,flash = &flash0;
|
|
|
|
};
|
2018-10-05 02:25:35 +02:00
|
|
|
|
|
|
|
/* These aliases are provided for compatibility with samples */
|
|
|
|
aliases {
|
|
|
|
led0 = &led0;
|
|
|
|
led1 = &led1;
|
|
|
|
led2 = &led2;
|
2020-06-12 22:01:44 +02:00
|
|
|
pwm-led0 = &pwm_led0;
|
2018-10-05 02:25:35 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
leds {
|
|
|
|
compatible = "gpio-leds";
|
|
|
|
led0: led_0 {
|
|
|
|
gpios = <&porta 17 0>;
|
|
|
|
label = "LED";
|
|
|
|
};
|
|
|
|
led1: led_1 {
|
|
|
|
gpios = <&porta 27 0>;
|
|
|
|
label = "TX";
|
|
|
|
};
|
|
|
|
led2: led_2 {
|
|
|
|
gpios = <&portb 3 0>;
|
|
|
|
label = "RX";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2020-06-12 22:01:44 +02:00
|
|
|
pwmleds {
|
|
|
|
compatible = "pwm-leds";
|
|
|
|
|
|
|
|
pwm_led0: pwm_led_0 {
|
|
|
|
pwms = <&tcc2 1>;
|
|
|
|
};
|
|
|
|
};
|
2017-11-22 09:01:18 +01:00
|
|
|
};
|
|
|
|
|
2019-06-21 14:47:08 +02:00
|
|
|
&cpu0 {
|
|
|
|
clock-frequency = <48000000>;
|
|
|
|
};
|
|
|
|
|
2018-01-28 20:13:54 +01:00
|
|
|
&sercom0 {
|
2019-06-14 19:31:16 +02:00
|
|
|
status = "okay";
|
2018-01-28 20:13:54 +01:00
|
|
|
compatible = "atmel,sam0-uart";
|
2017-11-22 09:01:18 +01:00
|
|
|
current-speed = <115200>;
|
2018-11-01 10:46:46 +01:00
|
|
|
rxpo = <3>;
|
|
|
|
txpo = <1>;
|
2017-11-22 09:01:18 +01:00
|
|
|
};
|
2018-01-28 20:13:54 +01:00
|
|
|
|
|
|
|
&sercom5 {
|
2019-06-14 19:31:16 +02:00
|
|
|
status = "okay";
|
2018-01-28 20:13:54 +01:00
|
|
|
compatible = "atmel,sam0-uart";
|
2017-11-22 09:01:18 +01:00
|
|
|
current-speed = <115200>;
|
2018-11-01 10:46:46 +01:00
|
|
|
rxpo = <3>;
|
|
|
|
txpo = <1>;
|
2017-11-22 09:01:18 +01:00
|
|
|
};
|
2018-01-05 20:31:08 +01:00
|
|
|
|
2018-01-28 20:13:54 +01:00
|
|
|
&sercom4 {
|
2019-06-14 19:31:16 +02:00
|
|
|
status = "okay";
|
2018-01-28 20:13:54 +01:00
|
|
|
compatible = "atmel,sam0-spi";
|
2018-11-01 11:15:59 +01:00
|
|
|
dipo = <0>;
|
|
|
|
dopo = <1>;
|
2019-06-19 07:20:17 +02:00
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
2018-01-28 20:13:54 +01:00
|
|
|
};
|
|
|
|
|
2020-06-12 22:01:44 +02:00
|
|
|
&tcc2 {
|
|
|
|
status = "okay";
|
|
|
|
compatible = "atmel,sam0-tcc-pwm";
|
|
|
|
/* Gives a maximum period of 1.4 s */
|
|
|
|
prescaler = <1024>;
|
|
|
|
|
|
|
|
#pwm-cells = <1>;
|
|
|
|
};
|
|
|
|
|
2018-01-05 20:31:08 +01:00
|
|
|
&flash0 {
|
|
|
|
partitions {
|
|
|
|
compatible = "fixed-partitions";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
|
|
|
|
/*
|
2020-01-13 12:38:21 +01:00
|
|
|
* The final 16 KiB is reserved for the application.
|
|
|
|
* Storage partition will be used by FCB/LittleFS/NVS
|
|
|
|
* if enabled.
|
2018-01-05 20:31:08 +01:00
|
|
|
*/
|
2018-04-19 16:55:53 +02:00
|
|
|
storage_partition: partition@3c000 {
|
|
|
|
label = "storage";
|
2018-01-05 20:31:08 +01:00
|
|
|
reg = <0x0003c000 0x00004000>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2018-03-10 23:24:54 +01:00
|
|
|
|
|
|
|
&usb0 {
|
2019-06-14 19:31:16 +02:00
|
|
|
status = "okay";
|
2018-03-10 23:24:54 +01:00
|
|
|
};
|