1/* 2 * Copyright (c) 2019 Nordic Semiconductor ASA 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7/dts-v1/; 8#include <nordic/nrf52833_qiaa.dtsi> 9#include "nrf52833dk_nrf52833-pinctrl.dtsi" 10#include <zephyr/dt-bindings/input/input-event-codes.h> 11 12/ { 13 model = "Nordic nRF52833 DK NRF52833"; 14 compatible = "nordic,nrf52833-dk-nrf52833"; 15 16 chosen { 17 zephyr,console = &uart0; 18 zephyr,shell-uart = &uart0; 19 zephyr,uart-mcumgr = &uart0; 20 zephyr,bt-mon-uart = &uart0; 21 zephyr,bt-c2h-uart = &uart0; 22 zephyr,sram = &sram0; 23 zephyr,flash = &flash0; 24 zephyr,code-partition = &slot0_partition; 25 zephyr,ieee802154 = &ieee802154; 26 }; 27 28 leds { 29 compatible = "gpio-leds"; 30 led0: led_0 { 31 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; 32 label = "Green LED 0"; 33 }; 34 led1: led_1 { 35 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; 36 label = "Green LED 1"; 37 }; 38 led2: led_2 { 39 gpios = <&gpio0 15 GPIO_ACTIVE_LOW>; 40 label = "Green LED 2"; 41 }; 42 led3: led_3 { 43 gpios = <&gpio0 16 GPIO_ACTIVE_LOW>; 44 label = "Green LED 3"; 45 }; 46 }; 47 48 pwmleds { 49 compatible = "pwm-leds"; 50 pwm_led0: pwm_led_0 { 51 pwms = <&pwm0 0 PWM_MSEC(20) PWM_POLARITY_INVERTED>; 52 }; 53 }; 54 55 buttons { 56 compatible = "gpio-keys"; 57 button0: button_0 { 58 gpios = <&gpio0 11 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; 59 label = "Push button switch 0"; 60 zephyr,code = <INPUT_KEY_0>; 61 }; 62 button1: button_1 { 63 gpios = <&gpio0 12 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; 64 label = "Push button switch 1"; 65 zephyr,code = <INPUT_KEY_1>; 66 }; 67 button2: button_2 { 68 gpios = <&gpio0 24 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; 69 label = "Push button switch 2"; 70 zephyr,code = <INPUT_KEY_2>; 71 }; 72 button3: button_3 { 73 gpios = <&gpio0 25 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; 74 label = "Push button switch 3"; 75 zephyr,code = <INPUT_KEY_3>; 76 }; 77 }; 78 79 arduino_header: connector { 80 compatible = "arduino-header-r3"; 81 #gpio-cells = <2>; 82 gpio-map-mask = <0xffffffff 0xffffffc0>; 83 gpio-map-pass-thru = <0 0x3f>; 84 gpio-map = <0 0 &gpio0 3 0>, /* A0 */ 85 <1 0 &gpio0 4 0>, /* A1 */ 86 <2 0 &gpio0 28 0>, /* A2 */ 87 <3 0 &gpio0 29 0>, /* A3 */ 88 <4 0 &gpio0 30 0>, /* A4 */ 89 <5 0 &gpio0 31 0>, /* A5 */ 90 <6 0 &gpio1 1 0>, /* D0 */ 91 <7 0 &gpio1 2 0>, /* D1 */ 92 <8 0 &gpio1 3 0>, /* D2 */ 93 <9 0 &gpio1 4 0>, /* D3 */ 94 <10 0 &gpio1 5 0>, /* D4 */ 95 <11 0 &gpio1 6 0>, /* D5 */ 96 <12 0 &gpio1 7 0>, /* D6 */ 97 <13 0 &gpio1 8 0>, /* D7 */ 98 <14 0 &gpio0 17 0>, /* D8 */ 99 <15 0 &gpio0 19 0>, /* D9 */ 100 <16 0 &gpio0 20 0>, /* D10 */ 101 <17 0 &gpio0 21 0>, /* D11 */ 102 <18 0 &gpio0 22 0>, /* D12 */ 103 <19 0 &gpio0 23 0>, /* D13 */ 104 <20 0 &gpio0 26 0>, /* D14 */ 105 <21 0 &gpio0 27 0>; /* D15 */ 106 }; 107 108 /* These aliases are provided for compatibility with samples */ 109 aliases { 110 led0 = &led0; 111 led1 = &led1; 112 led2 = &led2; 113 led3 = &led3; 114 pwm-led0 = &pwm_led0; 115 sw0 = &button0; 116 sw1 = &button1; 117 sw2 = &button2; 118 sw3 = &button3; 119 bootloader-led0 = &led0; 120 mcuboot-button0 = &button0; 121 mcuboot-led0 = &led0; 122 watchdog0 = &wdt0; 123 }; 124}; 125 126&adc { 127 status = "okay"; 128}; 129 130&uicr { 131 gpio-as-nreset; 132}; 133 134&gpiote { 135 status = "okay"; 136}; 137 138&gpio0 { 139 status = "okay"; 140}; 141 142&gpio1 { 143 status = "okay"; 144}; 145 146&uart0 { 147 compatible = "nordic,nrf-uarte"; 148 status = "okay"; 149 current-speed = <115200>; 150 pinctrl-0 = <&uart0_default>; 151 pinctrl-1 = <&uart0_sleep>; 152 pinctrl-names = "default", "sleep"; 153}; 154 155arduino_serial: &uart1 { 156 current-speed = <115200>; 157 pinctrl-0 = <&uart1_default>; 158 pinctrl-1 = <&uart1_sleep>; 159 pinctrl-names = "default", "sleep"; 160}; 161 162arduino_i2c: &i2c0 { 163 compatible = "nordic,nrf-twi"; 164 status = "okay"; 165 pinctrl-0 = <&i2c0_default>; 166 pinctrl-1 = <&i2c0_sleep>; 167 pinctrl-names = "default", "sleep"; 168}; 169 170&i2c1 { 171 compatible = "nordic,nrf-twi"; 172 /* Cannot be used together with spi1. */ 173 /* status = "okay"; */ 174 pinctrl-0 = <&i2c1_default>; 175 pinctrl-1 = <&i2c1_sleep>; 176 pinctrl-names = "default", "sleep"; 177}; 178 179&pwm0 { 180 status = "okay"; 181 pinctrl-0 = <&pwm0_default>; 182 pinctrl-1 = <&pwm0_sleep>; 183 pinctrl-names = "default", "sleep"; 184}; 185 186&spi0 { 187 compatible = "nordic,nrf-spi"; 188 /* Cannot be used together with i2c0. */ 189 /* status = "okay"; */ 190 pinctrl-0 = <&spi0_default>; 191 pinctrl-1 = <&spi0_sleep>; 192 pinctrl-names = "default", "sleep"; 193}; 194 195&spi1 { 196 compatible = "nordic,nrf-spi"; 197 status = "okay"; 198 pinctrl-0 = <&spi1_default>; 199 pinctrl-1 = <&spi1_sleep>; 200 pinctrl-names = "default", "sleep"; 201}; 202 203arduino_spi: &spi3 { 204 status = "okay"; 205 cs-gpios = <&arduino_header 16 GPIO_ACTIVE_LOW>; /* D10 */ 206 pinctrl-0 = <&spi3_default>; 207 pinctrl-1 = <&spi3_sleep>; 208 pinctrl-names = "default", "sleep"; 209}; 210 211&ieee802154 { 212 status = "okay"; 213}; 214 215&flash0 { 216 217 partitions { 218 compatible = "fixed-partitions"; 219 #address-cells = <1>; 220 #size-cells = <1>; 221 222 boot_partition: partition@0 { 223 label = "mcuboot"; 224 reg = <0x00000000 0xC000>; 225 }; 226 slot0_partition: partition@c000 { 227 label = "image-0"; 228 reg = <0x0000C000 0x37000>; 229 }; 230 slot1_partition: partition@43000 { 231 label = "image-1"; 232 reg = <0x00043000 0x37000>; 233 }; 234 storage_partition: partition@7a000 { 235 label = "storage"; 236 reg = <0x0007A000 0x00006000>; 237 }; 238 }; 239}; 240 241zephyr_udc0: &usbd { 242 compatible = "nordic,nrf-usbd"; 243 status = "okay"; 244}; 245