/* SPDX-License-Identifier: GPL-2.0 */
/*
 * Copyright (c) 2022 MediaTek Inc.
 * Author: ChiYuan Huang <cy_huang@richtek.com>
 */

#ifndef _DT_BINDINGS_MFD_RT9490_H
#define _DT_BINDINGS_MFD_RT9490_H

/* IRQ definitions */
#define RT9490_IRQ_VBUSPG	0
#define RT9490_IRQ_VAC1PG	1
#define RT9490_IRQ_VAC2PG	2
#define RT9490_IRQ_VBUSGD_RDY	3
#define RT9490_IRQ_BAD_ADAPTER	4
#define RT9490_IRQ_WDT		5
#define RT9490_IRQ_MIVR		6
#define RT9490_IRQ_AICR		7

#define RT9490_IRQ_BC12DN	8
#define RT9490_IRQ_VBATPG	9
#define RT9490_IRQ_TREG		10
#define RT9490_IRQ_VBUS		12
#define RT9490_IRQ_AICC		14
#define RT9490_IRQ_CHG		15

#define RT9490_IRQ_BGTMR	16
#define RT9490_IRQ_PRECHG_TMR	17
#define RT9490_IRQ_TRICHG_TMR	18
#define RT9490_IRQ_FASTCHG_TMR	19
#define RT9490_IRQ_VSYSMIN	20
#define RT9490_IRQ_ADCDONE	21
#define RT9490_IRQ_DPDMDONE	22

#define RT9490_IRQ_JEITA_HOT	24
#define RT9490_IRQ_JEITA_WARM	25
#define RT9490_IRQ_JEITA_COOL	26
#define RT9490_IRQ_JEITA_COLD	27
#define RT9490_IRQ_OTG_LBP	28

#define RT9490_IRQ_VAC1_OVP	32
#define RT9490_IRQ_VAC2_OVP	33
#define RT9490_IRQ_CYC_OCP	34
#define RT9490_IRQ_IBAT_OCP	35
#define RT9490_IRQ_IBUS_OCP	36
#define RT9490_IRQ_VBAT_OCP	37
#define RT9490_IRQ_VBUS_OCP	38
#define RT9490_IRQ_IBAT_REG	39

#define RT9490_IRQ_TOTP		42
#define RT9490_IRQ_OTG_UVP	44
#define RT9490_IRQ_OTG_OVP	45
#define RT9490_IRQ_VSYS_OVP	46
#define RT9490_IRQ_VSYS_UVP	47

#define RT9490_IRQ_CDP_DONE	48
#define RT9490_IRQ_CDP_PD	49
#define RT9490_IRQ_VRECHG	50
#define RT9490_IRQ_VBUS_UMIVR	51
#define RT9490_IRQ_PE_DONE	52
#define RT9490_IRQ_REGN_OCUV	53
#define RT9490_IRQ_VSYSSHORT	54
#define RT9490_IRQ_IEOC		55

#endif
