zephyr/drivers
Gerard Marull-Paretas d5734bc003 drivers: sensor: ina23x: specify current LSB in uA and fix units
Specify the units of the current LSB in microamperes, so that we can
measure low maximum currents. Right now it was specified in
milliamperes, but ignored and always hardcoded to 1mA in the driver.
This makes the driver pretty much useless when the maximum current to be
measured is in a range of e.g. 20-50mA.

This patch also removes some unnecessary ifdeffery: since we write the
calibration register, we can always provice measurements with the right
units. It is also wrong to provide sensor readings that do not match
with the units specified by the channel. After this change voltage is
always reported in V, current in A and power in W.

Note that power measurement had the current LSB hardcoded in the
calculation (assuming 1mA/LSB), this has been fixed as well.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2022-11-15 10:23:17 +01:00
..
adc drivers: adc: fix ref_internal for ads1x1x 2022-11-08 11:33:25 -06:00
audio
bbram
bluetooth Bluetooth: Move crypto toolbox functions from `smp.c` to their own files 2022-11-10 09:28:28 +01:00
cache
can drivers: can: kvaser_pci: Fix incorrect RAM context struct type 2022-11-11 12:10:09 +01:00
clock_control drivers: clock_control: clock_stm32: Add support for lse bypass 2022-11-10 11:27:49 +00:00
console sparse: fix sparse warnings found in sof compilation 2022-11-02 14:34:20 -04:00
coredump
counter drivers: counter: Remove unused Kconfig symbols for stm32 rtc 2022-11-10 11:27:49 +00:00
crypto intel: ace15: Enabling sha driver by default 2022-10-31 12:45:33 -07:00
dac
dai drivers/dai/intel/ssp: Skip setting config when playback/capture is active 2022-11-09 09:27:51 +00:00
debug
disk drivers: flashdisk: check partition constraints 2022-11-14 16:37:04 +01:00
display drivers: display: rm68200: add missing kernel.h include 2022-10-24 12:44:57 +02:00
dma dma: dw: Fix compilation errors with CONFIG_DMA_DW_SUSPEND_DRAIN 2022-11-12 22:27:10 -05:00
ec_host_cmd_periph
edac
eeprom drivers: eeprom: mchp_xec: add missing kernel.h include 2022-11-04 08:59:24 +00:00
entropy drivers: Add NXP CSS entropy driver 2022-11-02 16:54:10 -05:00
espi ITE: soc: chip_chipregs: Access registers using structure method 2022-11-09 10:44:29 +01:00
ethernet drivers: e1000: Use lookup() instead of probe() 2022-11-03 09:54:56 -05:00
flash drivers: flash: Use dts to configure STM32 OSPI manager clock 2022-11-10 11:28:18 +00:00
fpga
gpio drivers: gpio: npcx: fix usage of deprecated voltage macros 2022-11-11 11:00:26 +01:00
hwinfo
i2c drivers: i2c: Support for i2c 10-bit addressing for STM32 target 2022-11-09 09:07:35 +00:00
i2s
i3c
ieee802154
interrupt_controller drivers: interrupt_controller: initial support for NXP S32Z27 EIRQ 2022-11-04 17:44:08 -04:00
ipm drivers: ipm: nrfx: align implementation to nrfx 2.10 API 2022-11-08 10:48:38 +01:00
kscan
led
led_strip
lora
mbox drivers: mbox: nrfx: align implementation to nrfx 2.10 API 2022-11-08 10:48:38 +01:00
mdio
memc
mipi_dsi drivers: mipi_dsi: mcux: add missing soc.h 2022-10-24 12:44:57 +02:00
misc
mm memory manager: Add runtime memory discovery 2022-11-07 06:44:05 -05:00
modem modem: ppp: gsm: extract access technology 2022-11-11 08:41:13 +00:00
net drivers/net: Increase recv_cb buffer to prevent snprintk overflow 2022-10-26 12:00:04 +02:00
neural_net
pcie drivers: pcie: reintroduce support for I/O BARs 2022-11-01 15:22:31 -04:00
peci driver: peci: mec: enable peci in ec subsystem register 2022-11-10 22:39:43 -05:00
pinctrl drivers: pinctrl: fix lookup when there are no states 2022-11-11 13:15:02 +01:00
pinmux
pm_cpu_ops
power_domain drivers: power_domain: Update drivers to use devicetree Kconfig symbol 2022-11-02 15:41:17 +09:00
ps2
ptp_clock
pwm drivers: pwm: pwm_mcux_sctimer: Fix stopping PWM 2022-11-07 10:10:37 -06:00
regulator drivers: regulator: s/uV/uv and s/uA/ua 2022-11-14 16:59:05 +01:00
reset
sdhc
sensor drivers: sensor: ina23x: specify current LSB in uA and fix units 2022-11-15 10:23:17 +01:00
serial uart: ns16550: move command macro to public header 2022-11-10 22:40:21 -05:00
spi spi: SAM support SPI transfers with DMA 2022-11-08 09:37:59 +00:00
syscon
timer drivers: timer: nrf_rtc_timer: Prevent prolonged timeout setting 2022-11-09 10:46:19 +01:00
usb drivers: usb: mcux: mark endpoint unoccupied on disable 2022-11-11 15:10:26 -06:00
usb_c usb-c: Remove VBUS measurement and control 2022-10-22 18:38:35 -04:00
video
virtualization drivers: pcie: reintroduce support for I/O BARs 2022-11-01 15:22:31 -04:00
w1 treewide: Use CONFIG_*_ENDIAN instead of __BYTE_ORDER__ 2022-10-28 19:23:46 +09:00
watchdog
wifi drivers: wifi: esp32: add softap config 2022-11-03 10:24:14 +01:00
xen
CMakeLists.txt usb-c: Change dir name from usbc to usb_c 2022-10-22 18:38:35 -04:00
Kconfig usb-c: Change dir name from usbc to usb_c 2022-10-22 18:38:35 -04:00