hsi::create_dt_node - 2021.2 English

Vitis Unified Software Platform Documentation: Embedded Software Development (UG1400)

Document ID
UG1400
Release Date
2021-12-15
Version
2021.2 English

Description

Create a DT node.

Syntax

create_dt_node -name <arg> [-unit_addr <arg>] [-label <arg>] [-objects <args>] [-quiet] [-verbose] 

Returns

DT node object. Returns nothing if the command fails.

Usage

Name Description
-name Child DT node name
[-unit_addr] Unit address of node
[-label] Label of node
[-objects] List of nodes
[-quiet] Ignore command errors
[-verbose] Suspend message limits during command execution

Categories

DeviceTree

Description

Create a new DT node and add to the current DT tree.

If successful, this command returns the name of the DT node created where name is represented as "node_label"+"node_name"+"@unit_address". Otherwise it returns an error.

Arguments

-name - The name of the node to be created.

-label - The label of the node to represent in generated dtsi file.

--unit_addr - The unit address of the node to represent in generated dtsi file.

-objects - The list of node objects where the newly created node will be a child to all specified nodes.

-quiet – (optional) Execute the command quietly, returning no messages from the command. The command also returns TCL_OK regardless of any errors encountered during execution.
Note: Any errors encountered on the command line while launching the command are returned. Only errors occurring inside the command are trapped.
-verbose – (optional) Temporarily override any message limits and return all messages from this command.
Note: Message limits can be defined with the set_msg_config command.

Examples

Create a new DT node amba with lable axi_interconnect and unit_addr 0x000 in the current DT tree:

hsi::create_dt_node -name amba -label axi_interconnect -unit_addr 0x0000
hsi::create_dt_node -name amba -label axi_interconnect -unit_addr 0x0000 -objects [get_dt_nodes -of_objects\>