mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +00:00
![Dmitry Osipenko](/assets/img/avatar_default.png)
SMB347 can supply power to USB VBUS, which is required by OTG-cable devices that want to switch USB port into the host mode. Add USB VBUS regulator properties. Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Dmitry Osipenko <digetx@gmail.com> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
23 lines
627 B
C
23 lines
627 B
C
/* SPDX-License-Identifier: (GPL-2.0-or-later or MIT) */
|
|
/*
|
|
* Author: David Heidelberg <david@ixit.cz>
|
|
*/
|
|
|
|
#ifndef _DT_BINDINGS_SMB347_CHARGER_H
|
|
#define _DT_BINDINGS_SMB347_CHARGER_H
|
|
|
|
/* Charging compensation method */
|
|
#define SMB3XX_SOFT_TEMP_COMPENSATE_NONE 0
|
|
#define SMB3XX_SOFT_TEMP_COMPENSATE_CURRENT 1
|
|
#define SMB3XX_SOFT_TEMP_COMPENSATE_VOLTAGE 2
|
|
|
|
/* Charging enable control */
|
|
#define SMB3XX_CHG_ENABLE_SW 0
|
|
#define SMB3XX_CHG_ENABLE_PIN_ACTIVE_LOW 1
|
|
#define SMB3XX_CHG_ENABLE_PIN_ACTIVE_HIGH 2
|
|
|
|
/* Polarity of INOK signal */
|
|
#define SMB3XX_SYSOK_INOK_ACTIVE_LOW 0
|
|
#define SMB3XX_SYSOK_INOK_ACTIVE_HIGH 1
|
|
|
|
#endif
|