/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]
|
/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/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/ |
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/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/ |
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/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 27 uint32_t pfc_reg: 3; 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/soc/xlnx/zynq7000/common/ |
D | pinctrl_soc.h | 4 * SPDX-License-Identifier: Apache-2.0 34 #define MIO_PIN_L2_SEL_MASK GENMASK(4, 3) 111 #define MIO3 3 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 211 #define MIO_GROUP_SMC0_NOR_PINS 0, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, \ 216 #define MIO_GROUP_SMC0_NAND_PINS 0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, \ 300 #define MIO_GROUP_GPIO0_3_GRP_PINS 3 360 /* Iterate over each pinctrl-n phandle child */ 361 #define Z_PINCTRL_STATE_PINS_INIT(node_id, prop) \ argument [all …]
|
/Zephyr-latest/scripts/pylib/twister/ |
D | expr_parser.py | 5 # SPDX-License-Identifier: Apache-2.0 18 sys.exit("PLY library for Python 3 not installed.\n" 51 r"0x[0-9a-fA-F]+" 63 t.value = t.value[1:-1] 91 r"[A-Za-z_][0-9A-Za-z_]*" 111 p[0] = ("or", p[1], p[3]) 115 p[0] = ("and", p[1], p[3]) 134 p[0] = (p[2], p[1], p[3]) 143 p[0].append(p[3]) 152 p[0].append(p[3]) [all …]
|
/Zephyr-latest/doc/build/dts/ |
D | bindings-syntax.rst | 1 .. _dt-bindings-file-syntax: 7 files are YAML files. A :ref:`simple example <dt-bindings-simple-example>` was 12 :depth: 3 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. [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 …]
|
/Zephyr-latest/tests/lib/devicetree/api/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 126 "vnd,gpio-device"), ""); in ZTEST() 127 zassert_true(!strcmp(DT_PROP_LAST(TEST_DEADBEEF, compatible), "vnd,gpio-device"), ""); in ZTEST() 140 "vnd,gpio-device"), ""); in ZTEST() 156 "vnd,gpio-device"), ""); in ZTEST() 169 "vnd,gpio-device"), ""); in ZTEST() 190 "vnd,gpio-device"), ""); in ZTEST() 199 "vnd,gpio-device"), ""); in ZTEST() 284 zassert_equal(DT_PROP_OR(TEST_REG, not_a_property, -1), -1, ""); in ZTEST() 286 zassert_equal(DT_PHA_BY_IDX_OR(TEST_TEMP, dmas, 1, channel, X), 3, ""); in ZTEST() [all …]
|
/Zephyr-latest/cmake/modules/ |
D | extensions.cmake | 1 # SPDX-License-Identifier: Apache-2.0 14 # 1. Zephyr-aware extensions 21 # 2. Kconfig-aware extensions 23 # 3. CMake-generic extensions 44 # 1. Zephyr-aware extensions 49 # "zephyr". zephyr is a catch-all CMake library for source files that 52 # [0] https://cmake.org/cmake/help/latest/manual/cmake-buildsystem.7.html 66 # As a very high-level introduction here are two call graphs that are 72 # zephyr_library_compile_options() --> target_compile_options() 75 # zephyr_cc_option() ---> target_cc_option() [all …]
|
/Zephyr-latest/doc/releases/ |
D | migration-guide-3.7.rst | 22 out-of-tree SoCs and boards to be ported to the new model. See the 25 * The following build-time generated headers: 27 .. list-table:: 28 :header-rows: 1 30 * - Affected header files 31 * - ``app_version.h`` 32 * - ``autoconf.h`` 33 * - ``cmake_intdef.h`` 34 * - ``core-isa-dM.h`` 35 * - ``devicetree_generated.h`` [all …]
|
D | release-notes-3.5.rst | 38 * CVE-2023-3725 `Zephyr project bug tracker GHSA-2g3m-p6c7-8rr3 39 <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-2g3m-p6c7-8rr3>`_ 41 * CVE-2023-4257 `Zephyr project bug tracker GHSA-853q-q69w-gf5j 42 <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-853q-q69w-gf5j>`_ 44 * CVE-2023-4258 `Zephyr project bug tracker GHSA-m34c-cp63-rwh7 45 <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-m34c-cp63-rwh7>`_ 47 * CVE-2023-4259 `Zephyr project bug tracker GHSA-gghm-c696-f4j4 48 <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-gghm-c696-f4j4>`_ 50 * CVE-2023-4260 `Zephyr project bug tracker GHSA-gj27-862r-55wh 51 <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-gj27-862r-55wh>`_ [all …]
|
D | release-notes-2.0.rst | 12 * The kernel now supports both 32- and 64-bit architectures. 17 * We added support for :ref:`Point-to-Point Protocol (PPP) <ppp>`. PPP is a 20 * We added support for UpdateHub, an end-to-end solution for large scale 21 over-the-air device updates. 22 * We added support for ARM Cortex-R Architecture (Experimental). 32 * Fixes CVE-2019-9506: The Bluetooth BR/EDR specification up to and 35 negotiation. This allows practical brute-force attacks (aka "KNOB") 42 * New kernel API for per-thread disabling of Floating Point Services for 43 ARC, ARM Cortex-M, and x86 architectures. 45 * Additional support for compatibility with 64-bit architectures. [all …]
|