Home
last modified time | relevance | path

Searched +full:child +full:- +full:prop (Results 1 – 25 of 29) sorted by relevance

12

/Zephyr-Core-3.5.0/scripts/dts/python-devicetree/tests/test-bindings-include/
Dinclude.yaml1 # 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:
Dfilter-child-bindings.yaml1 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-Core-3.5.0/soc/arm/nuvoton_npcx/common/
Dsoc_dt.h4 * 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-Core-3.5.0/scripts/dts/python-devicetree/tests/test-bindings/
Dchild-binding-with-compat.yaml1 # 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:
Dchild-binding.yaml1 # 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:
14 child-binding:
17 grandchild-prop:
/Zephyr-Core-3.5.0/dts/bindings/test/
Dvnd,great-grandchild-bindings.yaml2 # 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-Core-3.5.0/scripts/dts/
Dgen_defines.py3 # Copyright (c) 2019 - 2020 Nordic Semiconductor ASA
5 # SPDX-License-Identifier: BSD-3-Clause
16 # Note: Do not access private (_-prefixed) identifiers from edtlib here (and
30 sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'python-devicetree',
62 "-Wno-simple_bus_reg" not in args.dtc_flags,
73 with open(args.dts_out, "w", encoding="utf-8") as f:
96 with open(args.header_out, "w", encoding="utf-8") as header_file:
106 # Check to see if we have duplicate "zephyr,memory-region" property values.
109 if 'zephyr,memory-region' in node.props:
110 region = node.props['zephyr,memory-region'].val
[all …]
/Zephyr-Core-3.5.0/include/zephyr/
Ddevicetree.h2 * SPDX-License-Identifier: Apache-2.0
36 * -----------------
39 * part in DT_N_<path-id>_P_<property-id> macros, or the "prop-suf"
72 * @defgroup devicetree-generic-id Node identifiers and helpers
97 * The arguments to this macro are the names of non-root nodes in the
99 * Non-alphanumeric characters in each name must be converted to
109 * current-speed = <115200>;
120 * Example usage with DT_PROP() to get the `current-speed` property:
126 * (The `current-speed` property is also in `lowercase-and-underscores`
131 * - the first argument corresponds to a child node of the root (`soc` above)
[all …]
/Zephyr-Core-3.5.0/scripts/dts/python-devicetree/src/devicetree/
Dedtlib.py3 # 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 …]
Ddtlib.py2 # SPDX-License-Identifier: BSD-3-Clause
10 The top-level entry point of the library is the DT class. DT.__init__() takes a
29 "Exception raised for devicetree-related errors"
33 Represents a node in the devicetree ('node-name { ... };').
61 stored in big-endian format.
112 def name(self) -> str:
116 # Converted to a property to discourage renaming -- that has to be done
121 def unit_addr(self) -> str:
128 def path(self) -> str:
143 def node_iter(self) -> Iterable['Node']:
[all …]
/Zephyr-Core-3.5.0/scripts/dts/python-devicetree/tests/
Dtest_edtlib.py2 # 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 …]
Dtest.dts4 * 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 …]
Dtest_dtlib.py2 # 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-Core-3.5.0/dts/bindings/can/
Dcan-controller.yaml6 bus-speed:
11 sample-point:
17 (`sjw`, `prop-seg`, `phase-seg1`, and `phase-seg2`).
25 Initial time quanta of resynchronization jump width (ISO 11898-1).
28 timing parameters. Default of 1 matches the default value previously used for all in-tree CAN
32 prop-seg:
36 Initial time quanta of propagation segment (ISO 11898-1). Deprecated in favor of setting
38 phase-seg1:
42 Initial time quanta of phase buffer 1 segment (ISO 11898-1). Deprecated in favor of setting
44 phase-seg2:
[all …]
/Zephyr-Core-3.5.0/doc/build/dts/
Dmacros.bnf7 ; --------------------------------------------------------------------
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 …]
Dbindings-syntax.rst1 .. _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-Core-3.5.0/scripts/release/
Dlist_devicetree_bindings_changes.py4 # 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-Core-3.5.0/soc/arm/xilinx_zynq7000/common/
Dpinctrl_soc.h4 * 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-Core-3.5.0/dts/bindings/pinctrl/
Dnxp,imx-iomuxc.yaml2 # 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-Core-3.5.0/doc/build/dts/api/
Dapi.rst10 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-Core-3.5.0/tests/lib/devicetree/api/
Dapp.overlay4 * 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_pinctrl: pin-controller {
34 test_pincfg_a: pincfg-a {};
35 test_pincfg_b: pincfg-b {};
36 test_pincfg_c: pincfg-c {};
[all …]
/Zephyr-Core-3.5.0/tests/lib/devicetree/api/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
9 * - DT_LABEL
10 * - DT_BUS_LABEL
11 * - DT_SPI_DEV_CS_GPIOS_LABEL
12 * - DT_GPIO_LABEL
13 * - DT_GPIO_LABEL_BY_IDX
14 * - DT_INST_LABEL
15 * - DT_INST_BUS_LABEL
16 * - DT_INST_SPI_DEV_CS_GPIOS_LABEL
17 * - DT_INST_GPIO_LABEL
[all …]
/Zephyr-Core-3.5.0/drivers/interrupt_controller/
Dintc_mchp_ecia_xec.c4 * SPDX-License-Identifier: Apache-2.0
22 #include <zephyr/dt-bindings/interrupt-controller/mchp-xec-ecia.h>
72 ((const struct xec_ecia_config *const)(ecia_dev)->config)
75 ((const struct xec_girq_config *const)(girq_dev)->config)
78 ((struct xec_girq_src_data *const)(girq_dev)->data)
82 * bit-wise or of all the GIRQ's result bits.
89 regs->BLK_EN_SET = BIT(girq_num); in mchp_xec_ecia_girq_aggr_en()
91 regs->BLK_EN_CLR = BIT(girq_num); in mchp_xec_ecia_girq_aggr_en()
104 regs->GIRQ[girq_num - MCHP_FIRST_GIRQ].SRC = BIT(src_bit_pos); in mchp_xec_ecia_girq_src_clr()
116 regs->GIRQ[girq_num - MCHP_FIRST_GIRQ].EN_SET = BIT(src_bit_pos); in mchp_xec_ecia_girq_src_en()
[all …]
/Zephyr-Core-3.5.0/cmake/modules/
Dextensions.cmake1 # SPDX-License-Identifier: Apache-2.0
14 # 1. Zephyr-aware extensions
21 # 2. Kconfig-aware extensions
23 # 3. CMake-generic extensions
39 # 1. Zephyr-aware extensions
44 # "zephyr". zephyr is a catch-all CMake library for source files that
47 # [0] https://cmake.org/cmake/help/latest/manual/cmake-buildsystem.7.html
61 # As a very high-level introduction here are two call graphs that are
67 # zephyr_library_compile_options() --> target_compile_options()
70 # zephyr_cc_option() ---> target_cc_option()
[all …]
/Zephyr-Core-3.5.0/doc/releases/
Drelease-notes-3.5.rst38 * 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 …]

12