1/* 2 * Copyright (c) 2020 Nordic Semiconductor ASA 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7/dts-v1/; 8#include <nordic/nrf52820_qdaa.dtsi> 9#include "nrf52833dk_nrf52820-pinctrl.dtsi" 10#include <zephyr/dt-bindings/input/input-event-codes.h> 11 12/ { 13 model = "Nordic nRF52833 DK NRF52820"; 14 compatible = "nordic,nrf52833-dk-nrf52820"; 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 }; 26 27 leds { 28 compatible = "gpio-leds"; 29 led0: led_0 { 30 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; 31 label = "Green LED 0"; 32 }; 33 led1: led_1 { 34 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; 35 label = "Green LED 1"; 36 }; 37 led2: led_2 { 38 gpios = <&gpio0 15 GPIO_ACTIVE_LOW>; 39 label = "Green LED 2"; 40 }; 41 led3: led_3 { 42 gpios = <&gpio0 16 GPIO_ACTIVE_LOW>; 43 label = "Green LED 3"; 44 }; 45 }; 46 47 pwmleds { 48 compatible = "pwm-leds"; 49 pwm_led0: pwm_led_0 { 50 pwms = <&sw_pwm 0 PWM_MSEC(20) PWM_POLARITY_INVERTED>; 51 }; 52 }; 53 54 buttons { 55 compatible = "gpio-keys"; 56 button0: button_0 { 57 gpios = <&gpio0 11 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; 58 label = "Push button switch 0"; 59 zephyr,code = <INPUT_KEY_0>; 60 }; 61 button1: button_1 { 62 gpios = <&gpio0 12 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; 63 label = "Push button switch 1"; 64 zephyr,code = <INPUT_KEY_1>; 65 }; 66 button2: button_2 { 67 gpios = <&gpio0 24 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; 68 label = "Push button switch 2"; 69 zephyr,code = <INPUT_KEY_2>; 70 }; 71 button3: button_3 { 72 gpios = <&gpio0 25 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; 73 label = "Push button switch 3"; 74 zephyr,code = <INPUT_KEY_3>; 75 }; 76 }; 77 78 /* These aliases are provided for compatibility with samples */ 79 aliases { 80 led0 = &led0; 81 led1 = &led1; 82 led2 = &led2; 83 led3 = &led3; 84 pwm-led0 = &pwm_led0; 85 sw0 = &button0; 86 sw1 = &button1; 87 sw2 = &button2; 88 sw3 = &button3; 89 bootloader-led0 = &led0; 90 mcuboot-button0 = &button0; 91 mcuboot-led0 = &led0; 92 watchdog0 = &wdt0; 93 }; 94}; 95 96®1 { 97 regulator-initial-mode = <NRF5X_REG_MODE_DCDC>; 98}; 99 100&sw_pwm { 101 status ="okay"; 102 channel-gpios = <&gpio0 13 PWM_POLARITY_INVERTED>; 103 clock-prescaler = <8>; 104}; 105 106&uicr { 107 gpio-as-nreset; 108}; 109 110&gpiote { 111 status = "okay"; 112}; 113 114&gpio0 { 115 status = "okay"; 116}; 117 118&uart0 { 119 compatible = "nordic,nrf-uarte"; 120 status = "okay"; 121 current-speed = <115200>; 122 pinctrl-0 = <&uart0_default>; 123 pinctrl-1 = <&uart0_sleep>; 124 pinctrl-names = "default", "sleep"; 125}; 126 127&i2c0 { 128 compatible = "nordic,nrf-twi"; 129 status = "okay"; 130 pinctrl-0 = <&i2c0_default>; 131 pinctrl-1 = <&i2c0_sleep>; 132 pinctrl-names = "default", "sleep"; 133}; 134 135&i2c1 { 136 compatible = "nordic,nrf-twi"; 137 /* Cannot be used together with spi1. */ 138 /* status = "okay"; */ 139}; 140 141&spi0 { 142 compatible = "nordic,nrf-spi"; 143 /* Cannot be used together with i2c0. */ 144 /* status = "okay"; */ 145}; 146 147&spi1 { 148 status = "okay"; 149 pinctrl-0 = <&spi1_default>; 150 pinctrl-1 = <&spi1_sleep>; 151 pinctrl-names = "default", "sleep"; 152}; 153 154&flash0 { 155 156 partitions { 157 compatible = "fixed-partitions"; 158 #address-cells = <1>; 159 #size-cells = <1>; 160 161 boot_partition: partition@0 { 162 label = "mcuboot"; 163 reg = <0x00000000 0xC000>; 164 }; 165 slot0_partition: partition@C000 { 166 label = "image-0"; 167 reg = <0x0000C000 0x17000>; 168 }; 169 slot1_partition: partition@23000 { 170 label = "image-1"; 171 reg = <0x00023000 0x17000>; 172 }; 173 storage_partition: partition@3a000 { 174 label = "storage"; 175 reg = <0x0003a000 0x00006000>; 176 }; 177 }; 178}; 179 180zephyr_udc0: &usbd { 181 compatible = "nordic,nrf-usbd"; 182 status = "okay"; 183}; 184