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®1 { 127 regulator-initial-mode = <NRF5X_REG_MODE_DCDC>; 128}; 129 130&adc { 131 status = "okay"; 132}; 133 134&uicr { 135 gpio-as-nreset; 136}; 137 138&gpiote { 139 status = "okay"; 140}; 141 142&gpio0 { 143 status = "okay"; 144}; 145 146&gpio1 { 147 status = "okay"; 148}; 149 150&uart0 { 151 compatible = "nordic,nrf-uarte"; 152 status = "okay"; 153 current-speed = <115200>; 154 pinctrl-0 = <&uart0_default>; 155 pinctrl-1 = <&uart0_sleep>; 156 pinctrl-names = "default", "sleep"; 157}; 158 159arduino_serial: &uart1 { 160 current-speed = <115200>; 161 pinctrl-0 = <&uart1_default>; 162 pinctrl-1 = <&uart1_sleep>; 163 pinctrl-names = "default", "sleep"; 164}; 165 166arduino_i2c: &i2c0 { 167 compatible = "nordic,nrf-twi"; 168 status = "okay"; 169 pinctrl-0 = <&i2c0_default>; 170 pinctrl-1 = <&i2c0_sleep>; 171 pinctrl-names = "default", "sleep"; 172}; 173 174&i2c1 { 175 compatible = "nordic,nrf-twi"; 176 /* Cannot be used together with spi1. */ 177 /* status = "okay"; */ 178 pinctrl-0 = <&i2c1_default>; 179 pinctrl-1 = <&i2c1_sleep>; 180 pinctrl-names = "default", "sleep"; 181}; 182 183&pwm0 { 184 status = "okay"; 185 pinctrl-0 = <&pwm0_default>; 186 pinctrl-1 = <&pwm0_sleep>; 187 pinctrl-names = "default", "sleep"; 188}; 189 190&spi0 { 191 compatible = "nordic,nrf-spi"; 192 /* Cannot be used together with i2c0. */ 193 /* status = "okay"; */ 194 pinctrl-0 = <&spi0_default>; 195 pinctrl-1 = <&spi0_sleep>; 196 pinctrl-names = "default", "sleep"; 197}; 198 199&spi1 { 200 compatible = "nordic,nrf-spi"; 201 status = "okay"; 202 pinctrl-0 = <&spi1_default>; 203 pinctrl-1 = <&spi1_sleep>; 204 pinctrl-names = "default", "sleep"; 205}; 206 207arduino_spi: &spi3 { 208 status = "okay"; 209 cs-gpios = <&arduino_header 16 GPIO_ACTIVE_LOW>; /* D10 */ 210 pinctrl-0 = <&spi3_default>; 211 pinctrl-1 = <&spi3_sleep>; 212 pinctrl-names = "default", "sleep"; 213}; 214 215&ieee802154 { 216 status = "okay"; 217}; 218 219&flash0 { 220 221 partitions { 222 compatible = "fixed-partitions"; 223 #address-cells = <1>; 224 #size-cells = <1>; 225 226 boot_partition: partition@0 { 227 label = "mcuboot"; 228 reg = <0x00000000 0xC000>; 229 }; 230 slot0_partition: partition@c000 { 231 label = "image-0"; 232 reg = <0x0000C000 0x37000>; 233 }; 234 slot1_partition: partition@43000 { 235 label = "image-1"; 236 reg = <0x00043000 0x37000>; 237 }; 238 storage_partition: partition@7a000 { 239 label = "storage"; 240 reg = <0x0007A000 0x00006000>; 241 }; 242 }; 243}; 244 245zephyr_udc0: &usbd { 246 compatible = "nordic,nrf-usbd"; 247 status = "okay"; 248}; 249