1/* 2 * Copyright (c) 2022 Marcin Niestroj 3 * Copyright (c) 2022 Peter Johanson 4 * 5 * SPDX-License-Identifier: Apache-2.0 6 */ 7 8#include <nordic/nrf52840_qiaa.dtsi> 9#include <nordic/nrf52840_partition_uf2_sdv7.dtsi> 10#include "xiao_ble-pinctrl.dtsi" 11#include "seeed_xiao_connector.dtsi" 12 13/ { 14 chosen { 15 zephyr,ieee802154 = &ieee802154; 16 }; 17 18 leds { 19 compatible = "gpio-leds"; 20 led0: led_0 { 21 gpios = <&gpio0 26 GPIO_ACTIVE_LOW>; 22 label = "Red LED"; 23 }; 24 led1: led_1 { 25 gpios = <&gpio0 30 GPIO_ACTIVE_LOW>; 26 label = "Green LED"; 27 }; 28 led2: led_2 { 29 gpios = <&gpio0 6 GPIO_ACTIVE_LOW>; 30 label = "Blue LED"; 31 }; 32 }; 33 34 pwmleds { 35 compatible = "pwm-leds"; 36 pwm_led0: pwm_led_0 { 37 pwms = <&pwm0 0 PWM_MSEC(20) PWM_POLARITY_INVERTED>; 38 }; 39 }; 40 41 /* These aliases are provided for compatibility with samples */ 42 aliases { 43 led0 = &led0; 44 led1 = &led1; 45 led2 = &led2; 46 pwm-led0 = &pwm_led0; 47 bootloader-led0 = &led0; 48 mcuboot-led0 = &led0; 49 watchdog0 = &wdt0; 50 }; 51}; 52 53®0 { 54 status = "okay"; 55}; 56 57®1 { 58 regulator-initial-mode = <NRF5X_REG_MODE_DCDC>; 59}; 60 61&adc { 62 status = "okay"; 63}; 64 65&uicr { 66 gpio-as-nreset; 67}; 68 69&gpiote { 70 status = "okay"; 71}; 72 73&gpio0 { 74 status = "okay"; 75}; 76 77&gpio1 { 78 status = "okay"; 79}; 80 81&uart0 { 82 compatible = "nordic,nrf-uarte"; 83 status = "okay"; 84 current-speed = <115200>; 85 pinctrl-0 = <&uart0_default>; 86 pinctrl-1 = <&uart0_sleep>; 87 pinctrl-names = "default", "sleep"; 88}; 89 90&i2c1 { 91 compatible = "nordic,nrf-twi"; 92 /* Cannot be used together with spi1. */ 93 status = "okay"; 94 pinctrl-0 = <&i2c1_default>; 95 pinctrl-1 = <&i2c1_sleep>; 96 pinctrl-names = "default", "sleep"; 97}; 98 99&pwm0 { 100 status = "okay"; 101 pinctrl-0 = <&pwm0_default>; 102 pinctrl-1 = <&pwm0_sleep>; 103 pinctrl-names = "default", "sleep"; 104}; 105 106&spi2 { 107 compatible = "nordic,nrf-spi"; 108 status = "okay"; 109 pinctrl-0 = <&spi2_default>; 110 pinctrl-1 = <&spi2_sleep>; 111 pinctrl-names = "default", "sleep"; 112}; 113 114&qspi { 115 status = "okay"; 116 pinctrl-0 = <&qspi_default>; 117 pinctrl-1 = <&qspi_sleep>; 118 pinctrl-names = "default", "sleep"; 119 p25q16h: p25q16h@0 { 120 compatible = "nordic,qspi-nor"; 121 reg = <0>; 122 sck-frequency = <104000000>; 123 quad-enable-requirements = "S2B1v1"; 124 jedec-id = [85 60 15]; 125 sfdp-bfp = [ 126 e5 20 f1 ff ff ff ff 00 44 eb 08 6b 08 3b 80 bb 127 ee ff ff ff ff ff 00 ff ff ff 00 ff 0c 20 0f 52 128 10 d8 08 81 129 ]; 130 size = <16777216>; 131 has-dpd; 132 t-enter-dpd = <3000>; 133 t-exit-dpd = <8000>; 134 }; 135}; 136 137&ieee802154 { 138 status = "okay"; 139}; 140 141zephyr_udc0: &usbd { 142 compatible = "nordic,nrf-usbd"; 143 status = "okay"; 144}; 145 146#include <../boards/common/usb/cdc_acm_serial.dtsi> 147