1/* Copyright (c) 2022 Nordic Semiconductor ASA */ 2/* SPDX-License-Identifier: Apache-2.0 */ 3 4/dts-v1/; 5#include <nordic/nrf52840_qiaa.dtsi> 6#include <nordic/nrf52840_partition.dtsi> 7#include "we_proteus3ev_nrf52840-pinctrl.dtsi" 8#include <zephyr/dt-bindings/input/input-event-codes.h> 9 10/ { 11 model = "we_proteus3ev_nrf52840"; 12 compatible = "we,we-proteus3ev-nrf52840"; 13 14 chosen { 15 zephyr,console = &uart0; 16 zephyr,shell-uart = &uart0; 17 zephyr,uart-mcumgr = &uart0; 18 zephyr,bt-mon-uart = &uart0; 19 zephyr,bt-c2h-uart = &uart0; 20 }; 21 22 leds { 23 compatible = "gpio-leds"; 24 led0: led_0 { 25 gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>; 26 label = "LED 0"; 27 }; 28 led1: led_1 { 29 gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>; 30 label = "LED 1"; 31 }; 32 }; 33 34 buttons { 35 compatible = "gpio-keys"; 36 button0: button_0 { 37 gpios = <&gpio0 3 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; 38 label = "Wake-up"; 39 zephyr,code = <INPUT_KEY_0>; 40 }; 41 }; 42 43 44 /* These aliases are provided for compatibility with samples */ 45 aliases { 46 led0 = &led0; 47 led1 = &led1; 48 sw0 = &button0; 49 bootloader-led0 = &led0; 50 watchdog0 = &wdt0; 51 }; 52}; 53 54®0 { 55 status = "okay"; 56}; 57 58®1 { 59 regulator-initial-mode = <NRF5X_REG_MODE_DCDC>; 60}; 61 62&adc { 63 status = "okay"; 64}; 65 66&uicr { 67 gpio-as-nreset; 68}; 69 70&gpiote { 71 status = "okay"; 72}; 73 74&gpio0 { 75 status = "okay"; 76}; 77 78&gpio1 { 79 status = "okay"; 80}; 81 82&uart0 { 83 compatible = "nordic,nrf-uarte"; 84 status = "okay"; 85 current-speed = <115200>; 86 pinctrl-0 = <&uart0_default>; 87 pinctrl-1 = <&uart0_sleep>; 88 pinctrl-names = "default", "sleep"; 89}; 90 91&i2c0 { 92 compatible = "nordic,nrf-twi"; 93 /* Cannot be used together with spi1. */ 94 /* status = "okay"; */ 95 pinctrl-0 = <&i2c0_default>; 96 pinctrl-1 = <&i2c0_sleep>; 97 pinctrl-names = "default", "sleep"; 98}; 99 100&spi0 { 101 compatible = "nordic,nrf-spi"; 102 /* Cannot be used together with i2c0. */ 103 /* status = "okay"; */ 104 pinctrl-0 = <&spi0_default>; 105 pinctrl-1 = <&spi0_sleep>; 106 pinctrl-names = "default", "sleep"; 107}; 108