/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 …]
|
/Zephyr-latest/scripts/dts/python-devicetree/tests/ |
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; 24 interrupt-names = "foo", "bar"; 25 interrupt-parent = <&{/interrupt-parent-test/controller}>; 28 interrupts-extended-test { 29 controller-0 { [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/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. 108 The free-form description of the binding, or None. [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 { ... };'). 62 stored in big-endian format. 113 def name(self) -> str: 117 # Converted to a property to discourage renaming -- that has to be done 122 def unit_addr(self) -> str: 129 def path(self) -> str: 144 def node_iter(self) -> Iterable['Node']: [all …]
|
/Zephyr-latest/soc/renesas/rz/common/ |
D | pinctrl_rzg.h | 3 * SPDX-License-Identifier: Apache-2.0 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, ())}; 79 (RZG_GET_FUNC(DT_PROP_BY_IDX(node_id, state_prop, idx)) - \
|
/Zephyr-latest/scripts/release/ |
D | list_devicetree_bindings_changes.py | 4 # SPDX-License-Identifier: Apache-2.0 18 # TODO: include changes to child bindings 24 sys.path.insert(0, str(SCRIPTS / 'dts' / 'python-devicetree' / 'src')) 117 ) -> Changes: 148 ) -> Dict[str, Compat2Binding]: 160 ) -> Dict[str, Binding2Changes]: 170 def get_vnd(compatible: str) -> str: 180 ) -> Binding2Changes: 200 ) -> List[BindingChange]: 232 ) -> List[BindingChange]: [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 163 /* MIO pin groups (from Xilinx UG585 v1.13, table 2-4 "MIO-at-a-Glance") */ 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), \ 366 * If child has groups property: 367 * - Iterate over each pin in group and populate pinctrl_soc_pin_t 368 * If child has pins property: 369 * - Iterate over each pin in pins and populate pinctrl_soc_pin_t 380 #define Z_PINCTRL_STATE_PIN_CHILD_GROUP_INIT(node_id, prop, idx) \ argument [all …]
|
/Zephyr-latest/dts/bindings/pinctrl/ |
D | nxp,imx-iomuxc.yaml | 2 # SPDX-License-Identifier: Apache-2.0 7 These options can then be used in a pinctrl node with the "nxp,mcux-rt-pinctrl" 13 compatible: "nxp,imx-iomuxc" 16 - name: base.yaml 22 child-binding: 49 # macro cannot work using preprocessor equality statements (like DT_ENUM_IDX(prop) == val), 51 pin-pue: 58 pin-pdrv: 65 pin-lpsr: 72 pin-snvs:
|
/Zephyr-latest/doc/build/dts/api/ |
D | api.rst | 10 Some of these -- the ones beginning with ``DT_INST_`` -- require a special 19 .. _devicetree-generic-apis: 33 :ref:`devicetree-property-access` API. 41 child node, respectively. 45 .. doxygengroup:: devicetree-generic-id 47 .. _devicetree-property-access: 52 The following general-purpose macros can be used to access node properties. 53 There are special-purpose APIs for accessing the :ref:`devicetree-ranges-property`, 54 :ref:`devicetree-reg-property` and :ref:`devicetree-interrupts-property`. 59 .. doxygengroup:: devicetree-generic-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_]*" 241 # a given compatible. For matching things like gpio-leds child 279 prop = ast[1][1] 280 if node and prop in node.props and node.props[prop].val: 292 # Like it's C counterpart, state machine is not thread-safe
|
/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 …]
|