1// SPDX-License-Identifier: Apache-2.0 2 3/* 4 * Copyright (c) 2021 Blue Clover 5 */ 6 7/dts-v1/; 8#include <nordic/nrf52832_qfaa.dtsi> 9#include "blueclover_plt_demo_v2_nrf52832-pinctrl.dtsi" 10#include <zephyr/dt-bindings/input/input-event-codes.h> 11#include <zephyr/dt-bindings/led/led.h> 12 13/ { 14 model = "Blue Clover PLT Demo Board V2"; 15 compatible = "nordic,blueclover-plt-demo-v2-nrf52832"; 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 }; 27 28 buttons { 29 compatible = "gpio-keys"; 30 button0: button_0 { 31 gpios = <&gpio0 26 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; 32 label = "Push button switch 0"; 33 zephyr,code = <INPUT_KEY_0>; 34 }; 35 button1: button_1 { 36 gpios = <&gpio0 21 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; 37 label = "Push button switch 1"; 38 zephyr,code = <INPUT_KEY_1>; 39 }; 40 }; 41 42 /* These aliases are provided for compatibility with samples */ 43 aliases { 44 sw0 = &button0; 45 sw1 = &button1; 46 pwm-buzzer = &pwm0; 47 watchdog0 = &wdt0; 48 accel0 = &bmi270; 49 led-strip = &apa102; 50 }; 51}; 52 53® { 54 regulator-initial-mode = <NRF5X_REG_MODE_DCDC>; 55}; 56 57&uicr { 58 gpio-as-nreset; 59}; 60 61&gpiote { 62 status ="okay"; 63}; 64 65&gpio0 { 66 status ="okay"; 67}; 68 69&uart0 { 70 status = "okay"; 71 compatible = "nordic,nrf-uart"; 72 current-speed = <115200>; 73 pinctrl-0 = <&uart0_default>; 74 pinctrl-1 = <&uart0_sleep>; 75 pinctrl-names = "default", "sleep"; 76}; 77 78&i2c0 { 79 compatible = "nordic,nrf-twi"; 80 status = "okay"; 81 82 pinctrl-0 = <&i2c0_default>; 83 pinctrl-1 = <&i2c0_sleep>; 84 pinctrl-names = "default", "sleep"; 85 sht3xd@44 { 86 compatible = "sensirion,sht3xd"; 87 reg = <0x44>; 88 }; 89 90 bmi270: bmi270@68 { 91 compatible = "bosch,bmi270"; 92 reg = <0x68>; 93 }; 94}; 95 96&pwm0 { 97 /* buzzer */ 98 status = "okay"; 99 pinctrl-0 = <&pwm0_default>; 100 pinctrl-1 = <&pwm0_sleep>; 101 pinctrl-names = "default", "sleep"; 102}; 103 104&spi1 { 105 compatible = "nordic,nrf-spi"; 106 status = "okay"; 107 108 pinctrl-0 = <&spi1_default>; 109 pinctrl-1 = <&spi1_sleep>; 110 pinctrl-names = "default", "sleep"; 111 apa102: apa102@0 { 112 compatible = "apa,apa102"; 113 reg = <0>; 114 spi-max-frequency = <5250000>; 115 chain-length = <4>; 116 color-mapping = <LED_COLOR_ID_BLUE 117 LED_COLOR_ID_GREEN 118 LED_COLOR_ID_RED>; 119 }; 120}; 121 122&flash0 { 123 partitions { 124 compatible = "fixed-partitions"; 125 #address-cells = <1>; 126 #size-cells = <1>; 127 128 boot_partition: partition@0 { 129 label = "mcuboot"; 130 reg = <0x00000000 0xc000>; 131 }; 132 slot0_partition: partition@c000 { 133 label = "image-0"; 134 reg = <0x0000C000 0x32000>; 135 }; 136 slot1_partition: partition@3e000 { 137 label = "image-1"; 138 reg = <0x0003E000 0x32000>; 139 }; 140 scratch_partition: partition@70000 { 141 label = "image-scratch"; 142 reg = <0x00070000 0xa000>; 143 }; 144 storage_partition: partition@7a000 { 145 label = "storage"; 146 reg = <0x0007a000 0x00006000>; 147 }; 148 }; 149}; 150