xref: /openbmc/linux/include/dt-bindings/power/summit,smb347-charger.h (revision c900529f3d9161bfde5cca0754f83b4d3c3e0220)
1  /* SPDX-License-Identifier: (GPL-2.0-or-later OR MIT) */
2  /*
3   * Author: David Heidelberg <david@ixit.cz>
4   */
5  
6  #ifndef _DT_BINDINGS_SMB347_CHARGER_H
7  #define _DT_BINDINGS_SMB347_CHARGER_H
8  
9  /* Charging compensation method */
10  #define SMB3XX_SOFT_TEMP_COMPENSATE_NONE	0
11  #define SMB3XX_SOFT_TEMP_COMPENSATE_CURRENT	1
12  #define SMB3XX_SOFT_TEMP_COMPENSATE_VOLTAGE	2
13  
14  /* Charging enable control */
15  #define SMB3XX_CHG_ENABLE_SW			0
16  #define SMB3XX_CHG_ENABLE_PIN_ACTIVE_LOW	1
17  #define SMB3XX_CHG_ENABLE_PIN_ACTIVE_HIGH	2
18  
19  /* Polarity of INOK signal */
20  #define SMB3XX_SYSOK_INOK_ACTIVE_LOW		0
21  #define SMB3XX_SYSOK_INOK_ACTIVE_HIGH		1
22  
23  #endif
24