154 lines
2.7 KiB
Plaintext
154 lines
2.7 KiB
Plaintext
/*
|
|
* Copyright (c) 2022 Marcin Niestroj
|
|
* Copyright (c) 2022 Peter Johanson
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#include <nordic/nrf52840_qiaa.dtsi>
|
|
#include <nordic/nrf52840_partition_uf2_sdv7.dtsi>
|
|
#include "xiao_ble-pinctrl.dtsi"
|
|
#include "seeed_xiao_connector.dtsi"
|
|
|
|
/ {
|
|
chosen {
|
|
zephyr,console = &usb_cdc_acm_uart;
|
|
zephyr,shell-uart = &usb_cdc_acm_uart;
|
|
zephyr,uart-mcumgr = &usb_cdc_acm_uart;
|
|
zephyr,bt-mon-uart = &usb_cdc_acm_uart;
|
|
zephyr,bt-c2h-uart = &usb_cdc_acm_uart;
|
|
zephyr,ieee802154 = &ieee802154;
|
|
};
|
|
|
|
leds {
|
|
compatible = "gpio-leds";
|
|
led0: led_0 {
|
|
gpios = <&gpio0 26 GPIO_ACTIVE_LOW>;
|
|
label = "Red LED";
|
|
};
|
|
led1: led_1 {
|
|
gpios = <&gpio0 30 GPIO_ACTIVE_LOW>;
|
|
label = "Green LED";
|
|
};
|
|
led2: led_2 {
|
|
gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
|
|
label = "Blue LED";
|
|
};
|
|
};
|
|
|
|
pwmleds {
|
|
compatible = "pwm-leds";
|
|
pwm_led0: pwm_led_0 {
|
|
pwms = <&pwm0 0 PWM_MSEC(20) PWM_POLARITY_INVERTED>;
|
|
};
|
|
};
|
|
|
|
/* These aliases are provided for compatibility with samples */
|
|
aliases {
|
|
led0 = &led0;
|
|
led1 = &led1;
|
|
led2 = &led2;
|
|
pwm-led0 = &pwm_led0;
|
|
bootloader-led0 = &led0;
|
|
mcuboot-led0 = &led0;
|
|
watchdog0 = &wdt0;
|
|
};
|
|
};
|
|
|
|
®0 {
|
|
status = "okay";
|
|
};
|
|
|
|
®1 {
|
|
regulator-initial-mode = <NRF5X_REG_MODE_DCDC>;
|
|
};
|
|
|
|
&adc {
|
|
status = "okay";
|
|
};
|
|
|
|
&uicr {
|
|
gpio-as-nreset;
|
|
};
|
|
|
|
&gpiote {
|
|
status = "okay";
|
|
};
|
|
|
|
&gpio0 {
|
|
status = "okay";
|
|
};
|
|
|
|
&gpio1 {
|
|
status = "okay";
|
|
};
|
|
|
|
&uart0 {
|
|
compatible = "nordic,nrf-uarte";
|
|
status = "okay";
|
|
current-speed = <115200>;
|
|
pinctrl-0 = <&uart0_default>;
|
|
pinctrl-1 = <&uart0_sleep>;
|
|
pinctrl-names = "default", "sleep";
|
|
};
|
|
|
|
&i2c1 {
|
|
compatible = "nordic,nrf-twi";
|
|
/* Cannot be used together with spi1. */
|
|
status = "okay";
|
|
pinctrl-0 = <&i2c1_default>;
|
|
pinctrl-1 = <&i2c1_sleep>;
|
|
pinctrl-names = "default", "sleep";
|
|
};
|
|
|
|
&pwm0 {
|
|
status = "okay";
|
|
pinctrl-0 = <&pwm0_default>;
|
|
pinctrl-1 = <&pwm0_sleep>;
|
|
pinctrl-names = "default", "sleep";
|
|
};
|
|
|
|
&spi2 {
|
|
compatible = "nordic,nrf-spi";
|
|
status = "okay";
|
|
pinctrl-0 = <&spi2_default>;
|
|
pinctrl-1 = <&spi2_sleep>;
|
|
pinctrl-names = "default", "sleep";
|
|
};
|
|
|
|
&qspi {
|
|
status = "okay";
|
|
pinctrl-0 = <&qspi_default>;
|
|
pinctrl-1 = <&qspi_sleep>;
|
|
pinctrl-names = "default", "sleep";
|
|
p25q16h: p25q16h@0 {
|
|
compatible = "nordic,qspi-nor";
|
|
reg = <0>;
|
|
sck-frequency = <104000000>;
|
|
quad-enable-requirements = "S2B1v1";
|
|
jedec-id = [85 60 15];
|
|
sfdp-bfp = [
|
|
e5 20 f1 ff ff ff ff 00 44 eb 08 6b 08 3b 80 bb
|
|
ee ff ff ff ff ff 00 ff ff ff 00 ff 0c 20 0f 52
|
|
10 d8 08 81
|
|
];
|
|
size = <16777216>;
|
|
has-dpd;
|
|
t-enter-dpd = <3000>;
|
|
t-exit-dpd = <8000>;
|
|
};
|
|
};
|
|
|
|
&ieee802154 {
|
|
status = "okay";
|
|
};
|
|
|
|
zephyr_udc0: &usbd {
|
|
compatible = "nordic,nrf-usbd";
|
|
status = "okay";
|
|
|
|
usb_cdc_acm_uart: cdc-acm-uart {
|
|
compatible = "zephyr,cdc-acm-uart";
|
|
};
|
|
};
|