mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-18 11:36:51 +07:00
c1f90759b3
Summit SMB3xx series is a Programmable Switching Li+ Battery Charger. This patch adds device-tree binding for Summit SMB345, SMB347 and SMB358 chargers. Signed-off-by: David Heidelberg <david@ixit.cz> Signed-off-by: Dmitry Osipenko <digetx@gmail.com> Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
20 lines
515 B
C
20 lines
515 B
C
/* SPDX-License-Identifier: (GPL-2.0-or-later or MIT) */
|
|
/*
|
|
* Author: David Heidelberg <david@ixit.cz>
|
|
*/
|
|
|
|
#ifndef _DT_BINDINGS_SMB347_CHARGER_H
|
|
#define _DT_BINDINGS_SMB347_CHARGER_H
|
|
|
|
/* Charging compensation method */
|
|
#define SMB3XX_SOFT_TEMP_COMPENSATE_NONE 0
|
|
#define SMB3XX_SOFT_TEMP_COMPENSATE_CURRENT 1
|
|
#define SMB3XX_SOFT_TEMP_COMPENSATE_VOLTAGE 2
|
|
|
|
/* Charging enable control */
|
|
#define SMB3XX_CHG_ENABLE_SW 0
|
|
#define SMB3XX_CHG_ENABLE_PIN_ACTIVE_LOW 1
|
|
#define SMB3XX_CHG_ENABLE_PIN_ACTIVE_HIGH 2
|
|
|
|
#endif
|