/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() 53 struct property *build_property(char *name, struct data val) in build_property() 55 struct property *new = xmalloc(sizeof(*new)); in build_property() 59 new->name = name; in build_property() 60 new->val = val; in build_property() [all …]
|
H A D | checks.c | 17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 26 fprintf(stderr, "=== %s: ", (c)->name); \ 77 struct property *prop, in check_msg() 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() 89 fprintf(stderr, "%s", node->fullpath); in check_msg() 91 fprintf(stderr, ":%s", prop->name); in check_msg() 103 (c)->status = FAILED; \ [all …]
|
/openbmc/linux/scripts/dtc/ |
H A D | livetree.c | 1 // 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() 39 struct property *build_property(char *name, struct data val, in build_property() 42 struct property *new = xmalloc(sizeof(*new)); in build_property() 46 new->name = name; in build_property() 47 new->val = val; in build_property() [all …]
|
H A D | checks.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 12 fprintf(stderr, "=== %s: ", (c)->name); \ 63 struct property *prop, in check_msg() 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() 86 xasprintf(&str, "%s", dti->outname); in check_msg() [all …]
|
/openbmc/u-boot/include/dm/ |
H A D | read.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 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 51 * @propname: name of the property to read 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. 44 * the DT. 62 * _ofnode_to_np() - convert an ofnode to a live DT node pointer 79 * ofnode_to_offset() - convert an ofnode to a flat DT offset 84 * @return DT offset (can be -1) 90 return -1; in ofnode_to_offset() 96 * ofnode_valid() - check if an ofnode is valid [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/ |
H A D | writing-schema.rst | 1 .. SPDX-License-Identifier: GPL-2.0 3 Writing Devicetree Bindings in json-schema 6 Devicetree bindings are written using json-schema vocabulary. Schema files are 7 written in a JSON-compatible subset of YAML. YAML is used instead of JSON as it 11 Also see :ref:`example-schema`. 14 --------------- 16 Each schema doc is a structured json-schema which is defined by a set of 17 top-level properties. Generally, there is one binding defined per file. The 18 top-level json-schema properties used are: 21 A json-schema unique identifier string. The string must be a valid [all …]
|
/openbmc/u-boot/drivers/core/ |
H A D | ofnode.c | 1 // SPDX-License-Identifier: GPL-2.0+ 29 cell = fdt_getprop(gd->fdt_blob, ofnode_to_offset(node), in ofnode_read_u32() 33 return -EINVAL; in ofnode_read_u32() 69 cell = fdt_getprop(gd->fdt_blob, ofnode_to_offset(node), propname, in ofnode_read_u64() 73 return -EINVAL; in ofnode_read_u64() 107 int len = -1; in ofnode_read_string() 113 struct property *prop = of_find_property( in ofnode_read_string() 117 str = prop->value; in ofnode_read_string() 118 len = prop->length; in ofnode_read_string() 121 str = fdt_getprop(gd->fdt_blob, ofnode_to_offset(node), in ofnode_read_string() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/leds/ |
H A D | common.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Jacek Anaszewski <jacek.anaszewski@gmail.com> 11 - Pavel Machek <pavel@ucw.cz> 25 led-sources: 30 $ref: /schemas/types.yaml#/definitions/uint32-array 35 from the header include/dt-bindings/leds/common.h. If there is no 42 the header include/dt-bindings/leds/common.h. If there is no matching 48 function-enumerator: [all …]
|
/openbmc/linux/drivers/video/ |
H A D | of_display_timing.c | 1 // SPDX-License-Identifier: GPL-2.0-only 16 * parse_timing_property - parse timing_entry from device_node 17 * @np: device_node with the property 18 * @name: name of the property 28 struct property *prop; in parse_timing_property() 33 pr_err("%pOF: could not find property %s\n", np, name); in parse_timing_property() 34 return -EINVAL; in parse_timing_property() 39 ret = of_property_read_u32(np, name, &result->typ); in parse_timing_property() 40 result->min = result->typ; in parse_timing_property() 41 result->max = result->typ; in parse_timing_property() [all …]
|
/openbmc/linux/Documentation/devicetree/ |
H A D | usage-model.rst | 1 .. 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 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 61 blob without requiring a real Open Firmware implementation. U-Boot, [all …]
|
/openbmc/linux/drivers/gpu/drm/ |
H A D | drm_of.c | 1 // 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 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 101 * drm_of_component_probe - Generic probe function for a component based master 121 if (!dev->of_node) in drm_of_component_probe() 122 return -EINVAL; in drm_of_component_probe() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/mmc/ |
H A D | marvell,xenon-sdhci.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/mmc/marvell,xenon-sdhci.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 mmc-controller.yaml and the properties used by the Xenon implementation. 20 - Ulf Hansson <ulf.hansson@linaro.org> 25 - enum: 26 - marvell,armada-cp110-sdhci 27 - marvell,armada-ap806-sdhci 29 - items: [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/firmware/ |
H A D | nvidia,tegra186-bpmp.yaml | 1 # 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> 25 - .../mailbox/mailbox.txt 26 - .../mailbox/nvidia,tegra186-hsp.yaml 32 - .../clock/clock-bindings.txt 33 - <dt-bindings/clock/tegra186-clock.h> [all …]
|
/openbmc/linux/arch/powerpc/include/asm/ |
H A D | prom.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 10 * Copyright (C) 1996-2005 Paul Mackerras. 18 struct property; 22 #define OF_DT_PROP 0x3 /* Property: name off, size, 32 * The dt struct contains the device tree structure, full pathes and 33 * property contents. The dt strings contain a separate block with just 34 * the strings for the property names, and is fully page aligned and 36 * each property name appears only once in this page (cheap compression) 39 * passing it here instead of in the device-tree itself greatly simplifies 45 __be32 totalsize; /* total size of DT block */ [all …]
|
/openbmc/qemu/include/sysemu/ |
H A D | device_tree.h | 22 * /proc/device-tree directory and return the corresponding binary blob 31 * @fdt: pointer to the dt blob 36 * returns a newly allocated NULL-terminated array of node paths. 51 * node-name, ie. node-name and node-name@unit-address 52 * @fdt: pointer to the dt blob 56 * returns a newly allocated NULL-terminated array of node paths. 66 const char *property, const void *val, int size); 68 const char *property, uint32_t val); 70 const char *property, uint64_t val); 72 const char *property, const char *string); [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/pci/ |
H A D | ti-pci.txt | 4 - compatible: Should be "ti,dra7-pcie" for RC (deprecated) 5 Should be "ti,dra7-pcie-ep" for EP (deprecated) 6 Should be "ti,dra746-pcie-rc" for dra74x/dra76 in RC mode 7 Should be "ti,dra746-pcie-ep" for dra74x/dra76 in EP mode 8 Should be "ti,dra726-pcie-rc" for dra72x in RC mode 9 Should be "ti,dra726-pcie-ep" for dra72x in EP mode 10 - phys : list of PHY specifiers (used by generic PHY framework) 11 - phy-names : must be "pcie-phy0", "pcie-phy1", "pcie-phyN".. based on the 12 number of PHYs as specified in *phys* property. 13 - ti,hwmods : Name of the hwmod associated to the pcie, "pcie<X>", [all …]
|
/openbmc/linux/Documentation/arch/arm64/ |
H A D | arm-acpi.rst | 23 industry-standard Arm systems, they also apply to more than one operating 25 ACPI and Linux only, on an Arm system -- that is, what Linux expects of 30 ---------------- 33 exist in Linux for describing non-enumerable hardware, after all. In this 40 - ACPI’s byte code (AML) allows the platform to encode hardware behavior, 41 while DT explicitly does not support this. For hardware vendors, being 45 - ACPI’s OSPM defines a power management model that constrains what the 49 - In the enterprise server environment, ACPI has established bindings (such 50 as for RAS) which are currently used in production systems. DT does not. 51 Such bindings could be defined in DT at some point, but doing so means Arm [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/input/ |
H A D | adi,adp5588.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Nuno Sá <nuno.sa@analog.com> 14 https://www.analog.com/media/en/technical-documentation/data-sheets/ADP5588.pdf 17 - $ref: matrix-keymap.yaml# 18 - $ref: input.yaml# 23 - adi,adp5587 24 - adi,adp5588 29 vcc-supply: [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/display/mediatek/ |
H A D | mediatek,rdma.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Chun-Kuang Hu <chunkuang.hu@kernel.org> 11 - Philipp Zabel <p.zabel@pengutronix.de> 15 data into DMA. It provides real time data to the back-end panel 26 - enum: 27 - mediatek,mt2701-disp-rdma 28 - mediatek,mt8173-disp-rdma 29 - mediatek,mt8183-disp-rdma [all …]
|
/openbmc/linux/arch/arm/boot/dts/st/ |
H A D | stm32mp135f-dk.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) 3 * Copyright (C) STMicroelectronics 2021 - All Rights Reserved 7 /dts-v1/; 9 #include <dt-bindings/gpio/gpio.h> 10 #include <dt-bindings/input/input.h> 11 #include <dt-bindings/leds/common.h> 12 #include <dt-bindings/regulator/st,stm32mp13-regulator.h> 15 #include "stm32mp13-pinctrl.dtsi" 18 model = "STMicroelectronics STM32MP135F-DK Discovery Board"; 19 compatible = "st,stm32mp135f-dk", "st,stm32mp135"; [all …]
|
/openbmc/u-boot/doc/device-tree-bindings/gpio/ |
H A D | gpio.txt | 4 1) gpios property 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 18 for compatibility reasons (resolving to the "gpios" property), it is not allowed [all …]
|
H A D | nvidia,tegra186-gpio.txt | 42 extremely non-linear. The header file <dt-bindings/gpio/tegra186-gpio.h> 43 describes the port-level mapping. In that file, the naming convention for ports 45 sorted within a particular controller. Drivers need to map between the DT GPIO 52 both the overall controller HW module and the sets-of-ports as "controllers". 56 interrupt signals generated by a set-of-ports. The intent is for each generated 59 per-port-set signals is reported via a separate register. Thus, a driver needs 63 define a property to configure this. 66 - compatible 69 - "nvidia,tegra186-gpio". 70 - "nvidia,tegra186-gpio-aon". [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/iio/adc/ |
H A D | qcom,spmi-vadc.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only 3 --- 4 $id: http://devicetree.org/schemas/iio/adc/qcom,spmi-vadc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Andy Gross <agross@kernel.org> 11 - Bjorn Andersson <bjorn.andersson@linaro.org> 15 voltage. The VADC is a 15-bit sigma-delta ADC. 17 voltage. The VADC is a 16-bit sigma-delta ADC. 22 - items: 23 - const: qcom,pms405-adc [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. 27 - .../mailbox/mailbox.txt 28 - .../mailbox/nvidia,tegra186-hsp.txt [all …]
|