Home
last modified time | relevance | path

Searched +full:dt +full:- +full:node (Results 1 – 25 of 1060) sorted by relevance

12345678910>>...43

/openbmc/u-boot/scripts/dtc/
H A Dlivetree.c17 * 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 Dchecks.c17 * 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/linux/scripts/dtc/
H A Dlivetree.c1 // SPDX-License-Identifier: GPL-2.0-or-later
19 if (streq(new->label, label)) { in add_label()
20 new->deleted = 0; in add_label()
26 new->label = label; in add_label()
27 new->next = *labels; in add_label()
36 label->deleted = 1; in delete_labels()
46 new->name = name; in build_property()
47 new->val = val; in build_property()
48 new->srcpos = srcpos_copy(srcpos); in build_property()
59 new->name = name; in build_property_delete()
[all …]
H A Dchecks.c1 // SPDX-License-Identifier: GPL-2.0-or-later
12 fprintf(stderr, "=== %s: ", (c)->name); \
29 typedef void (*check_fn)(struct check *c, struct dt_info *dti, struct node *node);
62 struct node *node, in check_msg() argument
71 if (!(c->warn && (quiet < 1)) && !(c->error && (quiet < 2))) in check_msg()
74 if (prop && prop->srcpos) in check_msg()
75 pos = prop->srcpos; in check_msg()
76 else if (node && node->srcpos) in check_msg()
77 pos = node->srcpos; in check_msg()
83 } else if (streq(dti->outname, "-")) { in check_msg()
[all …]
/openbmc/u-boot/drivers/video/exynos/
H A Dexynos_mipi_dsi.c1 // 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 Dofnode.c1 // 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 Dfdt_test.py1 # 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 …]
/openbmc/linux/Documentation/devicetree/
H A Dusage-model.rst1 .. SPDX-License-Identifier: GPL-2.0
17 The "Open Firmware Device Tree", or simply Devicetree (DT), is a data
23 Structurally, the DT is a tree, or acyclic graph with named nodes, and
26 links from one node to another outside of the natural tree structure.
34 maximize use of existing support code, but since property and node
44 ----------
45 The DT was originally created by Open Firmware as part of the
56 In 2005, when PowerPC Linux began a major cleanup and to merge 32-bit
57 and 64-bit support, the decision was made to require DT support on all
59 Firmware. To do this, a DT representation called the Flattened Device
[all …]
/openbmc/linux/Documentation/devicetree/bindings/clock/
H A Dmaxim,max77686.txt4 multi-function device. More information can be found in MFD DT binding
12 dt-bindings/clock/maxim,max77686.h.
17 dt-bindings/clock/maxim,max77802.h.
21 dt-bindings/clock/maxim,max77620.h.
23 Following properties should be presend in main device node of the MFD chip.
27 - #clock-cells: from common clock binding; shall be set to 1.
30 - clock-output-names: From common clock binding.
34 - 0: 32khz_ap clock (max77686, max77802), 32khz_out0 (max77620)
35 - 1: 32khz_cp clock (max77686, max77802),
36 - 2: 32khz_pmic clock (max77686).
[all …]
/openbmc/linux/drivers/gpu/drm/
H A Ddrm_of.c1 // SPDX-License-Identifier: GPL-2.0-only
5 #include <linux/media-bus-format.h>
20 * A set of helper functions to aid DRM drivers in parsing standard DT
25 * drm_of_crtc_port_mask - find the mask of a registered CRTC by port OF node
27 * @port: port OF node
29 * Given a port OF node, return the possible mask of the corresponding
39 if (tmp->port == port) in drm_of_crtc_port_mask()
50 * drm_of_find_possible_crtcs - find the possible CRTCs for an encoder port
83 * drm_of_component_match_add - Add a component helper OF node match rule
87 * @node: of_node
[all …]
/openbmc/linux/Documentation/devicetree/bindings/power/
H A Drockchip,power-controller.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/power/rockchip,power-controller.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Elaine Zhang <zhangqing@rock-chips.com>
11 - Heiko Stuebner <heiko@sntech.de>
18 Power domains contained within power-controller node are
20 Documentation/devicetree/bindings/power/power-domain.yaml.
23 "power-domains" property that is a phandle for the
24 power domain node representing the domain.
[all …]
H A Dmediatek,power-controller.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/power/mediatek,power-controller.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - MandyJH Liu <mandyjh.liu@mediatek.com>
11 - Matthias Brugger <mbrugger@suse.com>
17 IP cores belonging to a power domain should contain a 'power-domains'
18 property that is a phandle for SCPSYS node representing the domain.
22 pattern: '^power-controller(@[0-9a-f]+)?$'
26 - mediatek,mt6795-power-controller
[all …]
/openbmc/linux/drivers/perf/
H A Darm-ccn.c1 // SPDX-License-Identifier: GPL-2.0-only
112 #define CCN_TYPE_RND_1P 0x18 /* RN-D = RN-I + DVM */
120 #define CCN_NUM_XP_WATCHPOINTS 2 /* See DT.dbg_id.num_watchpoints */
121 #define CCN_NUM_PMU_EVENT_COUNTERS 8 /* See DT.dbg_id.num_pmucntr */
143 struct arm_ccn_dt, pmu), struct arm_ccn, dt)
164 struct hlist_node node; member
178 struct arm_ccn_component *node; member
183 struct arm_ccn_dt dt; member
187 static int arm_ccn_node_to_xp(int node) in arm_ccn_node_to_xp() argument
189 return node / CCN_NUM_XP_PORTS; in arm_ccn_node_to_xp()
[all …]
/openbmc/u-boot/include/dm/
H A Dread.h1 /* 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 Dofnode.h1 /* 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/u-boot/lib/
H A Dfdtdec.c1 // 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/drivers/usb/musb-new/
H A Dti-musb.c1 // 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 …]
/openbmc/linux/drivers/clocksource/
H A Dtimer-digicolor.c1 // SPDX-License-Identifier: GPL-2.0
14 * Maxime Ripard <maxime.ripard@free-electrons.com>
71 struct digicolor_timer *dt = dc_timer(ce); in dc_timer_disable() local
72 writeb(CONTROL_DISABLE, dt->base + CONTROL(dt->timer_id)); in dc_timer_disable()
77 struct digicolor_timer *dt = dc_timer(ce); in dc_timer_enable() local
78 writeb(CONTROL_ENABLE | mode, dt->base + CONTROL(dt->timer_id)); in dc_timer_enable()
84 struct digicolor_timer *dt = dc_timer(ce); in dc_timer_set_count() local
85 writel(count, dt->base + COUNT(dt->timer_id)); in dc_timer_set_count()
103 struct digicolor_timer *dt = dc_timer(ce); in digicolor_clkevt_set_periodic() local
106 dc_timer_set_count(ce, dt->ticks_per_jiffy); in digicolor_clkevt_set_periodic()
[all …]
/openbmc/linux/Documentation/devicetree/bindings/firmware/
H A Dnvidia,tegra186-bpmp.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/firmware/nvidia,tegra186-bpmp.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Thierry Reding <thierry.reding@gmail.com>
11 - Jon Hunter <jonathanh@nvidia.com>
21 This node is a mailbox consumer. See the following files for details
25 - .../mailbox/mailbox.txt
26 - .../mailbox/nvidia,tegra186-hsp.yaml
28 This node is a clock, power domain, and reset provider. See the
[all …]
/openbmc/openbmc/meta-arm/meta-arm-bsp/recipes-bsp/u-boot/u-boot/corstone1000/
H A D0033-dt-Provide-a-way-to-remove-non-compliant-nodes-and-p.patch4 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/linux/arch/arm/kernel/
H A Ddevtree.c1 // SPDX-License-Identifier: GPL-2.0-only
25 #include <asm/mach-types.h>
35 static int __init set_smp_ops_by_method(struct device_node *node) in set_smp_ops_by_method() argument
40 if (of_property_read_string(node, "enable-method", &method)) in set_smp_ops_by_method()
43 for (; m->method; m++) in set_smp_ops_by_method()
44 if (!strcmp(m->method, method)) { in set_smp_ops_by_method()
45 smp_set_ops(m->ops); in set_smp_ops_by_method()
52 static inline int set_smp_ops_by_method(struct device_node *node) in set_smp_ops_by_method() argument
60 * arm_dt_init_cpu_maps - Function retrieves cpu nodes from the device tree
79 u32 tmp_map[NR_CPUS] = { [0 ... NR_CPUS-1] = MPIDR_INVALID }; in arm_dt_init_cpu_maps()
[all …]
/openbmc/linux/Documentation/devicetree/bindings/thermal/
H A Dthermal-zones.yaml1 # SPDX-License-Identifier: (GPL-2.0)
4 ---
5 $id: http://devicetree.org/schemas/thermal/thermal-zones.yaml#
6 $schema: http://devicetree.org/meta-schemas/base.yaml#
11 - Amit Kucheria <amitk@kernel.org>
18 The following node types are used to completely describe a thermal management
20 - thermal-sensor: device that measures temperature, has SoC-specific bindings
21 - cooling-device: device used to dissipate heat either passively or actively
22 - thermal-zones: a container of the following node types used to describe all
25 This binding describes the thermal-zones.
[all …]
/openbmc/linux/arch/mips/generic/
H A Dboard-sead3.c1 // SPDX-License-Identifier: GPL-2.0-or-later
17 #include <asm/yamon-dt.h>
56 /* leave the GIC node intact if a GIC is present */ in remove_gic()
61 gic_off = fdt_node_offset_by_compatible(fdt, -1, "mti,gic"); in remove_gic()
63 pr_err("unable to find DT GIC node: %d\n", gic_off); in remove_gic()
69 pr_err("unable to nop GIC node\n"); in remove_gic()
73 cpu_off = fdt_node_offset_by_compatible(fdt, -1, in remove_gic()
74 "mti,cpu-interrupt-controller"); in remove_gic()
76 pr_err("unable to find CPU intc node: %d\n", cpu_off); in remove_gic()
83 return -EINVAL; in remove_gic()
[all …]
/openbmc/linux/drivers/irqchip/
H A Dirq-riscv-intc.c1 // SPDX-License-Identifier: GPL-2.0
4 * Copyright (C) 2017-2018 SiFive
8 #define pr_fmt(fmt) "riscv-intc: " fmt
29 unsigned long cause = regs->cause & ~CAUSE_IRQ_FLAG; in riscv_intc_irq()
36 * On RISC-V systems local interrupts are masked or unmasked by writing
44 csr_clear(CSR_IE, BIT(d->hwirq)); in riscv_intc_irq_mask()
49 csr_set(CSR_IE, BIT(d->hwirq)); in riscv_intc_irq_unmask()
55 * Andes specific S-mode local interrupt causes (hwirq) in andes_intc_irq_mask()
56 * are defined as (256 + n) and controlled by n-th bit in andes_intc_irq_mask()
59 unsigned int mask = BIT(d->hwirq % BITS_PER_LONG); in andes_intc_irq_mask()
[all …]
/openbmc/linux/arch/mips/mti-malta/
H A Dmalta-dtshim.c1 // 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()
[all …]

12345678910>>...43