1/* 2 * Copyright (c) 2021 Laird Connectivity 3 * Copyright (c) 2024 Ezurio 4 * 5 * SPDX-License-Identifier: Apache-2.0 6 */ 7 8/dts-v1/; 9#include <nordic/nrf52840_qiaa.dtsi> 10#include "bl654_sensor_board-pinctrl.dtsi" 11#include <zephyr/dt-bindings/input/input-event-codes.h> 12 13/ { 14 model = "Ezurio BL654 Sensor Board"; 15 compatible = "ezurio,bl654-sensor-board"; 16 17 chosen { 18 zephyr,console = &uart0; 19 zephyr,shell-uart = &uart0; 20 zephyr,uart-mcumgr = &uart0; 21 zephyr,bt-mon-uart = &uart0; 22 zephyr,bt-c2h-uart = &uart0; 23 zephyr,sram = &sram0; 24 zephyr,flash = &flash0; 25 zephyr,code-partition = &slot0_partition; 26 zephyr,ieee802154 = &ieee802154; 27 }; 28 29 leds { 30 compatible = "gpio-leds"; 31 led1: led_1 { 32 gpios = <&gpio0 16 GPIO_ACTIVE_LOW>; 33 label = "Blue LED 1"; 34 }; 35 }; 36 37 buttons { 38 compatible = "gpio-keys"; 39 button1: button_1 { 40 gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>; 41 label = "Push button switch 1 (SW1)"; 42 zephyr,code = <INPUT_KEY_0>; 43 }; 44 }; 45 46 /* These aliases are provided for compatibility with samples */ 47 aliases { 48 led0 = &led1; 49 sw0 = &button1; 50 mcuboot-button0 = &button1; 51 mcuboot-led0 = &led1; 52 watchdog0 = &wdt0; 53 }; 54}; 55 56®1 { 57 regulator-initial-mode = <NRF5X_REG_MODE_DCDC>; 58}; 59 60&adc { 61 status = "okay"; 62}; 63 64&uicr { 65 gpio-as-nreset; 66}; 67 68&gpiote { 69 status = "okay"; 70}; 71 72&gpio0 { 73 status = "okay"; 74}; 75 76&gpio1 { 77 status = "okay"; 78}; 79 80&uart0 { 81 compatible = "nordic,nrf-uart"; 82 current-speed = <115200>; 83 status = "okay"; 84 pinctrl-0 = <&uart0_default>; 85 pinctrl-1 = <&uart0_sleep>; 86 pinctrl-names = "default", "sleep"; 87}; 88 89&i2c0 { 90 compatible = "nordic,nrf-twi"; 91 status = "okay"; 92 93 pinctrl-0 = <&i2c0_default>; 94 pinctrl-1 = <&i2c0_sleep>; 95 pinctrl-names = "default", "sleep"; 96 bme280@76 { 97 compatible = "bosch,bme280"; 98 status = "okay"; 99 reg = <0x76>; 100 }; 101}; 102 103&pwm0 { 104 status = "okay"; 105 pinctrl-0 = <&pwm0_default>; 106 pinctrl-1 = <&pwm0_sleep>; 107 pinctrl-names = "default", "sleep"; 108}; 109 110&ieee802154 { 111 status = "okay"; 112}; 113 114&flash0 { 115 partitions { 116 compatible = "fixed-partitions"; 117 #address-cells = <1>; 118 #size-cells = <1>; 119 120 boot_partition: partition@0 { 121 label = "mcuboot"; 122 reg = <0x00000000 0x00010000>; 123 }; 124 slot0_partition: partition@10000 { 125 label = "image-0"; 126 reg = <0x00010000 0x00070000>; 127 }; 128 slot1_partition: partition@80000 { 129 label = "image-1"; 130 reg = <0x00080000 0x00070000>; 131 }; 132 scratch_partition: partition@f0000 { 133 label = "image-scratch"; 134 reg = <0x000f0000 0x00008000>; 135 }; 136 137 /* 138 * The flash starting at 0x000f8000 and ending at 139 * 0x000fffff is reserved for use by the application. 140 */ 141 142 /* 143 * Storage partition will be used by FCB/LittleFS/NVS 144 * if enabled. 145 */ 146 storage_partition: partition@f8000 { 147 label = "storage"; 148 reg = <0x000f8000 0x00008000>; 149 }; 150 }; 151}; 152