Home
last modified time | relevance | path

Searched +full:i2c +full:- +full:speed (Results 1 – 25 of 525) sorted by relevance

12345678910>>...21

/Zephyr-latest/drivers/i2c/
Di2c_npcx_controller.h4 * SPDX-License-Identifier: Apache-2.0
17 * @brief Lock the mutex of npcx i2c controller.
19 * @param i2c_dev Pointer to the device structure for i2c controller instance.
24 * @brief Unlock the mutex of npcx i2c controller.
26 * @param i2c_dev Pointer to the device structure for i2c controller instance.
31 * @brief Configure operation of a npcx i2c controller.
33 * @param i2c_dev Pointer to the device structure for i2c controller instance.
34 * @param dev_config Bit-packed 32-bit value to the device runtime configuration
35 * for the I2C controller.
38 * @retval -EIO General input / output error, failed to configure device.
[all …]
Di2c_shell.c4 * SPDX-License-Identifier: Apache-2.0
7 #include <zephyr/drivers/i2c.h>
30 length -= 1; in get_bytes_count_for_hex()
37 * This sends I2C messages without any data (i.e. stop condition after
41 * WARNING: As there is no standard I2C detection command, this code
44 * your I2C bus, cause data loss, and is known to corrupt the Atmel
47 * https://manpages.debian.org/buster/i2c-tools/i2cdetect.8.en.html
49 /* i2c scan <device> */
59 shell_error(shell_ctx, "I2C: Device driver %s not found.", in cmd_i2c_scan()
61 return -ENODEV; in cmd_i2c_scan()
[all …]
Di2c_sam_twihs.c5 * SPDX-License-Identifier: Apache-2.0
11 * @brief I2C bus (TWIHS) driver for Atmel SAM MCU family.
13 * Only I2C Master Mode with 7 bit addressing is currently supported.
23 #include <zephyr/drivers/i2c.h>
32 #include "i2c-priv.h"
34 /** I2C bus speed [Hz] in Standard Mode */
36 /** I2C bus speed [Hz] in Fast Mode */
38 /** I2C bus speed [Hz] in High Speed Mode */
62 /* Transfer flags as defined in the i2c.h file */
72 static int i2c_clk_set(Twihs *const twihs, uint32_t speed) in i2c_clk_set() argument
[all …]
Di2c_lpc11u6x.c4 * SPDX-License-Identifier: Apache-2.0
10 #include <zephyr/drivers/i2c.h>
15 #define DEV_BASE(dev) (((struct lpc11u6x_i2c_config *)(dev->config))->base)
19 uint32_t speed) in lpc11u6x_i2c_set_bus_speed() argument
23 clock_control_get_rate(clk_dev, (clock_control_subsys_t) cfg->clkid, in lpc11u6x_i2c_set_bus_speed()
25 div = clk / speed; in lpc11u6x_i2c_set_bus_speed()
27 cfg->base->sclh = div / 2; in lpc11u6x_i2c_set_bus_speed()
28 cfg->base->scll = div - (div / 2); in lpc11u6x_i2c_set_bus_speed()
34 const struct lpc11u6x_i2c_config *cfg = dev->config; in lpc11u6x_i2c_configure()
35 struct lpc11u6x_i2c_data *data = dev->data; in lpc11u6x_i2c_configure()
[all …]
Di2c_sam_twihs_rtio.c6 * SPDX-License-Identifier: Apache-2.0
12 * @brief I2C bus (TWIHS) driver for Atmel SAM MCU family.
14 * Only I2C Controller Mode with 7 bit addressing is currently supported.
23 #include <zephyr/drivers/i2c.h>
24 #include <zephyr/drivers/i2c/rtio.h>
33 #include "i2c-priv.h"
35 /** I2C bus speed [Hz] in Standard Mode */
37 /** I2C bus speed [Hz] in Fast Mode */
39 /** I2C bus speed [Hz] in High Speed Mode */
60 static int i2c_clk_set(Twihs *const twihs, uint32_t speed) in i2c_clk_set() argument
[all …]
DKconfig.dw2 # SPDX-License-Identifier: Apache-2.0
5 bool "Design Ware I2C support"
10 Enable the Design Ware I2C driver
13 int "Set the clock speed for I2C"
18 bool "Use I2C integrated DMA for asynchronous transfer"
23 This option enables I2C DMA feature to be used for asynchronous
Di2c_max32_rtio.c4 * SPDX-License-Identifier: Apache-2.0
10 #include <zephyr/drivers/i2c.h>
11 #include <zephyr/drivers/i2c/rtio.h>
63 dev->data)->ctx; in max32_configure()
71 const struct max32_i2c_config *const cfg = dev->config; in max32_do_configure()
72 mxc_i2c_regs_t *i2c = cfg->regs; in max32_do_configure() local
75 case I2C_SPEED_STANDARD: /** I2C Standard Speed: 100 kHz */ in max32_do_configure()
76 ret = MXC_I2C_SetFrequency(i2c, MXC_I2C_STD_MODE); in max32_do_configure()
79 case I2C_SPEED_FAST: /** I2C Fast Speed: 400 kHz */ in max32_do_configure()
80 ret = MXC_I2C_SetFrequency(i2c, MXC_I2C_FAST_SPEED); in max32_do_configure()
[all …]
DKconfig.sam02 # SPDX-License-Identifier: Apache-2.0
5 bool "SAM0 series I2C SERCOM driver"
10 Enable the SAM0 series SERCOM I2C driver.
13 bool "DMA support for SAM0 I2C devices"
17 This enables DMA driven transactions for the I2C peripheral.
19 transaction and ensures that high speed modes are not delayed
26 Timeout in milliseconds used for each I2C transfer.
Di2c_npcx_port.c4 * SPDX-License-Identifier: Apache-2.0
11 * @brief Nuvoton NPCX smb/i2c port driver
13 * This file contains the driver of SMBus/I2C buses (ports) which provides
14 * pin-muxing for each i2c io-pads. In order to support "SMBus Multi-Bus"
16 * between Zephyr i2c api functions and i2c controller driver which provides
17 * full support for SMBus/I2C transactions.
22 * SCL_N Port 0----| \ +--------------+
23 * SDA_N Port 0----| |----| SMB/I2C |
24 * | |----| Controller N |
25 * SCL_N Port 1----| | +--------------+
[all …]
Di2c_ll_stm32_v2.c5 * SPDX-License-Identifier: Apache-2.0
7 * I2C Driver for: STM32F0, STM32F3, STM32F7, STM32L0, STM32L4, STM32WB and
19 #include <zephyr/drivers/i2c.h>
28 #include "i2c-priv.h"
33 /* Use the algorithm to calcuate the I2C timing */
124 const struct i2c_stm32_config *cfg = dev->config; in msg_init()
125 struct i2c_stm32_data *data = dev->data; in msg_init()
126 I2C_TypeDef *i2c = cfg->i2c; in msg_init() local
128 if (LL_I2C_IsEnabledReloadMode(i2c)) { in msg_init()
129 LL_I2C_SetTransferSize(i2c, msg->len); in msg_init()
[all …]
Di2c_sam4l_twim.c3 * Copyright (c) 2020-2023 Gerson Fernando Budke <nandojve@gmail.com>
5 * SPDX-License-Identifier: Apache-2.0
11 * @brief I2C bus (TWIM) driver for Atmel SAM4L MCU family.
13 * I2C Master Mode with 7/10 bit addressing is currently supported.
24 #include <zephyr/drivers/i2c.h>
33 #include "i2c-priv.h"
35 /** I2C bus speed [Hz] in Standard Mode */
37 /** I2C bus speed [Hz] in Fast Mode */
39 /** I2C bus speed [Hz] in Fast Plus Mode */
41 /** I2C bus speed [Hz] in High Speed Mode */
[all …]
/Zephyr-latest/drivers/crypto/
DKconfig.ataes132a4 # SPDX-License-Identifier: Apache-2.0
10 depends on I2C
17 prompt "ATAES132A I2C bus speed"
23 Standard bis speed of up to 100KHz.
28 Fast bus speed of up to 400KHz.
/Zephyr-latest/dts/bindings/pinctrl/
Dnxp,lpc-iocon-pinctrl.yaml2 # SPDX-License-Identifier: Apache-2.0
16 slew-rate = "standard";
24 IOCON_SLEW=<slew-rate selection>,
29 Values for I2C type and analog type pins have the following defaults:
38 drive-open-drain: IOCON_OD=1
39 bias-pull-up: IOCON_MODE=2
40 bias-pull-down: IOCON_MODE=1
41 drive-push-pull: IOCON_MODE=3
44 IOCON_HYS- set by input-schmitt-enable
45 IOCON_S_MODE- set by nxp,digital-filter
[all …]
/Zephyr-latest/boards/arm/mps3/
Dmps3_common_soc_peripheral.dtsi2 * Copyright (c) 2019-2021 Linaro Limited
3 * Copyright 2024 Arm Limited and/or its affiliates <open-source-office@arm.com>
5 * SPDX-License-Identifier: Apache-2.0
8 sysclk: system-clock {
9 compatible = "fixed-clock";
10 clock-frequency = <25000000>;
11 #clock-cells = <0>;
15 compatible = "arm,cmsdk-gpio";
18 gpio-controller;
19 #gpio-cells = <2>;
[all …]
/Zephyr-latest/boards/infineon/cy8cproto_062_4343w/
Dcy8cproto_062_4343w.dts3 * SPDX-License-Identifier: Apache-2.0
6 /dts-v1/;
9 #include "cy8cproto_062_4343w-common.dtsi"
10 #include "cy8cproto_062_4343w-pinctrl.dtsi"
17 uart-5 = &uart5;
18 i2c-0 = &i2c3;
27 zephyr,shell-uart = &uart5;
28 zephyr,bt-hci = &bt_hci_uart;
37 compatible = "infineon,cat1-uart";
39 current-speed = <115200>;
[all …]
/Zephyr-latest/tests/cmake/hwm/board_extend/oot_root/boards/arm/mps2/
Dmps2_an521-common.dtsi4 * SPDX-License-Identifier: Apache-2.0
7 sysclk: system-clock {
8 compatible = "fixed-clock";
9 clock-frequency = <25000000>;
10 #clock-cells = <0>;
14 compatible = "arm,cmsdk-timer";
20 compatible = "arm,cmsdk-timer";
26 compatible = "arm,cmsdk-dtimer";
44 compatible = "arm,cmsdk-gpio";
47 gpio-controller;
[all …]
/Zephyr-latest/boards/arm/mps2/
Dmps2_an521-common.dtsi4 * SPDX-License-Identifier: Apache-2.0
7 sysclk: system-clock {
8 compatible = "fixed-clock";
9 clock-frequency = <25000000>;
10 #clock-cells = <0>;
14 compatible = "arm,cmsdk-timer";
20 compatible = "arm,cmsdk-timer";
26 compatible = "arm,cmsdk-dtimer";
44 compatible = "arm,cmsdk-gpio";
47 gpio-controller;
[all …]
Dmps2_an385.dts1 /* SPDX-License-Identifier: Apache-2.0 */
3 /dts-v1/;
5 #include <arm/armv7-m.dtsi>
6 #include <zephyr/dt-bindings/i2c/i2c.h>
7 #include <zephyr/dt-bindings/input/input-event-codes.h>
11 #address-cells = <1>;
12 #size-cells = <1>;
24 zephyr,shell-uart = &uart0;
25 zephyr,uart-pipe = &uart1;
31 compatible = "gpio-leds";
[all …]
/Zephyr-latest/drivers/sensor/bosch/bmg160/
DKconfig4 # SPDX-License-Identifier: Apache-2.0
10 select I2C
17 prompt "BMG160 I2C bus speed"
23 Standard bus speed of up to 100kHz.
28 Fast bus speed of up to 400KHz.
43 depends on $(dt_compat_any_has_prop,$(DT_COMPAT_BOSCH_BMG160),int-gpios)
49 depends on $(dt_compat_any_has_prop,$(DT_COMPAT_BOSCH_BMG160),int-gpios)
/Zephyr-latest/tests/drivers/i2c/i2c_bme688/
DREADME.txt1 I2C bus controller to BME688 sensor test
4 This test verifies I2C target driver API methods
5 with external sensors device - Bosch BME688.
6 I2C speed is set to standard.
DKconfig1 # I2C BME688 test configuration options
3 # SPDX-License-Identifier: Apache-2.0
6 …int "Select I2C speed used during the test, selectable options are: I2C_SPEED_STANDARD (0x1U), I2C…
/Zephyr-latest/dts/bindings/mfd/
Dnxp,sc18im704.yaml2 # SPDX-License-Identifier: Apache-2.0
5 NXP SC18IM704 UART to I2C/GPIO bridge.
7 The SC18IM704 supports both an external I2C and GPIO controller. These
15 pinctrl-0 = <&uart0_default>;
16 pinctrl-names = "default";
21 target-speed = <115200>;
22 reset-gpios = <&gpio1 15 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
25 compatible = "nxp,sc18im704-i2c";
27 #address-cells = <1>;
28 #size-cells = <0>;
[all …]
/Zephyr-latest/dts/bindings/adc/
Dlltc,ltc2451.yaml2 # SPDX-License-Identifier: Apache-2.0
8 include: i2c-device.yaml
11 conversion-speed:
15 - 30
16 - 60
18 Set conversion speed in Hz
/Zephyr-latest/dts/bindings/i2c/
Dite,enhance-i2c.yaml2 # SPDX-License-Identifier: Apache-2.0
4 description: ITE enhance I2C
6 compatible: "ite,enhance-i2c"
8 include: ite,common-i2c.yaml
11 prescale-scl-low:
14 This option is used to configure the I2C speed prescaler for
21 data-hold-time:
25 - 3
26 - 4
27 - 5
[all …]
/Zephyr-latest/modules/
DKconfig.nuvoton1 # SPDX-License-Identifier: Apache-2.0
43 bool "NuMaker I2C"
45 Enable Nuvoton I2C HAL module driver
59 bool "NuMaker high-speed USB 2.0 device controller"
61 Enable Nuvoton high-speed USB 2.0 device controller HAL module driver

12345678910>>...21