xref: /freebsd/sys/contrib/device-tree/include/dt-bindings/power/summit,smb347-charger.h (revision aa1a8ff2d6dbc51ef058f46f3db5a8bb77967145)
1*aa1a8ff2SEmmanuel Vadot /* SPDX-License-Identifier: (GPL-2.0-or-later OR MIT) */
26be33864SEmmanuel Vadot /*
36be33864SEmmanuel Vadot  * Author: David Heidelberg <david@ixit.cz>
46be33864SEmmanuel Vadot  */
56be33864SEmmanuel Vadot 
66be33864SEmmanuel Vadot #ifndef _DT_BINDINGS_SMB347_CHARGER_H
76be33864SEmmanuel Vadot #define _DT_BINDINGS_SMB347_CHARGER_H
86be33864SEmmanuel Vadot 
96be33864SEmmanuel Vadot /* Charging compensation method */
106be33864SEmmanuel Vadot #define SMB3XX_SOFT_TEMP_COMPENSATE_NONE	0
116be33864SEmmanuel Vadot #define SMB3XX_SOFT_TEMP_COMPENSATE_CURRENT	1
126be33864SEmmanuel Vadot #define SMB3XX_SOFT_TEMP_COMPENSATE_VOLTAGE	2
136be33864SEmmanuel Vadot 
146be33864SEmmanuel Vadot /* Charging enable control */
156be33864SEmmanuel Vadot #define SMB3XX_CHG_ENABLE_SW			0
166be33864SEmmanuel Vadot #define SMB3XX_CHG_ENABLE_PIN_ACTIVE_LOW	1
176be33864SEmmanuel Vadot #define SMB3XX_CHG_ENABLE_PIN_ACTIVE_HIGH	2
186be33864SEmmanuel Vadot 
19354d7675SEmmanuel Vadot /* Polarity of INOK signal */
20354d7675SEmmanuel Vadot #define SMB3XX_SYSOK_INOK_ACTIVE_LOW		0
21354d7675SEmmanuel Vadot #define SMB3XX_SYSOK_INOK_ACTIVE_HIGH		1
22354d7675SEmmanuel Vadot 
236be33864SEmmanuel Vadot #endif
24