Lines Matching +full:dt +full:- +full:node
1 // SPDX-License-Identifier: GPL-2.0-or-later
7 #define pr_fmt(fmt) "yamon-dt: " fmt
16 #include <asm/yamon-dt.h>
24 /* find or add chosen node */ in yamon_dt_append_cmdline()
26 if (chosen_off == -FDT_ERR_NOTFOUND) in yamon_dt_append_cmdline()
29 pr_err("Unable to find or add DT chosen node: %d\n", in yamon_dt_append_cmdline()
53 for (mr = regions; mr->size && memsize; ++mr) { in gen_fdt_mem_array()
61 size = min_t(unsigned long, memsize, mr->size); in gen_fdt_mem_array()
62 memsize -= size; in gen_fdt_mem_array()
65 *(mem_array++) = cpu_to_be32(mr->start); in gen_fdt_mem_array()
69 /* Discard the next mr->discard bytes */ in gen_fdt_mem_array()
70 memsize -= min_t(unsigned long, memsize, mr->discard); in gen_fdt_mem_array()
121 /* find or add a memory node */ in yamon_dt_append_memory()
123 if (mem_off == -FDT_ERR_NOTFOUND) in yamon_dt_append_memory()
126 pr_err("Unable to find or add memory DT node: %d\n", mem_off); in yamon_dt_append_memory()
132 pr_err("Unable to set memory node device_type: %d\n", err); in yamon_dt_append_memory()
147 err = fdt_setprop(fdt, mem_off, "linux,usable-memory", in yamon_dt_append_memory()
150 pr_err("Unable to set linux,usable-memory property: %d\n", err); in yamon_dt_append_memory()
185 baud += mode_var[0] - '0'; in yamon_dt_serial_config()
195 stop_bits = mode_var[0] - '0'; in yamon_dt_serial_config()
215 /* find or add chosen node */ in yamon_dt_serial_config()
217 if (chosen_off == -FDT_ERR_NOTFOUND) in yamon_dt_serial_config()
220 pr_err("Unable to find or add DT chosen node: %d\n", in yamon_dt_serial_config()
225 err = fdt_setprop_string(fdt, chosen_off, "stdout-path", path); in yamon_dt_serial_config()
227 pr_err("Unable to set stdout-path property: %d\n", err); in yamon_dt_serial_config()