Lines Matching +full:dt +full:- +full:node
1 // SPDX-License-Identifier: GPL-2.0-or-later
15 #include <asm/mips-boards/generic.h>
16 #include <asm/mips-boards/malta.h>
17 #include <asm/mips-cps.h>
91 size -= size_preio; in gen_fdt_mem_array()
99 * obscures 256MB from 0x10000000-0x1fffffff. in gen_fdt_mem_array()
105 size -= SZ_256M; in gen_fdt_mem_array()
115 * obscures 256MB from 0x10000000-0x1fffffff in the low alias in gen_fdt_mem_array()
143 /* if a memory node already exists, leave it alone */ in append_memory()
169 * SOC-it swaps, or perhaps doesn't swap, when DMA'ing in append_memory()
172 physical_memsize -= PAGE_SIZE; in append_memory()
205 /* append memory to the DT */ in append_memory()
208 panic("Unable to add memory node to DT: %d", mem_off); in append_memory()
212 panic("Unable to set memory node device_type: %d", err); in append_memory()
221 err = fdt_setprop(fdt, mem_off, "linux,usable-memory", mem_array, in append_memory()
224 panic("Unable to set linux,usable-memory property: %d", err); in append_memory()
233 /* if we have a CM which reports a GIC is present, leave the DT alone */ in remove_gic()
254 gic_off = fdt_node_offset_by_compatible(fdt, -1, "mti,gic"); in remove_gic()
256 pr_warn("malta-dtshim: unable to find DT GIC node: %d\n", in remove_gic()
263 pr_warn("malta-dtshim: unable to nop GIC node\n"); in remove_gic()
265 i8259_off = fdt_node_offset_by_compatible(fdt, -1, "intel,i8259"); in remove_gic()
267 pr_warn("malta-dtshim: unable to find DT i8259 node: %d\n", in remove_gic()
272 cpu_off = fdt_node_offset_by_compatible(fdt, -1, in remove_gic()
273 "mti,cpu-interrupt-controller"); in remove_gic()
275 pr_warn("malta-dtshim: unable to find CPU intc node: %d\n", in remove_gic()
282 pr_warn("malta-dtshim: unable to get CPU intc phandle\n"); in remove_gic()
286 err = fdt_setprop_u32(fdt, i8259_off, "interrupt-parent", cpu_phandle); in remove_gic()
288 pr_warn("malta-dtshim: unable to set i8259 interrupt-parent: %d\n", in remove_gic()
295 pr_warn("malta-dtshim: unable to set i8259 interrupts: %d\n", in remove_gic()
307 panic("Corrupt DT"); in malta_dt_shim()
315 panic("No / node in DT"); in malta_dt_shim()
319 panic("No root compatible property in DT: %d", len); in malta_dt_shim()
321 /* if this isn't Malta, leave the DT alone */ in malta_dt_shim()