Searched +full:phandle +full:- +full:array +full:- +full:foo +full:- +full:names (Results 1 – 19 of 19) sorted by relevance
/Zephyr-latest/scripts/dts/python-devicetree/tests/test-bindings/ |
D | props.yaml | 1 # SPDX-License-Identifier: BSD-3-Clause 8 nonexistent-boolean: 11 existent-boolean: 18 array: 19 type: array 21 uint8-array: 22 type: uint8-array 26 const: "foo" 28 string-array: 29 type: string-array [all …]
|
/Zephyr-latest/dts/bindings/test/ |
D | vnd,phandle-holder.yaml | 2 # SPDX-License-Identifier: Apache-2.0 4 description: Test phandle property container 6 compatible: "vnd,phandle-holder" 11 ph: {type: "phandle"} 13 phs-or: {type: "phandles"} 14 pha-gpios: {type: "phandle-array"} 15 gpios: {type: "phandle-array"} 16 foos: {type: "phandle-array"} 17 foo-names: {type: "string-array"} 18 pwms: {type: "phandle-array"} [all …]
|
/Zephyr-latest/doc/build/dts/ |
D | phandles.rst | 1 .. _dt-phandles: 6 The devicetree concept of a *phandle* is very similar to pointers in 16 The usual way to get a phandle for a devicetree node is from one of its node 19 .. code-block:: DTS 22 lbl_a: node-1 {}; 23 lbl_b: lbl_c: node-2 {}; 26 You can write the phandle for: 28 - ``/node-1`` as ``&lbl_a`` 29 - ``/node-2`` as either ``&lbl_b`` or ``&lbl_c`` 39 "Type" in this section refers to one of the type names documented in [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 …]
|
D | intro-syntax-structure.rst | 1 .. _dt-syntax: 6 As the name indicates, a devicetree is a tree. The human-readable text format 24 .. code-block:: devicetree 26 /dts-v1/; 29 a-node { 30 subnode_nodelabel: a-sub-node { 31 foo = <3>; 36 The ``/dts-v1/;`` line means the file's contents are in version 1 of the DTS 37 syntax, which has replaced a now-obsolete "version 0". 46 #. A node named ``a-node``, which is a child of the root node [all …]
|
D | api-usage.rst | 1 .. _dt-from-c: 8 :ref:`devicetree-intro` and :ref:`dt-bindings`. See :ref:`dt-reference` for 26 .. _dt-node-identifiers: 43 label <dt-node-labels>`. Node labels are often provided by SoC :file:`.dtsi` 44 files to give nodes names that match the SoC datasheet, like ``i2c1``, 50 :zephyr:code-sample:`blinky`, which uses the ``led0`` alias) that need to 72 .. _dt-node-main-ex: 77 .. literalinclude:: main-example.dts 79 :start-after: start-after-here 83 - ``DT_PATH(soc, i2c_40002000)`` [all …]
|
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 …]
|
/Zephyr-latest/scripts/dts/python-devicetree/tests/ |
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_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 …mpatible '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_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/include/zephyr/devicetree/ |
D | clocks.h | 9 * SPDX-License-Identifier: Apache-2.0 20 * @defgroup devicetree-clocks Devicetree Clocks API 26 * @brief Test if a node has a clocks phandle-array property at a given index 28 * This expands to 1 if the given index is valid clocks property phandle-array index. 33 * n1: node-1 { 37 * n2: node-2 { 49 * @param idx index of a clocks property phandle-array whose existence to check 56 * @brief Test if a node has a clock-names array property holds a given name 58 * This expands to 1 if the name is available as clocks-name array property cell. 63 * n1: node-1 { [all …]
|
/Zephyr-latest/soc/nordic/common/ |
D | soc_nrf_common.h | 3 * SPDX-License-Identifier: Apache-2.0 19 * @brief Get a PSEL value out of a foo-gpios or foo-pin devicetree property 21 * Many Nordic bindings have 'foo-pin' properties to specify a pin 22 * configuration as a PSEL value directly instead of using a 'foo-gpios' 23 * <&gpioX Y flags> style controller phandle + GPIO specifier. 25 * It would be better to use 'foo-gpios' properties instead. This type 28 * To allow for a smooth migration from 'foo-pin' to 'foo-gpios', this 30 * using whichever one of 'foo-gpios' or 'foo-pin' is in the DTS. 34 * - NRF_DT_PSEL_CHECK_*() to check the property configuration at build time 35 * - NRF_DT_GPIOS_TO_PSEL() if you only have a 'foo-gpios' [all …]
|
/Zephyr-latest/tests/lib/devicetree/api/ |
D | app.overlay | 4 * SPDX-License-Identifier: Apache-2.0 8 * Names in this file should be chosen in a way that won't conflict 9 * with real-world devicetree nodes, to allow these tests to run on 15 test-alias = &test_nodelabel; 24 string = "foo"; 28 #address-cells = < 0x1 >; 29 #size-cells = < 0x1 >; 30 interrupt-parent = <&test_intc>; 32 test_cpu_intc: interrupt-controller { 33 compatible = "vnd,cpu-intc"; [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" 55 * _IDX_<i>_PH: phandle array's phandle by index (or phandle, phandles) 56 * _IDX_<i>_STRING_TOKEN: string array element value as a token 57 * _IDX_<i>_STRING_UPPER_TOKEN: string array element value as a uppercased token 58 * _IDX <i>_STRING_UNQUOTED: string array element value as a sequence of tokens, with no quotes 59 * _IDX_<i>_VAL_<val>: phandle array's specifier value by index 62 * _NAME_<name>_PH: phandle array's phandle by name 63 * _NAME_<name>_VAL_<val>: phandle array's property specifier by name [all …]
|
/Zephyr-latest/scripts/dts/python-devicetree/src/devicetree/ |
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 { ... };'). 59 x = "foo", < 0x12345678 >, [ 9A ]; 61 This gives x the value b"foo\0\x12\x34\x56\x78\x9A". Numbers in DTS are 62 stored in big-endian format. 78 The path to the node as a string, e.g. "/foo/bar". 113 def name(self) -> str: 117 # Converted to a property to discourage renaming -- that has to be done [all …]
|
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 …]
|
/Zephyr-latest/scripts/dts/ |
D | gen_dts_cmake.py | 4 # SPDX-License-Identifier: Apache-2.0 39 DT_PROP(node_id, foo) from devicetree.h. 48 sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'python-devicetree', 69 # Returns parsed command-line arguments 72 parser.add_argument("--cmake-out", required=True, 74 parser.add_argument("--edt-pickle", required=True, 89 # whatever we want as target property names. 93 # names. This lets us store the "real" paths and property names 94 # without conversion to lowercase-and-underscores like we have to 97 # If CMake adds restrictions on target property names later, we [all …]
|
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/scripts/kconfig/ |
D | kconfigfunctions.py | 1 # Copyright (c) 2018-2019 Linaro 4 # SPDX-License-Identifier: Apache-2.0 17 "python-devicetree", "src")) 155 should be a node label, like "foo" is here: 157 foo: some-node { ... }; 230 property called 'prop' and if that 'prop' is an array type will return 246 if node.props[prop].type != "array": 256 called 'prop' and if that 'prop' is an phandle-array type. 257 Then it will check if that phandle array has a cell matching the given index 258 and then return the value of the cell named 'cell' in this array index. [all …]
|