Home
last modified time | relevance | path

Searched +full:child +full:- +full:prop (Results 1 – 25 of 61) sorted by relevance

123

/Zephyr-latest/scripts/dts/python-devicetree/tests/test-bindings-init/
Dbase_multi.yaml1 # SPDX-License-Identifier: BSD-3-Clause
4 # child-binding, grandchild-binding):
7 # child-binding:
9 # child-binding:
15 # Child-binding level:
16 # From top-level "include:" element.
17 # - child-prop-1 (amended)
18 # - child-prop-2
19 # - child-prop-enum
20 # From "child-binding: include:" element.
[all …]
Dbase.yaml1 # SPDX-License-Identifier: BSD-3-Clause
6 # "required:", "enum:" and "default:") up to the grandchild-binding level.
9 # + prop-1
10 # + prop-2
11 # + prop-enum
12 # + prop-req
13 # + prop-const
14 # + prop-default
16 # Child-binding:
17 # + child-prop-1
[all …]
Ddiamond.yaml1 # SPDX-License-Identifier: BSD-3-Clause
3 # Binding file for testing diamond inheritance (top-bottom).
18 # - prop-1 (amended in base_amend.yaml)
19 # - prop-enum (amended in base_amend.yaml)
20 # - prop-default (inherited from base.yaml)
22 # - prop-1 (last amended in thing.yaml)
23 # - prop-enum (amended in thing.yaml)
24 # - prop-thing (inherited from thing.yaml)
26 # - prop-enum (last amended here)
27 # - prop-diamond
[all …]
Dthing.yaml1 # SPDX-License-Identifier: BSD-3-Clause
8 # - prop-1 (amended)
9 # - prop-enum (amended)
10 # - prop-thing (new property)
12 # Child-binding level:
13 # - child-prop-1 (amended)
14 # - child-prop-enum (amended)
15 # - child-prop-thing (new property)
17 # Grandchild-binding level:
18 # - grandchild-prop-1 (amended)
[all …]
Dsimple.yaml1 # SPDX-License-Identifier: BSD-3-Clause
4 # up to the grandchild-binding level.
7 prop-1:
9 prop-2:
11 prop-3:
14 child-binding:
16 child-prop-1:
18 child-prop-2:
20 child-prop-3:
23 child-binding:
[all …]
Dbase_amend.yaml1 # SPDX-License-Identifier: BSD-3-Clause
4 # - extends property specifications by adding definitions,
6 # - overwrites existing definitions of a property,
8 # - specify new properties
11 # at each level (binding, child-binding, grandchild-binding).
14 # |----------------|--------------|-----------------|
15 # | description: | prop-2 | prop-1 |
16 # | required: | | prop-enum |
17 # | enum: | prop-2 | |
18 # | const: | prop-1 | |
[all …]
Dsimple_allowlist.yaml1 # SPDX-License-Identifier: BSD-3-Clause
4 # up to the grandchild-binding level.
7 - name: simple_inherit.yaml
8 property-allowlist: [prop-1, prop-2]
9 child-binding:
10 property-allowlist: [child-prop-1, child-prop-2]
11 child-binding:
12 property-allowlist: [grandchild-prop-1, grandchild-prop-2]
Dfilter_among_notblocked.yaml1 # SPDX-License-Identifier: BSD-3-Clause
7 - name: simple_blocklist.yaml
8 property-blocklist: [prop-2, prop-3]
9 child-binding:
10 property-blocklist: [child-prop-2, child-prop-3]
11 child-binding:
12 property-blocklist: [grandchild-prop-2, grandchild-prop-3]
Dsimple_blocklist.yaml1 # SPDX-License-Identifier: BSD-3-Clause
4 # up to the grandchild-binding level.
7 - name: simple_inherit.yaml
8 property-blocklist: [prop-1]
9 child-binding:
10 property-blocklist: [child-prop-1]
11 child-binding:
12 property-blocklist: [grandchild-prop-1]
Dfilter_allows_notblocked.yaml1 # SPDX-License-Identifier: BSD-3-Clause
7 - name: simple_blocklist.yaml
8 property-allowlist: [prop-2]
9 child-binding:
10 property-allowlist: [child-prop-2]
11 child-binding:
12 property-allowlist: [grandchild-prop-2]
Dfilter_among_allowed.yaml1 # SPDX-License-Identifier: BSD-3-Clause
7 - name: simple_allowlist.yaml
8 property-allowlist: [prop-3]
9 child-binding:
10 property-allowlist: [child-prop-3]
11 child-binding:
12 property-allowlist: [grandchild-prop-3]
Dinvalid_child_proptype.yaml1 # SPDX-License-Identifier: BSD-3-Clause
8 child-binding:
10 child-prop-1:
Dinvalid_grandchild_proptype.yaml1 # SPDX-License-Identifier: BSD-3-Clause
8 child-binding:
9 child-binding:
11 grandchild-prop-1:
/Zephyr-latest/scripts/dts/python-devicetree/tests/
Dtest_edtlib_binding_init.py1 # SPDX-License-Identifier: Apache-2.0
8 - check which properties are defined at which level (binding, child-binding,
9 grandchild-binding, etc) and their specifications once the binding
11 - check how including bindings are permitted to specialize
13 - check the rules applied when overwriting a binding's description
14 or compatible string (at the binding, child-binding, etc, levels)
17 - filter the properties it chooses to inherit with either "property:allowlist"
19 - extend inherited properties:
20 - override (implicit or) explicit "required: false" with "required: true"
21 - add constraints to the possible value(s) of a property with "const:"
[all …]
/Zephyr-latest/scripts/dts/python-devicetree/tests/test-bindings-include/
Dsimple.yaml1 # SPDX-License-Identifier: BSD-3-Clause
4 # the grandchild-binding level.
7 prop-1:
9 prop-2:
11 prop-3:
14 child-binding:
16 child-prop-1:
18 child-prop-2:
20 child-prop-3:
23 child-binding:
[all …]
Dsimple_filter_blocklist.yaml1 # SPDX-License-Identifier: BSD-3-Clause
4 # up to the grandchild-binding level.
7 - name: simple_inherit.yaml
8 property-blocklist: [prop-2, prop-3]
9 child-binding:
10 property-blocklist: [child-prop-2, child-prop-3]
11 child-binding:
12 property-blocklist: [grandchild-prop-2, grandchild-prop-3]
Dinclude.yaml1 # SPDX-License-Identifier: BSD-3-Clause
12 child-binding:
14 child-prop-1:
16 child-prop-2:
19 child-binding:
21 grandchild-prop-1:
23 grandchild-prop-2:
Dsimple_filter_allowlist.yaml1 # SPDX-License-Identifier: BSD-3-Clause
4 # up to the grandchild-binding level.
7 - name: simple_inherit.yaml
8 property-allowlist: [prop-1]
9 child-binding:
10 property-allowlist: [child-prop-1]
11 child-binding:
12 property-allowlist: [grandchild-prop-1]
Dfilter-child-bindings.yaml1 description: Test binding for filtering 'child-binding' properties
4 - name: include.yaml
5 property-allowlist: [x]
6 child-binding:
7 property-blocklist: [child-prop-1]
8 child-binding:
9 property-allowlist: [grandchild-prop-1]
11 compatible: filter-child-bindings
/Zephyr-latest/soc/nuvoton/npcx/common/
Dsoc_dt.h4 * SPDX-License-Identifier: Apache-2.0
18 * If the prop exists, this expands to DT_ENUM_UPPER_TOKEN(node_id, prop).
24 * @param prop lowercase-and-underscores property name
28 #define NPCX_DT_PROP_ENUM_OR(node_id, prop, default_value) \ argument
29 COND_CODE_1(DT_NODE_HAS_PROP(node_id, prop), \
30 (DT_STRING_UPPER_TOKEN(node_id, prop)), (default_value))
36 * @param prop lowercase-and-underscores property name
40 #define NPCX_DT_INST_PROP_ENUM_OR(inst, prop, default_value) \ argument
41 NPCX_DT_PROP_ENUM_OR(DT_DRV_INST(inst), prop, default_value)
44 * @brief Construct a npcx_clk_cfg item from first item in 'clocks' prop which
[all …]
/Zephyr-latest/scripts/dts/python-devicetree/tests/test-bindings/
Dchild-binding-with-compat.yaml1 # SPDX-License-Identifier: BSD-3-Clause
3 description: child-binding with separate compatible than the parent
5 compatible: "top-binding-with-compat"
7 child-binding:
8 compatible: child-compat
9 description: child node
11 child-prop:
15 child-binding:
18 grandchild-prop:
Dchild-binding.yaml1 # SPDX-License-Identifier: BSD-3-Clause
3 description: child-binding test
5 compatible: "top-binding"
7 child-binding:
8 description: child node
10 child-prop:
13 child-ref:
16 child-binding:
19 grandchild-prop:
22 grandchild-ref:
/Zephyr-latest/dts/bindings/test/
Dvnd,great-grandchild-bindings.yaml2 # SPDX-License-Identifier: Apache-2.0
5 Test binding for 3 levels of "child-binding".
8 "child-binding:" in a YAML file. This file is used to test that the
11 compatible: "vnd,great-grandchild-bindings"
15 child-binding:
16 description: child node, no properties
18 child-binding:
21 child-binding:
22 description: great-grandchild node, ggc-prop property
25 ggc-prop:
/Zephyr-latest/scripts/dts/
Dgen_defines.py3 # Copyright (c) 2019 - 2020 Nordic Semiconductor ASA
6 # SPDX-License-Identifier: BSD-3-Clause
11 # Note: Do not access private (_-prefixed) identifiers from edtlib here (and
25 sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'python-devicetree',
46 with open(args.header_out, "w", encoding="utf-8") as header_file:
58 # Check to see if we have duplicate "zephyr,memory-region" property values.
61 if 'zephyr,memory-region' in node.props:
62 region = node.props['zephyr,memory-region'].val
64 sys.exit(f"ERROR: Duplicate 'zephyr,memory-region' ({region}) properties "
74 out_comment("Node's name with unit-address:")
[all …]
/Zephyr-latest/include/zephyr/
Ddevicetree.h2 * SPDX-License-Identifier: Apache-2.0
39 * -----------------
42 * part in DT_N_<path-id>_P_<property-id> macros, or the "prop-suf"
71 * @defgroup devicetree-generic-id Node identifiers and helpers
96 * The arguments to this macro are the names of non-root nodes in the
98 * Non-alphanumeric characters in each name must be converted to
108 * current-speed = <115200>;
119 * Example usage with DT_PROP() to get the `current-speed` property:
125 * (The `current-speed` property is also in `lowercase-and-underscores`
130 * - the first argument corresponds to a child node of the root (`soc` above)
[all …]

123