PHF000-Firmware/boards/Mi_labs/phf000_board/phf000_board.dts

186 lines
3.6 KiB
Plaintext

/*
* Copyright (c) 2019 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
/dts-v1/;
#include <nordic/nrf52833_qdaa.dtsi>
#include "phf000_board-pinctrl.dtsi"
#include <zephyr/dt-bindings/input/input-event-codes.h>
/ {
model = "PHF000 RA Board";
compatible = "arm,phf000_board";
chosen {
zephyr,console = &cdc_acm_uart0;
zephyr,udc = &usbd;
zephyr,shell-uart = &uart0;
zephyr,uart-mcumgr = &uart0;
zephyr,bt-mon-uart = &uart0;
zephyr,bt-c2h-uart = &uart0;
zephyr,sram = &sram0;
zephyr,flash = &flash0;
zephyr,code-partition = &slot0_partition;
zephyr,ieee802154 = &ieee802154;
};
leds {
compatible = "gpio-leds";
led0: led_0 {
gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
label = "Red LED 0";
};
led1: led_1 {
gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
label = "Green LED 1";
};
};
buttons {
compatible = "gpio-keys";
button0: button_0 {
gpios = <&gpio0 28 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
label = "Push button switch 0";
zephyr,code = <INPUT_KEY_0>;
};
};
/* These aliases are provided for compatibility with samples */
aliases {
led0 = &led0;
led1 = &led1;
sw0 = &button0;
bootloader-led0 = &led0;
mcuboot-button0 = &button0;
mcuboot-led0 = &led0;
watchdog0 = &wdt0;
};
zephyr,user {
hum_en-gpios = <&gpio0 2 0>;
do2-gpios = <&gpio0 3 (1 << 9)>;
do_en-gpios = <&gpio0 9 0>;
do1-gpios = <&gpio0 10 0>;
btt_meas_en-gpios = <&gpio0 29 0>;
io-channels = <&adc 6>;
};
reserved-memory {
#address-cells = <1>;
#size-cells = <1>;
ranges;
};
};
&reg1 {
regulator-initial-mode = <NRF5X_REG_MODE_LDO>;
status = "okay";
compatible = "nordic,nrf5x-regulator";
};
&adc {
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
channel@6 {
reg = <6>;
zephyr,gain = "ADC_GAIN_1_6";
zephyr,reference = "ADC_REF_INTERNAL";
//zephyr,vref-mv = <750>;
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
zephyr,input-positive = <NRF_SAADC_AIN6>;
//zephyr,acquisition-time = <ADC_ACQ_TIME(ADC_ACQ_TIME_MICROSECONDS, 200)>;
zephyr,resolution = <12>;
};
};
&uicr {
gpio-as-nreset;
nfct-pins-as-gpios;
};
&gpiote {
status = "okay";
};
&gpio0 {
status = "okay";
};
&gpio1 {
status = "okay";
};
/*
&flash0 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
boot_partition: partition@0 {
label = "mcuboot";
reg = <0x00000000 0x10000>; // 64 KB
};
slot0_partition: partition@10000 {
label = "image-0";
reg = <0x00010000 0x1C000>; // 112 KB
};
slot1_partition: partition@2C000 {
label = "image-1";
reg = <0x0002C000 0x1C000>; // 112 KB
};
storage_partition: partition@48000 {
label = "storage";
reg = <0x00048000 0x8000>; // 32 KB
};
};
};*/
&flash0 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
boot_partition: partition@0 {
label = "mcuboot";
reg = <0x00000000 0x10000>;
};
slot0_partition: partition@10000 {
label = "image-0";
reg = <0x000010000 0x36000>;
};
slot1_partition: partition@46000 {
label = "image-1";
reg = <0x00046000 0x36000>;
};
storage_partition: partition@7c000 {
label = "storage";
reg = <0x0007c000 0x00004000>;
};
};
};
zephyr_udc0: &usbd {
compatible = "nordic,nrf-usbd";
status = "okay";
cdc_acm_uart0: cdc_acm_uart0 {
compatible = "zephyr,cdc-acm-uart";
};
};
&reg0 {
status = "okay";
};
&power {
status = "okay";
};
&temp {
compatible = "nordic,nrf-temp";
status = "okay";
};