1/* 2 * Copyright (c) 2020 Google LLC. 3 * Copyright (c) 2024 Daikin Comfort Technologies North America, Inc. 4 * 5 * SPDX-License-Identifier: Apache-2.0 6 */ 7 8/dts-v1/; 9#include <atmel/samd5xx19.dtsi> 10#include "adafruit_feather_m4_express-pinctrl.dtsi" 11 12/ { 13 model = "Adafruit Feather M4 Express"; 14 compatible = "adafruit,feather-m4-express"; 15 16 chosen { 17 zephyr,console = &sercom5; 18 zephyr,shell-uart = &sercom5; 19 zephyr,sram = &sram0; 20 zephyr,flash = &flash0; 21 zephyr,code-partition = &code_partition; 22 }; 23 24 /* These aliases are provided for compatibility with samples */ 25 aliases { 26 led0 = &led0; 27 pwm-0 = &tcc0; 28 pwm-1 = &tc0; 29 }; 30 31 leds { 32 compatible = "gpio-leds"; 33 led0: led_0 { 34 gpios = <&porta 23 0>; 35 label = "LED"; 36 }; 37 }; 38}; 39 40&cpu0 { 41 clock-frequency = <120000000>; 42}; 43 44&sercom5 { 45 status = "okay"; 46 compatible = "atmel,sam0-uart"; 47 current-speed = <115200>; 48 rxpo = <1>; 49 txpo = <0>; 50 pinctrl-0 = <&sercom5_uart_default>; 51 pinctrl-names = "default"; 52}; 53 54&sercom1 { 55 status = "okay"; 56 compatible = "atmel,sam0-spi"; 57 dipo = <3>; 58 dopo = <0>; 59 #address-cells = <1>; 60 #size-cells = <0>; 61 pinctrl-0 = <&sercom1_spi_default>; 62 pinctrl-names = "default"; 63}; 64 65&tcc0 { 66 status = "okay"; 67 compatible = "atmel,sam0-tcc-pwm"; 68 prescaler = <8>; 69 #pwm-cells = <2>; 70 pinctrl-0 = <&pwm0_default>; 71 pinctrl-names = "default"; 72}; 73 74&tc0 { 75 status = "okay"; 76 compatible = "atmel,sam0-tc-pwm"; 77 prescaler = <1024>; 78 #pwm-cells = <2>; 79 channels = <2>; 80 counter-size = <16>; 81 pinctrl-0 = <&tc0_default>; 82 pinctrl-names = "default"; 83}; 84 85zephyr_udc0: &usb0 { 86 status = "okay"; 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