/Zephyr-latest/dts/bindings/misc/ |
D | nuvoton,npcx-soc-id.yaml | 2 # SPDX-License-Identifier: Apache-2.0 4 description: Nuvoton, NPCX soc ID node 6 compatible: "nuvoton,npcx-soc-id" 9 family-id: 12 description: NPCX family ID 14 chip-id: 17 description: NPCX chip ID 19 device-id: 22 description: NPCX device ID 24 revision-reg:
|
/Zephyr-latest/dts/bindings/mtd/ |
D | atmel,at45.yaml | 2 # SPDX-License-Identifier: Apache-2.0 8 include: [spi-device.yaml] 11 jedec-id: 12 type: uint8-array 14 description: JEDEC ID as manufacturer ID (1 byte) and device ID (2 bytes). 21 sector-size: 26 sector-0a-pages: 36 Value of zero means that the flash chip has all sectors of equal size. 38 block-size: 43 page-size: [all …]
|
/Zephyr-latest/drivers/sensor/honeywell/hmc5883l/ |
D | hmc5883l.c | 4 * SPDX-License-Identifier: Apache-2.0 25 val->val1 = raw_val / divider; in hmc5883l_convert() 26 val->val2 = (((int64_t)raw_val % divider) * 1000000L) / divider; in hmc5883l_convert() 33 struct hmc5883l_data *drv_data = dev->data; in hmc5883l_channel_get() 36 hmc5883l_convert(val, drv_data->x_sample, in hmc5883l_channel_get() 37 hmc5883l_gain[drv_data->gain_idx]); in hmc5883l_channel_get() 39 hmc5883l_convert(val, drv_data->y_sample, in hmc5883l_channel_get() 40 hmc5883l_gain[drv_data->gain_idx]); in hmc5883l_channel_get() 42 hmc5883l_convert(val, drv_data->z_sample, in hmc5883l_channel_get() 43 hmc5883l_gain[drv_data->gain_idx]); in hmc5883l_channel_get() [all …]
|
/Zephyr-latest/drivers/sensor/st/lis3mdl/ |
D | lis3mdl.c | 4 * SPDX-License-Identifier: Apache-2.0 25 val->val1 = raw_val / divider; in lis3mdl_convert() 26 val->val2 = (((int64_t)raw_val % divider) * 1000000L) / divider; in lis3mdl_convert() 33 struct lis3mdl_data *drv_data = dev->data; in lis3mdl_channel_get() 37 lis3mdl_convert(val, drv_data->x_sample, in lis3mdl_channel_get() 39 lis3mdl_convert(val + 1, drv_data->y_sample, in lis3mdl_channel_get() 41 lis3mdl_convert(val + 2, drv_data->z_sample, in lis3mdl_channel_get() 44 lis3mdl_convert(val, drv_data->x_sample, in lis3mdl_channel_get() 47 lis3mdl_convert(val, drv_data->y_sample, in lis3mdl_channel_get() 50 lis3mdl_convert(val, drv_data->z_sample, in lis3mdl_channel_get() [all …]
|
/Zephyr-latest/drivers/sensor/ist8310/ |
D | ist8310.c | 1 /* ist8310.c - Driver for Isentek IST8310 Geomagnetic Sensor */ 7 * SPDX-License-Identifier: Apache-2.0 18 const struct ist8310_config *cfg = dev->config; in ist8310_bus_check() 20 return cfg->bus_io->check(&cfg->bus); in ist8310_bus_check() 25 const struct ist8310_config *cfg = dev->config; in ist8310_reg_read() 27 return cfg->bus_io->read(&cfg->bus, start, buf, size); in ist8310_reg_read() 32 const struct ist8310_config *cfg = dev->config; in ist8310_reg_write() 34 return cfg->bus_io->write(&cfg->bus, reg, val); in ist8310_reg_write() 40 struct ist8310_data *drv_data = dev->data; in ist8310_sample_fetch() 45 return -EIO; in ist8310_sample_fetch() [all …]
|
/Zephyr-latest/drivers/sensor/tdk/mpu6050/ |
D | mpu6050.c | 4 * SPDX-License-Identifier: Apache-2.0 26 val->val1 = conv_val / 1000000; in mpu6050_convert_accel() 27 val->val2 = conv_val % 1000000; in mpu6050_convert_accel() 38 val->val1 = conv_val / 1000000; in mpu6050_convert_gyro() 39 val->val2 = conv_val % 1000000; in mpu6050_convert_gyro() 59 val->val1 = tmp_val / 1000000; in mpu6050_convert_temp() 60 val->val2 = tmp_val % 1000000; in mpu6050_convert_temp() 67 struct mpu6050_data *drv_data = dev->data; in mpu6050_channel_get() 71 mpu6050_convert_accel(val, drv_data->accel_x, in mpu6050_channel_get() 72 drv_data->accel_sensitivity_shift); in mpu6050_channel_get() [all …]
|
/Zephyr-latest/drivers/sensor/asahi_kasei/ak8975/ |
D | ak8975.c | 4 * SPDX-License-Identifier: Apache-2.0 25 struct ak8975_data *drv_data = dev->data; in ak8975_sample_fetch() 26 const struct ak8975_config *drv_config = dev->config; in ak8975_sample_fetch() 31 if (i2c_reg_write_byte_dt(&drv_config->i2c, AK8975_REG_CNTL, AK8975_MODE_MEASURE) < 0) { in ak8975_sample_fetch() 33 return -EIO; in ak8975_sample_fetch() 38 if (i2c_burst_read_dt(&drv_config->i2c, AK8975_REG_DATA_START, buf, 6) < 0) { in ak8975_sample_fetch() 40 return -EIO; in ak8975_sample_fetch() 43 drv_data->x_sample = sys_le16_to_cpu(buf[0] | (buf[1] << 8)); in ak8975_sample_fetch() 44 drv_data->y_sample = sys_le16_to_cpu(buf[2] | (buf[3] << 8)); in ak8975_sample_fetch() 45 drv_data->z_sample = sys_le16_to_cpu(buf[4] | (buf[5] << 8)); in ak8975_sample_fetch() [all …]
|
/Zephyr-latest/soc/microchip/mec/common/reg/ |
D | mec_global_cfg.h | 4 * SPDX-License-Identifier: Apache-2.0 14 * Device and Revision ID 32-bit register 16 * b[15:8] = Device Sub-ID 17 * b[31:16] = Device ID 18 * This register can be accesses as bytes or a single 32-bit read from 31 /* Byte[0] at offset 0x1c is the 8-bit revision ID */ 36 * Byte[1] at offset 0x1D is the 8-bit Sub-ID 38 * bits[7:4] = chip family 49 /* chip family field */ 67 /* SZ 144-pin package parts */ [all …]
|
/Zephyr-latest/drivers/usb_c/tcpc/ |
D | ps8xxx_priv.h | 3 * SPDX-License-Identifier: Apache-2.0 6 /* Note: The Product ID will read as 0x8803 if the firmware has malfunctioned in 8705, 8755 and 7 * 8805. Also the Product ID can be invalid if chip is before or during the power-up and 17 /** PS8815 only - vendor specific register for firmware version */
|
/Zephyr-latest/soc/espressif/common/ |
D | Kconfig.flash | 2 # SPDX-License-Identifier: Apache-2.0 18 Enable this to support auto detection of ISSI chips if chip vendor not directly 19 given by ``chip_drv`` member of the chip struct. This adds support for variant 26 Enable this to support auto detection of MXIC chips if chip vendor not directly 27 given by ``chip_drv`` member of the chip struct. This adds support for variant 34 Enable this to support auto detection of GD (GigaDevice) chips if chip vendor not 35 directly given by ``chip_drv`` member of the chip struct. If you are using Wrover 36 modules, please don't disable this, otherwise your flash may not work in 4-bit 40 size. Note that the default chip driver supports the GD chips with product ID 47 Enable this to support auto detection of Winbond chips if chip vendor not directly [all …]
|
/Zephyr-latest/dts/bindings/spi/ |
D | cypress,psoc6-spi.yaml | 2 # SPDX-License-Identifier: Apache-2.0 6 compatible: "cypress,psoc6-spi" 8 include: [spi-controller.yaml, pinctrl-device.yaml] 17 peripheral-id: 19 description: peripheral ID 22 pinctrl-0: 26 MISO, MOSI, SCK, and possibly various chip selects signals. We 32 pinctrl-0 = <&p12_0_spi6_mosi &p12_1_spi6_miso &p12_2_spi6_clk &p12_3_spi6_sel0>;
|
/Zephyr-latest/drivers/sensor/st/lps25hb/ |
D | lps25hb.c | 1 /* lps25hb.c - Driver for LPS25HB pressure and temperature sensor */ 6 * SPDX-License-Identifier: Apache-2.0 25 const struct lps25hb_config *config = dev->config; in lps25hb_power_ctrl() 27 return i2c_reg_update_byte_dt(&config->i2c, LPS25HB_REG_CTRL_REG1, in lps25hb_power_ctrl() 34 const struct lps25hb_config *config = dev->config; in lps25hb_set_odr_raw() 36 return i2c_reg_update_byte_dt(&config->i2c, LPS25HB_REG_CTRL_REG1, in lps25hb_set_odr_raw() 44 struct lps25hb_data *data = dev->data; in lps25hb_sample_fetch() 45 const struct lps25hb_config *config = dev->config; in lps25hb_sample_fetch() 52 if (i2c_reg_read_byte_dt(&config->i2c, in lps25hb_sample_fetch() 56 return -EIO; in lps25hb_sample_fetch() [all …]
|
/Zephyr-latest/drivers/sensor/st/lps2xdf/ |
D | ilps22qs.c | 3 * Copyright (c) 2023-2024 STMicroelectronics 6 * SPDX-License-Identifier: Apache-2.0 17 const struct lps2xdf_config *const cfg = dev->config; in ilps22qs_mode_set_odr_raw() 18 stmdev_ctx_t *ctx = (stmdev_ctx_t *)&cfg->ctx; in ilps22qs_mode_set_odr_raw() 22 md.avg = cfg->avg; in ilps22qs_mode_set_odr_raw() 23 md.lpf = cfg->lpf; in ilps22qs_mode_set_odr_raw() 24 md.fs = cfg->fs; in ilps22qs_mode_set_odr_raw() 31 struct lps2xdf_data *data = dev->data; in ilps22qs_sample_fetch() 32 const struct lps2xdf_config *const cfg = dev->config; in ilps22qs_sample_fetch() 33 stmdev_ctx_t *ctx = (stmdev_ctx_t *)&cfg->ctx; in ilps22qs_sample_fetch() [all …]
|
/Zephyr-latest/doc/services/debugging/ |
D | cs_trace_defmt.rst | 6 Formatter is a method of wrapping multiple trace streams (specified by 7 bit ID) into a 10 decoded offline by the host but deformatter can be used on-chip to decode the data during 18 end of chunk is reached. Callback contains stream ID and the data.
|
/Zephyr-latest/dts/bindings/ethernet/ |
D | nxp,enet-mac.yaml | 2 # SPDX-License-Identifier: Apache-2.0 6 compatible: "nxp,enet-mac" 8 include: ["ethernet-controller.yaml", "pinctrl-device.yaml"] 20 nxp,ptp-clock: 26 nxp,unique-mac: 29 Use part of the unique silicon ID to generate the MAC. 31 zephyr,random-mac-address or local-mac-address also. 36 3 bytes will come from the chip's unique ID. 38 nxp,fused-mac:
|
/Zephyr-latest/boards/seagate/legend/ |
D | legend.dts | 4 * SPDX-License-Identifier: Apache-2.0 7 /dts-v1/; 9 #include <st/f0/stm32f070cbtx-pinctrl.dtsi> 10 #include <zephyr/dt-bindings/led/led.h> 11 #include <zephyr/dt-bindings/led/seagate_legend_b1414.h> 12 #include <zephyr/dt-bindings/input/input-event-codes.h> 17 zephyr,shell-uart = &usart1; 24 led-strip = &led_strip_spi; 27 board_id: brd-id { 28 compatible = "gpio-keys"; [all …]
|
/Zephyr-latest/drivers/sensor/tdk/mpu9250/ |
D | mpu9250.c | 4 * SPDX-License-Identifier: Apache-2.0 64 val->val1 = conv_val / 1000000; in mpu9250_convert_accel() 65 val->val2 = conv_val % 1000000; in mpu9250_convert_accel() 76 val->val1 = conv_val / 1000000; in mpu9250_convert_gyro() 77 val->val2 = conv_val % 1000000; in mpu9250_convert_gyro() 85 val->val1 = (raw_val / MPU0259_TEMP_SENSITIVITY) + MPU9250_TEMP_OFFSET; in mpu9250_convert_temp() 86 val->val2 = (((int64_t)(raw_val % MPU0259_TEMP_SENSITIVITY) * 1000000) in mpu9250_convert_temp() 89 if (val->val2 < 0) { in mpu9250_convert_temp() 90 val->val1--; in mpu9250_convert_temp() 91 val->val2 += 1000000; in mpu9250_convert_temp() [all …]
|
/Zephyr-latest/drivers/sensor/bosch/bma280/ |
D | bma280.c | 4 * SPDX-License-Identifier: Apache-2.0 22 struct bma280_data *drv_data = dev->data; in bma280_sample_fetch() 23 const struct bma280_config *config = dev->config; in bma280_sample_fetch() 33 if (i2c_burst_read_dt(&config->i2c, in bma280_sample_fetch() 36 return -EIO; in bma280_sample_fetch() 40 drv_data->x_sample = (((int8_t)buf[1]) << BMA280_ACCEL_LSB_BITS) | lsb; in bma280_sample_fetch() 43 drv_data->y_sample = (((int8_t)buf[3]) << BMA280_ACCEL_LSB_BITS) | lsb; in bma280_sample_fetch() 46 drv_data->z_sample = (((int8_t)buf[5]) << BMA280_ACCEL_LSB_BITS) | lsb; in bma280_sample_fetch() 48 if (i2c_reg_read_byte_dt(&config->i2c, in bma280_sample_fetch() 50 (uint8_t *)&drv_data->temp_sample) < 0) { in bma280_sample_fetch() [all …]
|
/Zephyr-latest/drivers/sensor/st/hts221/ |
D | hts221.c | 4 * SPDX-License-Identifier: Apache-2.0 34 struct hts221_data *data = dev->data; in hts221_channel_get() 42 conv_val = (int32_t)(data->t1_degc_x8 - data->t0_degc_x8) * in hts221_channel_get() 43 (data->t_sample - data->t0_out) / in hts221_channel_get() 44 (data->t1_out - data->t0_out) + in hts221_channel_get() 45 data->t0_degc_x8; in hts221_channel_get() 48 val->val1 = conv_val / 8; in hts221_channel_get() 49 val->val2 = (conv_val % 8) * (1000000 / 8); in hts221_channel_get() 51 conv_val = (int32_t)(data->h1_rh_x2 - data->h0_rh_x2) * in hts221_channel_get() 52 (data->rh_sample - data->h0_t0_out) / in hts221_channel_get() [all …]
|
/Zephyr-latest/dts/bindings/sensor/ |
D | bosch,bma280.yaml | 2 # SPDX-License-Identifier: Apache-2.0 6 https://www.bosch-sensortec.com/products/motion-sensors/accelerometers/bma280.html 10 include: [sensor-device.yaml, i2c-device.yaml] 13 int1-gpios: 14 type: phandle-array 19 is-bmc150: 23 capability provided by the BMC150 6-axis eCompass. This affects 24 the chip ID and the resolution of the measurements.
|
/Zephyr-latest/drivers/regulator/ |
D | regulator_mpm54304.c | 4 * SPDX-License-Identifier: Apache-2.0 37 const struct regulator_mpm54304_config *config = dev->config; in regulator_mpm54304_enable() 39 return i2c_reg_update_byte_dt(&config->bus, MPM54304_REG_EN, config->enable_mask, in regulator_mpm54304_enable() 40 config->enable_mask); in regulator_mpm54304_enable() 45 const struct regulator_mpm54304_config *config = dev->config; in regulator_mpm54304_disable() 47 return i2c_reg_update_byte_dt(&config->bus, MPM54304_REG_EN, config->enable_mask, 0x00); in regulator_mpm54304_disable() 52 const struct regulator_mpm54304_config *config = dev->config; in regulator_mpm54304_init() 55 if (!i2c_is_ready_dt(&config->bus)) { in regulator_mpm54304_init() 56 LOG_ERR("I2C bus %s not ready", config->bus.bus->name); in regulator_mpm54304_init() 57 return -ENODEV; in regulator_mpm54304_init() [all …]
|
/Zephyr-latest/samples/drivers/spi_flash/boards/ |
D | mec172xevb_assy6906.overlay | 4 * SPDX-License-Identifier: Apache-2.0 9 compatible = "microchip,xec-qmspi-ldma"; 10 clock-frequency = <24000000>; 12 chip-select = <0>; 14 pinctrl-0 = < &shd_cs0_n_gpio055 20 pinctrl-names = "default"; 23 compatible = "jedec,spi-nor"; 27 spi-max-frequency = <24000000>; 28 jedec-id = [ef 40 18]; 34 drive-open-drain; [all …]
|
/Zephyr-latest/soc/espressif/esp32/ |
D | soc.h | 4 * SPDX-License-Identifier: Apache-2.0 20 #include <xtensa/core-macros.h> 37 uint32_t id; in esp_core_id() local 41 "extui %0,%0,13,1" : "=r" (id)); in esp_core_id() 42 return id; in esp_core_id() 67 /* ROM information related to SPI Flash chip timing and device */
|
/Zephyr-latest/soc/ene/kb1200/reg/ |
D | gcfg.h | 4 * SPDX-License-Identifier: Apache-2.0 14 volatile uint8_t IDV; /*Version ID Register */ 16 volatile uint16_t IDC; /*Chip ID Register */ 17 volatile uint32_t FWID; /*Firmware ID Register */
|
/Zephyr-latest/drivers/sensor/st/lps22hb/ |
D | lps22hb.c | 1 /* lps22hb.c - Driver for LPS22HB pressure and temperature sensor */ 6 * SPDX-License-Identifier: Apache-2.0 25 const struct lps22hb_config *config = dev->config; in lps22hb_set_odr_raw() 27 return i2c_reg_update_byte_dt(&config->i2c, LPS22HB_REG_CTRL_REG1, in lps22hb_set_odr_raw() 35 struct lps22hb_data *data = dev->data; in lps22hb_sample_fetch() 36 const struct lps22hb_config *config = dev->config; in lps22hb_sample_fetch() 41 if (i2c_burst_read_dt(&config->i2c, LPS22HB_REG_PRESS_OUT_XL, in lps22hb_sample_fetch() 44 return -EIO; in lps22hb_sample_fetch() 47 data->sample_press = (int32_t)((uint32_t)(out[0]) | in lps22hb_sample_fetch() 50 data->sample_temp = (int16_t)((uint16_t)(out[3]) | in lps22hb_sample_fetch() [all …]
|