aboutsummaryrefslogtreecommitdiff
path: root/Documentation/manual.txt
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2018-06-06 12:33:32 -0600
committerDavid Gibson <david@gibson.dropbear.id.au>2018-06-07 21:54:38 +1000
commit4d09a83420df9b971415133b1904bcd9cc4f6fdd (patch)
tree464cb480dcd8b540e131d05d30960209a121edf7 /Documentation/manual.txt
parente617cbe1bd6739a4c530643252264a90e566a5f6 (diff)
downloaddtc-4d09a83420df9b971415133b1904bcd9cc4f6fdd.zip
dtc-4d09a83420df9b971415133b1904bcd9cc4f6fdd.tar.gz
dtc-4d09a83420df9b971415133b1904bcd9cc4f6fdd.tar.bz2
fdtput: Add documentation
This is missing at present and the fdtput tool could use a litle more information than just its help text. This might be useful for distributions which want to provide a man page. Signed-off-by: Simon Glass <sjg@chromium.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'Documentation/manual.txt')
-rw-r--r--Documentation/manual.txt33
1 files changed, 33 insertions, 0 deletions
diff --git a/Documentation/manual.txt b/Documentation/manual.txt
index af8d315..6898caa 100644
--- a/Documentation/manual.txt
+++ b/Documentation/manual.txt
@@ -724,3 +724,36 @@ where options are:
If -t is not provided, fdtget will try to figure out the type, trying to detect
strings, string lists and the size of each value in the property. This is
similar to how fdtdump works, and uses the same heuristics.
+
+
+5 ) fdtput - Write properties to a device tree
+
+The syntax of the fdtput command is:
+
+ fdtput <options> <dt file> <node> <property> [<value>...]
+ fdtput -c <options> <dt file> [<node>...]
+ fdtput -r <options> <dt file> [<node>...]
+ fdtput -d <options> <dt file> <node> [<property>...]
+
+Options are:
+
+ <type> s=string, i=int, u=unsigned, x=hex
+ Optional modifier prefix:
+ hh or b=byte, h=2 byte, l=4 byte (default)
+
+ -c, --create Create nodes if they don't already exist
+ -r, --remove Delete nodes (and any subnodes) if they already exist
+ -d, --delete Delete properties if they already exist
+ -p, --auto-path Automatically create nodes as needed for the node path
+ -t, --type <arg> Type of data
+ -v, --verbose Display each value decoded from command line
+ -h, --help Print this help and exit
+ -V, --version Print version and exit
+
+The option determines which usage is selected and therefore the operation that
+is performed. The first usage adds or updates properties; the rest are used to
+create/delete nodes and delete properties.
+
+For the first usage, the command line arguments are joined together into a
+single value which is written to the property. The -t option is required so
+that fdtput knows how to decode its arguments.