Lines Matching +full:dts +full:- +full:node
1 // SPDX-License-Identifier: GPL-2.0-or-later
22 int auto_label_aliases; /* auto generate labels -> aliases */
28 return (x > 0) && ((x & (x - 1)) == 0); in is_power_of_2()
31 static void fill_fullpaths(struct node *tree, const char *prefix) in fill_fullpaths()
33 struct node *child; in fill_fullpaths()
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()
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'},
62 {"boot-cpu", a_argument, NULL, 'b'},
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",
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)",
121 if (!strcasecmp(s, ".dts")) in guess_type_by_name()
122 return "dts"; in guess_type_by_name()
165 const char *outname = "-"; in main()
172 long long cmdline_boot_cpuid = -1; in main()
209 die("Invalid argument \"%d\" to -a option\n", in main()
234 die("Invalid argument \"%s\" to -H option\n", in main()
270 arg = "-"; in main()
276 die("Can't set both -p and -S\n"); in main()
287 inform = guess_input_format(arg, "dts"); in main()
291 if (streq(inform, "dts")) in main()
294 outform = "dts"; in main()
297 if (annotate && (!streq(inform, "dts") || !streq(outform, "dts"))) in main()
298 die("--annotate requires -I dts -O dts\n"); in main()
299 if (streq(inform, "dts")) in main()
308 dti->outname = outname; in main()
315 if (cmdline_boot_cpuid != -1) in main()
316 dti->boot_cpuid_phys = cmdline_boot_cpuid; in main()
318 fill_fullpaths(dti->dt, ""); in main()
321 if (dti->dtsflags & DTSF_PLUGIN) { in main()
341 if (streq(outname, "-")) { in main()
350 if (streq(outform, "dts")) { in main()
354 if (!streq(inform, "dts")) in main()
355 die("YAML output format requires dts input format\n"); in main()