Home
last modified time | relevance | path

Searched +full:i2c +full:- +full:emul +full:- +full:controller (Results 1 – 25 of 30) sorted by relevance

12

/Zephyr-latest/tests/drivers/sensor/sbs_gauge/boards/
Dqemu_arc_qemu_arc_hs.overlay4 * SPDX-License-Identifier: Apache-2.0
7 #include <zephyr/dt-bindings/i2c/i2c.h>
10 /* qemu_cortex_a9 board isn't configured with an I2C node */
11 fake_i2c_bus: i2c@100 {
13 compatible = "zephyr,i2c-emul-controller";
14 clock-frequency = <I2C_BITRATE_STANDARD>;
15 #address-cells = <1>;
16 #size-cells = <0>;
22 clock-frequency = <I2C_BITRATE_STANDARD>;
23 compatible = "zephyr,i2c-emul-controller";
[all …]
Dqemu_cortex_a9.overlay4 * SPDX-License-Identifier: Apache-2.0
7 #include <zephyr/dt-bindings/i2c/i2c.h>
10 /* qemu_cortex_a9 board isn't configured with an I2C node */
11 fake_i2c_bus: i2c@100 {
13 compatible = "zephyr,i2c-emul-controller";
14 clock-frequency = <I2C_BITRATE_STANDARD>;
15 #address-cells = <1>;
16 #size-cells = <0>;
22 clock-frequency = <I2C_BITRATE_STANDARD>;
23 compatible = "zephyr,i2c-emul-controller";
[all …]
/Zephyr-latest/tests/drivers/charger/sbs_charger/boards/
Demulated_board.overlay4 * SPDX-License-Identifier: Apache-2.0
7 #include <zephyr/dt-bindings/i2c/i2c.h>
10 fake_i2c_bus: i2c@100 {
12 compatible = "zephyr,i2c-emul-controller";
13 clock-frequency = <I2C_BITRATE_STANDARD>;
14 #address-cells = <1>;
15 #size-cells = <0>;
21 clock-frequency = <I2C_BITRATE_STANDARD>;
22 compatible = "zephyr,i2c-emul-controller";
24 compatible = "sbs,sbs-charger";
Dqemu_cortex_a53.overlay4 * SPDX-License-Identifier: Apache-2.0
7 #include <zephyr/dt-bindings/i2c/i2c.h>
10 fake_i2c_bus: i2c@100 {
12 compatible = "zephyr,i2c-emul-controller";
13 clock-frequency = <I2C_BITRATE_STANDARD>;
14 #address-cells = <1>;
15 #size-cells = <0>;
18 * See its /soc #address-cells & #size-cells properties.
25 clock-frequency = <I2C_BITRATE_STANDARD>;
26 compatible = "zephyr,i2c-emul-controller";
[all …]
/Zephyr-latest/tests/drivers/fuel_gauge/sbs_gauge/boards/
Demulated_board.overlay4 * SPDX-License-Identifier: Apache-2.0
7 #include <zephyr/dt-bindings/i2c/i2c.h>
10 fake_i2c_bus: i2c@100 {
12 compatible = "zephyr,i2c-emul-controller";
13 clock-frequency = <I2C_BITRATE_STANDARD>;
14 #address-cells = <1>;
15 #size-cells = <0>;
21 clock-frequency = <I2C_BITRATE_STANDARD>;
22 compatible = "zephyr,i2c-emul-controller";
24 compatible = "sbs,sbs-gauge-new-api";
Demulated_board_cutoff.overlay4 * SPDX-License-Identifier: Apache-2.0
7 #include <zephyr/dt-bindings/i2c/i2c.h>
10 fake_i2c_bus: i2c@100 {
12 compatible = "zephyr,i2c-emul-controller";
13 clock-frequency = <I2C_BITRATE_STANDARD>;
14 #address-cells = <1>;
15 #size-cells = <0>;
21 clock-frequency = <I2C_BITRATE_STANDARD>;
22 compatible = "zephyr,i2c-emul-controller";
24 compatible = "sbs,default-sbs-gauge","sbs,sbs-gauge-new-api";
[all …]
Dqemu_cortex_a53.overlay4 * SPDX-License-Identifier: Apache-2.0
7 #include <zephyr/dt-bindings/i2c/i2c.h>
10 fake_i2c_bus: i2c@100 {
12 compatible = "zephyr,i2c-emul-controller";
13 clock-frequency = <I2C_BITRATE_STANDARD>;
14 #address-cells = <1>;
15 #size-cells = <0>;
18 * See its /soc #address-cells & #size-cells properties.
25 clock-frequency = <I2C_BITRATE_STANDARD>;
26 compatible = "zephyr,i2c-emul-controller";
[all …]
/Zephyr-latest/tests/drivers/i2c/i2c_emul/boards/
Dnative_sim.overlay3 * SPDX-License-Identifier: Apache-2.0
7 i2c1: i2c@400 {
9 compatible = "zephyr,i2c-emul-controller";
10 clock-frequency = <I2C_BITRATE_STANDARD>;
11 #address-cells = <1>;
12 #size-cells = <0>;
13 #forward-cells = <1>;
17 i2c2: i2c@500 {
19 compatible = "zephyr,i2c-emul-controller";
20 clock-frequency = <I2C_BITRATE_STANDARD>;
[all …]
/Zephyr-latest/doc/hardware/emulator/
Dindex.rst35 * A fake driver which pretends to be actual ADC, and can be used for testing higher-level API
38 * DT binding: :dtcompatible:`zephyr,adc-emul`
41 * Emulated DMA controller
43 * DT binding: :dtcompatible:`zephyr,dma-emul`
48 * DT binding: :dtcompatible:`zephyr,emu-eeprom`
55 * DT binding: :dtcompatible:`zephyr,sim-eeprom`
61 * Allow emulating external buses like I2C or SPI and peripherals connected to them.
68 * DT binding: :dtcompatible:`zephyr,sim-flash`
75 * DT binding: :dtcompatible:`zephyr,gpio-emul`
77 **I2C emulator**
[all …]
Dbus_emulators.rst14 for an I2C compass such that it appears on the I2C bus and can be used
18 compass may support returning bogus data if the I2C bus speed is too
20 been completed. This allows for testing that high-level code can
27 The diagram below shows application code / high-level tests at the top.
35 peripheral drivers using an emulation driver connected via a emulated I2C
36 controller/emulator which passes I2C traffic from the AT24 driver to the AT24
39 Separately we can test the STM32 and NXP I2C drivers on real hardware using API
44 entirely on native_sim. Since we know that the I2C driver on the real hardware
49 Controller) on native_sim using emulators for all non-chip drivers.
58 * Write tests for combinations of drivers, such as GPIOs provided by an I2C GPIO
[all …]
/Zephyr-latest/boards/native/native_sim/
Dnative_sim.dts4 * SPDX-License-Identifier: Apache-2.0
7 /dts-v1/;
9 #include <zephyr/dt-bindings/adc/adc.h>
10 #include <zephyr/dt-bindings/i2c/i2c.h>
11 #include <zephyr/dt-bindings/gpio/gpio.h>
19 zephyr,shell-uart = &uart0;
20 zephyr,uart-mcumgr = &uart0;
23 zephyr,flash-controller = &flashcontroller0;
26 zephyr,code-partition = &slot0_partition;
27 zephyr,bt-hci = &bt_hci_userchan;
[all …]
/Zephyr-latest/include/zephyr/drivers/
Di2c_emul.h4 * @brief Public APIs for the I2C emulation drivers.
11 * SPDX-License-Identifier: Apache-2.0
17 #include <zephyr/drivers/emul.h>
18 #include <zephyr/drivers/i2c.h>
23 * @brief I2C Emulation Interface
24 * @defgroup i2c_emul_interface I2C Emulation Interface
36 /** Node in a linked list of emulators for I2C devices */
40 /** Target emulator - REQUIRED for all emulated bus nodes of any type */
41 const struct emul *target;
48 * value of -ENOSYS will revert back to the default api.
[all …]
Demul.h5 * SPDX-License-Identifier: Apache-2.0
12 * @brief Emulators used to test drivers and higher-level code that uses them
22 struct emul;
24 /* #includes required after forward-declaration of struct emul later defined in this header. */
65 * @param emul Emulator to init
68 typedef int (*emul_init_t)(const struct emul *emul, const struct device *parent);
78 /** An emulator instance - represents the *target* emulated device/peripheral that is
80 * and emulators (i.e. struct emul) are exactly 1..1
82 struct emul { struct
85 /** handle to the device for which this provides low-level emulation */
[all …]
/Zephyr-latest/tests/cmake/hwm/board_extend/oot_root/boards/native/native_sim_extend/
Dnative_sim_native_one.dts4 * SPDX-License-Identifier: Apache-2.0
7 /dts-v1/;
9 #include <zephyr/dt-bindings/adc/adc.h>
10 #include <zephyr/dt-bindings/i2c/i2c.h>
11 #include <zephyr/dt-bindings/gpio/gpio.h>
19 zephyr,shell-uart = &uart0;
20 zephyr,uart-mcumgr = &uart0;
23 zephyr,flash-controller = &flashcontroller0;
26 zephyr,code-partition = &slot0_partition;
30 eeprom-0 = &eeprom0;
[all …]
/Zephyr-latest/dts/bindings/i2c/
Dzephyr,i2c-emul-controller.yaml2 # SPDX-License-Identifier: Apache-2.0
4 description: Zephyr I2C Emulation controller
6 compatible: "zephyr,i2c-emul-controller"
8 include: i2c-controller.yaml
13 target-buffered-mode:
16 This option is used when the I2C target is enabled and it can support
17 buffered mode for I2C target transfer. When 'false', the target will use
20 type: phandle-array
23 be forwarded to the specified phandle (must be another i2c bus). As an
31 forward-cells:
[all …]
/Zephyr-latest/drivers/i2c/
Di2c_emul.c2 * This driver creates fake I2C buses which can contain emulated devices,
9 * SPDX-License-Identifier: Apache-2.0
19 #include <zephyr/drivers/emul.h>
20 #include <zephyr/drivers/i2c.h>
23 #include "i2c-priv.h"
29 /* I2C host configuration */
45 * Find an emulator by its I2C address
47 * @param dev I2C emulation controller device
48 * @param addr I2C address of that device
54 struct i2c_emul_data *data = dev->data; in i2c_emul_find()
[all …]
/Zephyr-latest/drivers/eeprom/
Deeprom_at2x_emul.c5 * SPDX-License-Identifier: Apache-2.0
15 #include <zephyr/drivers/emul.h>
16 #include <zephyr/drivers/i2c.h>
19 /** Run-time data used by the emulator */
21 /** I2C emulator detail */
22 struct i2c_emul emul; member
24 const struct device *i2c; member
35 /** Address of EEPROM on i2c bus */
42 * Emulator an I2C transfer to an AT24 chip
46 * @param emul I2C emulation information
[all …]
/Zephyr-latest/tests/drivers/sensor/sbs_gauge/
Dtestcase.yaml6 - drivers
7 - sensors
9 dt_compat_enabled("sbs,sbs-gauge") and not dt_compat_enabled("zephyr,i2c-emul-controller")
11 - nucleo_f070rb
14 - drivers
15 - sensors
16 filter: dt_compat_enabled("sbs,sbs-gauge")
18 - native_sim
19 - qemu_cortex_a9
20 - qemu_arc/qemu_arc_hs
[all …]
/Zephyr-latest/drivers/usb/bc12/
Demul_bc12_pi3usb9201.c4 * SPDX-License-Identifier: Apache-2.0
6 * Emulator for Diodes PI3USB9201 Dual-Role USB Charging-Type Detector.
10 #include <zephyr/drivers/emul.h>
12 #include <zephyr/drivers/i2c.h>
38 /** Run-time data used by the emulator */
41 const struct device *i2c; member
52 /** Pointer to run-time data */
54 /** Address of pi3usb9201 on i2c bus */
60 static bool pi3usb9201_emul_interrupt_is_pending(const struct emul *target) in pi3usb9201_emul_interrupt_is_pending()
62 struct pi3usb9201_emul_data *data = target->data; in pi3usb9201_emul_interrupt_is_pending()
[all …]
/Zephyr-latest/tests/drivers/build_all/video/
Dapp.overlay4 * SPDX-License-Identifier: Apache-2.0
9 * with real-world devicetree nodes, to allow these tests to run on
15 #address-cells = <1>;
16 #size-cells = <1>;
20 gpio-controller;
22 #gpio-cells = <0x2>;
26 test_i2c: i2c@10002000 {
27 #address-cells = <1>;
28 #size-cells = <0>;
29 compatible = "vnd,i2c";
[all …]
/Zephyr-latest/tests/drivers/build_all/sensor/
Dapp.overlay4 * SPDX-License-Identifier: Apache-2.0
9 * with real-world devicetree nodes, to allow these tests to run on
15 #address-cells = <1>;
16 #size-cells = <1>;
21 #io-channel-cells = <1>;
22 #address-cells = <1>;
23 #size-cells = <0>;
30 zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
31 zephyr,input-positive = <0>;
39 zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
[all …]
/Zephyr-latest/tests/drivers/build_all/adc/boards/
Dnative_sim.overlay4 * SPDX-License-Identifier: Apache-2.0
9 * with real-world devicetree nodes, to allow these tests to run on
15 #address-cells = <1>;
16 #size-cells = <1>;
19 compatible = "zephyr,adc-emul";
21 ref-internal-mv = <3300>;
22 ref-external1-mv = <5000>;
23 #io-channel-cells = <1>;
29 gpio-controller;
31 #gpio-cells = <0x2>;
[all …]
/Zephyr-latest/boards/native/native_sim/doc/
Dindex.rst3 Native simulator - native_sim
63 .. zephyr-app-commands::
64 :zephyr-app: samples/hello_world
65 :host-os: unix
77 .. code-block:: console
84 You can run it with the ``--help`` command line switch to get a list of
87 .. code-block:: console
89 $ ./build/zephyr/zephyr.exe --help
95 Application tests using the :ref:`ztest framework<test-framework>` will exit after all
118 (e.g., ``-O0``) by setting :kconfig:option:`CONFIG_NO_OPTIMIZATIONS`.
[all …]
/Zephyr-latest/doc/releases/
Drelease-notes-3.2.rst13 * Added support for :ref:`bin-blobs` (also see :ref:`west-blobs`).
15 * Converted all supported boards from ``pinmux`` to :ref:`pinctrl-guide`.
31 * CVE-2022-2993: Under embargo until 2022-11-03
33 * CVE-2022-2741: Under embargo until 2022-10-14
56 This definition can be used by third-party code to compile code conditional
58 Therefore, any third-party code integrated using the Zephyr build system will
79 * The CAN controller ``struct zcan_frame`` has been renamed to :c:struct:`can_frame`, and ``struct
90 * The error code for :c:func:`can_send` when the CAN controller is in bus off state has been
91 changed from ``-ENETDOWN`` to ``-ENETUNREACH``. A return value of ``-ENETDOWN`` now indicates
92 that the CAN controller is in :c:enumerator:`CAN_STATE_STOPPED`.
[all …]
Drelease-notes-2.7.rst17 * Support for M-Profile Vector Extensions (MVE) on ARMv8.1-M
18 * Improved thread safety for Newlib and C++ on SMP-capable systems
20 * New Action-based Power Management API
22 * Generic System Controller (``syscon``) driver and emulator
23 * Linker Support for Tightly-Coupled Memory in RISC-V
25 * Support for extended PCI / PCIe capabilities, improved MIS-X support
33 * The kernel now supports both 32- and 64-bit architectures
35 * Introduced support for 6LoCAN, a 6Lo adaption layer for Controller Area Networks
36 * We added support for Point-to-Point Protocol (PPP)
37 * We added support for UpdateHub, an end-to-end solution for over-the-air device updates
[all …]

12