Home
last modified time | relevance | path

Searched refs:fdt_setprop (Results 1 – 25 of 86) sorted by relevance

1234

/openbmc/u-boot/arch/arm/mach-omap2/
H A Dfdt-common.c103 fdt_setprop(fdt, offs, "#address-cells", &address_cells, sizeof(address_cells)); in ft_hs_fixup_dram()
104 fdt_setprop(fdt, offs, "#size-cells", &size_cells, sizeof(size_cells)); in ft_hs_fixup_dram()
105 fdt_setprop(fdt, offs, "ranges", NULL, 0); in ft_hs_fixup_dram()
117 fdt_setprop(fdt, offs, "no-map", NULL, 0); in ft_hs_fixup_dram()
119 fdt_setprop(fdt, offs, "reg", temp, len); in ft_hs_fixup_dram()
/openbmc/u-boot/board/freescale/mpc8569mds/
H A Dmpc8569mds.c320 err = fdt_setprop(blob, off, "status", status, strlen(status) + 1); in fdt_board_disable_serial()
388 fdt_setprop(blob, off, "device_type", devtype, strlen(devtype) + 1); in fdt_board_fixup_qe_uart()
389 fdt_setprop(blob, off, "compatible", compat, strlen(compat) + 1); in fdt_board_fixup_qe_uart()
390 fdt_setprop(blob, off, "tx-clock-name", clk, strlen(clk) + 1); in fdt_board_fixup_qe_uart()
391 fdt_setprop(blob, off, "rx-clock-name", clk, strlen(clk) + 1); in fdt_board_fixup_qe_uart()
392 fdt_setprop(blob, off, "port-number", &portnum, sizeof(portnum)); in fdt_board_fixup_qe_uart()
464 fdt_setprop(blob, off, "status", status, in fdt_board_fixup_esdhc()
567 err = fdt_setprop(blob, off, "reg", &val, sizeof(u32)); in ft_board_setup()
/openbmc/u-boot/drivers/misc/
H A Dfsl_portals.c151 ret = fdt_setprop(blob, childoff, "dev-handle", in fdt_qportal()
158 ret = fdt_setprop(blob, childoff, "fsl,liodn", in fdt_qportal()
167 ret = fdt_setprop(blob, childoff, in fdt_qportal()
172 ret = fdt_setprop(blob, childoff, in fdt_qportal()
231 err = fdt_setprop(blob, off, "compatible", compat, compat_len); in fdt_fixup_qportals()
238 err = fdt_setprop(blob, off, "fsl,liodn", in fdt_fixup_qportals()
327 err = fdt_setprop(blob, off, "compatible", compat, compat_len); in fdt_fixup_bportals()
/openbmc/qemu/hw/ppc/
H A Dspapr_numa.c356 _FDT((fdt_setprop(fdt, offset, "ibm,associativity", in spapr_numa_write_associativity_dt()
393 return fdt_setprop(fdt, offset, "ibm,associativity", vcpu_assoc, in spapr_numa_fixup_cpu_dt()
427 return fdt_setprop(fdt, offset, "ibm,associativity-lookup-arrays", in spapr_numa_write_assoc_lookup_arrays()
481 _FDT(fdt_setprop(fdt, rtas, "ibm,associativity-reference-points", in spapr_numa_FORM1_write_rtas_dt()
484 _FDT(fdt_setprop(fdt, rtas, "ibm,max-associativity-domains", in spapr_numa_FORM1_write_rtas_dt()
509 _FDT(fdt_setprop(fdt, rtas, "ibm,numa-lookup-index-table", in spapr_numa_FORM2_write_rtas_tables()
537 _FDT(fdt_setprop(fdt, rtas, "ibm,numa-distance-table", in spapr_numa_FORM2_write_rtas_tables()
569 _FDT(fdt_setprop(fdt, rtas, "ibm,associativity-reference-points", in spapr_numa_FORM2_write_rtas_dt()
572 _FDT(fdt_setprop(fdt, rtas, "ibm,max-associativity-domains", in spapr_numa_FORM2_write_rtas_dt()
H A Dpnv_xscom.c283 _FDT((fdt_setprop(fdt, xscom_offset, "reg", reg, sizeof(reg)))); in pnv_dt_xscom()
284 _FDT((fdt_setprop(fdt, xscom_offset, "compatible", compat, compat_size))); in pnv_dt_xscom()
285 _FDT((fdt_setprop(fdt, xscom_offset, "scom-controller", NULL, 0))); in pnv_dt_xscom()
287 _FDT((fdt_setprop(fdt, xscom_offset, "primary", NULL, 0))); in pnv_dt_xscom()
H A Dpnv_lpc.c119 _FDT((fdt_setprop(fdt, offset, "reg", reg, sizeof(reg)))); in pnv_lpc_dt_xscom()
122 _FDT((fdt_setprop(fdt, offset, "compatible", compat, sizeof(compat)))); in pnv_lpc_dt_xscom()
168 _FDT((fdt_setprop(fdt, lpcm_offset, "reg", opb_reg, sizeof(opb_reg)))); in pnv_dt_lpc()
171 _FDT((fdt_setprop(fdt, lpcm_offset, "compatible", compat, sizeof(compat)))); in pnv_dt_lpc()
173 _FDT((fdt_setprop(fdt, lpcm_offset, "ranges", opb_ranges, in pnv_dt_lpc()
186 _FDT((fdt_setprop(fdt, offset, "reg", reg, sizeof(reg)))); in pnv_dt_lpc()
200 _FDT((fdt_setprop(fdt, offset, "reg", reg, sizeof(reg)))); in pnv_dt_lpc()
214 _FDT((fdt_setprop(fdt, offset, "reg", reg, sizeof(reg)))); in pnv_dt_lpc()
224 _FDT((fdt_setprop(fdt, offset, "compatible", lpc_compat, in pnv_dt_lpc()
226 _FDT((fdt_setprop(fdt, offset, "ranges", lpc_ranges, in pnv_dt_lpc()
H A Dpnv_chiptod.c435 _FDT((fdt_setprop(fdt, offset, "primary", NULL, 0))); in pnv_chiptod_dt_xscom()
437 _FDT((fdt_setprop(fdt, offset, "secondary", NULL, 0))); in pnv_chiptod_dt_xscom()
440 _FDT((fdt_setprop(fdt, offset, "reg", reg, sizeof(reg)))); in pnv_chiptod_dt_xscom()
441 _FDT((fdt_setprop(fdt, offset, "compatible", compat, compat_size))); in pnv_chiptod_dt_xscom()
H A Dpnv.c108 _FDT((fdt_setprop(fdt, off, "reg", mem_reg_property, in pnv_dt_memory()
201 _FDT((fdt_setprop(fdt, offset, "64-bit", NULL, 0))); in pnv_dt_core()
204 _FDT((fdt_setprop(fdt, offset, "ibm,purr", NULL, 0))); in pnv_dt_core()
299 _FDT((fdt_setprop(fdt, offset, "reg", reg, rsize))); in pnv_dt_icp()
352 _FDT((fdt_setprop(fdt, offset, "ibm,pa-features", in pnv_chip_power8_dt_populate()
409 _FDT((fdt_setprop(fdt, offset, "ibm,pa-features", in pnv_chip_power9_dt_populate()
474 _FDT((fdt_setprop(fdt, offset, "ibm,pa-features", in pnv_chip_power10_dt_populate()
530 _FDT((fdt_setprop(fdt, node, "compatible", compatible, in pnv_dt_serial()
567 _FDT((fdt_setprop(fdt, node, "compatible", compatible, in pnv_dt_ipmi_bt()
677 _FDT((fdt_setprop(fdt, off, "linux,initrd-start", in pnv_dt_create()
[all …]
/openbmc/u-boot/board/toradex/common/
H A Dtdx-common.c128 fdt_setprop(blob, 0, "serial-number", tdx_serial_str, in ft_common_board_setup()
136 fdt_setprop(blob, 0, "toradex,product-id", prod_id, 5); in ft_common_board_setup()
138 fdt_setprop(blob, 0, "toradex,board-rev", tdx_board_rev_str, in ft_common_board_setup()
/openbmc/u-boot/drivers/qe/
H A Dfdt.c39 ret = fdt_setprop(blob, node, "extended-modes", in fdt_fixup_qe_firmware()
48 ret = fdt_setprop(blob, node, "virtual-traps", qe_fw_info->vtraps, in fdt_fixup_qe_firmware()
/openbmc/u-boot/common/
H A Dlcd_simplefb.c70 ret = fdt_setprop(blob, off, "status", disabled, sizeof(disabled)); in lcd_dt_simplefb_add_node()
74 ret = fdt_setprop(blob, off, "compatible", compat, sizeof(compat)); in lcd_dt_simplefb_add_node()
H A Dfdt_support.c97 return fdt_setprop(fdt, nodeoff, prop, val, len); in fdt_find_and_setprop()
129 return fdt_setprop(fdt, chosenoff, "linux,stdout-path", in fdt_fixup_stdout()
201 err = fdt_setprop(fdt, 0, "serial-number", serial, in fdt_root()
293 err = fdt_setprop(fdt, nodeoffset, "bootargs", str, in fdt_chosen()
344 fdt_setprop(fdt, off, prop, val, len); in do_fixup_by_prop()
371 fdt_setprop(fdt, off, prop, val, len); in do_fixup_by_compat()
441 err = fdt_setprop(blob, nodeoffset, "device_type", "memory", in fdt_fixup_memory_banks()
467 err = fdt_setprop(blob, nodeoffset, "reg", tmp, len); in fdt_fixup_memory_banks()
836 ret = fdt_setprop(blob, newoff, "read_only", NULL, 0); in fdt_node_set_part_info()
850 ret = fdt_setprop(blob, newoff, "reg", &cell, sizeof(cell)); in fdt_node_set_part_info()
[all …]
/openbmc/u-boot/drivers/usb/common/
H A Dfsl-dt-fixup.c70 err = fdt_setprop(blob, node_offset, prop_mode, mode, in fdt_fixup_usb_mode_phy_type()
78 err = fdt_setprop(blob, node_offset, prop_type, phy_type, in fdt_fixup_usb_mode_phy_type()
108 err = fdt_setprop(blob, node_offset, prop_erratum, NULL, 0); in fsl_fdt_fixup_usb_erratum()
/openbmc/u-boot/arch/arm/cpu/armv8/fsl-layerscape/
H A Dfdt.c124 fdt_setprop(blob, off, "cpu-release-addr", in ft_fixup_cpu()
213 err = fdt_setprop(blob, offset, "reg", reg, sizeof(reg)); in fdt_fixup_gic()
261 err = fdt_setprop(blob, offset, "interrupts", tmp, len); in _fdt_fixup_msi_node()
283 err = fdt_setprop(blob, offset, "reg", tmp, len); in _fdt_fixup_msi_node()
340 err = fdt_setprop(blob, offset, "interrupt-map", tmp, sizeof(tmp)); in _fdt_fixup_pci_msi()
/openbmc/u-boot/arch/powerpc/cpu/mpc85xx/
H A Dfdt.c77 fdt_setprop(blob, off, "cpu-release-addr", in ft_fixup_cpu()
171 fdt_setprop(blob, off, "cache-unified", NULL, 0); in ft_fixup_l3cache()
212 fdt_setprop(blob, off, "compatible", buf, len); in ft_fixup_l2cache_compatible()
280 fdt_setprop(blob, off, "cache-unified", NULL, 0); in ft_fixup_l2cache()
346 fdt_setprop(blob, l2_off, "cache-unified", NULL, 0); in ft_fixup_l2cache()
590 fdt_setprop(blob, node, "local-mac-address", l2swaddr,
631 fdt_setprop(blob, off, "clock-frequency", &val, 4);
H A Dliodn.c242 off = fdt_setprop(blob, off, "fsl,liodn", in fdt_fixup_srio_liodn()
292 rc = fdt_setprop(fdt, off, "fsl,liodn-offset-list", in fdt_fixup_pci_liodn_offsets()
320 off = fdt_setprop(blob, off, "fsl,liodn", in fdt_fixup_liodn_tbl()
357 off = fdt_setprop(blob, off, "fsl,liodn", in fdt_fixup_liodn_tbl_fman()
/openbmc/u-boot/scripts/dtc/libfdt/
H A Dlibfdt.h1454 int fdt_setprop(void *fdt, int nodeoffset, const char *name,
1520 return fdt_setprop(fdt, nodeoffset, name, &tmp, sizeof(tmp)); in fdt_setprop_u32()
1555 return fdt_setprop(fdt, nodeoffset, name, &tmp, sizeof(tmp)); in fdt_setprop_u64()
1598 fdt_setprop((fdt), (nodeoffset), (name), (str), strlen(str)+1)
1628 fdt_setprop((fdt), (nodeoffset), (name), NULL, 0)
/openbmc/u-boot/arch/powerpc/cpu/mpc83xx/
H A Dfdt.c76 fdt_setprop(blob, path, "interrupts", in ft_cpu_setup()
89 fdt_setprop(blob, path, "interrupts", in ft_cpu_setup()
/openbmc/u-boot/board/gateworks/gw_ventana/
H A Dgw_ventana.c861 fdt_setprop(blob, off, "vidout_fmt", mode, strlen(mode) + 1); in ft_sethdmiinfmt()
864 fdt_setprop(blob, off, "vidout_portcfg", cfg, sizeof(cfg)); in ft_sethdmiinfmt()
870 fdt_setprop(blob, off, "vidout_fmt", mode, strlen(mode) + 1); in ft_sethdmiinfmt()
873 fdt_setprop(blob, off, "vidout_portcfg", cfg, sizeof(cfg)); in ft_sethdmiinfmt()
908 fdt_setprop(blob, np, "reg", reg, sizeof(reg)); in fdt_add_pci_node()
1018 fdt_setprop(blob, np, "interrupt-map", imap_new, in fdt_fixup_gw16082()
1024 fdt_setprop(blob, np, "interrupt-map-mask", reg, sizeof(reg)); in fdt_fixup_gw16082()
1051 fdt_setprop(blob, np, "local-mac-address", mac_addr, in fdt_fixup_sky2()
1165 fdt_setprop(blob, 0, "system-serial", env_get("serial#"), in ft_board_setup()
1169 fdt_setprop(blob, 0, "board", info->model, in ft_board_setup()
/openbmc/linux/scripts/dtc/libfdt/
H A Dlibfdt.h1629 int fdt_setprop(void *fdt, int nodeoffset, const char *name,
1695 return fdt_setprop(fdt, nodeoffset, name, &tmp, sizeof(tmp)); in fdt_setprop_u32()
1730 return fdt_setprop(fdt, nodeoffset, name, &tmp, sizeof(tmp)); in fdt_setprop_u64()
1779 fdt_setprop((fdt), (nodeoffset), (name), (str), strlen(str)+1)
1809 fdt_setprop((fdt), (nodeoffset), (name), NULL, 0)
/openbmc/linux/arch/powerpc/boot/
H A Dlibfdt-wrapper.c85 rc = fdt_setprop(fdt, devp_offset(devp), name, buf, len); in fdt_wrapper_setprop()
88 rc = fdt_setprop(fdt, devp_offset(devp), name, buf, len); in fdt_wrapper_setprop()
/openbmc/u-boot/board/ti/ks2_evm/
H A Dboard.c203 err = fdt_setprop(blob, nodeoffset, in ft_board_setup_ex()
210 err = fdt_setprop(blob, nodeoffset, in ft_board_setup_ex()
/openbmc/linux/arch/mips/generic/
H A Dyamon-dt.c138 err = fdt_setprop(fdt, mem_off, "reg", in yamon_dt_append_memory()
147 err = fdt_setprop(fdt, mem_off, "linux,usable-memory", in yamon_dt_append_memory()
/openbmc/u-boot/arch/arm/mach-omap2/omap5/
H A Dfdt.c77 ret = fdt_setprop(fdt, offs, "ti,irqs-skip", in ft_hs_fixup_crossbar()
119 ret = fdt_setprop(fdt, offs, "reg", temp, 2 * sizeof(u32)); in ft_hs_fixup_sram()
/openbmc/linux/arch/mips/mti-malta/
H A Dmalta-dtshim.c215 err = fdt_setprop(fdt, mem_off, "reg", mem_array, in append_memory()
221 err = fdt_setprop(fdt, mem_off, "linux,usable-memory", mem_array, in append_memory()

1234