/Linux-v5.15/scripts/dtc/ |
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 …]
|
D | checks.c | 1 // 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 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() [all …]
|
/Linux-v5.15/drivers/base/ |
D | property.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * property.c - Unified device property interface. 17 #include <linux/property.h> 23 return IS_ENABLED(CONFIG_OF) && dev->of_node ? in dev_fwnode() 24 of_fwnode_handle(dev->of_node) : dev->fwnode; in dev_fwnode() 29 * device_property_present - check if a property of a device is present 30 * @dev: Device whose property is being checked 31 * @propname: Name of the property 33 * Check if property @propname is present in the device firmware description. 42 * fwnode_property_present - check if a property of a firmware node is present [all …]
|
/Linux-v5.15/drivers/of/ |
D | base.c | 1 // SPDX-License-Identifier: GPL-2.0+ 6 * Copyright (C) 1996-2005 Paul Mackerras. 54 /* use when traversing tree through the child, sibling, 67 node_name = kbasename(np->full_name); in of_node_name_eq() 68 len = strchrnul(node_name, '@') - node_name; in of_node_name_eq() 79 return strncmp(kbasename(np->full_name), prefix, strlen(prefix)) == 0; in of_node_name_prefix() 94 for (; np; np = np->parent) in of_bus_n_addr_cells() 95 if (!of_property_read_u32(np, "#address-cells", &cells)) in of_bus_n_addr_cells() 98 /* No #address-cells property for the root node */ in of_bus_n_addr_cells() 104 if (np->parent) in of_n_addr_cells() [all …]
|
D | property.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * drivers/of/property.c - Procedures for accessing and interpreting 7 * file contains the OF property as well as the OF graph interface 11 * Copyright (C) 1996-2005 Paul Mackerras. 34 * of_graph_is_present() - check graph's presence 35 * @node: pointer to device_node containing graph port 37 * Return: True if @node has a port or ports (with a port) sub-node, 40 bool of_graph_is_present(const struct device_node *node) in of_graph_is_present() argument 44 ports = of_get_child_by_name(node, "ports"); in of_graph_is_present() 46 node = ports; in of_graph_is_present() [all …]
|
D | resolver.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2012 Pantelis Antoniou <panto@antoniou-consulting.com> 24 struct device_node *node; in live_tree_max_phandle() local 30 for_each_of_allnodes(node) { in live_tree_max_phandle() 31 if (node->phandle != OF_PHANDLE_ILLEGAL && in live_tree_max_phandle() 32 node->phandle > phandle) in live_tree_max_phandle() 33 phandle = node->phandle; in live_tree_max_phandle() 43 struct device_node *child; in adjust_overlay_phandles() local 44 struct property *prop; in adjust_overlay_phandles() 47 /* adjust node's phandle in node */ in adjust_overlay_phandles() [all …]
|
D | unittest.c | 1 // SPDX-License-Identifier: GPL-2.0 6 #define pr_fmt(fmt) "### dt-test ### " fmt 10 #include <linux/dma-direct.h> /* to test phys_to_dma/dma_to_phys */ 28 #include <linux/i2c-mux.h> 53 * Expected message may have a message level other than KERN_INFO. 71 np = of_find_node_by_path("/testcase-data"); in of_unittest_find_node_by_name() 73 unittest(np && !strcmp("/testcase-data", name), in of_unittest_find_node_by_name() 74 "find /testcase-data failed\n"); in of_unittest_find_node_by_name() 79 np = of_find_node_by_path("/testcase-data/"); in of_unittest_find_node_by_name() 80 unittest(!np, "trailing '/' on /testcase-data/ should fail\n"); in of_unittest_find_node_by_name() [all …]
|
D | fdt.c | 1 // SPDX-License-Identifier: GPL-2.0 36 * of_fdt_limit_memory - limit the number of regions in the /memory node 40 * memory entries in the /memory node. This function may be called 60 "#address-cells", NULL); in of_fdt_limit_memory() 65 "#size-cells", NULL); in of_fdt_limit_memory() 83 static bool of_fdt_device_is_available(const void *blob, unsigned long node) in of_fdt_device_is_available() argument 85 const char *status = fdt_getprop(blob, node, "status", NULL); in of_fdt_device_is_available() 115 struct property *pp, **pprev = NULL; in populate_properties() 119 pprev = &np->properties; in populate_properties() 129 pr_warn("Cannot locate property at 0x%x\n", cur); in populate_properties() [all …]
|
/Linux-v5.15/Documentation/devicetree/bindings/pinctrl/ |
D | samsung-pinctrl.txt | 3 Samsung's ARM based SoC's integrates a GPIO and Pin mux/config hardware 6 on-chip controllers onto these pads. 9 - compatible: should be one of the following. 10 - "samsung,s3c2412-pinctrl": for S3C2412-compatible pin-controller, 11 - "samsung,s3c2416-pinctrl": for S3C2416-compatible pin-controller, 12 - "samsung,s3c2440-pinctrl": for S3C2440-compatible pin-controller, 13 - "samsung,s3c2450-pinctrl": for S3C2450-compatible pin-controller, 14 - "samsung,s3c64xx-pinctrl": for S3C64xx-compatible pin-controller, 15 - "samsung,s5pv210-pinctrl": for S5PV210-compatible pin-controller, 16 - "samsung,exynos3250-pinctrl": for Exynos3250 compatible pin-controller. [all …]
|
/Linux-v5.15/drivers/acpi/ |
D | property.c | 1 // SPDX-License-Identifier: GPL-2.0-only 28 * not defined without a warning. For instance if any of the properties 29 * from different GUID appear in a property list of another, it will be 33 /* ACPI _DSD device properties GUID: daffd814-6eba-4d8c-8a91-bc9bbf4aa301 */ 36 /* Hotplug in D3 GUID: 6211e2c0-58a3-4af3-90e1-927a4e0c55a4 */ 39 /* External facing port GUID: efcc06cc-73ac-4bc3-bff0-76143807c389 */ 42 /* Thunderbolt GUID for IMR_VALID: c44d002f-69f9-4e7d-a904-a7baabdf43f7 */ 45 /* Thunderbolt GUID for WAKE_SUPPORTED: 6c501103-c189-4296-ba72-9bf5a26ebe5d */ 48 /* Storage device needs D3 GUID: 5025030f-842f-4ab4-a561-99a5189762d0 */ 53 /* ACPI _DSD data subnodes GUID: dbb8e3e6-5886-4ba6-8795-1319f52a966b */ [all …]
|
/Linux-v5.15/Documentation/devicetree/bindings/crypto/ |
D | fsl-sec4.txt | 3 Copyright (C) 2008-2011 Freescale Semiconductor Inc. 6 -Overview 7 -SEC 4 Node 8 -Job Ring Node 9 -Run Time Integrity Check (RTIC) Node 10 -Run Time Integrity Check (RTIC) Memory Node 11 -Secure Non-Volatile Storage (SNVS) Node 12 -Secure Non-Volatile Storage (SNVS) Low Power (LP) RTC Node 13 -Full Example 29 HW interface between QM & SEC 4 and also BM & SEC 4, on DPAA-enabled parts [all …]
|
D | fsl-sec6.txt | 4 -SEC 6 Node 5 -Job Ring Node 6 -Full Example 9 SEC 6 Node 13 Node defines the base address of the SEC 6 block. 16 For example, In C293, we could see three SEC 6 node. 20 - compatible 23 Definition: Must include "fsl,sec-v6.0". 25 - fsl,sec-era 28 Definition: A standard property. Define the 'ERA' of the SEC [all …]
|
/Linux-v5.15/include/linux/ |
D | of.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 8 * Copyright (C) 1996-2005 Paul Mackerras. 22 #include <linux/property.h> 31 struct property { struct 35 struct property *next; argument 57 struct property *properties; argument 58 struct property *deadprops; /* removed properties */ 60 struct device_node *child; member 94 struct device_node *node; member 99 struct property *prop; [all …]
|
D | of_graph.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 5 * Copyright (C) 2012 - 2013 Samsung Electronics Co., Ltd. 18 * struct of_endpoint - the OF graph endpoint data structure 19 * @port: identifier (value of reg property) of a port this endpoint belongs to 20 * @id: identifier (value of reg property) of this endpoint 30 * for_each_endpoint_of_node - iterate over every endpoint in a device node 31 * @parent: parent device node containing ports and endpoints 32 * @child: loop variable pointing to the current endpoint node 34 * When breaking out of the loop, of_node_put(child) has to be called manually. 36 #define for_each_endpoint_of_node(parent, child) \ argument [all …]
|
/Linux-v5.15/Documentation/devicetree/bindings/ |
D | example-schema.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 4 --- 5 # All the top-level keys are standard json-schema keywords except for 8 # $id is a unique identifier based on the filename. There may or may not be a 10 $id: http://devicetree.org/schemas/example-schema.yaml# 11 # $schema is the meta-schema this schema should be validated with. 12 $schema: http://devicetree.org/meta-schemas/core.yaml# 17 - Rob Herring <robh@kernel.org> 20 A more detailed multi-line description of the binding. 26 begin with a tab character. [all …]
|
D | writing-bindings.rst | 1 .. SPDX-License-Identifier: GPL-2.0 7 This is a list of common review feedback items focused on binding design. With 11 Documentation/devicetree/bindings/submitting-patches.rst 17 - DO attempt to make bindings complete even if a driver doesn't support some 18 features. For example, if a device has an interrupt, then include the 19 'interrupts' property even if the driver is only polled mode. 21 - DON'T refer to Linux or "device driver" in bindings. Bindings should be 24 - DO use node names matching the class of the device. Many standard names are 27 - DO check that the example matches the documentation especially after making 30 - DON'T create nodes just for the sake of instantiating drivers. Multi-function [all …]
|
/Linux-v5.15/Documentation/devicetree/bindings/slimbus/ |
D | bus.txt | 3 SLIMbus is a 2-wire bus, and is used to communicate with peripheral 4 components like audio-codec. 6 Required property for SLIMbus controller node: 7 - compatible - name of SLIMbus controller 9 Child nodes: 10 Every SLIMbus controller node can contain zero or more child nodes 15 If child node is not present and it is instantiated after device 18 In some cases it may be necessary to describe non-probeable device 19 details such as non-standard ways of powering up a device. In 20 such cases, child nodes for those devices will be present as [all …]
|
/Linux-v5.15/Documentation/devicetree/bindings/reserved-memory/ |
D | reserved-memory.txt | 3 Reserved memory is specified as a node under the /reserved-memory node. 5 one can create child nodes describing particular reserved (excluded from 12 /reserved-memory node 13 --------------------- 14 #address-cells, #size-cells (required) - standard definition 15 - Should use the same values as the root node 16 ranges (required) - standard definition 17 - Should be empty 19 /reserved-memory/ child nodes 20 ----------------------------- [all …]
|
/Linux-v5.15/Documentation/devicetree/bindings/powerpc/fsl/ |
D | pamu.txt | 5 The PAMU is an I/O MMU that provides device-to-memory access control and 10 - compatible : <string> 11 First entry is a version-specific string, such as 12 "fsl,pamu-v1.0". The second is "fsl,pamu". 13 - ranges : <prop-encoded-array> 14 A standard property. Utilized to describe the memory mapped 20 - interrupts : <prop-encoded-array> 25 - #address-cells: <u32> 26 A standard property. 27 - #size-cells : <u32> [all …]
|
D | raideng.txt | 3 RAID Engine nodes are defined to describe on-chip RAID accelerators. Each RAID 4 Engine should have a separate node. 11 - compatible: Should contain "fsl,raideng-v1.0" as the value 15 - reg: offset and length of the register set for the device 16 - ranges: standard ranges property specifying the translation 17 between child address space and parent address space 22 compatible = "fsl,raideng-v1.0"; 23 #address-cells = <1>; 24 #size-cells = <1>; 30 There must be a sub-node for each job queue present in RAID Engine [all …]
|
D | srio.txt | 3 RapidIO port node: 5 - compatible 11 Optionally, a compatible string of "fsl,srio-vX.Y" where X is Major 15 - reg 17 Value type: <prop-encoded-array> 18 Definition: A standard property. Specifies the physical address and 22 - interrupts 24 Value type: <prop_encoded-array> 26 value of the interrupts property consists of one interrupt 28 binding document describing the node's interrupt parent. [all …]
|
/Linux-v5.15/drivers/net/mdio/ |
D | of_mdio.c | 1 // SPDX-License-Identifier: GPL-2.0-only 30 * ethernet-phy-idAAAA.BBBB */ 37 struct device_node *child, u32 addr) in of_mdiobus_phy_device_register() argument 40 of_fwnode_handle(child), in of_mdiobus_phy_device_register() 46 struct device_node *child, u32 addr) in of_mdiobus_register_phy() argument 48 return fwnode_mdiobus_register_phy(mdio, of_fwnode_handle(child), addr); in of_mdiobus_register_phy() 52 struct device_node *child, u32 addr) in of_mdiobus_register_device() argument 54 struct fwnode_handle *fwnode = of_fwnode_handle(child); in of_mdiobus_register_device() 62 /* Associate the OF node with the device structure so it in of_mdiobus_register_device() 66 device_set_node(&mdiodev->dev, fwnode); in of_mdiobus_register_device() [all …]
|
/Linux-v5.15/Documentation/devicetree/bindings/mailbox/ |
D | ti,omap-mailbox.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only or BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/mailbox/ti,omap-mailbox.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Suman Anna <s-anna@ti.com> 14 processors using a queued mailbox interrupt mechanism. The IP block is 16 interconnect bus. The communication is achieved through a set of registers 19 Each mailbox IP block/cluster has a certain number of h/w fifo queues and 21 controller within a processor subsystem, and there can be more than one line 22 going to a specific processor's interrupt controller. The interrupt line [all …]
|
/Linux-v5.15/arch/m68k/include/asm/ |
D | oplib.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 29 /* Root node of the prom device tree, this stays constant after 35 * and usage utility functions. Only prom-lib should use these, 53 * virtual address you pass is a request and the prom may put your mappings 65 * of the string is different on V0 vs. V2->higher proms. The caller must 70 /* Close a previously opened device described by the passed integer 75 /* Do a seek operation on the device described by the passed integer 83 /* This function returns a V0 format memory descriptor table, it has three 86 * areas which are allocated by the prom. So, in a sense the physical 87 * available is a calculation of the total physical minus the physical mapped [all …]
|
/Linux-v5.15/Documentation/devicetree/bindings/media/ |
D | samsung-fimc.txt | 2 ---------------------------------------------- 4 The S5P/Exynos SoC Camera subsystem comprises of multiple sub-devices 6 the S5P SoCs series known as CAMIF), MIPI CSIS, FIMC-LITE and FIMC-IS (ISP). 8 The sub-subdevices are defined as child nodes of the common 'camera' node which 10 any single sub-device, like common camera port pins or the CAMCLK clock outputs 13 Common 'camera' node 14 -------------------- 18 - compatible: must be "samsung,fimc", "simple-bus" 19 - clocks: list of clock specifiers, corresponding to entries in 20 the clock-names property; [all …]
|