Skip to content

Commit

Permalink
drivers: sensors: Add LTC4162 step-down battery charger support
Browse files Browse the repository at this point in the history
Implementation of LTC4162 step-down battery charger support.

Signed-off-by: Navin Sankar Velliangiri <navin@linumiz.com>
  • Loading branch information
Navin Sankar Velliangiri committed Jan 17, 2023
1 parent d0db2c8 commit 434a9ea
Show file tree
Hide file tree
Showing 8 changed files with 551 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/sensor/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ add_subdirectory_ifdef(CONFIG_LSM6DSL lsm6dsl)
add_subdirectory_ifdef(CONFIG_LSM6DSO lsm6dso)
add_subdirectory_ifdef(CONFIG_LSM9DS0_GYRO lsm9ds0_gyro)
add_subdirectory_ifdef(CONFIG_LSM9DS0_MFD lsm9ds0_mfd)
add_subdirectory_ifdef(CONFIG_LTC4162 ltc4162)
add_subdirectory_ifdef(CONFIG_MAX17055 max17055)
add_subdirectory_ifdef(CONFIG_MAX17262 max17262)
add_subdirectory_ifdef(CONFIG_MAX30101 max30101)
Expand Down
2 changes: 2 additions & 0 deletions drivers/sensor/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,8 @@ source "drivers/sensor/lsm9ds0_gyro/Kconfig"

source "drivers/sensor/lsm9ds0_mfd/Kconfig"

source "drivers/sensor/ltc4162/Kconfig"

source "drivers/sensor/max17055/Kconfig"

source "drivers/sensor/max17262/Kconfig"
Expand Down
5 changes: 5 additions & 0 deletions drivers/sensor/ltc4162/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# SPDX-License-Identifier: Apache-2.0

zephyr_library()

zephyr_library_sources(ltc4162.c)
10 changes: 10 additions & 0 deletions drivers/sensor/ltc4162/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# LTC4162 Battery Charger

# Copyright (c) 2021 Linumiz
# SPDX-License-Identifier: Apache-2.0

config LTC4162
bool "LTC4163 battery charger"
depends on I2C
help
Enable driver for LTC4162 I2C based charger
Loading

0 comments on commit 434a9ea

Please sign in to comment.