162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0+ */
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * ATC2609A PMIC register definitions
462306a36Sopenharmony_ci *
562306a36Sopenharmony_ci * Copyright (C) 2019 Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
662306a36Sopenharmony_ci */
762306a36Sopenharmony_ci
862306a36Sopenharmony_ci#ifndef __LINUX_MFD_ATC260X_ATC2609A_H
962306a36Sopenharmony_ci#define __LINUX_MFD_ATC260X_ATC2609A_H
1062306a36Sopenharmony_ci
1162306a36Sopenharmony_cienum atc2609a_irq_def {
1262306a36Sopenharmony_ci	ATC2609A_IRQ_AUDIO = 0,
1362306a36Sopenharmony_ci	ATC2609A_IRQ_OV,
1462306a36Sopenharmony_ci	ATC2609A_IRQ_OC,
1562306a36Sopenharmony_ci	ATC2609A_IRQ_OT,
1662306a36Sopenharmony_ci	ATC2609A_IRQ_UV,
1762306a36Sopenharmony_ci	ATC2609A_IRQ_ALARM,
1862306a36Sopenharmony_ci	ATC2609A_IRQ_ONOFF,
1962306a36Sopenharmony_ci	ATC2609A_IRQ_WKUP,
2062306a36Sopenharmony_ci	ATC2609A_IRQ_IR,
2162306a36Sopenharmony_ci	ATC2609A_IRQ_REMCON,
2262306a36Sopenharmony_ci	ATC2609A_IRQ_POWER_IN,
2362306a36Sopenharmony_ci};
2462306a36Sopenharmony_ci
2562306a36Sopenharmony_ci/* PMU Registers */
2662306a36Sopenharmony_ci#define ATC2609A_PMU_SYS_CTL0			0x00
2762306a36Sopenharmony_ci#define ATC2609A_PMU_SYS_CTL1			0x01
2862306a36Sopenharmony_ci#define ATC2609A_PMU_SYS_CTL2			0x02
2962306a36Sopenharmony_ci#define ATC2609A_PMU_SYS_CTL3			0x03
3062306a36Sopenharmony_ci#define ATC2609A_PMU_SYS_CTL4			0x04
3162306a36Sopenharmony_ci#define ATC2609A_PMU_SYS_CTL5			0x05
3262306a36Sopenharmony_ci#define ATC2609A_PMU_SYS_CTL6			0x06
3362306a36Sopenharmony_ci#define ATC2609A_PMU_SYS_CTL7			0x07
3462306a36Sopenharmony_ci#define ATC2609A_PMU_SYS_CTL8			0x08
3562306a36Sopenharmony_ci#define ATC2609A_PMU_SYS_CTL9			0x09
3662306a36Sopenharmony_ci#define ATC2609A_PMU_BAT_CTL0			0x0A
3762306a36Sopenharmony_ci#define ATC2609A_PMU_BAT_CTL1			0x0B
3862306a36Sopenharmony_ci#define ATC2609A_PMU_VBUS_CTL0			0x0C
3962306a36Sopenharmony_ci#define ATC2609A_PMU_VBUS_CTL1			0x0D
4062306a36Sopenharmony_ci#define ATC2609A_PMU_WALL_CTL0			0x0E
4162306a36Sopenharmony_ci#define ATC2609A_PMU_WALL_CTL1			0x0F
4262306a36Sopenharmony_ci#define ATC2609A_PMU_SYS_PENDING		0x10
4362306a36Sopenharmony_ci#define ATC2609A_PMU_APDS_CTL0			0x11
4462306a36Sopenharmony_ci#define ATC2609A_PMU_APDS_CTL1			0x12
4562306a36Sopenharmony_ci#define ATC2609A_PMU_APDS_CTL2			0x13
4662306a36Sopenharmony_ci#define ATC2609A_PMU_CHARGER_CTL		0x14
4762306a36Sopenharmony_ci#define ATC2609A_PMU_BAKCHARGER_CTL		0x15
4862306a36Sopenharmony_ci#define ATC2609A_PMU_SWCHG_CTL0			0x16
4962306a36Sopenharmony_ci#define ATC2609A_PMU_SWCHG_CTL1			0x17
5062306a36Sopenharmony_ci#define ATC2609A_PMU_SWCHG_CTL2			0x18
5162306a36Sopenharmony_ci#define ATC2609A_PMU_SWCHG_CTL3			0x19
5262306a36Sopenharmony_ci#define ATC2609A_PMU_SWCHG_CTL4			0x1A
5362306a36Sopenharmony_ci#define ATC2609A_PMU_DC_OSC			0x1B
5462306a36Sopenharmony_ci#define ATC2609A_PMU_DC0_CTL0			0x1C
5562306a36Sopenharmony_ci#define ATC2609A_PMU_DC0_CTL1			0x1D
5662306a36Sopenharmony_ci#define ATC2609A_PMU_DC0_CTL2			0x1E
5762306a36Sopenharmony_ci#define ATC2609A_PMU_DC0_CTL3			0x1F
5862306a36Sopenharmony_ci#define ATC2609A_PMU_DC0_CTL4			0x20
5962306a36Sopenharmony_ci#define ATC2609A_PMU_DC0_CTL5			0x21
6062306a36Sopenharmony_ci#define ATC2609A_PMU_DC0_CTL6			0x22
6162306a36Sopenharmony_ci#define ATC2609A_PMU_DC1_CTL0			0x23
6262306a36Sopenharmony_ci#define ATC2609A_PMU_DC1_CTL1			0x24
6362306a36Sopenharmony_ci#define ATC2609A_PMU_DC1_CTL2			0x25
6462306a36Sopenharmony_ci#define ATC2609A_PMU_DC1_CTL3			0x26
6562306a36Sopenharmony_ci#define ATC2609A_PMU_DC1_CTL4			0x27
6662306a36Sopenharmony_ci#define ATC2609A_PMU_DC1_CTL5			0x28
6762306a36Sopenharmony_ci#define ATC2609A_PMU_DC1_CTL6			0x29
6862306a36Sopenharmony_ci#define ATC2609A_PMU_DC2_CTL0			0x2A
6962306a36Sopenharmony_ci#define ATC2609A_PMU_DC2_CTL1			0x2B
7062306a36Sopenharmony_ci#define ATC2609A_PMU_DC2_CTL2			0x2C
7162306a36Sopenharmony_ci#define ATC2609A_PMU_DC2_CTL3			0x2D
7262306a36Sopenharmony_ci#define ATC2609A_PMU_DC2_CTL4			0x2E
7362306a36Sopenharmony_ci#define ATC2609A_PMU_DC2_CTL5			0x2F
7462306a36Sopenharmony_ci#define ATC2609A_PMU_DC2_CTL6			0x30
7562306a36Sopenharmony_ci#define ATC2609A_PMU_DC3_CTL0			0x31
7662306a36Sopenharmony_ci#define ATC2609A_PMU_DC3_CTL1			0x32
7762306a36Sopenharmony_ci#define ATC2609A_PMU_DC3_CTL2			0x33
7862306a36Sopenharmony_ci#define ATC2609A_PMU_DC3_CTL3			0x34
7962306a36Sopenharmony_ci#define ATC2609A_PMU_DC3_CTL4			0x35
8062306a36Sopenharmony_ci#define ATC2609A_PMU_DC3_CTL5			0x36
8162306a36Sopenharmony_ci#define ATC2609A_PMU_DC3_CTL6			0x37
8262306a36Sopenharmony_ci#define ATC2609A_PMU_DC_ZR			0x38
8362306a36Sopenharmony_ci#define ATC2609A_PMU_LDO0_CTL0			0x39
8462306a36Sopenharmony_ci#define ATC2609A_PMU_LDO0_CTL1			0x3A
8562306a36Sopenharmony_ci#define ATC2609A_PMU_LDO1_CTL0			0x3B
8662306a36Sopenharmony_ci#define ATC2609A_PMU_LDO1_CTL1			0x3C
8762306a36Sopenharmony_ci#define ATC2609A_PMU_LDO2_CTL0			0x3D
8862306a36Sopenharmony_ci#define ATC2609A_PMU_LDO2_CTL1			0x3E
8962306a36Sopenharmony_ci#define ATC2609A_PMU_LDO3_CTL0			0x3F
9062306a36Sopenharmony_ci#define ATC2609A_PMU_LDO3_CTL1			0x40
9162306a36Sopenharmony_ci#define ATC2609A_PMU_LDO4_CTL0			0x41
9262306a36Sopenharmony_ci#define ATC2609A_PMU_LDO4_CTL1			0x42
9362306a36Sopenharmony_ci#define ATC2609A_PMU_LDO5_CTL0			0x43
9462306a36Sopenharmony_ci#define ATC2609A_PMU_LDO5_CTL1			0x44
9562306a36Sopenharmony_ci#define ATC2609A_PMU_LDO6_CTL0			0x45
9662306a36Sopenharmony_ci#define ATC2609A_PMU_LDO6_CTL1			0x46
9762306a36Sopenharmony_ci#define ATC2609A_PMU_LDO7_CTL0			0x47
9862306a36Sopenharmony_ci#define ATC2609A_PMU_LDO7_CTL1			0x48
9962306a36Sopenharmony_ci#define ATC2609A_PMU_LDO8_CTL0			0x49
10062306a36Sopenharmony_ci#define ATC2609A_PMU_LDO8_CTL1			0x4A
10162306a36Sopenharmony_ci#define ATC2609A_PMU_LDO9_CTL			0x4B
10262306a36Sopenharmony_ci#define ATC2609A_PMU_OV_INT_EN			0x4C
10362306a36Sopenharmony_ci#define ATC2609A_PMU_OV_STATUS			0x4D
10462306a36Sopenharmony_ci#define ATC2609A_PMU_UV_INT_EN			0x4E
10562306a36Sopenharmony_ci#define ATC2609A_PMU_UV_STATUS			0x4F
10662306a36Sopenharmony_ci#define ATC2609A_PMU_OC_INT_EN			0x50
10762306a36Sopenharmony_ci#define ATC2609A_PMU_OC_STATUS			0x51
10862306a36Sopenharmony_ci#define ATC2609A_PMU_OT_CTL			0x52
10962306a36Sopenharmony_ci#define ATC2609A_PMU_CM_CTL0			0x53
11062306a36Sopenharmony_ci#define ATC2609A_PMU_FW_USE0			0x54
11162306a36Sopenharmony_ci#define ATC2609A_PMU_FW_USE1			0x55
11262306a36Sopenharmony_ci#define ATC2609A_PMU_ADC12B_I			0x56
11362306a36Sopenharmony_ci#define ATC2609A_PMU_ADC12B_V			0x57
11462306a36Sopenharmony_ci#define ATC2609A_PMU_ADC12B_DUMMY		0x58
11562306a36Sopenharmony_ci#define ATC2609A_PMU_AUXADC_CTL0		0x59
11662306a36Sopenharmony_ci#define ATC2609A_PMU_AUXADC_CTL1		0x5A
11762306a36Sopenharmony_ci#define ATC2609A_PMU_BATVADC			0x5B
11862306a36Sopenharmony_ci#define ATC2609A_PMU_BATIADC			0x5C
11962306a36Sopenharmony_ci#define ATC2609A_PMU_WALLVADC			0x5D
12062306a36Sopenharmony_ci#define ATC2609A_PMU_WALLIADC			0x5E
12162306a36Sopenharmony_ci#define ATC2609A_PMU_VBUSVADC			0x5F
12262306a36Sopenharmony_ci#define ATC2609A_PMU_VBUSIADC			0x60
12362306a36Sopenharmony_ci#define ATC2609A_PMU_SYSPWRADC			0x61
12462306a36Sopenharmony_ci#define ATC2609A_PMU_REMCONADC			0x62
12562306a36Sopenharmony_ci#define ATC2609A_PMU_SVCCADC			0x63
12662306a36Sopenharmony_ci#define ATC2609A_PMU_CHGIADC			0x64
12762306a36Sopenharmony_ci#define ATC2609A_PMU_IREFADC			0x65
12862306a36Sopenharmony_ci#define ATC2609A_PMU_BAKBATADC			0x66
12962306a36Sopenharmony_ci#define ATC2609A_PMU_ICTEMPADC			0x67
13062306a36Sopenharmony_ci#define ATC2609A_PMU_AUXADC0			0x68
13162306a36Sopenharmony_ci#define ATC2609A_PMU_AUXADC1			0x69
13262306a36Sopenharmony_ci#define ATC2609A_PMU_AUXADC2			0x6A
13362306a36Sopenharmony_ci#define ATC2609A_PMU_AUXADC3			0x6B
13462306a36Sopenharmony_ci#define ATC2609A_PMU_ICTEMPADC_ADJ		0x6C
13562306a36Sopenharmony_ci#define ATC2609A_PMU_BDG_CTL			0x6D
13662306a36Sopenharmony_ci#define ATC2609A_RTC_CTL			0x6E
13762306a36Sopenharmony_ci#define ATC2609A_RTC_MSALM			0x6F
13862306a36Sopenharmony_ci#define ATC2609A_RTC_HALM			0x70
13962306a36Sopenharmony_ci#define ATC2609A_RTC_YMDALM			0x71
14062306a36Sopenharmony_ci#define ATC2609A_RTC_MS				0x72
14162306a36Sopenharmony_ci#define ATC2609A_RTC_H				0x73
14262306a36Sopenharmony_ci#define ATC2609A_RTC_DC				0x74
14362306a36Sopenharmony_ci#define ATC2609A_RTC_YMD			0x75
14462306a36Sopenharmony_ci#define ATC2609A_EFUSE_DAT			0x76
14562306a36Sopenharmony_ci#define ATC2609A_EFUSECRTL1			0x77
14662306a36Sopenharmony_ci#define ATC2609A_EFUSECRTL2			0x78
14762306a36Sopenharmony_ci#define ATC2609A_PMU_DC4_CTL0			0x79
14862306a36Sopenharmony_ci#define ATC2609A_PMU_DC4_CTL1			0x7A
14962306a36Sopenharmony_ci#define ATC2609A_PMU_DC4_CTL2			0x7B
15062306a36Sopenharmony_ci#define ATC2609A_PMU_DC4_CTL3			0x7C
15162306a36Sopenharmony_ci#define ATC2609A_PMU_DC4_CTL4			0x7D
15262306a36Sopenharmony_ci#define ATC2609A_PMU_DC4_CTL5			0x7E
15362306a36Sopenharmony_ci#define ATC2609A_PMU_DC4_CTL6			0x7F
15462306a36Sopenharmony_ci#define ATC2609A_PMU_PWR_STATUS			0x80
15562306a36Sopenharmony_ci#define ATC2609A_PMU_S2_PWR			0x81
15662306a36Sopenharmony_ci#define ATC2609A_CLMT_CTL0			0x82
15762306a36Sopenharmony_ci#define ATC2609A_CLMT_DATA0			0x83
15862306a36Sopenharmony_ci#define ATC2609A_CLMT_DATA1			0x84
15962306a36Sopenharmony_ci#define ATC2609A_CLMT_DATA2			0x85
16062306a36Sopenharmony_ci#define ATC2609A_CLMT_DATA3			0x86
16162306a36Sopenharmony_ci#define ATC2609A_CLMT_ADD0			0x87
16262306a36Sopenharmony_ci#define ATC2609A_CLMT_ADD1			0x88
16362306a36Sopenharmony_ci#define ATC2609A_CLMT_OCV_TABLE			0x89
16462306a36Sopenharmony_ci#define ATC2609A_CLMT_R_TABLE			0x8A
16562306a36Sopenharmony_ci#define ATC2609A_PMU_PWRON_CTL0			0x8D
16662306a36Sopenharmony_ci#define ATC2609A_PMU_PWRON_CTL1			0x8E
16762306a36Sopenharmony_ci#define ATC2609A_PMU_PWRON_CTL2			0x8F
16862306a36Sopenharmony_ci#define ATC2609A_IRC_CTL			0x90
16962306a36Sopenharmony_ci#define ATC2609A_IRC_STAT			0x91
17062306a36Sopenharmony_ci#define ATC2609A_IRC_CC				0x92
17162306a36Sopenharmony_ci#define ATC2609A_IRC_KDC			0x93
17262306a36Sopenharmony_ci#define ATC2609A_IRC_WK				0x94
17362306a36Sopenharmony_ci#define ATC2609A_IRC_RCC			0x95
17462306a36Sopenharmony_ci
17562306a36Sopenharmony_ci/* AUDIO_OUT Registers */
17662306a36Sopenharmony_ci#define ATC2609A_AUDIOINOUT_CTL			0xA0
17762306a36Sopenharmony_ci#define ATC2609A_AUDIO_DEBUGOUTCTL		0xA1
17862306a36Sopenharmony_ci#define ATC2609A_DAC_DIGITALCTL			0xA2
17962306a36Sopenharmony_ci#define ATC2609A_DAC_VOLUMECTL0			0xA3
18062306a36Sopenharmony_ci#define ATC2609A_DAC_ANALOG0			0xA4
18162306a36Sopenharmony_ci#define ATC2609A_DAC_ANALOG1			0xA5
18262306a36Sopenharmony_ci#define ATC2609A_DAC_ANALOG2			0xA6
18362306a36Sopenharmony_ci#define ATC2609A_DAC_ANALOG3			0xA7
18462306a36Sopenharmony_ci
18562306a36Sopenharmony_ci/* AUDIO_IN Registers */
18662306a36Sopenharmony_ci#define ATC2609A_ADC_DIGITALCTL			0xA8
18762306a36Sopenharmony_ci#define ATC2609A_ADC_HPFCTL			0xA9
18862306a36Sopenharmony_ci#define ATC2609A_ADC_CTL			0xAA
18962306a36Sopenharmony_ci#define ATC2609A_AGC_CTL0			0xAB
19062306a36Sopenharmony_ci#define ATC2609A_AGC_CTL1			0xAC
19162306a36Sopenharmony_ci#define ATC2609A_AGC_CTL2			0xAD
19262306a36Sopenharmony_ci#define ATC2609A_ADC_ANALOG0			0xAE
19362306a36Sopenharmony_ci#define ATC2609A_ADC_ANALOG1			0xAF
19462306a36Sopenharmony_ci
19562306a36Sopenharmony_ci/* PCM_IF Registers */
19662306a36Sopenharmony_ci#define ATC2609A_PCM0_CTL			0xB0
19762306a36Sopenharmony_ci#define ATC2609A_PCM1_CTL			0xB1
19862306a36Sopenharmony_ci#define ATC2609A_PCM2_CTL			0xB2
19962306a36Sopenharmony_ci#define ATC2609A_PCMIF_CTL			0xB3
20062306a36Sopenharmony_ci
20162306a36Sopenharmony_ci/* CMU_CONTROL Registers */
20262306a36Sopenharmony_ci#define ATC2609A_CMU_DEVRST			0xC1
20362306a36Sopenharmony_ci
20462306a36Sopenharmony_ci/* INTS Registers */
20562306a36Sopenharmony_ci#define ATC2609A_INTS_PD			0xC8
20662306a36Sopenharmony_ci#define ATC2609A_INTS_MSK			0xC9
20762306a36Sopenharmony_ci
20862306a36Sopenharmony_ci/* MFP Registers */
20962306a36Sopenharmony_ci#define ATC2609A_MFP_CTL			0xD0
21062306a36Sopenharmony_ci#define ATC2609A_PAD_VSEL			0xD1
21162306a36Sopenharmony_ci#define ATC2609A_GPIO_OUTEN			0xD2
21262306a36Sopenharmony_ci#define ATC2609A_GPIO_INEN			0xD3
21362306a36Sopenharmony_ci#define ATC2609A_GPIO_DAT			0xD4
21462306a36Sopenharmony_ci#define ATC2609A_PAD_DRV			0xD5
21562306a36Sopenharmony_ci#define ATC2609A_PAD_EN				0xD6
21662306a36Sopenharmony_ci#define ATC2609A_DEBUG_SEL			0xD7
21762306a36Sopenharmony_ci#define ATC2609A_DEBUG_IE			0xD8
21862306a36Sopenharmony_ci#define ATC2609A_DEBUG_OE			0xD9
21962306a36Sopenharmony_ci#define ATC2609A_CHIP_VER			0xDC
22062306a36Sopenharmony_ci
22162306a36Sopenharmony_ci/* PWSI Registers */
22262306a36Sopenharmony_ci#define ATC2609A_PWSI_CTL			0xF0
22362306a36Sopenharmony_ci#define ATC2609A_PWSI_STATUS			0xF1
22462306a36Sopenharmony_ci
22562306a36Sopenharmony_ci/* TWSI Registers */
22662306a36Sopenharmony_ci#define ATC2609A_SADDR				0xFF
22762306a36Sopenharmony_ci
22862306a36Sopenharmony_ci/* PMU_SYS_CTL0 Register Mask Bits */
22962306a36Sopenharmony_ci#define ATC2609A_PMU_SYS_CTL0_IR_WK_EN			BIT(5)
23062306a36Sopenharmony_ci#define ATC2609A_PMU_SYS_CTL0_RESET_WK_EN		BIT(6)
23162306a36Sopenharmony_ci#define ATC2609A_PMU_SYS_CTL0_HDSW_WK_EN		BIT(7)
23262306a36Sopenharmony_ci#define ATC2609A_PMU_SYS_CTL0_ALARM_WK_EN		BIT(8)
23362306a36Sopenharmony_ci#define ATC2609A_PMU_SYS_CTL0_REM_CON_WK_EN		BIT(9)
23462306a36Sopenharmony_ci#define ATC2609A_PMU_SYS_CTL0_RESTART_EN		BIT(10)
23562306a36Sopenharmony_ci#define ATC2609A_PMU_SYS_CTL0_WKIRQ_WK_EN		BIT(11)
23662306a36Sopenharmony_ci#define ATC2609A_PMU_SYS_CTL0_ONOFF_SHORT_WK_EN		BIT(12)
23762306a36Sopenharmony_ci#define ATC2609A_PMU_SYS_CTL0_ONOFF_LONG_WK_EN		BIT(13)
23862306a36Sopenharmony_ci#define ATC2609A_PMU_SYS_CTL0_WALL_WK_EN		BIT(14)
23962306a36Sopenharmony_ci#define ATC2609A_PMU_SYS_CTL0_USB_WK_EN			BIT(15)
24062306a36Sopenharmony_ci#define ATC2609A_PMU_SYS_CTL0_WK_ALL			(GENMASK(15, 5) & (~BIT(10)))
24162306a36Sopenharmony_ci
24262306a36Sopenharmony_ci/* PMU_SYS_CTL1 Register Mask Bits */
24362306a36Sopenharmony_ci#define ATC2609A_PMU_SYS_CTL1_EN_S1			BIT(0)
24462306a36Sopenharmony_ci#define ATC2609A_PMU_SYS_CTL1_LB_S4_EN			BIT(2)
24562306a36Sopenharmony_ci#define ATC2609A_PMU_SYS_CTL1_LB_S4			GENMASK(4, 3)
24662306a36Sopenharmony_ci#define ATC2609A_PMU_SYS_CTL1_LB_S4_3_1V		BIT(4)
24762306a36Sopenharmony_ci#define ATC2609A_PMU_SYS_CTL1_IR_WK_FLAG		BIT(5)
24862306a36Sopenharmony_ci#define ATC2609A_PMU_SYS_CTL1_RESET_WK_FLAG		BIT(6)
24962306a36Sopenharmony_ci#define ATC2609A_PMU_SYS_CTL1_HDSW_WK_FLAG		BIT(7)
25062306a36Sopenharmony_ci#define ATC2609A_PMU_SYS_CTL1_ALARM_WK_FLAG		BIT(8)
25162306a36Sopenharmony_ci#define ATC2609A_PMU_SYS_CTL1_REM_CON_WK_FLAG		BIT(9)
25262306a36Sopenharmony_ci#define ATC2609A_PMU_SYS_CTL1_RESTART_WK_FLAG		BIT(10)
25362306a36Sopenharmony_ci#define ATC2609A_PMU_SYS_CTL1_WKIRQ_WK_FLAG		BIT(11)
25462306a36Sopenharmony_ci#define ATC2609A_PMU_SYS_CTL1_ONOFF_SHORT_WK_FLAG	BIT(12)
25562306a36Sopenharmony_ci#define ATC2609A_PMU_SYS_CTL1_ONOFF_LONG_WK_FLAG	BIT(13)
25662306a36Sopenharmony_ci#define ATC2609A_PMU_SYS_CTL1_WALL_WK_FLAG		BIT(14)
25762306a36Sopenharmony_ci#define ATC2609A_PMU_SYS_CTL1_USB_WK_FLAG		BIT(15)
25862306a36Sopenharmony_ci
25962306a36Sopenharmony_ci/* PMU_SYS_CTL2 Register Mask Bits */
26062306a36Sopenharmony_ci#define ATC2609A_PMU_SYS_CTL2_PMU_A_EN			BIT(0)
26162306a36Sopenharmony_ci#define ATC2609A_PMU_SYS_CTL2_ONOFF_PRESS_INT_EN	BIT(1)
26262306a36Sopenharmony_ci#define ATC2609A_PMU_SYS_CTL2_ONOFF_PRESS_PD		BIT(2)
26362306a36Sopenharmony_ci#define ATC2609A_PMU_SYS_CTL2_S2TIMER			GENMASK(5, 3)
26462306a36Sopenharmony_ci#define ATC2609A_PMU_SYS_CTL2_S2_TIMER_EN		BIT(6)
26562306a36Sopenharmony_ci#define ATC2609A_PMU_SYS_CTL2_ONOFF_RESET_TIME_SEL	GENMASK(8, 7)
26662306a36Sopenharmony_ci#define ATC2609A_PMU_SYS_CTL2_ONOFF_RESET_EN		BIT(9)
26762306a36Sopenharmony_ci#define ATC2609A_PMU_SYS_CTL2_ONOFF_PRESS_TIME		GENMASK(11, 10)
26862306a36Sopenharmony_ci#define ATC2609A_PMU_SYS_CTL2_ONOFF_LSP_INT_EN		BIT(12)
26962306a36Sopenharmony_ci#define ATC2609A_PMU_SYS_CTL2_ONOFF_LONG_PRESS		BIT(13)
27062306a36Sopenharmony_ci#define ATC2609A_PMU_SYS_CTL2_ONOFF_SHORT_PRESS		BIT(14)
27162306a36Sopenharmony_ci#define ATC2609A_PMU_SYS_CTL2_ONOFF_PRESS		BIT(15)
27262306a36Sopenharmony_ci
27362306a36Sopenharmony_ci/* PMU_SYS_CTL3 Register Mask Bits */
27462306a36Sopenharmony_ci#define ATC2609A_PMU_SYS_CTL3_S2S3TOS1_TIMER		GENMASK(8, 7)
27562306a36Sopenharmony_ci#define ATC2609A_PMU_SYS_CTL3_S2S3TOS1_TIMER_EN		BIT(9)
27662306a36Sopenharmony_ci#define ATC2609A_PMU_SYS_CTL3_S3_TIMER			GENMASK(12, 10)
27762306a36Sopenharmony_ci#define ATC2609A_PMU_SYS_CTL3_S3_TIMER_EN		BIT(13)
27862306a36Sopenharmony_ci#define ATC2609A_PMU_SYS_CTL3_EN_S3			BIT(14)
27962306a36Sopenharmony_ci#define ATC2609A_PMU_SYS_CTL3_EN_S2			BIT(15)
28062306a36Sopenharmony_ci
28162306a36Sopenharmony_ci/* PMU_SYS_CTL5 Register Mask Bits */
28262306a36Sopenharmony_ci#define ATC2609A_PMU_SYS_CTL5_WALLWKDTEN		BIT(7)
28362306a36Sopenharmony_ci#define ATC2609A_PMU_SYS_CTL5_VBUSWKDTEN		BIT(8)
28462306a36Sopenharmony_ci#define ATC2609A_PMU_SYS_CTL5_REMCON_DECT_EN		BIT(9)
28562306a36Sopenharmony_ci#define ATC2609A_PMU_SYS_CTL5_ONOFF_8S_SEL		BIT(10)
28662306a36Sopenharmony_ci
28762306a36Sopenharmony_ci/* INTS_MSK Register Mask Bits */
28862306a36Sopenharmony_ci#define ATC2609A_INTS_MSK_AUDIO				BIT(0)
28962306a36Sopenharmony_ci#define ATC2609A_INTS_MSK_OV				BIT(1)
29062306a36Sopenharmony_ci#define ATC2609A_INTS_MSK_OC				BIT(2)
29162306a36Sopenharmony_ci#define ATC2609A_INTS_MSK_OT				BIT(3)
29262306a36Sopenharmony_ci#define ATC2609A_INTS_MSK_UV				BIT(4)
29362306a36Sopenharmony_ci#define ATC2609A_INTS_MSK_ALARM				BIT(5)
29462306a36Sopenharmony_ci#define ATC2609A_INTS_MSK_ONOFF				BIT(6)
29562306a36Sopenharmony_ci#define ATC2609A_INTS_MSK_WKUP				BIT(7)
29662306a36Sopenharmony_ci#define ATC2609A_INTS_MSK_IR				BIT(8)
29762306a36Sopenharmony_ci#define ATC2609A_INTS_MSK_REMCON			BIT(9)
29862306a36Sopenharmony_ci#define ATC2609A_INTS_MSK_POWERIN			BIT(10)
29962306a36Sopenharmony_ci
30062306a36Sopenharmony_ci/* CMU_DEVRST Register Mask Bits */
30162306a36Sopenharmony_ci#define ATC2609A_CMU_DEVRST_AUDIO			BIT(0)
30262306a36Sopenharmony_ci#define ATC2609A_CMU_DEVRST_MFP				BIT(1)
30362306a36Sopenharmony_ci#define ATC2609A_CMU_DEVRST_INTS			BIT(2)
30462306a36Sopenharmony_ci
30562306a36Sopenharmony_ci/* PAD_EN Register Mask Bits */
30662306a36Sopenharmony_ci#define ATC2609A_PAD_EN_EXTIRQ				BIT(0)
30762306a36Sopenharmony_ci
30862306a36Sopenharmony_ci#endif /* __LINUX_MFD_ATC260X_ATC2609A_H */
309