Device tree source files

From Wiki at Neela Nurseries
Jump to: navigation, search

Building Zephyr blinky example to run on Sparkfun / CircuitDojo nRF9160 Thing Plus board, the parent most Device Tree Source (DTS) file is, on our local VM host. We located this file mentioned in the blinky project's build directory, build/CMakeCache.txt, where cmake stores many build time messages and details:

  "/usr/local/share/ncs/v1.4.1/zephyr/boards/arm/circuitdojo_feather_nrf9160/circuitdojo_feather_nrf9160.dts"

File in full - circuitdojo_feather_nrf9160.dts:

/*
 * Copyright (c) 2018-2020 Nordic Semiconductor ASA
 * Copyright (c) 2020 Circuit Dojo LLC
 *
 * SPDX-License-Identifier: Apache-2.0
 */

/dts-v1/;
#include <nordic/nrf9160_sica.dtsi>
#include "circuitdojo_feather_nrf9160_common.dts"

/ {
        chosen {
                zephyr,sram = &sram0_s;
                zephyr,flash = &flash0;
                zephyr,code-partition = &slot0_partition;
                zephyr,sram-secure-partition = &sram0_s;
                zephyr,sram-non-secure-partition = &sram0_ns;
        };
};

This file in turn includes two more DTS files. Their content is . . .

/*
 * Copyright (c) 2018 Nordic Semiconductor ASA
 *
 * SPDX-License-Identifier: Apache-2.0
 */

#include <mem.h>
#include <nordic/nrf9160ns.dtsi>

&flash0 {
        reg = <0x00000000 DT_SIZE_K(1024)>;
};

&sram0 {
        reg = <0x20000000 DT_SIZE_K(256)>;
};

/ {
        soc {
                compatible = "nordic,nRF9160-SICA", "nordic,nRF9160", "nordic,nRF91", "simple-bus";
        };
};
b