1/* 2 * Copyright (c) 2017 Linaro Limited 3 * 4 * Based on nrf52840dk_nrf52840.dts 5 * modified 2018 Tavish Naruka <tavishnaruka@gmail.com> 6 * 7 * SPDX-License-Identifier: Apache-2.0 8 */ 9 10/dts-v1/; 11#include <nordic/nrf52840_qiaa.dtsi> 12#include <nordic/nrf52840_partition.dtsi> 13#include "nrf52840_blip-pinctrl.dtsi" 14#include <zephyr/dt-bindings/input/input-event-codes.h> 15 16/ { 17 model = "Electronut Labs Blip"; 18 compatible = "nordic,pca10056-dk"; 19 20 chosen { 21 zephyr,console = &uart0; 22 zephyr,shell-uart = &uart0; 23 zephyr,uart-mcumgr = &uart0; 24 zephyr,bt-mon-uart = &uart0; 25 zephyr,bt-c2h-uart = &uart0; 26 zephyr,ieee802154 = &ieee802154; 27 }; 28 29 leds { 30 compatible = "gpio-leds"; 31 led0: led_0 { 32 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; 33 label = "Green LED 0"; 34 }; 35 led1: led_1 { 36 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; 37 label = "Red LED 1"; 38 }; 39 led2: led_2 { 40 gpios = <&gpio0 15 GPIO_ACTIVE_LOW>; 41 label = "Blue LED 2"; 42 }; 43 }; 44 45 buttons { 46 compatible = "gpio-keys"; 47 button0: button_0 { 48 gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; 49 label = "Push button switch 0"; 50 zephyr,code = <INPUT_KEY_0>; 51 }; 52 }; 53 54 /* These aliases are provided for compatibility with samples */ 55 aliases { 56 led0 = &led0; 57 led1 = &led1; 58 led2 = &led2; 59 sw0 = &button0; 60 watchdog0 = &wdt0; 61 }; 62}; 63 64®1 { 65 regulator-initial-mode = <NRF5X_REG_MODE_DCDC>; 66}; 67 68&adc { 69 status = "okay"; 70}; 71 72&uicr { 73 gpio-as-nreset; 74}; 75 76&gpiote { 77 status = "okay"; 78}; 79 80&gpio0 { 81 status = "okay"; 82}; 83 84&gpio1 { 85 status = "okay"; 86}; 87 88&uart0 { 89 compatible = "nordic,nrf-uart"; 90 current-speed = <115200>; 91 status = "okay"; 92 pinctrl-0 = <&uart0_default>; 93 pinctrl-1 = <&uart0_sleep>; 94 pinctrl-names = "default", "sleep"; 95}; 96 97&i2c0 { 98 compatible = "nordic,nrf-twi"; 99 status = "okay"; 100 pinctrl-0 = <&i2c0_default>; 101 pinctrl-1 = <&i2c0_sleep>; 102 pinctrl-names = "default", "sleep"; 103}; 104 105&i2c1 { 106 compatible = "nordic,nrf-twi"; 107 /* Cannot be used together with spi1. */ 108 /* status = "okay"; */ 109 pinctrl-0 = <&i2c1_default>; 110 pinctrl-1 = <&i2c1_sleep>; 111 pinctrl-names = "default", "sleep"; 112}; 113 114&spi0 { 115 compatible = "nordic,nrf-spi"; 116 /* Cannot be used together with i2c0. */ 117 /* status = "okay"; */ 118 pinctrl-0 = <&spi0_default>; 119 pinctrl-1 = <&spi0_sleep>; 120 pinctrl-names = "default", "sleep"; 121}; 122 123&spi1 { 124 compatible = "nordic,nrf-spi"; 125 status = "okay"; 126 pinctrl-0 = <&spi1_default>; 127 pinctrl-1 = <&spi1_sleep>; 128 pinctrl-names = "default", "sleep"; 129}; 130 131&spi2 { 132 compatible = "nordic,nrf-spi"; 133 status = "okay"; 134 pinctrl-0 = <&spi2_default>; 135 pinctrl-1 = <&spi2_sleep>; 136 pinctrl-names = "default", "sleep"; 137}; 138 139&spi3 { 140 status = "okay"; 141 pinctrl-0 = <&spi3_default>; 142 pinctrl-1 = <&spi3_sleep>; 143 pinctrl-names = "default", "sleep"; 144}; 145 146&ieee802154 { 147 status = "okay"; 148}; 149 150zephyr_udc0: &usbd { 151 compatible = "nordic,nrf-usbd"; 152 status = "okay"; 153}; 154