1/* 2 * Copyright (c) 2020 Google LLC. 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7/dts-v1/; 8#include <atmel/samd5xx19.dtsi> 9#include "adafruit_itsybitsy_m4_express-pinctrl.dtsi" 10 11/ { 12 model = "Adafruit ItsyBitsy M4 Express"; 13 compatible = "adafruit,itsybitsy-m4-express"; 14 15 chosen { 16 zephyr,console = &sercom3; 17 zephyr,shell-uart = &sercom3; 18 zephyr,sram = &sram0; 19 zephyr,flash = &flash0; 20 zephyr,code-partition = &code_partition; 21 }; 22 23 /* These aliases are provided for compatibility with samples */ 24 aliases { 25 led0 = &led0; 26 pwm-led0 = &pwm_led0; 27 pwm-0 = &tcc0; 28 }; 29 30 leds { 31 compatible = "gpio-leds"; 32 led0: led_0 { 33 gpios = <&porta 22 0>; 34 label = "LED"; 35 }; 36 }; 37 38 pwmleds { 39 compatible = "pwm-leds"; 40 pwm_led0: pwm_led_0 { 41 pwms = <&tcc0 2 PWM_MSEC(20)>; 42 }; 43 }; 44}; 45 46&cpu0 { 47 clock-frequency = <120000000>; 48}; 49 50&sercom3 { 51 status = "okay"; 52 compatible = "atmel,sam0-uart"; 53 current-speed = <115200>; 54 rxpo = <1>; 55 txpo = <0>; 56 57 pinctrl-0 = <&sercom3_uart_default>; 58 pinctrl-names = "default"; 59}; 60 61&sercom1 { 62 status = "okay"; 63 compatible = "atmel,sam0-spi"; 64 dipo = <3>; 65 dopo = <0>; 66 67 #address-cells = <1>; 68 #size-cells = <0>; 69 70 pinctrl-0 = <&sercom1_spi_default>; 71 pinctrl-names = "default"; 72}; 73 74&tcc0 { 75 status = "okay"; 76 compatible = "atmel,sam0-tcc-pwm"; 77 prescaler = <8>; 78 #pwm-cells = <2>; 79 80 pinctrl-0 = <&pwm0_default>; 81 pinctrl-names = "default"; 82}; 83 84zephyr_udc0: &usb0 { 85 status = "okay"; 86 87 pinctrl-0 = <&usb_dc_default>; 88 pinctrl-names = "default"; 89}; 90 91&dmac { 92 status = "okay"; 93}; 94 95&flash0 { 96 partitions { 97 compatible = "fixed-partitions"; 98 #address-cells = <1>; 99 #size-cells = <1>; 100 101 boot_partition: partition@0 { 102 label = "uf2"; 103 reg = <0x00000000 DT_SIZE_K(16)>; 104 read-only; 105 }; 106 107 code_partition: partition@4000 { 108 label = "code"; 109 reg = <0x4000 DT_SIZE_K(512-16-16)>; 110 read-only; 111 }; 112 113 /* 114 * The final 16 KiB is reserved for the application. 115 * Storage partition will be used by FCB/LittleFS/NVS 116 * if enabled. 117 */ 118 storage_partition: partition@7c000 { 119 label = "storage"; 120 reg = <0x7c000 DT_SIZE_K(16)>; 121 }; 122 }; 123}; 124