162306a36Sopenharmony_ci/* SPDX-License-Identifier: (GPL-2.0-or-later OR MIT) */ 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * Author: David Heidelberg <david@ixit.cz> 462306a36Sopenharmony_ci */ 562306a36Sopenharmony_ci 662306a36Sopenharmony_ci#ifndef _DT_BINDINGS_SMB347_CHARGER_H 762306a36Sopenharmony_ci#define _DT_BINDINGS_SMB347_CHARGER_H 862306a36Sopenharmony_ci 962306a36Sopenharmony_ci/* Charging compensation method */ 1062306a36Sopenharmony_ci#define SMB3XX_SOFT_TEMP_COMPENSATE_NONE 0 1162306a36Sopenharmony_ci#define SMB3XX_SOFT_TEMP_COMPENSATE_CURRENT 1 1262306a36Sopenharmony_ci#define SMB3XX_SOFT_TEMP_COMPENSATE_VOLTAGE 2 1362306a36Sopenharmony_ci 1462306a36Sopenharmony_ci/* Charging enable control */ 1562306a36Sopenharmony_ci#define SMB3XX_CHG_ENABLE_SW 0 1662306a36Sopenharmony_ci#define SMB3XX_CHG_ENABLE_PIN_ACTIVE_LOW 1 1762306a36Sopenharmony_ci#define SMB3XX_CHG_ENABLE_PIN_ACTIVE_HIGH 2 1862306a36Sopenharmony_ci 1962306a36Sopenharmony_ci/* Polarity of INOK signal */ 2062306a36Sopenharmony_ci#define SMB3XX_SYSOK_INOK_ACTIVE_LOW 0 2162306a36Sopenharmony_ci#define SMB3XX_SYSOK_INOK_ACTIVE_HIGH 1 2262306a36Sopenharmony_ci 2362306a36Sopenharmony_ci#endif 24