linux/include/linux/mfd/da9055/reg.h

/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 * DA9055 declarations for DA9055 PMICs.
 *
 * Copyright(c) 2012 Dialog Semiconductor Ltd.
 *
 * Author: David Dajun Chen <[email protected]>
 */

#ifndef __DA9055_REG_H
#define __DA9055_REG_H

/*
 * PMIC registers
 */
 /* PAGE0 */
#define DA9055_REG_PAGE_CON

/* System Control and Event Registers */
#define DA9055_REG_STATUS_A
#define DA9055_REG_STATUS_B
#define DA9055_REG_FAULT_LOG
#define DA9055_REG_EVENT_A
#define DA9055_REG_EVENT_B
#define DA9055_REG_EVENT_C
#define DA9055_REG_IRQ_MASK_A
#define DA9055_REG_IRQ_MASK_B
#define DA9055_REG_IRQ_MASK_C
#define DA9055_REG_CONTROL_A
#define DA9055_REG_CONTROL_B
#define DA9055_REG_CONTROL_C
#define DA9055_REG_CONTROL_D
#define DA9055_REG_CONTROL_E
#define DA9055_REG_PD_DIS

/* GPIO Control Registers */
#define DA9055_REG_GPIO0_1
#define DA9055_REG_GPIO2
#define DA9055_REG_GPIO_MODE0_2

/* Regulator Control Registers */
#define DA9055_REG_BCORE_CONT
#define DA9055_REG_BMEM_CONT
#define DA9055_REG_LDO1_CONT
#define DA9055_REG_LDO2_CONT
#define DA9055_REG_LDO3_CONT
#define DA9055_REG_LDO4_CONT
#define DA9055_REG_LDO5_CONT
#define DA9055_REG_LDO6_CONT

/* GP-ADC Control Registers */
#define DA9055_REG_ADC_MAN
#define DA9055_REG_ADC_CONT
#define DA9055_REG_VSYS_MON
#define DA9055_REG_ADC_RES_L
#define DA9055_REG_ADC_RES_H
#define DA9055_REG_VSYS_RES
#define DA9055_REG_ADCIN1_RES
#define DA9055_REG_ADCIN2_RES
#define DA9055_REG_ADCIN3_RES

/* Sequencer Control Registers */
#define DA9055_REG_EN_32K

/* Regulator Setting Registers */
#define DA9055_REG_BUCK_LIM
#define DA9055_REG_BCORE_MODE
#define DA9055_REG_VBCORE_A
#define DA9055_REG_VBMEM_A
#define DA9055_REG_VLDO1_A
#define DA9055_REG_VLDO2_A
#define DA9055_REG_VLDO3_A
#define DA9055_REG_VLDO4_A
#define DA9055_REG_VLDO5_A
#define DA9055_REG_VLDO6_A
#define DA9055_REG_VBCORE_B
#define DA9055_REG_VBMEM_B
#define DA9055_REG_VLDO1_B
#define DA9055_REG_VLDO2_B
#define DA9055_REG_VLDO3_B
#define DA9055_REG_VLDO4_B
#define DA9055_REG_VLDO5_B
#define DA9055_REG_VLDO6_B

/* GP-ADC Threshold Registers */
#define DA9055_REG_AUTO1_HIGH
#define DA9055_REG_AUTO1_LOW
#define DA9055_REG_AUTO2_HIGH
#define DA9055_REG_AUTO2_LOW
#define DA9055_REG_AUTO3_HIGH
#define DA9055_REG_AUTO3_LOW

/* OTP */
#define DA9055_REG_OPT_COUNT
#define DA9055_REG_OPT_ADDR
#define DA9055_REG_OPT_DATA

/* RTC Calendar and Alarm Registers */
#define DA9055_REG_COUNT_S
#define DA9055_REG_COUNT_MI
#define DA9055_REG_COUNT_H
#define DA9055_REG_COUNT_D
#define DA9055_REG_COUNT_MO
#define DA9055_REG_COUNT_Y
#define DA9055_REG_ALARM_MI
#define DA9055_REG_ALARM_H
#define DA9055_REG_ALARM_D
#define DA9055_REG_ALARM_MO
#define DA9055_REG_ALARM_Y
#define DA9055_REG_SECOND_A
#define DA9055_REG_SECOND_B
#define DA9055_REG_SECOND_C
#define DA9055_REG_SECOND_D

/* Customer Trim and Configuration */
#define DA9055_REG_T_OFFSET
#define DA9055_REG_INTERFACE
#define DA9055_REG_CONFIG_A
#define DA9055_REG_CONFIG_B
#define DA9055_REG_CONFIG_C
#define DA9055_REG_CONFIG_D
#define DA9055_REG_CONFIG_E
#define DA9055_REG_TRIM_CLDR

/* General Purpose Registers */
#define DA9055_REG_GP_ID_0
#define DA9055_REG_GP_ID_1
#define DA9055_REG_GP_ID_2
#define DA9055_REG_GP_ID_3
#define DA9055_REG_GP_ID_4
#define DA9055_REG_GP_ID_5
#define DA9055_REG_GP_ID_6
#define DA9055_REG_GP_ID_7
#define DA9055_REG_GP_ID_8
#define DA9055_REG_GP_ID_9
#define DA9055_REG_GP_ID_10
#define DA9055_REG_GP_ID_11
#define DA9055_REG_GP_ID_12
#define DA9055_REG_GP_ID_13
#define DA9055_REG_GP_ID_14
#define DA9055_REG_GP_ID_15
#define DA9055_REG_GP_ID_16
#define DA9055_REG_GP_ID_17
#define DA9055_REG_GP_ID_18
#define DA9055_REG_GP_ID_19

#define DA9055_MAX_REGISTER_CNT

/*
 * PMIC registers bits
 */

/* DA9055_REG_PAGE_CON (addr=0x00) */
#define DA9055_PAGE_WRITE_MODE
#define DA9055_REPEAT_WRITE_MODE

/* DA9055_REG_STATUS_A (addr=0x01) */
#define DA9055_NOKEY_STS
#define DA9055_WAKE_STS
#define DA9055_DVC_BUSY_STS
#define DA9055_COMP1V2_STS
#define DA9055_NJIG_STS
#define DA9055_LDO5_LIM_STS
#define DA9055_LDO6_LIM_STS

/* DA9055_REG_STATUS_B (addr=0x02) */
#define DA9055_GPI0_STS
#define DA9055_GPI1_STS
#define DA9055_GPI2_STS

/* DA9055_REG_FAULT_LOG (addr=0x03) */
#define DA9055_TWD_ERROR_FLG
#define DA9055_POR_FLG
#define DA9055_VDD_FAULT_FLG
#define DA9055_VDD_START_FLG
#define DA9055_TEMP_CRIT_FLG
#define DA9055_KEY_RESET_FLG
#define DA9055_WAIT_SHUT_FLG

/* DA9055_REG_EVENT_A (addr=0x04) */
#define DA9055_NOKEY_EINT
#define DA9055_ALARM_EINT
#define DA9055_TICK_EINT
#define DA9055_ADC_RDY_EINT
#define DA9055_SEQ_RDY_EINT
#define DA9055_EVENTS_B_EINT
#define DA9055_EVENTS_C_EINT

/* DA9055_REG_EVENT_B (addr=0x05) */
#define DA9055_E_WAKE_EINT
#define DA9055_E_TEMP_EINT
#define DA9055_E_COMP1V2_EINT
#define DA9055_E_LDO_LIM_EINT
#define DA9055_E_NJIG_EINT
#define DA9055_E_VDD_MON_EINT
#define DA9055_E_VDD_WARN_EINT

/* DA9055_REG_EVENT_C (addr=0x06) */
#define DA9055_E_GPI0_EINT
#define DA9055_E_GPI1_EINT
#define DA9055_E_GPI2_EINT

/* DA9055_REG_IRQ_MASK_A (addr=0x07) */
#define DA9055_M_NONKEY_EINT
#define DA9055_M_ALARM_EINT
#define DA9055_M_TICK_EINT
#define DA9055_M_ADC_RDY_EINT
#define DA9055_M_SEQ_RDY_EINT

/* DA9055_REG_IRQ_MASK_B (addr=0x08) */
#define DA9055_M_WAKE_EINT
#define DA9055_M_TEMP_EINT
#define DA9055_M_COMP_1V2_EINT
#define DA9055_M_LDO_LIM_EINT
#define DA9055_M_NJIG_EINT
#define DA9055_M_VDD_MON_EINT
#define DA9055_M_VDD_WARN_EINT

/* DA9055_REG_IRQ_MASK_C (addr=0x09) */
#define DA9055_M_GPI0_EINT
#define DA9055_M_GPI1_EINT
#define DA9055_M_GPI2_EINT

/* DA9055_REG_CONTROL_A (addr=0xA) */
#define DA9055_DEBOUNCING_SHIFT
#define DA9055_DEBOUNCING_MASK
#define DA9055_NRES_MODE_SHIFT
#define DA9055_NRES_MODE_MASK
#define DA9055_SLEW_RATE_SHIFT
#define DA9055_SLEW_RATE_MASK
#define DA9055_NOKEY_LOCK_SHIFT
#define DA9055_NOKEY_LOCK_MASK

/* DA9055_REG_CONTROL_B (addr=0xB) */
#define DA9055_RTC_MODE_PD
#define DA9055_RTC_MODE_SD_SHIFT
#define DA9055_RTC_MODE_SD
#define DA9055_RTC_EN
#define DA9055_ECO_MODE_SHIFT
#define DA9055_ECO_MODE_MASK
#define DA9055_TWDSCALE_SHIFT
#define DA9055_TWDSCALE_MASK
#define DA9055_V_LOCK_SHIFT
#define DA9055_V_LOCK_MASK

/* DA9055_REG_CONTROL_C (addr=0xC) */
#define DA9055_SYSTEM_EN_SHIFT
#define DA9055_SYSTEM_EN_MASK
#define DA9055_POWERN_EN_SHIFT
#define DA9055_POWERN_EN_MASK
#define DA9055_POWER1_EN_SHIFT
#define DA9055_POWER1_EN_MASK

/* DA9055_REG_CONTROL_D (addr=0xD) */
#define DA9055_STANDBY_SHIFT
#define DA9055_STANDBY_MASK
#define DA9055_AUTO_BOOT_SHIFT
#define DA9055_AUTO_BOOT_MASK

/* DA9055_REG_CONTROL_E (addr=0xE) */
#define DA9055_WATCHDOG_SHIFT
#define DA9055_WATCHDOG_MASK
#define DA9055_SHUTDOWN_SHIFT
#define DA9055_SHUTDOWN_MASK
#define DA9055_WAKE_UP_SHIFT
#define DA9055_WAKE_UP_MASK

/* DA9055_REG_GPIO (addr=0x10/0x11) */
#define DA9055_GPIO0_PIN_SHIFT
#define DA9055_GPIO0_PIN_MASK
#define DA9055_GPIO0_TYPE_SHIFT
#define DA9055_GPIO0_TYPE_MASK
#define DA9055_GPIO0_WEN_SHIFT
#define DA9055_GPIO0_WEN_MASK
#define DA9055_GPIO1_PIN_SHIFT
#define DA9055_GPIO1_PIN_MASK
#define DA9055_GPIO1_TYPE_SHIFT
#define DA9055_GPIO1_TYPE_MASK
#define DA9055_GPIO1_WEN_SHIFT
#define DA9055_GPIO1_WEN_MASK
#define DA9055_GPIO2_PIN_SHIFT
#define DA9055_GPIO2_PIN_MASK
#define DA9055_GPIO2_TYPE_SHIFT
#define DA9055_GPIO2_TYPE_MASK
#define DA9055_GPIO2_WEN_SHIFT
#define DA9055_GPIO2_WEN_MASK

/* DA9055_REG_GPIO_MODE (addr=0x12) */
#define DA9055_GPIO0_MODE_SHIFT
#define DA9055_GPIO0_MODE_MASK
#define DA9055_GPIO1_MODE_SHIFT
#define DA9055_GPIO1_MODE_MASK
#define DA9055_GPIO2_MODE_SHIFT
#define DA9055_GPIO2_MODE_MASK

/* DA9055_REG_BCORE_CONT (addr=0x13) */
#define DA9055_BCORE_EN_SHIFT
#define DA9055_BCORE_EN_MASK
#define DA9055_BCORE_GPI_SHIFT
#define DA9055_BCORE_GPI_MASK
#define DA9055_BCORE_PD_DIS_SHIFT
#define DA9055_BCORE_PD_DIS_MASK
#define DA9055_VBCORE_SEL_SHIFT
#define DA9055_SEL_REG_A
#define DA9055_SEL_REG_B
#define DA9055_VBCORE_SEL_MASK
#define DA9055_V_GPI_MASK
#define DA9055_V_GPI_SHIFT
#define DA9055_E_GPI_MASK
#define DA9055_E_GPI_SHIFT
#define DA9055_VBCORE_GPI_SHIFT
#define DA9055_VBCORE_GPI_MASK
#define DA9055_BCORE_CONF_SHIFT
#define DA9055_BCORE_CONF_MASK

/* DA9055_REG_BMEM_CONT (addr=0x14) */
#define DA9055_BMEM_EN_SHIFT
#define DA9055_BMEM_EN_MASK
#define DA9055_BMEM_GPI_SHIFT
#define DA9055_BMEM_GPI_MASK
#define DA9055_BMEM_PD_DIS_SHIFT
#define DA9055_BMEM_PD_DIS_MASK
#define DA9055_VBMEM_SEL_SHIT
#define DA9055_VBMEM_SEL_VBMEM_A
#define DA9055_VBMEM_SEL_VBMEM_B
#define DA9055_VBMEM_SEL_MASK
#define DA9055_VBMEM_GPI_SHIFT
#define DA9055_VBMEM_GPI_MASK
#define DA9055_BMEM_CONF_SHIFT
#define DA9055_BMEM_CONF_MASK

/* DA9055_REG_LDO_CONT (addr=0x15-0x1A) */
#define DA9055_LDO_EN_SHIFT
#define DA9055_LDO_EN_MASK
#define DA9055_LDO_GPI_SHIFT
#define DA9055_LDO_GPI_MASK
#define DA9055_LDO_PD_DIS_SHIFT
#define DA9055_LDO_PD_DIS_MASK
#define DA9055_VLDO_SEL_SHIFT
#define DA9055_VLDO_SEL_MASK
#define DA9055_VLDO_SEL_VLDO_A
#define DA9055_VLDO_SEL_VLDO_B
#define DA9055_VLDO_GPI_SHIFT
#define DA9055_VLDO_GPI_MASK
#define DA9055_LDO_CONF_SHIFT
#define DA9055_LDO_CONF_MASK
#define DA9055_REGUALTOR_SET_A
#define DA9055_REGUALTOR_SET_B

/* DA9055_REG_ADC_MAN (addr=0x1B) */
#define DA9055_ADC_MUX_SHIFT
#define DA9055_ADC_MUX_MASK
#define DA9055_ADC_MUX_VSYS
#define DA9055_ADC_MUX_ADCIN1
#define DA9055_ADC_MUX_ADCIN2
#define DA9055_ADC_MUX_ADCIN3
#define DA9055_ADC_MUX_T_SENSE
#define DA9055_ADC_MAN_SHIFT
#define DA9055_ADC_MAN_CONV
#define DA9055_ADC_LSB_MASK
#define DA9055_ADC_MODE_MASK
#define DA9055_ADC_MODE_SHIFT
#define DA9055_ADC_MODE_1MS
#define DA9055_COMP1V2_EN_SHIFT

/* DA9055_REG_ADC_CONT (addr=0x1C) */
#define DA9055_ADC_AUTO_VSYS_EN_SHIFT
#define DA9055_ADC_AUTO_AD1_EN_SHIFT
#define DA9055_ADC_AUTO_AD2_EN_SHIFT
#define DA9055_ADC_AUTO_AD3_EN_SHIFT
#define DA9055_ADC_ISRC_EN_SHIFT
#define DA9055_ADC_ADCIN1_DEB_SHIFT
#define DA9055_ADC_ADCIN2_DEB_SHIFT
#define DA9055_ADC_ADCIN3_DEB_SHIFT
#define DA9055_AD1_ISRC_MASK
#define DA9055_AD1_ISRC_SHIFT

/* DA9055_REG_VSYS_MON (addr=0x1D) */
#define DA9055_VSYS_VAL_SHIFT
#define DA9055_VSYS_VAL_MASK
#define DA9055_VSYS_VAL_BASE
#define DA9055_VSYS_VAL_MAX
#define DA9055_VSYS_VOLT_BASE
#define DA9055_VSYS_VOLT_INC
#define DA9055_VSYS_STEPS
#define DA9055_VSYS_VOLT_MIN

/* DA9044_REG_XXX_RES (addr=0x20-0x23) */
#define DA9055_ADC_VAL_SHIFT
#define DA9055_ADC_VAL_MASK
#define DA9055_ADC_VAL_BASE
#define DA9055_ADC_VAL_MAX
#define DA9055_ADC_VOLT_BASE
#define DA9055_ADC_VSYS_VOLT_BASE
#define DA9055_ADC_VOLT_INC
#define DA9055_ADC_VSYS_VOLT_INC
#define DA9055_ADC_STEPS

/* DA9055_REG_EN_32K  (addr=0x35)*/
#define DA9055_STARTUP_TIME_MASK
#define DA9055_STARTUP_TIME_0S
#define DA9055_STARTUP_TIME_0_52S
#define DA9055_STARTUP_TIME_1S
#define DA9055_CRYSTAL_EN
#define DA9055_DELAY_MODE_EN
#define DA9055_OUT_CLCK_GATED
#define DA9055_RTC_CLOCK_GATED
#define DA9055_EN_32KOUT_BUF

/* DA9055_REG_RESET (addr=0x36) */
/* Timer up to 31.744 ms */
#define DA9055_RESET_TIMER_VAL_SHIFT
#define DA9055_RESET_LOW_VAL_MASK
#define DA9055_RESET_LOW_VAL_BASE
#define DA9055_RESET_LOW_VAL_MAX
#define DA9055_RESET_US_LOW_BASE
#define DA9055_RESET_US_LOW_INC
#define DA9055_RESET_US_LOW_STEP

/* Timer up to 1048.576ms */
#define DA9055_RESET_HIGH_VAL_MASK
#define DA9055_RESET_HIGH_VAL_BASE
#define DA9055_RESET_HIGH_VAL_MAX
#define DA9055_RESET_US_HIGH_BASE
#define DA9055_RESET_US_HIGH_INC
#define DA9055_RESET_US_HIGH_STEP

/* DA9055_REG_BUCK_ILIM (addr=0x37)*/
#define DA9055_BMEM_ILIM_SHIFT
#define DA9055_ILIM_MASK
#define DA9055_ILIM_500MA
#define DA9055_ILIM_600MA
#define DA9055_ILIM_700MA
#define DA9055_ILIM_800MA
#define DA9055_BCORE_ILIM_SHIFT

/* DA9055_REG_BCORE_MODE (addr=0x38) */
#define DA9055_BMEM_MODE_SHIFT
#define DA9055_MODE_MASK
#define DA9055_MODE_AB
#define DA9055_MODE_SLEEP
#define DA9055_MODE_SYNCHRO
#define DA9055_MODE_AUTO
#define DA9055_BCORE_MODE_SHIFT

/* DA9055_REG_VBCORE_A/B (addr=0x39/0x41)*/
#define DA9055_VBCORE_VAL_SHIFT
#define DA9055_VBCORE_VAL_MASK
#define DA9055_VBCORE_VAL_BASE
#define DA9055_VBCORE_VAL_MAX
#define DA9055_VBCORE_VOLT_BASE
#define DA9055_VBCORE_VOLT_INC
#define DA9055_VBCORE_STEPS
#define DA9055_VBCORE_VOLT_MIN
#define DA9055_BCORE_SL_SYNCHRO
#define DA9055_BCORE_SL_SLEEP

/* DA9055_REG_VBMEM_A/B (addr=0x3A/0x42)*/
#define DA9055_VBMEM_VAL_SHIFT
#define DA9055_VBMEM_VAL_MASK
#define DA9055_VBMEM_VAL_BASE
#define DA9055_VBMEM_VAL_MAX
#define DA9055_VBMEM_VOLT_BASE
#define DA9055_VBMEM_VOLT_INC
#define DA9055_VBMEM_STEPS
#define DA9055_VBMEM_VOLT_MIN
#define DA9055_BCMEM_SL_SYNCHRO
#define DA9055_BCMEM_SL_SLEEP


/* DA9055_REG_VLDO (addr=0x3B-0x40/0x43-0x48)*/
#define DA9055_VLDO_VAL_SHIFT
#define DA9055_VLDO_VAL_MASK
#define DA9055_VLDO6_VAL_MASK
#define DA9055_VLDO_VAL_BASE
#define DA9055_VLDO2_VAL_BASE
#define DA9055_VLDO6_VAL_BASE
#define DA9055_VLDO_VAL_MAX
#define DA9055_VLDO6_VAL_MAX
#define DA9055_VLDO_VOLT_BASE
#define DA9055_VLDO_VOLT_INC
#define DA9055_VLDO6_VOLT_INC
#define DA9055_VLDO_STEPS
#define DA9055_VLDO5_STEPS
#define DA9055_VLDO6_STEPS
#define DA9055_VLDO_VOLT_MIN
#define DA9055_LDO_MODE_SHIFT
#define DA9055_LDO_SL_NORMAL
#define DA9055_LDO_SL_SLEEP

/* DA9055_REG_OTP_CONT (addr=0x50) */
#define DA9055_OTP_TIM_NORMAL
#define DA9055_OTP_TIM_MARGINAL
#define DA9055_OTP_GP_RD_SHIFT
#define DA9055_OTP_APPS_RD_SHIFT
#define DA9055_PC_DONE_SHIFT
#define DA9055_OTP_GP_LOCK_SHIFT
#define DA9055_OTP_APPS_LOCK_SHIFT
#define DA9055_OTP_CONF_LOCK_SHIFT
#define DA9055_OTP_WRITE_DIS_SHIFT

/* DA9055_REG_COUNT_S (addr=0x53) */
#define DA9055_RTC_SEC
#define DA9055_RTC_MONITOR_EN
#define DA9055_RTC_READ

/* DA9055_REG_COUNT_MI (addr=0x54) */
#define DA9055_RTC_MIN

/* DA9055_REG_COUNT_H (addr=0x55) */
#define DA9055_RTC_HOUR

/* DA9055_REG_COUNT_D (addr=0x56) */
#define DA9055_RTC_DAY

/* DA9055_REG_COUNT_MO (addr=0x57) */
#define DA9055_RTC_MONTH

/* DA9055_REG_COUNT_Y (addr=0x58) */
#define DA9055_RTC_YEAR
#define DA9055_RTC_YEAR_BASE

/* DA9055_REG_ALARM_MI (addr=0x59) */
#define DA9055_RTC_ALM_MIN
#define DA9055_ALARM_STATUS_SHIFT
#define DA9055_ALARM_STATUS_MASK
#define DA9055_ALARM_STATUS_NO_ALARM
#define DA9055_ALARM_STATUS_TICK
#define DA9055_ALARM_STATUS_TIMER_ALARM
#define DA9055_ALARM_STATUS_BOTH

/* DA9055_REG_ALARM_H (addr=0x5A) */
#define DA9055_RTC_ALM_HOUR

/* DA9055_REG_ALARM_D (addr=0x5B) */
#define DA9055_RTC_ALM_DAY

/* DA9055_REG_ALARM_MO (addr=0x5C) */
#define DA9055_RTC_ALM_MONTH
#define DA9055_RTC_TICK_WAKE_MASK
#define DA9055_RTC_TICK_WAKE_SHIFT
#define DA9055_RTC_TICK_TYPE
#define DA9055_RTC_TICK_TYPE_SHIFT
#define DA9055_RTC_TICK_SEC
#define DA9055_RTC_TICK_MIN
#define DA9055_ALARAM_TICK_WAKE

/* DA9055_REG_ALARM_Y (addr=0x5D) */
#define DA9055_RTC_TICK_EN
#define DA9055_RTC_ALM_EN
#define DA9055_RTC_TICK_ALM_MASK
#define DA9055_RTC_ALM_YEAR

/* DA9055_REG_TRIM_CLDR (addr=0x62) */
#define DA9055_TRIM_32K_SHIFT
#define DA9055_TRIM_32K_MASK
#define DA9055_TRIM_DECREMENT
#define DA9055_TRIM_INCREMENT
#define DA9055_TRIM_VAL_BASE
#define DA9055_TRIM_PPM_BASE
#define DA9055_TRIM_PPM_INC
#define DA9055_TRIM_STEPS

/* DA9055_REG_CONFIG_A (addr=0x65) */
#define DA9055_PM_I_V_VDDCORE
#define DA9055_PM_I_V_VDD_IO
#define DA9055_VDD_FAULT_TYPE_ACT_LOW
#define DA9055_VDD_FAULT_TYPE_ACT_HIGH
#define DA9055_PM_O_TYPE_PUSH_PULL
#define DA9055_PM_O_TYPE_OPEN_DRAIN
#define DA9055_IRQ_TYPE_ACT_LOW
#define DA9055_IRQ_TYPE_ACT_HIGH
#define DA9055_NIRQ_MODE_IMM
#define DA9055_NIRQ_MODE_ACTIVE
#define DA9055_GPI_V_VDDCORE
#define DA9055_GPI_V_VDD_IO
#define DA9055_PM_IF_V_VDDCORE
#define DA9055_PM_IF_V_VDD_IO

/* DA9055_REG_CONFIG_B (addr=0x66) */
#define DA9055_VDD_FAULT_VAL_SHIFT
#define DA9055_VDD_FAULT_VAL_MASK
#define DA9055_VDD_FAULT_VAL_BASE
#define DA9055_VDD_FAULT_VAL_MAX
#define DA9055_VDD_FAULT_VOLT_BASE
#define DA9055_VDD_FAULT_VOLT_INC
#define DA9055_VDD_FAULT_STEPS

#define DA9055_VDD_HYST_VAL_SHIFT
#define DA9055_VDD_HYST_VAL_MASK
#define DA9055_VDD_HYST_VAL_BASE
#define DA9055_VDD_HYST_VAL_MAX
#define DA9055_VDD_HYST_VOLT_BASE
#define DA9055_VDD_HYST_VOLT_INC
#define DA9055_VDD_HYST_STEPS
#define DA9055_VDD_HYST_VOLT_MIN

#define DA9055_VDD_FAULT_EN_SHIFT

/* DA9055_REG_CONFIG_C (addr=0x67) */
#define DA9055_BCORE_CLK_INV_SHIFT
#define DA9055_BMEM_CLK_INV_SHIFT
#define DA9055_NFAULT_CONF_SHIFT
#define DA9055_LDO_SD_SHIFT
#define DA9055_LDO5_BYP_SHIFT
#define DA9055_LDO6_BYP_SHIFT

/* DA9055_REG_CONFIG_D (addr=0x68) */
#define DA9055_NONKEY_PIN_SHIFT
#define DA9055_NONKEY_PIN_MASK
#define DA9055_NONKEY_PIN_PORT_MODE
#define DA9055_NONKEY_PIN_KEY_MODE
#define DA9055_NONKEY_PIN_MULTI_FUNC
#define DA9055_NONKEY_PIN_DEDICT
#define DA9055_NONKEY_SD_SHIFT
#define DA9055_KEY_DELAY_SHIFT
#define DA9055_KEY_DELAY_MASK
#define DA9055_KEY_DELAY_4S
#define DA9055_KEY_DELAY_6S
#define DA9055_KEY_DELAY_8S
#define DA9055_KEY_DELAY_10S

/* DA9055_REG_CONFIG_E (addr=0x69) */
#define DA9055_GPIO_PUPD_PULL_UP
#define DA9055_GPIO_PUPD_OPEN_DRAIN
#define DA9055_GPIO0_PUPD_SHIFT
#define DA9055_GPIO1_PUPD_SHIFT
#define DA9055_GPIO2_PUPD_SHIFT
#define DA9055_UVOV_DELAY_SHIFT
#define DA9055_UVOV_DELAY_MASK
#define DA9055_RESET_DURATION_SHIFT
#define DA9055_RESET_DURATION_MASK
#define DA9055_RESET_DURATION_0MS
#define DA9055_RESET_DURATION_100MS
#define DA9055_RESET_DURATION_500MS
#define DA9055_RESET_DURATION_1000MS

/* DA9055_REG_MON_REG_1 (addr=0x6A) */
#define DA9055_MON_THRES_SHIFT
#define DA9055_MON_THRES_MASK
#define DA9055_MON_RES_SHIFT
#define DA9055_MON_DEB_SHIFT
#define DA9055_MON_MODE_SHIFT
#define DA9055_MON_MODE_MASK
#define DA9055_START_MAX_SHIFT
#define DA9055_START_MAX_MASK

/* DA9055_REG_MON_REG_2 (addr=0x6B) */
#define DA9055_LDO1_MON_EN_SHIFT
#define DA9055_LDO2_MON_EN_SHIFT
#define DA9055_LDO3_MON_EN_SHIFT
#define DA9055_LDO4_MON_EN_SHIFT
#define DA9055_LDO5_MON_EN_SHIFT
#define DA9055_LDO6_MON_EN_SHIFT
#define DA9055_BCORE_MON_EN_SHIFT
#define DA9055_BMEM_MON_EN_SHIFT

/* DA9055_REG_CONFIG_F (addr=0x6C) */
#define DA9055_LDO1_DEF_SHIFT
#define DA9055_LDO2_DEF_SHIFT
#define DA9055_LDO3_DEF_SHIFT
#define DA9055_LDO4_DEF_SHIFT
#define DA9055_LDO5_DEF_SHIFT
#define DA9055_LDO6_DEF_SHIFT
#define DA9055_BCORE_DEF_SHIFT
#define DA9055_BMEM_DEF_SHIFT

/* DA9055_REG_MON_REG_4 (addr=0x6D) */
#define DA9055_MON_A8_IDX_SHIFT
#define DA9055_MON_A89_IDX_MASK
#define DA9055_MON_A89_IDX_NONE
#define DA9055_MON_A89_IDX_BUCKCORE
#define DA9055_MON_A89_IDX_LDO3
#define DA9055_MON_A9_IDX_SHIFT

/* DA9055_REG_MON_REG_5 (addr=0x6E) */
#define DA9055_MON_A10_IDX_SHIFT
#define DA9055_MON_A10_IDX_MASK
#define DA9055_MON_A10_IDX_NONE
#define DA9055_MON_A10_IDX_LDO1
#define DA9055_MON_A10_IDX_LDO2
#define DA9055_MON_A10_IDX_LDO5
#define DA9055_MON_A10_IDX_LDO6

#endif /* __DA9055_REG_H */