1*440b075bSKrzysztof Kozlowski /* SPDX-License-Identifier: (GPL-2.0-or-later OR MIT) */ 2c1f90759SDavid Heidelberg /* 3c1f90759SDavid Heidelberg * Author: David Heidelberg <david@ixit.cz> 4c1f90759SDavid Heidelberg */ 5c1f90759SDavid Heidelberg 6c1f90759SDavid Heidelberg #ifndef _DT_BINDINGS_SMB347_CHARGER_H 7c1f90759SDavid Heidelberg #define _DT_BINDINGS_SMB347_CHARGER_H 8c1f90759SDavid Heidelberg 9c1f90759SDavid Heidelberg /* Charging compensation method */ 10c1f90759SDavid Heidelberg #define SMB3XX_SOFT_TEMP_COMPENSATE_NONE 0 11c1f90759SDavid Heidelberg #define SMB3XX_SOFT_TEMP_COMPENSATE_CURRENT 1 12c1f90759SDavid Heidelberg #define SMB3XX_SOFT_TEMP_COMPENSATE_VOLTAGE 2 13c1f90759SDavid Heidelberg 14c1f90759SDavid Heidelberg /* Charging enable control */ 15c1f90759SDavid Heidelberg #define SMB3XX_CHG_ENABLE_SW 0 16c1f90759SDavid Heidelberg #define SMB3XX_CHG_ENABLE_PIN_ACTIVE_LOW 1 17c1f90759SDavid Heidelberg #define SMB3XX_CHG_ENABLE_PIN_ACTIVE_HIGH 2 18c1f90759SDavid Heidelberg 193e81bd7dSDmitry Osipenko /* Polarity of INOK signal */ 203e81bd7dSDmitry Osipenko #define SMB3XX_SYSOK_INOK_ACTIVE_LOW 0 213e81bd7dSDmitry Osipenko #define SMB3XX_SYSOK_INOK_ACTIVE_HIGH 1 223e81bd7dSDmitry Osipenko 23c1f90759SDavid Heidelberg #endif 24