Home
last modified time | relevance | path

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

12345678910>>...29

/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/drivers/i2c/
DKconfig.it8xxx22 # SPDX-License-Identifier: Apache-2.0
5 bool "ITE IT8XXX2 I2C driver"
10 Enable I2C support on it8xxx2_evb.
17 bool "IT8XXX2 I2C FIFO mode"
20 This is an option to enable FIFO mode which can reduce
21 the time between each byte to improve the I2C bus clock
22 stretching during I2C transaction.
23 The I2C controller supports two 32-bytes FIFOs,
25 I2C FIFO mode of it8xxx2 can support I2C APIs including:
31 bool "ITE IT8XXX2 I2C enhance driver"
[all …]
DKconfig.max322 # SPDX-License-Identifier: Apache-2.0
5 bool "Analog Devices MAX32 I2C driver"
10 i2c driver for max32 family.
15 bool "Interrupt support for MAX32 I2C driver"
18 Enable interrupt support for MAX32 I2C controller mode
22 bool "DMA support for MAX32 MCU I2C driver"
26 Use DMA for MAX32 MCU I2C controller mode transfers.
DKconfig.ifx_cat11 # Infineon CAT1 I2C configuration options
6 # SPDX-License-Identifier: Apache-2.0
9 bool "Infineon CAT1 I2C driver"
15 This option enables the I2C driver for Infineon CAT1 family.
18 int "I2C Target data buffer length"
23 Buffer to receive data as an I2C Target.
26 bool "Support Asynchronous I2C driver"
30 Configure the I2C driver to be non-blocking/Asynchronous mode.
/Zephyr-latest/boards/seagate/faze/
Dfaze-pinctrl.dtsi3 * SPDX-License-Identifier: Apache-2.0
6 #include <zephyr/dt-bindings/pinctrl/lpc11u6x-pinctrl.h>
13 nxp,disable-analog-filter;
21 nxp,i2c-mode;
22 nxp,i2c-filter = "slow";
23 nxp,disable-analog-filter;
31 nxp,i2c-mode;
32 nxp,i2c-filter = "fast";
33 nxp,disable-analog-filter;
41 drive-open-drain;
[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
18 PIO (Programmed I/O) mode.
20 type: phandle-array
23 be forwarded to the specified phandle (must be another i2c bus). As an
[all …]
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/drivers/i2c/target/
DKconfig1 # I2C Target configuration options
4 # SPDX-License-Identifier: Apache-2.0
7 # I2C options
10 bool "I2C Target Drivers"
12 Enable I2C Target Driver Configuration
20 I2C Target device driver initialization priority.
23 bool "I2C target driver for buffer mode [EXPERIMENTAL]"
26 This is an option to enable buffer mode.
28 source "drivers/i2c/target/Kconfig.eeprom"
/Zephyr-latest/boards/shields/x_nucleo_iks01a3/doc/
Dindex.rst1 .. _x-nucleo-iks01a3:
3 X-NUCLEO-IKS01A3: MEMS Inertial and Environmental Multi sensor shield
8 The X-NUCLEO-IKS01A3 is a motion MEMS and environmental sensor expansion board
11 3-axis magnetometer, the LIS2DW12 3-axis accelerometer, the HTS221 humidity and
14 The X-NUCLEO-IKS01A3 interfaces with the STM32 microcontroller via the I2C pin,
15 and it is possible to change the default I2C port.
17 .. image:: img/x-nucleo-iks01a3.jpg
19 :alt: X-NUCLEO-IKS01A3
22 `X-NUCLEO-IKS01A3 website`_.
27 X-NUCLEO-IKS01A3 provides the following key features:
[all …]
/Zephyr-latest/drivers/regulator/
Dregulator_npm2100.c3 * SPDX-License-Identifier: Apache-2.0
13 #include <zephyr/drivers/i2c.h>
14 #include <zephyr/dt-bindings/regulator/npm2100.h>
103 struct i2c_dt_spec i2c; member
109 struct i2c_dt_spec i2c; member
142 const struct regulator_npm2100_config *config = dev->config; in regulator_npm2100_count_voltages()
144 switch (config->source) { in regulator_npm2100_count_voltages()
157 const struct regulator_npm2100_config *config = dev->config; in regulator_npm2100_list_voltage()
159 switch (config->source) { in regulator_npm2100_list_voltage()
165 return -EINVAL; in regulator_npm2100_list_voltage()
[all …]
Dregulator_pca9420.c3 * SPDX-License-Identifier: Apache-2.0
11 #include <zephyr/drivers/i2c.h>
27 /** @brief Active Discharge configuration for mode 0_0 */
29 /** @brief Mode configuration for mode 0_0 */
31 /** @brief Mode configuration for mode 0_1 */
33 /** @brief Mode configuration for mode 0_2 */
35 /** @brief Mode configuration for mode 0_3 */
47 /** @brief I2C Mode control mask */
52 * @brief Mode control selection mask. When this bit is set, the external
53 * PMIC pins MODESEL0 and MODESEL1 can be used to select the active mode
[all …]
/Zephyr-latest/boards/shields/x_nucleo_iks02a1/doc/
Dindex.rst1 .. _x-nucleo-iks02a1:
3 X-NUCLEO-IKS02A1: MEMS Inertial and Environmental Multi sensor shield
8 The X-NUCLEO-IKS02A1 is a motion MEMS expansion board for the STM32 Nucleo,
11 is designed around the ISM330DHCX 3-axis accelerometer and 3-axis gyroscope,
12 the IIS2MDC 3-axis magnetometer, the IIS2DLPC 3-axis accelerometer and
15 The X-NUCLEO-IKS02A1 interfaces with the STM32 microcontroller via the I2C pin,
16 and it is possible to change the default I2C port.
18 .. image:: img/x-nucleo-iks02a1.jpg
20 :alt: X-NUCLEO-IKS02A1
23 `X-NUCLEO-IKS02A1 website`_.
[all …]
/Zephyr-latest/doc/hardware/peripherals/
Di2c.rst3 Inter-Integrated Circuit (I2C) Bus
11 The terminology used in Zephyr I2C APIs follows that of the
12 `NXP I2C Bus Specification Rev 7.0 <i2c-specification_>`_. These changed
15 `I2C`_ (Inter-Integrated Circuit, pronounced "eye
16 squared see") is a commonly-used two-signal shared peripheral interface
17 bus. Many system-on-chip solutions provide controllers that communicate
18 on an I2C bus. Devices on the bus can operate in two roles: as a
20 "target" that responds to transaction commands. A I2C controller on a
22 support the target mode. Zephyr has API for both roles.
24 .. _i2c-controller-api:
[all …]
/Zephyr-latest/boards/shields/x_nucleo_iks01a2/doc/
Dindex.rst1 .. _x-nucleo-iks01a2:
3 X-NUCLEO-IKS01A2: MEMS Inertial and Environmental Multi sensor shield
8 The X-NUCLEO-IKS01A2 is a motion MEMS and environmental sensor expansion board
14 The X-NUCLEO-IKS01A2 interfaces with the STM32 microcontroller via the I2C pin,
15 and it is possible to change the default I2C port.
17 .. image:: img/x-nucleo-iks01a2.jpg
19 :alt: X-NUCLEO-IKS01A2
22 `X-NUCLEO-IKS01A2 website`_.
27 X-NUCLEO-IKS01A2 provides the following key features:
30 - LSM6DSL MEMS 3D accelerometer (±2/±4/±8/±16 g) and
[all …]
/Zephyr-latest/boards/nxp/lpcxpresso11u68/
Dlpcxpresso11u68-pinctrl.dtsi3 * SPDX-License-Identifier: Apache-2.0
6 #include <zephyr/dt-bindings/pinctrl/lpc11u6x-pinctrl.h>
13 nxp,disable-analog-filter;
21 nxp,disable-analog-filter;
29 nxp,i2c-mode;
30 nxp,i2c-filter = "slow";
31 nxp,disable-analog-filter;
39 nxp,i2c-mode;
40 nxp,i2c-filter = "fast";
41 nxp,disable-analog-filter;
[all …]
/Zephyr-latest/dts/bindings/sensor/
Dvishay,veml7700.yaml2 # SPDX-License-Identifier: Apache-2.0
5 Vishay VEML7700 High Accuracy Ambient Light Sensor With I2C Interface.
10 include: [sensor-device.yaml, i2c-device.yaml]
13 psm-mode:
17 Power saving mode as described in the datasheet on page 8.
19 (power saving mode is disabled) which is the default value.
21 0x00 = Disable power saving mode
22 0x01 = Mode 1 (0001b)
23 0x03 = Mode 2 (0011b)
24 0x05 = Mode 3 (0101b)
[all …]
Dsensirion,shtcx.yaml2 # SPDX-License-Identifier: Apache-2.0
14 clock-frequency = <I2C_BITRATE_FAST>;
18 measure-mode = "normal";
19 clock-stretching;
25 include: [sensor-device.yaml, i2c-device.yaml]
28 measure-mode:
32 Specifies which measurement mode is used.
33 SHTC1 sensor only supports the normal measuremnt mode.
35 - "normal"
36 - "low-power"
[all …]
/Zephyr-latest/drivers/sensor/tdk/mpu9250/
Dak8963.c4 * SPDX-License-Identifier: Apache-2.0
7 #include <zephyr/drivers/i2c.h>
72 /* The sensor device returns 10^-9 Teslas after scaling. in ak8963_convert_magn()
80 return -EOVERFLOW; in ak8963_convert_magn()
85 val->val1 = scaled_val / 1000000; in ak8963_convert_magn()
86 val->val2 = scaled_val % 1000000; in ak8963_convert_magn()
93 /* Instruct the MPU9250 to access over its external i2c bus in ak8963_execute_rw()
96 const struct mpu9250_config *cfg = dev->config; in ak8963_execute_rw()
105 /* Set target i2c address */ in ak8963_execute_rw()
106 ret = i2c_reg_write_byte_dt(&cfg->i2c, in ak8963_execute_rw()
[all …]
/Zephyr-latest/drivers/sensor/ams/ccs811/
Dccs811.c5 * SPDX-License-Identifier: Apache-2.0
12 #include <zephyr/drivers/i2c.h>
26 const struct ccs811_config *config = dev->config; in set_wake()
28 gpio_pin_set_dt(&config->wake_gpio, enable); in set_wake()
38 * application mode.
42 const struct ccs811_config *config = dev->config; in fetch_status()
46 if (i2c_reg_read_byte_dt(&config->i2c, CCS811_REG_STATUS, &status) < 0) { in fetch_status()
48 return -EIO; in fetch_status()
55 if (i2c_reg_read_byte_dt(&config->i2c, CCS811_REG_ERROR_ID, &error_id) < 0) { in fetch_status()
57 return -EIO; in fetch_status()
[all …]
/Zephyr-latest/drivers/sensor/st/iis2dh/
DKconfig1 # ST Microelectronics IIS2DH 3-axis accelerometer driver
4 # SPDX-License-Identifier: Apache-2.0
7 bool "IIS2DH I2C/SPI accelerometer sensor driver"
11 select I2C if $(dt_compat_on_bus,$(DT_COMPAT_ST_IIS2DH),i2c)
21 prompt "Trigger mode"
31 depends on $(dt_compat_any_has_prop,$(DT_COMPAT_ST_IIS2DH),drdy-gpios)
37 depends on $(dt_compat_any_has_prop,$(DT_COMPAT_ST_IIS2DH),drdy-gpios)
64 int "Accelerometer Full-scale range setting"
67 Specify the default accelerometer full-scale range.
70 2: +/- 2g
[all …]
/Zephyr-latest/drivers/sensor/maxim/max30101/
Dmax30101.c4 * SPDX-License-Identifier: Apache-2.0
18 struct max30101_data *data = dev->data; in max30101_sample_fetch()
19 const struct max30101_config *config = dev->config; in max30101_sample_fetch()
27 num_bytes = data->num_channels * MAX30101_BYTES_PER_CHANNEL; in max30101_sample_fetch()
28 if (i2c_burst_read_dt(&config->i2c, MAX30101_REG_FIFO_DATA, buffer, in max30101_sample_fetch()
31 return -EIO; in max30101_sample_fetch()
36 /* Each channel is 18-bits */ in max30101_sample_fetch()
42 data->raw[fifo_chan++] = fifo_data; in max30101_sample_fetch()
52 struct max30101_data *data = dev->data; in max30101_channel_get()
71 return -ENOTSUP; in max30101_channel_get()
[all …]
/Zephyr-latest/dts/bindings/i3c/
Di3c-device.yaml2 # SPDX-License-Identifier: Apache-2.0
8 on-bus: i3c
23 ID left-shifted by 1, where the manufacturer ID is
24 the bits 33-47 (zero-based) of the 48-bit Provisioned ID.
26 the part ID (bits 16-31 of the Provisioned ID) left-shifted
27 by 16, and the instance ID (bits 12-15 of the Provisioned ID)
28 left-shifted by 12. Basically, this is the lower 32 bits
33 where the PID part is expanded to be a 64-bit integer.
35 For I2C devices, the 3 fields are static address, 0x00, and
37 1. 7-bit address of the I2C device. (Note that 10-bit
[all …]
/Zephyr-latest/drivers/watchdog/
Dwdt_npm2100.c3 * SPDX-License-Identifier: Apache-2.0
11 #include <zephyr/drivers/i2c.h>
27 struct i2c_dt_spec i2c; member
36 const struct wdt_npm2100_config *config = dev->config; in wdt_npm2100_setup()
37 struct wdt_npm2100_data *data = dev->data; in wdt_npm2100_setup()
39 if (!data->timeout_valid) { in wdt_npm2100_setup()
40 return -EINVAL; in wdt_npm2100_setup()
43 return mfd_npm2100_start_timer(config->mfd); in wdt_npm2100_setup()
48 const struct wdt_npm2100_config *config = dev->config; in wdt_npm2100_disable()
49 struct wdt_npm2100_data *data = dev->data; in wdt_npm2100_disable()
[all …]
/Zephyr-latest/drivers/sensor/memsic/mc3419/
DKconfig1 # SPDX-License-Identifier: Apache-2.0
9 select I2C if $(dt_compat_on_bus,$(DT_COMPAT_MEMSIC_MC3419),i2c)
16 bool "Trigger mode"
18 depends on $(dt_compat_any_has_prop,$(DT_COMPAT_MEMSIC_MC3419),int-gpios)
21 prompt "Trigger mode"
34 default it is global thread mode.
/Zephyr-latest/drivers/haptics/
Ddrv2605.c4 * SPDX-License-Identifier: Apache-2.0
14 #include <zephyr/drivers/i2c.h>
135 struct i2c_dt_spec i2c; member
151 enum drv2605_mode mode; member
156 const struct drv2605_config *config = dev->config; in drv2605_haptic_config_audio()
157 struct drv2605_data *data = dev->data; in drv2605_haptic_config_audio()
160 ret = i2c_reg_update_byte_dt(&config->i2c, DRV2605_REG_CONTROL3, DRV2605_N_PWM_ANALOG, in drv2605_haptic_config_audio()
166 ret = i2c_reg_update_byte_dt(&config->i2c, DRV2605_REG_CONTROL1, DRV2605_AC_COUPLE, in drv2605_haptic_config_audio()
172 data->mode = DRV2605_MODE_AUDIO_TO_VIBE; in drv2605_haptic_config_audio()
179 const struct drv2605_config *config = dev->config; in drv2605_haptic_config_pwm_analog()
[all …]

12345678910>>...29