1/* 2 * Copyright (c) 2022 Raytac Corporation 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7/dts-v1/; 8#include <nordic/nrf52833_qiaa.dtsi> 9#include "raytac_mdbt50q_db_33_nrf52833-pinctrl.dtsi" 10#include <zephyr/dt-bindings/input/input-event-codes.h> 11 12/ { 13 model = "Raytac MDBT50Q-DB-33 nRF52833"; 14 compatible = "raytac,raytac-mdbt50q-db-33-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 = "Red LED 1"; 37 }; 38 led2: led_2 { 39 gpios = <&gpio0 15 GPIO_ACTIVE_LOW>; 40 label = "Blue LED 2"; 41 }; 42 }; 43 44 pwmleds { 45 compatible = "pwm-leds"; 46 pwm_led0: pwm_led_0 { 47 pwms = <&pwm0 0 PWM_MSEC(20) PWM_POLARITY_INVERTED>; 48 }; 49 }; 50 51 buttons { 52 compatible = "gpio-keys"; 53 button0: button_0 { 54 gpios = <&gpio0 11 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; 55 label = "Push button switch 0"; 56 zephyr,code = <INPUT_KEY_0>; 57 }; 58 button1: button_1 { 59 gpios = <&gpio0 12 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; 60 label = "Push button switch 1"; 61 zephyr,code = <INPUT_KEY_1>; 62 }; 63 button2: button_2 { 64 gpios = <&gpio0 24 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; 65 label = "Push button switch 2"; 66 zephyr,code = <INPUT_KEY_2>; 67 }; 68 button3: button_3 { 69 gpios = <&gpio0 25 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; 70 label = "Push button switch 3"; 71 zephyr,code = <INPUT_KEY_3>; 72 }; 73 }; 74 75 /* These aliases are provided for compatibility with samples */ 76 aliases { 77 led0 = &led0; 78 led1 = &led1; 79 led2 = &led2; 80 pwm-led0 = &pwm_led0; 81 sw0 = &button0; 82 sw1 = &button1; 83 sw2 = &button2; 84 sw3 = &button3; 85 bootloader-led0 = &led0; 86 mcuboot-button0 = &button0; 87 mcuboot-led0 = &led0; 88 watchdog0 = &wdt0; 89 }; 90}; 91 92®1 { 93 regulator-initial-mode = <NRF5X_REG_MODE_DCDC>; 94}; 95 96&adc { 97 status = "okay"; 98}; 99 100&uicr { 101 gpio-as-nreset; 102}; 103 104&gpiote { 105 status = "okay"; 106}; 107 108&gpio0 { 109 status = "okay"; 110}; 111 112&gpio1 { 113 status = "okay"; 114}; 115 116&uart0 { 117 compatible = "nordic,nrf-uarte"; 118 status = "okay"; 119 current-speed = <115200>; 120 pinctrl-0 = <&uart0_default>; 121 pinctrl-1 = <&uart0_sleep>; 122 pinctrl-names = "default", "sleep"; 123}; 124 125&uart1 { 126 compatible = "nordic,nrf-uarte"; 127 status = "okay"; 128 current-speed = <115200>; 129 pinctrl-0 = <&uart1_default>; 130 pinctrl-1 = <&uart1_sleep>; 131 pinctrl-names = "default", "sleep"; 132}; 133 134&i2c0 { 135 compatible = "nordic,nrf-twi"; 136 status = "okay"; 137 pinctrl-0 = <&i2c0_default>; 138 pinctrl-1 = <&i2c0_sleep>; 139 pinctrl-names = "default", "sleep"; 140}; 141 142&i2c1 { 143 compatible = "nordic,nrf-twi"; 144 /* Cannot be used together with spi1. */ 145 /* status = "okay"; */ 146 pinctrl-0 = <&i2c1_default>; 147 pinctrl-1 = <&i2c1_sleep>; 148 pinctrl-names = "default", "sleep"; 149}; 150 151&pwm0 { 152 status = "okay"; 153 pinctrl-0 = <&pwm0_default>; 154 pinctrl-1 = <&pwm0_sleep>; 155 pinctrl-names = "default", "sleep"; 156}; 157 158&spi0 { 159 compatible = "nordic,nrf-spi"; 160 /* Cannot be used together with i2c0. */ 161 /* status = "okay"; */ 162 pinctrl-0 = <&spi0_default>; 163 pinctrl-1 = <&spi0_sleep>; 164 pinctrl-names = "default", "sleep"; 165}; 166 167&spi1 { 168 compatible = "nordic,nrf-spi"; 169 status = "okay"; 170 pinctrl-0 = <&spi1_default>; 171 pinctrl-1 = <&spi1_sleep>; 172 pinctrl-names = "default", "sleep"; 173}; 174 175&ieee802154 { 176 status = "okay"; 177}; 178 179&flash0 { 180 partitions { 181 compatible = "fixed-partitions"; 182 #address-cells = <1>; 183 #size-cells = <1>; 184 185 boot_partition: partition@0 { 186 label = "mcuboot"; 187 reg = <0x0 0xc000>; 188 }; 189 slot0_partition: partition@c000 { 190 label = "image-0"; 191 reg = <0xc000 0x37000>; 192 }; 193 slot1_partition: partition@43000 { 194 label = "image-1"; 195 reg = <0x43000 0x37000>; 196 }; 197 storage_partition: partition@7a000 { 198 label = "storage"; 199 reg = <0x7a000 0x6000>; 200 }; 201 }; 202}; 203 204zephyr_udc0: &usbd { 205 compatible = "nordic,nrf-usbd"; 206 status = "okay"; 207}; 208