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 {"local-fixups", no_argument, NULL, 'L'},
71 {"auto-alias", no_argument, NULL, 'A'},
78 "\n\tQuiet: -q suppress warnings, -qq errors, -qqq all",
80 "\t\tdts - device tree source text\n"
81 "\t\tdtb - device tree blob\n"
82 "\t\tfs - /proc/device-tree style directory",
85 "\t\tdts - device tree source text\n"
86 "\t\tdtb - device tree blob\n"
88 "\t\tyaml - device tree encoded as YAML\n"
90 "\t\tasm - assembler source",
102 "\t\tlegacy - \"linux,phandle\" properties only\n"
103 "\t\tepapr - \"phandle\" properties only\n"
104 "\t\tboth - Both \"linux,phandle\" and \"phandle\" properties",
105 "\n\tEnable/disable warnings (prefix with \"no-\")",
106 "\n\tEnable/disable errors (prefix with \"no-\")",
108 "\n\tPossibly generates a __local_fixups__ and a __fixups__ node at the root node",
109 "\n\tEnable auto-alias of labels",
110 "\n\tAnnotate output .dts with input source file and line (-T -T for more details)",
123 if (!strcasecmp(s, ".dts")) in guess_type_by_name()
124 return "dts"; in guess_type_by_name()
169 const char *outname = "-"; in main()
176 long long cmdline_boot_cpuid = -1; in main()
213 die("Invalid argument \"%d\" to -a option\n", in main()
238 die("Invalid argument \"%s\" to -H option\n", in main()
279 arg = "-"; in main()
285 die("Can't set both -p and -S\n"); in main()
296 inform = guess_input_format(arg, "dts"); in main()
300 if (streq(inform, "dts")) in main()
303 outform = "dts"; in main()
306 if (annotate && (!streq(inform, "dts") || !streq(outform, "dts"))) in main()
307 die("--annotate requires -I dts -O dts\n"); in main()
308 if (streq(inform, "dts")) in main()
317 dti->outname = outname; in main()
324 if (cmdline_boot_cpuid != -1) in main()
325 dti->boot_cpuid_phys = cmdline_boot_cpuid; in main()
327 fill_fullpaths(dti->dt, ""); in main()
330 if (dti->dtsflags & DTSF_PLUGIN) { in main()
350 if (streq(outname, "-")) { in main()
359 if (streq(outform, "dts")) { in main()
363 if (!streq(inform, "dts")) in main()
364 die("YAML output format requires dts input format\n"); in main()