/Zephyr-latest/scripts/dts/python-devicetree/tests/test-bindings-init/ |
D | base_multi.yaml | 1 # 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 …]
|
D | base.yaml | 1 # 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 …]
|
D | diamond.yaml | 1 # 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 …]
|
D | thing.yaml | 1 # 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 …]
|
D | simple.yaml | 1 # 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 …]
|
D | base_amend.yaml | 1 # 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 …]
|
D | simple_allowlist.yaml | 1 # 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]
|
D | filter_among_notblocked.yaml | 1 # 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]
|
D | simple_blocklist.yaml | 1 # 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]
|
D | filter_allows_notblocked.yaml | 1 # 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]
|
D | filter_among_allowed.yaml | 1 # 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]
|
D | invalid_child_proptype.yaml | 1 # SPDX-License-Identifier: BSD-3-Clause 8 child-binding: 10 child-prop-1:
|
D | invalid_grandchild_proptype.yaml | 1 # SPDX-License-Identifier: BSD-3-Clause 8 child-binding: 9 child-binding: 11 grandchild-prop-1:
|
/Zephyr-latest/scripts/dts/python-devicetree/tests/ |
D | test_edtlib_binding_init.py | 1 # 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/ |
D | simple.yaml | 1 # 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 …]
|
D | simple_filter_blocklist.yaml | 1 # 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]
|
D | include.yaml | 1 # 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:
|
D | simple_filter_allowlist.yaml | 1 # 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]
|
D | filter-child-bindings.yaml | 1 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/ |
D | soc_dt.h | 4 * 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/ |
D | child-binding-with-compat.yaml | 1 # 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:
|
D | child-binding.yaml | 1 # 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/ |
D | vnd,great-grandchild-bindings.yaml | 2 # 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/ |
D | gen_defines.py | 3 # 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/ |
D | devicetree.h | 2 * 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 …]
|