2018-09-21 10:25:53 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2018 Bryan O'Donoghue
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
/dts-v1/;
|
|
|
|
#include <atmel/samd21.dtsi>
|
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "SAM D21 Xplained Pro";
|
|
|
|
compatible = "atsamd21,xpro", "atmel,samd21j18a", "atmel,samd21";
|
|
|
|
|
|
|
|
chosen {
|
|
|
|
zephyr,console = &sercom3;
|
|
|
|
zephyr,sram = &sram0;
|
|
|
|
zephyr,flash = &flash0;
|
|
|
|
};
|
2018-10-05 08:25:35 +08:00
|
|
|
|
|
|
|
/* These aliases are provided for compatibility with samples */
|
|
|
|
aliases {
|
|
|
|
led0 = &led0;
|
|
|
|
};
|
|
|
|
|
|
|
|
leds {
|
|
|
|
compatible = "gpio-leds";
|
|
|
|
led0: led_0 {
|
|
|
|
gpios = <&portb 30 0>;
|
|
|
|
label = "Yellow LED";
|
|
|
|
};
|
|
|
|
};
|
2018-09-21 10:25:53 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
&sercom0 {
|
|
|
|
status = "ok";
|
|
|
|
compatible = "atmel,sam0-uart";
|
|
|
|
current-speed = <9600>;
|
2018-11-01 17:46:46 +08:00
|
|
|
rxpo = <3>;
|
|
|
|
txpo = <2>;
|
2018-09-21 10:25:53 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
&sercom1 {
|
|
|
|
status = "ok";
|
|
|
|
compatible = "atmel,sam0-uart";
|
|
|
|
current-speed = <115200>;
|
2018-11-01 17:46:46 +08:00
|
|
|
rxpo = <3>;
|
|
|
|
txpo = <0>;
|
2018-09-21 10:25:53 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
&sercom3 {
|
|
|
|
status = "ok";
|
|
|
|
compatible = "atmel,sam0-uart";
|
|
|
|
current-speed = <115200>;
|
2018-11-01 17:46:46 +08:00
|
|
|
rxpo = <1>;
|
|
|
|
txpo = <0>;
|
2018-09-21 10:25:53 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
&sercom5 {
|
|
|
|
status = "ok";
|
|
|
|
compatible = "atmel,sam0-spi";
|
|
|
|
};
|