Lines Matching +full:a +full:- +full:phandle
1 // SPDX-License-Identifier: GPL-2.0-or-later
19 int phandle_format = PHANDLE_EPAPR; /* Use linux,phandle or phandle properties */
22 int auto_label_aliases; /* auto generate labels -> aliases */
28 return (x > 0) && ((x & (x - 1)) == 0); in is_power_of_2()
36 tree->fullpath = join_path(prefix, tree->name); in fill_fullpaths()
38 unit = strchr(tree->name, '@'); in fill_fullpaths()
40 tree->basenamelen = unit - tree->name; in fill_fullpaths()
42 tree->basenamelen = strlen(tree->name); in fill_fullpaths()
45 fill_fullpaths(child, tree->fullpath); in fill_fullpaths()
50 static const char usage_short_opts[] = "qI:O:o:V:d:R:S:p:a:fb:i:H:sW:E:@AThv";
53 {"in-format", a_argument, NULL, 'I'},
55 {"out-format", a_argument, NULL, 'O'},
56 {"out-version", a_argument, NULL, 'V'},
57 {"out-dependency", a_argument, NULL, 'd'},
61 {"align", a_argument, NULL, 'a'},
62 {"boot-cpu", a_argument, NULL, 'b'},
66 {"phandle", a_argument, NULL, 'H'},
70 {"auto-alias", no_argument, NULL, 'A'},
77 "\n\tQuiet: -q suppress warnings, -qq errors, -qqq all",
79 "\t\tdts - device tree source text\n"
80 "\t\tdtb - device tree blob\n"
81 "\t\tfs - /proc/device-tree style directory",
84 "\t\tdts - device tree source text\n"
85 "\t\tdtb - device tree blob\n"
87 "\t\tyaml - device tree encoded as YAML\n"
89 "\t\tasm - assembler source",
98 "\n\tAdd a path to search for include files",
100 "\n\tValid phandle formats are:\n"
101 "\t\tlegacy - \"linux,phandle\" properties only\n"
102 "\t\tepapr - \"phandle\" properties only\n"
103 "\t\tboth - Both \"linux,phandle\" and \"phandle\" properties",
104 "\n\tEnable/disable warnings (prefix with \"no-\")",
105 "\n\tEnable/disable errors (prefix with \"no-\")",
107 "\n\tEnable auto-alias of labels",
108 "\n\tAnnotate output .dts with input source file and line (-T -T for more details)",
167 const char *outname = "-"; in main()
174 long long cmdline_boot_cpuid = -1; in main()
208 case 'a': in main()
211 die("Invalid argument \"%d\" to -a option\n", in main()
236 die("Invalid argument \"%s\" to -H option\n", in main()
255 case 'A': in main()
272 arg = "-"; in main()
278 die("Can't set both -p and -S\n"); in main()
300 die("--annotate requires -I dts -O dts\n"); in main()
310 dti->outname = outname; in main()
317 if (cmdline_boot_cpuid != -1) in main()
318 dti->boot_cpuid_phys = cmdline_boot_cpuid; in main()
320 fill_fullpaths(dti->dt, ""); in main()
322 /* on a plugin, generate by default */ in main()
323 if (dti->dtsflags & DTSF_PLUGIN) { in main()
343 if (streq(outname, "-")) { in main()