Home
last modified time | relevance | path

Searched +full:dts +full:- +full:bindings (Results 1 – 25 of 603) sorted by relevance

12345678910>>...25

/Zephyr-latest/
DMAINTAINERS.yml45 # files-regex:
56 # files-exclude:
59 # files-regex-exclude:
60 # Like 'files-regex', but any matching files will be excluded from the
63 # description: >-
64 # Plain-English description. Describe what the system is about, from an
68 # All areas must have a 'files' and/or 'files-regex' key. The other keys are
72 # this would be sub-areas which add extra fields (for ex. more `collaborators`
73 # who work only in that sub-area) to other areas.
98 # Collaborators: <list of sub-maintainers>
[all …]
/Zephyr-latest/doc/build/dts/
Dintro-input-output.rst1 .. _devicetree-in-out-files:
7 :ref:`devicetree-scope-purpose` in more detail.
10 :figclass: align-center
14 .. _dt-input-files:
21 - sources (``.dts``)
22 - includes (``.dtsi``)
23 - overlays (``.overlay``)
24 - bindings (``.yaml``)
28 .. code-block:: none
30 boards/<ARCH>/<BOARD>/<BOARD>.dts
[all …]
Dbindings-intro.rst1 .. _dt-binding-compat:
3 Introduction to Devicetree Bindings
8 For a detailed syntax reference, see :ref:`dt-bindings-file-syntax`.
10 Devicetree nodes are matched to bindings using their :ref:`compatible
11 properties <dt-important-props>`.
18 .. _dt-bindings-simple-example:
25 .. code-block:: devicetree
27 /* Node in a DTS file */
28 bar-device {
29 compatible = "foo-company,bar-device";
[all …]
Dphandles.rst1 .. _dt-phandles:
19 .. code-block:: DTS
22 lbl_a: node-1 {};
23 lbl_b: lbl_c: node-2 {};
28 - ``/node-1`` as ``&lbl_a``
29 - ``/node-2`` as either ``&lbl_b`` or ``&lbl_c``
40 :ref:`dt-bindings-properties` in the devicetree bindings documentation.
47 You can use phandles to refer to ``node-b`` from ``node-a``, where ``node-b``
48 is related to ``node-a`` in some way.
50 One common example is when ``node-a`` represents some hardware that
[all …]
Dtroubleshooting.rst1 .. _dt-trouble:
8 See :ref:`dt-howtos` for other "HOWTO" style information.
10 .. _dt-trouble-try-pristine:
17 See :ref:`west-building-pristine` for examples, or just delete the build
39 .. code-block:: c
43 where ``NODE_ID`` is a valid :ref:`node identifier <dt-node-identifiers>`, but
53 = "okay";``; see :ref:`dt-important-props` for more information about
73 .. code-block:: none
78 * DTS input file:
79 * <build>/zephyr/zephyr.dts.pre
[all …]
Dbindings-upstream.rst1 .. _dt-writing-bindings:
3 Rules for upstream bindings
6 This section includes general rules for writing bindings that you want to
8 for bindings you don't intend to contribute to the Zephyr Project, but it's a
18 Always check for existing bindings
21 Zephyr aims for devicetree :ref:`dt-source-compatibility`. Therefore, if there
24 justify any Zephyr-specific divergences.
28 - There is an existing binding in the mainline Linux kernel. See
29 :file:`Documentation/devicetree/bindings` in `Linus's tree`_ for existing
30 bindings and the `Linux devicetree documentation`_ for more information.
[all …]
Dbindings-syntax.rst1 .. _dt-bindings-file-syntax:
3 Devicetree bindings syntax
6 This page documents the syntax of Zephyr's bindings format. Zephyr bindings
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.
27 and are encouraged for complex bindings.
29 See https://yaml-multiline.info/ for formatting help.
31 # You can include definitions from other bindings using this syntax:
[all …]
Dintro-syntax-structure.rst1 .. _dt-syntax:
6 As the name indicates, a devicetree is a tree. The human-readable text format
7 for this tree is called DTS (for devicetree source), and is defined in the
22 Here is an example DTS file:
24 .. code-block:: devicetree
26 /dts-v1/;
29 a-node {
30 subnode_nodelabel: a-sub-node {
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".
[all …]
/Zephyr-latest/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
24 # bindings. The tests mostly use string comparisons via the various __repr__()
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…
[all …]
/Zephyr-latest/cmake/modules/
Ddts.cmake1 # SPDX-License-Identifier: Apache-2.0
15 # - To Zephyr and application source code files, as a C macro API
18 # - To other arbitrary Python scripts (like twister) using a
22 # - To users as a final devicetree source (DTS) file which can
25 # - To CMake files, after this module has finished running, using
28 # - To Kconfig files, both using some Kconfig symbols we generate
36 # files in scripts/dts to make all this work. We also optionally will
44 # - The pre_dt module has been included; refer to its outcome
46 # - DTS_SOURCE: set to the path to the devicetree file which
48 # - ${BINARY_DIR_INCLUDE_GENERATED}/devicetree_generated.h exists
[all …]
Dpre_dt.cmake1 # SPDX-License-Identifier: Apache-2.0
9 # DTS files, bindings, and vendor prefixes are.
14 # - DTS_ROOT: a deduplicated list of places where devicetree
15 # implementation files (like bindings, vendor prefixes, etc.) are
17 # - DTS_ROOT_SYSTEM_INCLUDE_DIRS: set to "PATH1 PATH2 ...",
25 # - APPLICATION_SOURCE_DIR: path to app (added to DTS_ROOT)
26 # - BOARD_DIR: directory containing the board definition (added to DTS_ROOT)
27 # - DTS_ROOT: initial contents may be populated here
28 # - ZEPHYR_BASE: path to zephyr repository (added to DTS_ROOT)
29 # - SHIELD_DIRS: paths to shield definitions (added to DTS_ROOT)
[all …]
/Zephyr-latest/scripts/dts/
Dgen_edt.py3 # Copyright (c) 2019 - 2020 Nordic Semiconductor ASA
6 # SPDX-License-Identifier: Apache-2.0
9 # (.dts) file. Information from binding files in YAML format is used
12 # Bindings are files that describe devicetree nodes. Devicetree nodes are
13 # usually mapped to bindings via their 'compatible = "..."' property.
17 # Note: Do not access private (_-prefixed) identifiers from edtlib here (and
28 sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'python-devicetree',
45 edt = edtlib.EDT(args.dts, args.bindings_dirs,
48 "-Wno-simple_bus_reg" not in args.dtc_flags,
56 # Save merged DTS source, as a debugging aid
[all …]
/Zephyr-latest/include/zephyr/dt-bindings/
Ddt-util.h4 * SPDX-License-Identifier: Apache-2.0
11 * This file exists to keep in-tree DTS clean. This means, only
12 * #include <zephyr/dt-bindings/foo.h> form should be included. The
13 * <zephyr/dt-bindings/dt-util.h> wraps <zephyr/sys/util_macro.h> file exposing
14 * all macro base definitions to DTS preprocessor. It provides
/Zephyr-latest/doc/_scripts/
Dgen_devicetree_rest.py2 # SPDX-License-Identifier: Apache-2.0
6 devicetree bindings.
26 GENERIC_OR_VENDOR_INDEPENDENT = 'Generic or vendor-independent'
31 # Base properties that have documentation in 'dt-important-props'.
42 def __init__(self, vendor_prefixes, bindings): argument
44 self.vnd2bindings = self.init_vnd2bindings(bindings)
50 def bindings(self, vnd, default=None): member in VndLookup
59 # Load the vendor-prefixes.txt file. Return a dict mapping 'vnd'
65 # vnd A stand-in for a real vendor
67 # Gets split into a key 'vnd' and a value 'A stand-in for a real
[all …]
/Zephyr-latest/samples/boards/st/mco/
DREADME.rst1 .. zephyr:code-sample:: stm32_mco
3 :relevant-api: pinctrl_interface
17 To support another board, add a dts overlay file in boards folder.
18 Make sure that the output clock is enabled in dts overlay file.
20 The clock source is set by the DTS among the possible values for each stm32 serie.
21 The prescaler is set by the DTS, through the property ``prescaler = <MCOx_PRE(MCO_PRE_DIV_n)>;``
23 See :zephyr_file:`dts/bindings/clock/st,stm32-clock-mco.yaml`
25 It is required to check the Reference Manual to configure the DTS correctly.
31 .. zephyr-app-commands::
32 :zephyr-app: samples/boards/st/mco
/Zephyr-latest/dts/common/nordic/
Dnrf_common.dtsi4 * SPDX-License-Identifier: Apache-2.0
7 #include <zephyr/dt-bindings/adc/adc.h>
8 #include <zephyr/dt-bindings/gpio/gpio.h>
9 #include <zephyr/dt-bindings/i2c/i2c.h>
10 #include <zephyr/dt-bindings/input/input-event-codes.h>
11 #include <zephyr/dt-bindings/pinctrl/nrf-pinctrl.h>
12 #include <zephyr/dt-bindings/pwm/pwm.h>
18 * dts/arm/nordic/override.dtsi file.
25 pinctrl: pin-controller {
30 compatible = "nordic,nrf-pinctrl";
[all …]
/Zephyr-latest/soc/nordic/
Dvalidate_binding_headers.c3 * SPDX-License-Identifier: Apache-2.0
7 * This file validates definitions found in dt-bindings headers against their
10 * Note: all dt-bindings headers which have been included by DTS in this build
21 * - dt-bindings/misc/nordic-domain-id-nrf54h20.h
38 * - dt-bindings/misc/nordic-owner-id-nrf54h20.h
/Zephyr-latest/samples/drivers/adc/adc_dt/boards/
Dfrdm_mcxa156.overlay4 * SPDX-License-Identifier: Apache-2.0
7 #include <zephyr/dt-bindings/adc/adc.h>
8 #include <zephyr/dt-bindings/adc/mcux-lpadc.h>
12 /* adjust channel number according to pinmux in board.dts */
13 io-channels = <&lpadc0 0>;
18 #address-cells = <1>;
19 #size-cells = <0>;
25 zephyr,vref-mv = <3300>;
26 zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
28 zephyr,input-positive = <MCUX_LPADC_CH0A>;
Drobokit1.overlay4 * SPDX-License-Identifier: Apache-2.0
7 #include <zephyr/dt-bindings/spi/spi.h>
11 /* adjust channel number according to pinmux in board.dts */
12 io-channels = <&spi_adc 0>;
Dfrdm_mcxn236.overlay4 * SPDX-License-Identifier: Apache-2.0
7 #include <zephyr/dt-bindings/adc/adc.h>
8 #include <zephyr/dt-bindings/adc/mcux-lpadc.h>
12 /* adjust channel number according to pinmux in board.dts */
13 io-channels = <&lpadc0 0>, <&lpadc0 1>;
18 #address-cells = <1>;
19 #size-cells = <0>;
23 * LPADC0 CH1A and CH1B are set up in differential mode (B-A)
24 * - Connect LPADC0 CH1A signal to voltage between 0~1.8V (J4 pin 4)
25 * - Connect LPADC0 CH1B signal to voltage between 0~1.8V (J8 pin 11)
[all …]
/Zephyr-latest/dts/bindings/sensor/
Dst,lis2duxs12-common.yaml2 # SPDX-License-Identifier: Apache-2.0
5 When setting the odr, power-mode, and range properties in a .dts or .dtsi file you may include
8 #include <zephyr/dt-bindings/sensor/st_lis2dux12.h>
11 power-mode = <LIS2DUX12_OPER_MODE_LOW_POWER>;
17 include: st,lis2dux12-common.yaml
/Zephyr-latest/include/zephyr/dt-bindings/usb/
Dusb.h4 * SPDX-License-Identifier: Apache-2.0
12 * enum is expected to match the order in the yaml (dts/bindings/usb/usb.yaml)
/Zephyr-latest/modules/hal_nordic/nrf-regtool/
Dnrf-regtoolConfig.cmake2 # SPDX-License-Identifier: Apache-2.0
5 string(REPEAT "-v;" ${CONFIG_NRF_REGTOOL_VERBOSITY} verbosity)
8 ${CMAKE_COMMAND} -E env PYTHONPATH=${ZEPHYR_BASE}/scripts/dts/python-devicetree/src
9 ${NRF_REGTOOL} ${verbosity} uicr-compile
10 --edt-pickle-file ${EDT_PICKLE}
11 --product-name ${CONFIG_SOC}
12 --output-file ${generated_hex_file}
20 # Prepare common argument sub-lists.
21 string(REPEAT "-v;" ${CONFIG_NRF_REGTOOL_VERBOSITY} verbosity)
22 list(TRANSFORM CACHED_DTS_ROOT_BINDINGS PREPEND "--bindings-dir;" OUTPUT_VARIABLE bindings_dirs)
[all …]
/Zephyr-latest/samples/boards/st/power_mgmt/adc/boards/
Dnucleo_g474re.overlay2 * SPDX-License-Identifier: Apache-2.0
7 #include <zephyr/dt-bindings/adc/adc.h>
11 /* adjust channel number according to pinmux in board.dts */
12 io-channels = <&adc1 1>;
17 #address-cells = <1>;
18 #size-cells = <0>;
24 zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
/Zephyr-latest/boards/seeed/xiao_ble/
Dxiao_ble_nrf52840_sense.dts2 * Copyright (c) 2022-2023 Marcin Niestroj
4 * SPDX-License-Identifier: Apache-2.0
7 /dts-v1/;
9 #include <zephyr/dt-bindings/i2c/i2c.h>
10 #include <zephyr/dt-bindings/gpio/nordic-nrf-gpio.h>
14 compatible = "seeed,xiao-ble", "seeed,xiao-ble-sense";
16 msm261d3526hicpm-c-en {
17 compatible = "regulator-fixed";
18 enable-gpios = <&gpio1 10 (NRF_GPIO_DRIVE_S0H1 | GPIO_ACTIVE_HIGH)>;
19 regulator-name = "MSM261D3526HICPM-C-EN";
[all …]

12345678910>>...25