/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 | 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 | 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 | 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]
|
/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:
|
/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 …]
|
D | test_dtlib.py | 2 # SPDX-License-Identifier: BSD-3-Clause 23 # - to stop on the first failure with shorter traceback output, 24 # use '-x --tb=native' 25 # - to drop into a debugger on failure, use '--pdb' 26 # - to run a particular test function or functions, use 27 # '-k test_function_pattern_goes_here' 34 fd, path = tempfile.mkstemp(prefix='pytest-', suffix='.dts') 36 os.write(fd, dts.encode('utf-8')) 44 representation is expected[1:-1]. 52 expected = expected[1:-1] [all …]
|
/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/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. 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: 144 def unit_addr(self) -> str: [all …]
|
/Zephyr-latest/soc/renesas/rz/common/ |
D | pinctrl_rzg.h | 3 * SPDX-License-Identifier: Apache-2.0 22 uint32_t pmc_reg: 2; 25 uint32_t filnum_reg: 2; 26 uint32_t filclksel_reg: 2; 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) 58 #define RZG_GET_FILNUM(node_id) ((DT_PROP(node_id, renesas_filter) >> 2) & 0x3) [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 …]
|
D | bindings-syntax.rst | 1 .. _dt-bindings-file-syntax: 7 files are YAML files. A :ref:`simple example <dt-bindings-simple-example>` was 17 The top level of a bindings file maps keys to values. The top-level keys look 20 .. code-block:: yaml 24 This is the Vendomatic company's foo-device. 29 See https://yaml-multiline.info/ for formatting help. 35 compatible: "manufacturer,foo-device" 41 child-binding: 50 # SPI memory chip, use 'on-bus:' to say what type of bus, like this. 53 on-bus: spi [all …]
|
/Zephyr-latest/soc/xlnx/zynq7000/common/ |
D | pinctrl_soc.h | 4 * SPDX-License-Identifier: Apache-2.0 37 #define MIO_PIN_L1_SEL_MASK BIT(2) 110 #define MIO2 2 163 /* MIO pin groups (from Xilinx UG585 v1.13, table 2-4 "MIO-at-a-Glance") */ 168 #define MIO_GROUP_QSPI0_0_GRP_PINS 1, 2, 3, 4, 5, 6 216 #define MIO_GROUP_SMC0_NAND_PINS 0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, \ 299 #define MIO_GROUP_GPIO0_2_GRP_PINS 2 360 /* Iterate over each pinctrl-n phandle child */ 361 #define Z_PINCTRL_STATE_PINS_INIT(node_id, prop) \ argument 362 {DT_FOREACH_CHILD(DT_PHANDLE(node_id, prop), \ [all …]
|
/Zephyr-latest/scripts/pylib/twister/ |
D | expr_parser.py | 5 # SPDX-License-Identifier: Apache-2.0 51 r"0x[0-9a-fA-F]+" 63 t.value = t.value[1:-1] 91 r"[A-Za-z_][0-9A-Za-z_]*" 119 p[0] = ("not", p[2]) 123 p[0] = p[2] 134 p[0] = (p[2], p[1], p[3]) 156 p[0] = p[2] 206 return ast_expr(ast[1], env, edt) or ast_expr(ast[2], env, edt) 208 return ast_expr(ast[1], env, edt) and ast_expr(ast[2], env, edt) [all …]
|
/Zephyr-latest/tests/lib/devicetree/api/ |
D | app.overlay | 4 * SPDX-License-Identifier: Apache-2.0 9 * with real-world devicetree nodes, to allow these tests to run on 15 test-alias = &test_nodelabel; 28 #address-cells = < 0x1 >; 29 #size-cells = < 0x1 >; 30 interrupt-parent = <&test_intc>; 32 test_cpu_intc: interrupt-controller { 33 compatible = "vnd,cpu-intc"; 34 #address-cells = <0>; 35 #interrupt-cells = < 0x01 >; [all …]
|