diff options
author | David Heidelberg <david@ixit.cz> | 2020-08-14 00:34:01 +0300 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2020-08-25 19:19:19 +0200 |
commit | c1f90759b3d536f9b1b047484d08dfd04af3c4b1 (patch) | |
tree | bf5ce66a357f10d8799a8504ac1ef2ac41a84ccc /include/dt-bindings/power/summit,smb347-charger.h | |
parent | 873e63267bde605f253b9fee676af918be24e3d7 (diff) |
dt-bindings: power: supply: Add device-tree binding for Summit SMB3xx
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>
Diffstat (limited to 'include/dt-bindings/power/summit,smb347-charger.h')
-rw-r--r-- | include/dt-bindings/power/summit,smb347-charger.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/dt-bindings/power/summit,smb347-charger.h b/include/dt-bindings/power/summit,smb347-charger.h new file mode 100644 index 000000000000..d918bf321a71 --- /dev/null +++ b/include/dt-bindings/power/summit,smb347-charger.h @@ -0,0 +1,19 @@ +/* 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 |