···11+/* SPDX-License-Identifier: GPL-2.0-only */22+/*33+ * Functions to access SY3686A power management chip.44+ *55+ * Copyright (C) 2021 reMarkable AS - http://www.remarkable.com/66+ */77+88+#ifndef __MFD_SY7636A_H99+#define __MFD_SY7636A_H1010+1111+#define SY7636A_REG_OPERATION_MODE_CRL 0x001212+/* It is set if a gpio is used to control the regulator */1313+#define SY7636A_OPERATION_MODE_CRL_VCOMCTL BIT(6)1414+#define SY7636A_OPERATION_MODE_CRL_ONOFF BIT(7)1515+#define SY7636A_REG_VCOM_ADJUST_CTRL_L 0x011616+#define SY7636A_REG_VCOM_ADJUST_CTRL_H 0x021717+#define SY7636A_REG_VCOM_ADJUST_CTRL_MASK 0x01ff1818+#define SY7636A_REG_VLDO_VOLTAGE_ADJULST_CTRL 0x031919+#define SY7636A_REG_POWER_ON_DELAY_TIME 0x062020+#define SY7636A_REG_FAULT_FLAG 0x072121+#define SY7636A_FAULT_FLAG_PG BIT(0)2222+#define SY7636A_REG_TERMISTOR_READOUT 0x082323+2424+#define SY7636A_REG_MAX 0x082525+2626+#define VCOM_ADJUST_CTRL_MASK 0x1ff2727+// Used to shift the high byte2828+#define VCOM_ADJUST_CTRL_SHIFT 82929+// Used to scale from VCOM_ADJUST_CTRL to mv3030+#define VCOM_ADJUST_CTRL_SCAL 100003131+3232+#define FAULT_FLAG_SHIFT 13333+3434+#endif /* __LINUX_MFD_SY7636A_H */