1246647Skientzle$FreeBSD$ 2246647Skientzle############################################################################### 3246647Skientzle# Tfdt Dfdt manipulation commands 4246647Skientzle 5246647Skientzle fdt <subcommand> <arguments> 6246647Skientzle 7246647Skientzle Facilities for loading and manipulating device tree data. 8246647Skientzle 9246647Skientzle############################################################################### 10246647Skientzle# Tfdt Saddr Dload fdt from an address in memory 11246647Skientzle 12246647Skientzle fdt addr <address> 13246647Skientzle 14246647Skientzle Copies compiled device tree from a particular location 15246647Skientzle in memory. 16246647Skientzle 17246647Skientzle############################################################################### 18246647Skientzle# Tfdt Salias DXXX 19246647Skientzle 20246647Skientzle fdt alias <address> 21246647Skientzle 22246647Skientzle Not Yet Implemented 23246647Skientzle 24246647Skientzle############################################################################### 25246647Skientzle# Tfdt Scd DSelect a particular node for future commands 26246647Skientzle 27246647Skientzle fdt cd <path> 28246647Skientzle 29246647Skientzle Changes the current node to the node specified by the path. 30246647Skientzle Path elements are separated by '/'; a leading '/' represents 31246647Skientzle the root node. 32246647Skientzle 33246647Skientzle############################################################################### 34246647Skientzle# Tfdt Sheader DDump the header of the compiled device tree 35246647Skientzle 36246647Skientzle fdt header 37246647Skientzle 38246647Skientzle Dumps DTB size, format and other key values. 39246647Skientzle 40246647Skientzle############################################################################### 41246647Skientzle# Tfdt Sls DList subnodes of the current node 42246647Skientzle 43246647Skientzle fdt ls <path> 44246647Skientzle 45246647Skientzle Lists the nodes under the specified path. 46246647Skientzle If no path is specified, lists nodes under the current path. 47246647Skientzle 48246647Skientzle############################################################################### 49246647Skientzle# Tfdt Smknode DCreate a new node in the device tree 50246647Skientzle 51246647Skientzle fdt mknode <name> 52246647Skientzle 53246647Skientzle Creates a new node with the specified name. 54246647Skientzle 55246647Skientzle############################################################################### 56246647Skientzle# Tfdt Smkprop DAdd a new property to the current node 57246647Skientzle 58246647Skientzle fdt mkprop <name> <value> ... 59246647Skientzle 60246647Skientzle Creates a new property with the specified name and values. 61246647Skientzle Multiple values can be specified and will be concatenated. 62246647Skientzle 63246647Skientzle############################################################################### 64246647Skientzle# Tfdt Smres DXXX 65246647Skientzle 66246647Skientzle fdt mres 67246647Skientzle 68246647Skientzle Dumps the list of reserved memory regions. 69246647Skientzle 70246647Skientzle############################################################################### 71246647Skientzle# Tfdt Sprop DDump value of a particular property 72246647Skientzle 73246647Skientzle fdt prop <name> <value> ... 74246647Skientzle 75246647Skientzle If value is specified, set the given property to the indicated value. 76246647Skientzle Otherwise, print the value of the property. 77246647Skientzle 78246647Skientzle############################################################################### 79246647Skientzle# Tfdt Spwd DPrint path to current node in device tree 80246647Skientzle 81246647Skientzle fdt pwd 82246647Skientzle 83246647Skientzle Print path to the current node in the device tree. 84246647Skientzle The current node can be changed with "fdt cd". 85246647Skientzle 86246647Skientzle############################################################################### 87246647Skientzle# Tfdt Srm DRemove node or property from device tree 88246647Skientzle 89246647Skientzle fdt rm <name> 90246647Skientzle 91246647Skientzle The named node or property will be removed from the device tree. 92246647Skientzle 93246647Skientzle############################################################################### 94