diff options
author | David Heidelberg <david@ixit.cz> | 2020-08-13 23:34:01 +0200 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2020-09-18 15:54:50 +0200 |
commit | 2312c291f6ac340af88eee0867fdfdfa2299ffc3 (patch) | |
tree | 6d79565e16804f4836cb4651e8a74409cb1aa578 /include | |
parent | dt-bindings: tegra: pmc: Add Tegra234 support (diff) | |
download | linux-2312c291f6ac340af88eee0867fdfdfa2299ffc3.tar.xz linux-2312c291f6ac340af88eee0867fdfdfa2299ffc3.zip |
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: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'include')
-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 |