1/* 2 * BMD-380-EVAL board configuration 3 * Copyright (c) 2021 u-blox AG 4 * 5 * SPDX-License-Identifier: Apache-2.0 6 */ 7 8/dts-v1/; 9#include <nordic/nrf52840_qiaa.dtsi> 10#include <nordic/nrf52840_partition.dtsi> 11#include "ubx_bmd380eval_nrf52840-pinctrl.dtsi" 12/* should be ckaa, but not available yet */ 13#include <zephyr/dt-bindings/input/input-event-codes.h> 14 15/ { 16 model = "u-blox BMD-380-EVAL EVK nRF52840"; 17 compatible = "u-blox,ubx-bmd380eval-nrf52840"; 18 19 chosen { 20 zephyr,console = &uart0; 21 zephyr,shell-uart = &uart0; 22 zephyr,uart-mcumgr = &uart0; 23 zephyr,bt-mon-uart = &uart0; 24 zephyr,bt-c2h-uart = &uart0; 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 = "Red 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 = "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 /* These aliases are provided for compatibility with samples */ 80 aliases { 81 led0 = &led0; 82 led1 = &led1; 83 led2 = &led2; 84 led3 = &led3; 85 pwm-led0 = &pwm_led0; 86 sw0 = &button0; 87 sw1 = &button1; 88 sw2 = &button2; 89 sw3 = &button3; 90 watchdog0 = &wdt0; 91 }; 92}; 93 94®1 { 95 regulator-initial-mode = <NRF5X_REG_MODE_DCDC>; 96}; 97 98&adc { 99 status = "okay"; 100}; 101 102&uicr { 103 gpio-as-nreset; 104}; 105 106&gpiote { 107 status = "okay"; 108}; 109 110&gpio0 { 111 status = "okay"; 112}; 113 114&gpio1 { 115 status = "okay"; 116}; 117 118&uart0 { 119 compatible = "nordic,nrf-uart"; 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&i2c1 { 128 compatible = "nordic,nrf-twi"; 129 /* Cannot be used together with spi1. */ 130 /* status = "okay"; */ 131 pinctrl-0 = <&i2c1_default>; 132 pinctrl-1 = <&i2c1_sleep>; 133 pinctrl-names = "default", "sleep"; 134}; 135 136&pwm0 { 137 status = "okay"; 138 pinctrl-0 = <&pwm0_default>; 139 pinctrl-1 = <&pwm0_sleep>; 140 pinctrl-names = "default", "sleep"; 141}; 142 143&spi0 { 144 compatible = "nordic,nrf-spi"; 145 /* Cannot be used together with i2c0. */ 146 /* status = "okay"; */ 147 pinctrl-0 = <&spi0_default>; 148 pinctrl-1 = <&spi0_sleep>; 149 pinctrl-names = "default", "sleep"; 150}; 151 152&spi1 { 153 compatible = "nordic,nrf-spi"; 154 status = "okay"; 155 pinctrl-0 = <&spi1_default>; 156 pinctrl-1 = <&spi1_sleep>; 157 pinctrl-names = "default", "sleep"; 158}; 159 160&spi2 { 161 compatible = "nordic,nrf-spi"; 162 status = "disabled"; 163 pinctrl-0 = <&spi2_default>; 164 pinctrl-1 = <&spi2_sleep>; 165 pinctrl-names = "default", "sleep"; 166}; 167 168&qspi { 169 status = "okay"; 170 pinctrl-0 = <&qspi_default>; 171 pinctrl-1 = <&qspi_sleep>; 172 pinctrl-names = "default", "sleep"; 173 mx25r64: mx25r6435f@0 { 174 compatible = "nordic,qspi-nor"; 175 reg = <0>; 176 writeoc = "pp4io"; 177 readoc = "read4io"; 178 sck-frequency = <8000000>; 179 jedec-id = [c2 28 17]; 180 sfdp-bfp = [ 181 e5 20 f1 ff ff ff ff 03 182 44 eb 08 6b 08 3b 04 bb 183 ee ff ff ff ff ff 00 ff 184 ff ff 00 ff 0c 20 0f 52 185 10 d8 00 ff 23 72 f5 00 186 82 ed 04 cc 44 83 68 44 187 30 b0 30 b0 f7 c4 d5 5c 188 00 be 29 ff f0 d0 ff ff 189 ]; 190 size = <67108864>; 191 has-dpd; 192 t-enter-dpd = <10000>; 193 t-exit-dpd = <35000>; 194 }; 195}; 196 197&ieee802154 { 198 status = "okay"; 199}; 200 201zephyr_udc0: &usbd { 202 compatible = "nordic,nrf-usbd"; 203 status = "okay"; 204}; 205