| /openbmc/u-boot/scripts/dtc/ |
| H A D | livetree.c | 17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 33 if (streq(new->label, label)) { in add_label() 34 new->deleted = 0; in add_label() 40 new->label = label; in add_label() 41 new->next = *labels; in add_label() 50 label->deleted = 1; in delete_labels() 59 new->name = name; in build_property() 60 new->val = val; in build_property() 71 new->name = name; in build_property_delete() 72 new->deleted = 1; in build_property_delete() [all …]
|
| H A D | checks.c | 17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 26 fprintf(stderr, "=== %s: ", (c)->name); \ 43 typedef void (*check_fn)(struct check *c, struct dt_info *dti, struct node *node); 76 struct node *node, in check_msg() argument 83 if ((c->warn && (quiet < 1)) in check_msg() 84 || (c->error && (quiet < 2))) { in check_msg() 86 strcmp(dti->outname, "-") ? dti->outname : "<stdout>", in check_msg() 87 (c->error) ? "ERROR" : "Warning", c->name); in check_msg() 88 if (node) { in check_msg() 89 fprintf(stderr, "%s", node->fullpath); in check_msg() [all …]
|
| /openbmc/u-boot/drivers/video/exynos/ |
| H A D | exynos_mipi_dsi.c | 1 // SPDX-License-Identifier: GPL-2.0+ 24 #define master_to_driver(a) (a->dsim_lcd_drv) 25 #define master_to_device(a) (a->dsim_lcd_dev) 45 return -EFAULT; in exynos_mipi_dsi_register_lcd_device() 48 if (!lcd_dev->name) { in exynos_mipi_dsi_register_lcd_device() 50 return -EFAULT; in exynos_mipi_dsi_register_lcd_device() 56 return -EFAULT; in exynos_mipi_dsi_register_lcd_device() 59 dsim_ddi->dsim_lcd_dev = lcd_dev; in exynos_mipi_dsi_register_lcd_device() 61 list_add_tail(&dsim_ddi->list, &dsim_ddi_list); in exynos_mipi_dsi_register_lcd_device() 73 lcd_dev = dsim_ddi->dsim_lcd_dev; in exynos_mipi_dsi_find_lcd_device() [all …]
|
| /openbmc/u-boot/drivers/core/ |
| H A D | ofnode.c | 1 // SPDX-License-Identifier: GPL-2.0+ 18 int ofnode_read_u32(ofnode node, const char *propname, u32 *outp) in ofnode_read_u32() argument 20 assert(ofnode_valid(node)); in ofnode_read_u32() 23 if (ofnode_is_np(node)) { in ofnode_read_u32() 24 return of_read_u32(ofnode_to_np(node), propname, outp); in ofnode_read_u32() 29 cell = fdt_getprop(gd->fdt_blob, ofnode_to_offset(node), in ofnode_read_u32() 33 return -EINVAL; in ofnode_read_u32() 42 int ofnode_read_u32_default(ofnode node, const char *propname, u32 def) in ofnode_read_u32_default() argument 44 assert(ofnode_valid(node)); in ofnode_read_u32_default() 45 ofnode_read_u32(node, propname, &def); in ofnode_read_u32_default() [all …]
|
| /openbmc/u-boot/tools/binman/ |
| H A D | fdt_test.py | 1 # SPDX-License-Identifier: GPL-2.0+ 34 def _DeleteProp(self, dt): argument 35 node = dt.GetNode('/microcode/update@0') 36 node.DeleteProp('data') 40 dt = FdtScan(fname) 41 self._DeleteProp(dt) 45 dt = FdtScan(fname) 46 node = dt.GetNode('/binman/intel-me') 47 self.assertEquals('intel-me', node.name) 48 val = fdt_util.GetString(node, 'filename') [all …]
|
| H A D | control.py | 1 # SPDX-License-Identifier: GPL-2.0+ 24 """Read the image descriptions from the /binman node 30 binman_node: Node object of the /binman node 35 if 'multiple-images' in binman_node.props: 36 for node in binman_node.subnodes: 37 images[node.name] = Image(node.name, node) 43 """Find the 'binman' node in the device tree 48 Node object of /binman node, or None if not found 50 for node in dtb.GetRoot().subnodes: 51 if node.name == 'binman': [all …]
|
| H A D | state.py | 1 # SPDX-License-Identifier: GPL-2.0+ 15 # Records the device-tree files known to binman, keyed by filename (e.g. 16 # 'u-boot-spl.dtb') 22 # True to use fake device-tree files for testing (see U_BOOT_DTB_DATA in 36 """Get the Fdt object for a particular device-tree filename 38 Binman keeps track of at least one device-tree file called u-boot.dtb but 43 fname: Filename to look up (e.g. 'u-boot.dtb'). 56 fname: Filename to look up (e.g. 'u-boot.dtb'). 71 fname: Filename to look up (e.g. 'u-boot.dtb'). 120 At present there is only one, that for U-Boot proper. [all …]
|
| /openbmc/u-boot/include/dm/ |
| H A D | read.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 3 * Function to read values from the device tree node attached to a udevice. 21 return ofnode_to_np(dev->node); in dev_np() 31 * dev_ofnode() - get the DT node reference associated with a udevice 34 * @return reference of the the device's DT node 38 return dev->node; in dev_ofnode() 48 * dev_read_u32() - read a 32-bit integer from a device's DT property 50 * @dev: device to read DT property from 53 * @return 0 if OK, -ve on error 58 * dev_read_u32_default() - read a 32-bit integer from a device's DT property [all …]
|
| H A D | ofnode.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 20 * ofnode - reference to a device tree node 24 * latter case, the pointer value is just the integer offset within the flat DT. 32 * NULL, or an offset of -1. 34 * There is no ambiguity as to whether ofnode holds an offset or a node 35 * pointer: when the live tree is active it holds a node pointer, otherwise it 37 * the same value could point to a valid device node or a valid offset. We 44 * the DT. 46 * @np: Pointer to device node, used for live tree 48 * is not a really a pointer to a node: it is an offset value. See above. [all …]
|
| /openbmc/openbmc/meta-arm/meta-arm-bsp/recipes-bsp/u-boot/u-boot/corstone1000/ |
| H A D | 0033-dt-Provide-a-way-to-remove-non-compliant-nodes-and-p.patch | 4 Subject: [PATCH] dt: Provide a way to remove non-compliant nodes and 16 Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org> 17 Upstream-Status: Submitted [RFC: https://lore.kernel.org/u-boot/aca7e6fa-2dec-a7c5-e47e-84c5ffa6f9b… 18 --- 19 include/dt-structs.h | 11 +++++++ 25 diff --git a/include/dt-structs.h b/include/dt-structs.h 27 --- a/include/dt-structs.h 28 +++ b/include/dt-structs.h 29 @@ -57,3 +57,14 @@ struct phandle_2_arg { 44 diff --git a/lib/Makefile b/lib/Makefile [all …]
|
| /openbmc/u-boot/drivers/usb/musb-new/ |
| H A D | ti-musb.c | 1 // SPDX-License-Identifier: GPL-2.0+ 13 #include <dm/device-internal.h> 36 if (!platdata->ctrl_mod_base) in ti_musb_set_phy_power() 40 clrsetbits_le32(platdata->ctrl_mod_base, in ti_musb_set_phy_power() 44 clrsetbits_le32(platdata->ctrl_mod_base, 0, in ti_musb_set_phy_power() 51 static int ti_musb_get_usb_index(int node) in ti_musb_get_usb_index() argument 53 const void *fdt = gd->fdt_blob; in ti_musb_get_usb_index() 59 fdt_get_path(fdt, node, path, sizeof(path)); in ti_musb_get_usb_index() 66 return -ENOENT; in ti_musb_get_usb_index() 75 return -ENOENT; in ti_musb_get_usb_index() [all …]
|
| H A D | omap2430.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) 2005-2007 by Texas Instruments 13 #include <dm/device-internal.h> 20 #include "linux-compat.h" 30 l = musb_readl(musb->mregs, OTG_FORCESTDBY); in omap2430_low_level_exit() 32 musb_writel(musb->mregs, OTG_FORCESTDBY, l); in omap2430_low_level_exit() 39 l = musb_readl(musb->mregs, OTG_FORCESTDBY); in omap2430_low_level_init() 41 musb_writel(musb->mregs, OTG_FORCESTDBY, l); in omap2430_low_level_init() 52 (struct omap_musb_board_data *)musb->controller; in omap2430_musb_init() 55 musb_writel(musb->mregs, OTG_SYSCONFIG, SOFTRST); in omap2430_musb_init() [all …]
|
| /openbmc/u-boot/lib/ |
| H A D | fdtdec.c | 1 // SPDX-License-Identifier: GPL-2.0+ 30 * good reason why driver-model conversion is infeasible. Examples include 36 COMPAT(NVIDIA_TEGRA20_EMC, "nvidia,tegra20-emc"), 37 COMPAT(NVIDIA_TEGRA20_EMC_TABLE, "nvidia,tegra20-emc-table"), 38 COMPAT(NVIDIA_TEGRA20_NAND, "nvidia,tegra20-nand"), 39 COMPAT(NVIDIA_TEGRA124_XUSB_PADCTL, "nvidia,tegra124-xusb-padctl"), 40 COMPAT(NVIDIA_TEGRA210_XUSB_PADCTL, "nvidia,tegra210-xusb-padctl"), 42 COMPAT(SAMSUNG_EXYNOS5_SROMC, "samsung,exynos-sromc"), 43 COMPAT(SAMSUNG_EXYNOS_USB_PHY, "samsung,exynos-usb-phy"), 44 COMPAT(SAMSUNG_EXYNOS5_USB3_PHY, "samsung,exynos5250-usb3-phy"), [all …]
|
| /openbmc/u-boot/doc/device-tree-bindings/firmware/ |
| H A D | nvidia,tegra186-bpmp.txt | 11 - name : Should be bpmp 12 - compatible 15 - "nvidia,tegra186-bpmp" 16 - mboxes : The phandle of mailbox controller and the mailbox specifier. 17 - shmem : List of the phandle of the TX and RX shared memory area that 19 - #clock-cells : Should be 1. 20 - #power-domain-cells : Should be 1. 21 - #reset-cells : Should be 1. 23 This node is a mailbox consumer. See the following files for details of 27 - .../mailbox/mailbox.txt [all …]
|
| /openbmc/u-boot/doc/device-tree-bindings/reset/ |
| H A D | reset.txt | 10 reset consumer (the module being reset, or a module managing when a sub- 15 specifier - a list of DT cells that represents the reset signal within the 23 the DT node of each affected HW block, since if activated, an unrelated block 24 may be reset. Instead, reset signals should be represented in the DT node 25 where it makes most sense to control it; this may be a bus node if all 27 block node for dedicated reset signals. The intent of this binding is to give 35 #reset-cells: Number of cells in a reset specifier; Typically 0 for nodes 41 rst: reset-controller { 42 #reset-cells = <1>; 51 #reset-cells, then only the phandle portion of the pair will [all …]
|
| /openbmc/u-boot/arch/arm/mach-socfpga/ |
| H A D | misc_s10.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) 2016-2018 Intel Corporation <www.intel.com> 20 #include <dt-bindings/reset/altr,rst-mgr-s10.h> 37 -1, 57 return -EINVAL; in socfpga_phymode_setup() 67 return -EINVAL; in socfpga_phymode_setup() 69 clrsetbits_le32(&sysmgr_regs->emac0 + gmac_index, in socfpga_phymode_setup() 78 const void *fdt = gd->fdt_blob; in socfpga_set_phymode() 84 int i, node; in socfpga_set_phymode() local 90 node = nodes[i]; in socfpga_set_phymode() [all …]
|
| /openbmc/u-boot/drivers/pinctrl/ |
| H A D | Kconfig | 19 This provides Linux-compatible device tree interface for the pinctrl 24 If this option is disabled (it is the only possible choice for non-DT 27 It is totally up to the implementation of each low-level driver. 36 generic DT interface. If enabled, some functions become available 39 need the generic DT interface for pin muxing and pin configuration. 40 If you need to handle vendor-specific DT properties, you can disable 66 This option is an SPL-variant of the PINCTRL option. 75 This option is an SPL-variant of the PINCTRL_FULL option. 83 This option is an SPL-variant of the PINCTRL_GENERIC option. 91 This option is an SPL-variant of the PINMUX option. [all …]
|
| /openbmc/qemu/include/system/ |
| H A D | device_tree.h | 22 * /proc/device-tree directory and return the corresponding binary blob 31 * @fdt: pointer to the dt blob 32 * @name: node name 36 * returns a newly allocated NULL-terminated array of node paths. 38 * array contains the path of each node and the last element equals to 39 * NULL. If there is no error but no matching node was found, the 51 * node-name, ie. node-name and node-name@unit-address 52 * @fdt: pointer to the dt blob 53 * @name: node name 56 * returns a newly allocated NULL-terminated array of node paths. [all …]
|
| /openbmc/u-boot/arch/arm/mach-rockchip/ |
| H A D | spl-boot-order.c | 1 // SPDX-License-Identifier: GPL-2.0+ 13 * spl_node_to_boot_device() - maps from a DT-node to a SPL boot device 14 * @node: of_offset of the node 17 * sources. These may take on a device-specific meaning, depending on 19 * different controllers/block-devices, depending on which SD/MMC controllers 20 * are enabled in any given DTS). This function maps from a DT-node back 24 * -ENOENT, if no device matching the node could be found 25 * -ENOSYS, if the device matching the node can not be mapped onto a 27 * -1, for unspecified failures 31 static int spl_node_to_boot_device(int node) in spl_node_to_boot_device() argument [all …]
|
| /openbmc/u-boot/board/qualcomm/dragonboard410c/ |
| H A D | dragonboard410c.c | 1 // SPDX-License-Identifier: GPL-2.0+ 34 gd->ram_size = PHYS_SDRAM_1_SIZE; in dram_init() 41 gd->bd->bi_dram[0].start = PHYS_SDRAM_1; in dram_init_banksize() 42 gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE; in dram_init_banksize() 51 int ret = 0, node; in board_usb_init() local 58 printf("Failed to find pm8916_gpios@c000 node.\n"); in board_usb_init() 65 node = fdt_subnode_offset(gd->fdt_blob, in board_usb_init() 68 if (node < 0) { in board_usb_init() 69 printf("Failed to find usb_hub_reset_pm dt node.\n"); in board_usb_init() 70 return node; in board_usb_init() [all …]
|
| /openbmc/u-boot/doc/device-tree-bindings/pinctrl/ |
| H A D | st,stm32-pinctrl.txt | 5 also provides ability to multiplex and configure the output of various on-chip 8 Pin controller node: 10 - compatible: value should be one of the following: 11 (a) "st,stm32f429-pinctrl" 12 (b) "st,stm32f746-pinctrl" 13 - #address-cells: The value of this property must be 1 14 - #size-cells : The value of this property must be 1 15 - ranges : defines mapping between pin controller node (parent) to 16 gpio-bank node (children). 17 - pins-are-numbered: Specify the subnodes are using numbered pinmux to [all …]
|
| /openbmc/u-boot/include/ |
| H A D | dt-structs.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 12 const void *node; member 17 const void *node; member 22 const void *node; member 25 #include <generated/dt-structs-gen.h>
|
| /openbmc/u-boot/doc/device-tree-bindings/clock/ |
| H A D | rockchip,rk3188-cru.txt | 9 - compatible: should be "rockchip,rk3188-cru", "rockchip,rk3188a-cru" or 10 "rockchip,rk3066a-cru" 11 - reg: physical base address of the controller and length of memory mapped 13 - #clock-cells: should be 1. 14 - #reset-cells: should be 1. 18 - rockchip,grf: phandle to the syscon managing the "general register files" 23 preprocessor macros in the dt-bindings/clock/rk3188-cru.h and 24 dt-bindings/clock/rk3066-cru.h headers and can be used in device tree sources. 31 clock-output-names: 32 - "xin24m" - crystal input - required, [all …]
|
| /openbmc/u-boot/doc/device-tree-bindings/gpio/ |
| H A D | gpio.txt | 5 ----------------- 8 properties, each containing a 'gpio-list': 10 gpio-list ::= <single-gpio> [gpio-list] 11 single-gpio ::= <gpio-phandle> <gpio-specifier> 12 gpio-phandle : phandle to gpio controller node 13 gpio-specifier : Array of #gpio-cells specifying specific gpio 16 GPIO properties should be named "[<name>-]gpios", with <name> being the purpose 17 of this GPIO for the device. While a non-existent <name> is considered valid 31 and bit-banged data signals: 34 gpio-controller [all …]
|
| /openbmc/u-boot/doc/device-tree-bindings/i2c/ |
| H A D | nvidia,tegra186-bpmp-i2c.txt | 9 The BPMP I2C node must be located directly inside the main BPMP node. See 10 ../firmware/nvidia,tegra186-bpmp.txt for details of the BPMP binding. 12 This node represents an I2C controller. See ../i2c/i2c.txt for details of the 16 - compatible: 19 - "nvidia,tegra186-bpmp-i2c". 20 - #address-cells: Address cells for I2C device address. 21 Single-cell integer. 23 - #size-cells: 24 Single-cell integer. 26 - nvidia,bpmp-bus-id: [all …]
|