Device tree source files

From Wiki at Neela Nurseries
Revision as of 23:13, 5 August 2021 by Ted (talk | contribs) (starting notes page on DTS files.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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:

  "/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 . . .

a
b