1*4882a593Smuzhiyun /* SPDX-License-Identifier: (GPL-2.0-or-later or MIT) */ 2*4882a593Smuzhiyun /* 3*4882a593Smuzhiyun * Author: David Heidelberg <david@ixit.cz> 4*4882a593Smuzhiyun */ 5*4882a593Smuzhiyun 6*4882a593Smuzhiyun #ifndef _DT_BINDINGS_SMB347_CHARGER_H 7*4882a593Smuzhiyun #define _DT_BINDINGS_SMB347_CHARGER_H 8*4882a593Smuzhiyun 9*4882a593Smuzhiyun /* Charging compensation method */ 10*4882a593Smuzhiyun #define SMB3XX_SOFT_TEMP_COMPENSATE_NONE 0 11*4882a593Smuzhiyun #define SMB3XX_SOFT_TEMP_COMPENSATE_CURRENT 1 12*4882a593Smuzhiyun #define SMB3XX_SOFT_TEMP_COMPENSATE_VOLTAGE 2 13*4882a593Smuzhiyun 14*4882a593Smuzhiyun /* Charging enable control */ 15*4882a593Smuzhiyun #define SMB3XX_CHG_ENABLE_SW 0 16*4882a593Smuzhiyun #define SMB3XX_CHG_ENABLE_PIN_ACTIVE_LOW 1 17*4882a593Smuzhiyun #define SMB3XX_CHG_ENABLE_PIN_ACTIVE_HIGH 2 18*4882a593Smuzhiyun 19*4882a593Smuzhiyun #endif 20