18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: (GPL-2.0-or-later or MIT) */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Author: David Heidelberg <david@ixit.cz>
48c2ecf20Sopenharmony_ci */
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ci#ifndef _DT_BINDINGS_SMB347_CHARGER_H
78c2ecf20Sopenharmony_ci#define _DT_BINDINGS_SMB347_CHARGER_H
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ci/* Charging compensation method */
108c2ecf20Sopenharmony_ci#define SMB3XX_SOFT_TEMP_COMPENSATE_NONE	0
118c2ecf20Sopenharmony_ci#define SMB3XX_SOFT_TEMP_COMPENSATE_CURRENT	1
128c2ecf20Sopenharmony_ci#define SMB3XX_SOFT_TEMP_COMPENSATE_VOLTAGE	2
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_ci/* Charging enable control */
158c2ecf20Sopenharmony_ci#define SMB3XX_CHG_ENABLE_SW			0
168c2ecf20Sopenharmony_ci#define SMB3XX_CHG_ENABLE_PIN_ACTIVE_LOW	1
178c2ecf20Sopenharmony_ci#define SMB3XX_CHG_ENABLE_PIN_ACTIVE_HIGH	2
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ci#endif
20