Ricardo Rivera-Matos
16519a5b3c
drivers: charger: Updates drivers to use charge_enable handler
...
Updates existing drivers to make use of the charge_enable handler.
Signed-off-by: Ricardo Rivera-Matos <ricardo.rivera-matos@cirrus.com>
2023-12-12 10:49:39 -06:00
Ricardo Rivera-Matos
d4ed6bacf0
drivers: charger: Adds charge_enable handler
...
Adds a charge_enable handler to facilitate enabling and disabling
a charge cycle. This deprecates enabling and disable the charge
cycle via the CHARGER_PROP_STATUS property.
Signed-off-by: Ricardo Rivera-Matos <ricardo.rivera-matos@cirrus.com>
2023-12-12 10:49:39 -06:00
Bartosz Bilas
39eb124c81
drivers: add MAX20335 charger driver
...
Add a MAX20335 MFD subdriver for the built-in
battery charger.
Signed-off-by: Bartosz Bilas <b.bilas@grinn-global.com>
2023-11-13 09:48:33 +01:00
Bartosz Bilas
8129307887
drivers: charger: add charger prefix for bq24190
...
Many (or almost all) drivers contain the specified prefixes
related to the driver subsys so add the missing one for the
BQ24190.
Signed-off-by: Bartosz Bilas <bartosz.bilas@hotmail.com>
2023-11-09 09:57:30 -06:00
Anas Nashif
a08bfeb49c
syscall: rename Z_OOPS -> K_OOPS
...
Rename internal API to not use z_/Z_.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-11-03 11:46:52 +01:00
Anas Nashif
1a9de05767
syscall: rename Z_SYSCALL_DRIVER_ -> K_SYSCALL_DRIVER_
...
Rename internal API to not use z_/Z_.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-11-03 11:46:52 +01:00
Anas Nashif
9c1aeb5fd3
syscall: rename z_user_ to k_usermode_
...
Rename internal API to not use z_/Z_.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-11-03 11:46:52 +01:00
Anas Nashif
56fddd805a
syscall: rename z_user_from_copy -> k_usermode_from_copy
...
Rename internal API to not use z_/Z_.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-11-03 11:46:52 +01:00
Anas Nashif
4e396174ce
kernel: move syscall_handler.h to internal include directory
...
Move the syscall_handler.h header, used internally only to a dedicated
internal folder that should not be used outside of Zephyr.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-11-03 11:46:52 +01:00
Ricardo Rivera-Matos
fd06cd7c97
drivers: charger: Introduces BQ24190 support
...
Adds support for the BQ24190 family of charging ICs.
Signed-off-by: Ricardo Rivera-Matos <rriveram@opensource.cirrus.com>
2023-10-20 14:55:22 +02:00
Fabio Baltieri
c03d0f83c8
drivers: charger: fix i2c_dump_msgs_rw argument
...
Fixes:
zephyr/drivers/charger/emul_sbs_charger.c:70:26: warning: passing
argument 1 of ‘i2c_dump_msgs_rw’ from incompatible pointer type
[-Wincompatible-pointer-types]
Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2023-09-07 21:41:31 +02:00
Ricardo Rivera-Matos
aee815f19d
charger: Sample sbs charger driver with tests
...
Adds a sample sbs charger driver and basics tests.
Signed-off-by: Ricardo Rivera-Matos <rriveram@opensource.cirrus.com>
2023-09-07 13:03:13 -04:00
Ricardo Rivera-Matos
a7adb06ff4
charger: Initial charger dedicated API
...
Add initial charger driver API with the most basic of native_posix
driver tests.
Signed-off-by: Ricardo Rivera-Matos <rriveram@opensource.cirrus.com>
2023-09-07 13:03:13 -04:00