2018-03-04 19:42:02 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2018 Sean Nyekjaer
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
/dts-v1/;
|
|
|
|
#include <atmel/samd20.dtsi>
|
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "SAM D20 Xplained Pro";
|
|
|
|
compatible = "atsamd20,xpro", "atmel,samd20j18", "atmel,samd20";
|
|
|
|
|
2018-10-26 20:10:12 +08:00
|
|
|
aliases {
|
|
|
|
led0 = &yellow_led;
|
|
|
|
sw0 = &user_button;
|
|
|
|
};
|
|
|
|
|
2018-03-04 19:42:02 +08:00
|
|
|
chosen {
|
|
|
|
zephyr,console = &sercom3;
|
2018-11-27 19:11:04 +08:00
|
|
|
zephyr,shell-uart = &sercom3;
|
2018-03-04 19:42:02 +08:00
|
|
|
zephyr,sram = &sram0;
|
|
|
|
zephyr,flash = &flash0;
|
|
|
|
};
|
2018-10-26 20:10:12 +08:00
|
|
|
|
|
|
|
leds {
|
|
|
|
compatible = "gpio-leds";
|
|
|
|
yellow_led: led_0 {
|
|
|
|
gpios = <&porta 14 0>;
|
|
|
|
label = "LED0";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
buttons {
|
|
|
|
compatible = "gpio-keys";
|
|
|
|
user_button: button_0 {
|
|
|
|
gpios = <&porta 15 (GPIO_PUD_PULL_UP | GPIO_INT_ACTIVE_LOW)>;
|
|
|
|
label = "SW0";
|
|
|
|
};
|
|
|
|
};
|
2018-03-04 19:42:02 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
&sercom0 {
|
|
|
|
status = "ok";
|
|
|
|
compatible = "atmel,sam0-spi";
|
2018-11-01 18:15:59 +08:00
|
|
|
dipo = <0>;
|
|
|
|
dopo = <2>;
|
2018-03-04 19:42:02 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
&sercom3 {
|
|
|
|
status = "ok";
|
|
|
|
compatible = "atmel,sam0-uart";
|
|
|
|
current-speed = <115200>;
|
2018-11-01 17:46:46 +08:00
|
|
|
rxpo = <3>;
|
2018-11-19 17:24:41 +08:00
|
|
|
txpo = <1>;
|
2018-03-04 19:42:02 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
&sercom4 {
|
|
|
|
status = "ok";
|
|
|
|
compatible = "atmel,sam0-uart";
|
|
|
|
current-speed = <115200>;
|
2018-11-01 17:46:46 +08:00
|
|
|
rxpo = <1>;
|
|
|
|
txpo = <0>;
|
2018-03-04 19:42:02 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
&flash0 {
|
|
|
|
partitions {
|
|
|
|
compatible = "fixed-partitions";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* The final 16 KiB is reserved for the application
|
|
|
|
* and is used by NFFS if enabled.
|
|
|
|
*/
|
|
|
|
storage_partition: partition@3c000 {
|
|
|
|
label = "storage";
|
|
|
|
reg = <0x0003c000 0x00004000>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2018-11-05 17:17:49 +08:00
|
|
|
|
|
|
|
&rtc {
|
|
|
|
status = "ok";
|
|
|
|
};
|