xref: /netbsd-src/sys/external/gpl2/dts/dist/include/dt-bindings/power/summit,smb347-charger.h (revision d16b7486a53dcb8072b60ec6fcb4373a2d0c27b7)
1 /*	$NetBSD: summit,smb347-charger.h,v 1.1.1.1 2021/11/07 16:49:56 jmcneill Exp $	*/
2 
3 /* SPDX-License-Identifier: (GPL-2.0-or-later or MIT) */
4 /*
5  * Author: David Heidelberg <david@ixit.cz>
6  */
7 
8 #ifndef _DT_BINDINGS_SMB347_CHARGER_H
9 #define _DT_BINDINGS_SMB347_CHARGER_H
10 
11 /* Charging compensation method */
12 #define SMB3XX_SOFT_TEMP_COMPENSATE_NONE	0
13 #define SMB3XX_SOFT_TEMP_COMPENSATE_CURRENT	1
14 #define SMB3XX_SOFT_TEMP_COMPENSATE_VOLTAGE	2
15 
16 /* Charging enable control */
17 #define SMB3XX_CHG_ENABLE_SW			0
18 #define SMB3XX_CHG_ENABLE_PIN_ACTIVE_LOW	1
19 #define SMB3XX_CHG_ENABLE_PIN_ACTIVE_HIGH	2
20 
21 /* Polarity of INOK signal */
22 #define SMB3XX_SYSOK_INOK_ACTIVE_LOW		0
23 #define SMB3XX_SYSOK_INOK_ACTIVE_HIGH		1
24 
25 #endif
26