Ricardo Rivera-Matos
5868c701ef
samples: charger: Demos new output limit properties
...
Adds use of CHARGER_PROP_DISCHARGE_CURRENT_NOTIFICATION and
CHARGER_PROP_SYSTEM_VOLTAGE_NOTIFICATION_UV to the charger
sample application.
Signed-off-by: Ricardo Rivera-Matos <rriveram@opensource.cirrus.com>
2024-02-26 11:33:24 +00:00
Gustavo Silva
b2b4016963
drivers: charger: bq25180: fix return value check
...
Fix missing check of the return value of `bq25180_set_charge_current`
function, resulting in logically dead code, as indicated by Coverity
CID 347197.
Signed-off-by: Gustavo Silva <gustavograzs@gmail.com>
2024-02-19 09:38:50 -06:00
Fabio Baltieri
044529d0cd
charger: bq25180: implement online and status properties
...
Implement CHARGER_PROP_ONLINE and CHARGER_PROP_STATUS for the bq25180
driver.
Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2024-01-31 17:59:50 -06:00
Fabio Baltieri
63cdde10d3
charger: bq25180: reuse bq25180_set_charge_current for the initial set
...
Reuse bq25180_set_charge_current for the initial setting of the charging
current.
Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2024-01-31 17:59:50 -06:00
Bartosz Bilas
e8f223dbe8
drivers: charger: bq24190: fix api and init functions references
...
There is no need to use & as a function reference, so remove it.
Signed-off-by: Bartosz Bilas <b.bilas@grinn-global.com>
2024-01-10 20:54:04 -05:00
Fabio Baltieri
e517af4cff
charger: add a driver for bq25180
...
Add a driver for the TI BQ25180. Implement enable/disable and current
set/get.
Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2024-01-05 09:00:21 +01:00
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