/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 | 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 | 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 | 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 | 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 | 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:
|
D | invalid_proptype.yaml | 1 # SPDX-License-Identifier: BSD-3-Clause 6 # Bindings, child-bindings and grandchild-bindings have 8 # - invalid_child_protype.yaml 9 # - invalid_grandchild_proptype.yaml 14 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 …]
|
D | test_edtlib.py | 2 # SPDX-License-Identifier: BSD-3-Clause 23 # test.dts is the main test file. test-bindings/ and test-bindings-2/ has 46 with from_here(): edtlib.EDT("test.dts", ["test-bindings"]) 48 enums_hpath = hpath('test-bindings/enums.yaml') 50 … marked as deprecated in 'properties:' in {hpath('test-bindings/deprecated.yaml')} for node /test-… 51 "unit address and first address in 'reg' (0x1) don't match for /reg-zero-size-cells/node", 52 "unit address and first address in 'reg' (0x5) don't match for /reg-ranges/parent/node", 53 …"unit address and first address in 'reg' (0x30000000200000001) don't match for /reg-nested-ranges/… 54 …f"compatible 'enums' in binding '{enums_hpath}' has non-tokenizable enum for property 'string-enum… 55 …f"compatible 'enums' in binding '{enums_hpath}' has enum for property 'tokenizable-lower-enum' tha… [all …]
|
D | test.dts | 4 * SPDX-License-Identifier: BSD-3-Clause 9 /dts-v1/; 16 interrupt-parent-test { 18 compatible = "interrupt-three-cell"; 19 #interrupt-cells = <3>; 20 interrupt-controller; 23 interrupts = <1 2 3 4 5 6>; 24 interrupt-names = "foo", "bar"; 25 interrupt-parent = <&{/interrupt-parent-test/controller}>; 28 interrupts-extended-test { [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 | 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/ |
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 …]
|
/Zephyr-latest/scripts/dts/python-devicetree/src/devicetree/ |
D | edtlib.py | 3 # SPDX-License-Identifier: BSD-3-Clause 17 but a binding can also come from a 'child-binding:' key in the binding for the 23 The top-level entry points for the library are the EDT and Binding classes. 31 # -------------------- 47 # - Consider using @property for APIs that don't need parameters. It makes 51 # - Think about the data type of the thing you're exposing. Exposing something 55 # - Avoid get_*() prefixes on functions. Name them after the thing they return 60 # - Don't expose dtlib stuff directly. 62 # - Add documentation for any new APIs you add. 95 def _compute_hash(path: str) -> str: [all …]
|
D | dtlib.py | 2 # SPDX-License-Identifier: BSD-3-Clause 10 The top-level entry point of the library is the DT class. DT.__init__() takes a 30 "Exception raised for devicetree-related errors" 34 Represents a node in the devicetree ('node-name { ... };'). 68 stored in big-endian format. 112 if name.count("@") > 1: 121 def name(self) -> str: 125 # Converted to a property to discourage renaming -- that has to be done 130 def lineno(self) -> int: 137 def filename(self) -> str: [all …]
|
/Zephyr-latest/soc/renesas/rz/common/ |
D | pinctrl_rzg.h | 3 * SPDX-License-Identifier: Apache-2.0 23 uint32_t ien_reg: 1; 24 uint32_t filonoff_reg: 1; 35 /* Iterate over each pinctrl-n phandle child */ 40 /* Iterate over each pinctrl-n phandle child */ 41 #define Z_PINCTRL_STATE_PINS_INIT(node_id, prop) \ argument 42 {DT_FOREACH_PROP_ELEM_SEP(node_id, prop, Z_PINCTRL_STATE_PIN_INIT, ())}; 56 DT_PROP(node_id, bias_pull_up) == 1 ? 1U : (DT_PROP(node_id, bias_pull_down) == 1 ? 2U : 0U) 62 #define RZG_FILTER_ON_OFF(node_id) COND_CODE_0(DT_PROP(node_id, renesas_filter), (0), (1)) 73 .pmc_reg = 1, \ [all …]
|
/Zephyr-latest/doc/build/dts/ |
D | macros.bnf | 7 ; -------------------------------------------------------------------- 8 ; dt-macro: the top level nonterminal for a devicetree macro 10 ; A dt-macro starts with uppercase "DT_", and is one of: 12 ; - a <node-macro>, generated for a particular node 13 ; - some <other-macro>, a catch-all for other types of macros 14 dt-macro = node-macro / other-macro 16 ; -------------------------------------------------------------------- 17 ; node-macro: a macro related to a node 20 node-macro = property-macro 22 node-macro =/ pinctrl-macro [all …]
|