1/* Copyright (c) 2022 Nordic Semiconductor ASA */ 2/* SPDX-License-Identifier: Apache-2.0 */ 3 4/dts-v1/; 5#include <nordic/nrf52832_ciaa.dtsi> 6#include "we_proteus2ev_nrf52832-pinctrl.dtsi" 7#include <zephyr/dt-bindings/input/input-event-codes.h> 8 9/ { 10 model = "we_proteus2ev_nrf52832"; 11 compatible = "we,we-proteus2ev-nrf52832"; 12 13 chosen { 14 zephyr,console = &uart0; 15 zephyr,shell-uart = &uart0; 16 zephyr,uart-mcumgr = &uart0; 17 zephyr,bt-mon-uart = &uart0; 18 zephyr,bt-c2h-uart = &uart0; 19 zephyr,sram = &sram0; 20 zephyr,flash = &flash0; 21 zephyr,code-partition = &slot0_partition; 22 }; 23 24 leds { 25 compatible = "gpio-leds"; 26 led0: led_0 { 27 gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>; 28 label = "LED 0"; 29 }; 30 led1: led_1 { 31 gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>; 32 label = "LED 1"; 33 }; 34 }; 35 36 buttons { 37 compatible = "gpio-keys"; 38 button0: button_0 { 39 gpios = <&gpio0 29 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; 40 label = "Wake-up"; 41 zephyr,code = <INPUT_KEY_0>; 42 }; 43 }; 44 45 /* These aliases are provided for compatibility with samples */ 46 aliases { 47 led0 = &led0; 48 led1 = &led1; 49 sw0 = &button0; 50 bootloader-led0 = &led0; 51 watchdog0 = &wdt0; 52 }; 53}; 54 55&adc { 56 status = "okay"; 57}; 58 59&uicr { 60 gpio-as-nreset; 61}; 62 63&gpiote { 64 status = "okay"; 65}; 66 67&gpio0 { 68 status = "okay"; 69}; 70 71&uart0 { 72 compatible = "nordic,nrf-uarte"; 73 status = "okay"; 74 current-speed = <115200>; 75 pinctrl-0 = <&uart0_default>; 76 pinctrl-1 = <&uart0_sleep>; 77 pinctrl-names = "default", "sleep"; 78}; 79 80&i2c0 { 81 compatible = "nordic,nrf-twi"; 82 /* Cannot be used together with spi1. */ 83 /* status = "okay"; */ 84 pinctrl-0 = <&i2c0_default>; 85 pinctrl-1 = <&i2c0_sleep>; 86 pinctrl-names = "default", "sleep"; 87}; 88 89&spi0 { 90 compatible = "nordic,nrf-spi"; 91 /* Cannot be used together with i2c0. */ 92 /* status = "okay"; */ 93 pinctrl-0 = <&spi0_default>; 94 pinctrl-1 = <&spi0_sleep>; 95 pinctrl-names = "default", "sleep"; 96}; 97 98&flash0 { 99 partitions { 100 compatible = "fixed-partitions"; 101 #address-cells = <1>; 102 #size-cells = <1>; 103 104 boot_partition: partition@0 { 105 label = "mcuboot"; 106 reg = <0x00000000 0xc000>; 107 }; 108 slot0_partition: partition@c000 { 109 label = "image-0"; 110 reg = <0x0000C000 0x32000>; 111 }; 112 slot1_partition: partition@3e000 { 113 label = "image-1"; 114 reg = <0x0003E000 0x32000>; 115 }; 116 scratch_partition: partition@70000 { 117 label = "image-scratch"; 118 reg = <0x00070000 0xa000>; 119 }; 120 storage_partition: partition@7a000 { 121 label = "storage"; 122 reg = <0x0007a000 0x00006000>; 123 }; 124 }; 125}; 126