1*c66ec88fSEmmanuel Vadot /* SPDX-License-Identifier: GPL-2.0 */ 2*c66ec88fSEmmanuel Vadot /* 3*c66ec88fSEmmanuel Vadot * This header provides macros for MAXIM MAX77620 device bindings. 4*c66ec88fSEmmanuel Vadot * 5*c66ec88fSEmmanuel Vadot * Copyright (c) 2016, NVIDIA Corporation. 6*c66ec88fSEmmanuel Vadot * Author: Laxman Dewangan <ldewangan@nvidia.com> 7*c66ec88fSEmmanuel Vadot */ 8*c66ec88fSEmmanuel Vadot 9*c66ec88fSEmmanuel Vadot #ifndef _DT_BINDINGS_MFD_MAX77620_H 10*c66ec88fSEmmanuel Vadot #define _DT_BINDINGS_MFD_MAX77620_H 11*c66ec88fSEmmanuel Vadot 12*c66ec88fSEmmanuel Vadot /* MAX77620 interrupts */ 13*c66ec88fSEmmanuel Vadot #define MAX77620_IRQ_TOP_GLBL 0 /* Low-Battery */ 14*c66ec88fSEmmanuel Vadot #define MAX77620_IRQ_TOP_SD 1 /* SD power fail */ 15*c66ec88fSEmmanuel Vadot #define MAX77620_IRQ_TOP_LDO 2 /* LDO power fail */ 16*c66ec88fSEmmanuel Vadot #define MAX77620_IRQ_TOP_GPIO 3 /* GPIO internal int to MAX77620 */ 17*c66ec88fSEmmanuel Vadot #define MAX77620_IRQ_TOP_RTC 4 /* RTC */ 18*c66ec88fSEmmanuel Vadot #define MAX77620_IRQ_TOP_32K 5 /* 32kHz oscillator */ 19*c66ec88fSEmmanuel Vadot #define MAX77620_IRQ_TOP_ONOFF 6 /* ON/OFF oscillator */ 20*c66ec88fSEmmanuel Vadot #define MAX77620_IRQ_LBT_MBATLOW 7 /* Thermal alarm status, > 120C */ 21*c66ec88fSEmmanuel Vadot #define MAX77620_IRQ_LBT_TJALRM1 8 /* Thermal alarm status, > 120C */ 22*c66ec88fSEmmanuel Vadot #define MAX77620_IRQ_LBT_TJALRM2 9 /* Thermal alarm status, > 140C */ 23*c66ec88fSEmmanuel Vadot 24*c66ec88fSEmmanuel Vadot /* FPS event source */ 25*c66ec88fSEmmanuel Vadot #define MAX77620_FPS_EVENT_SRC_EN0 0 26*c66ec88fSEmmanuel Vadot #define MAX77620_FPS_EVENT_SRC_EN1 1 27*c66ec88fSEmmanuel Vadot #define MAX77620_FPS_EVENT_SRC_SW 2 28*c66ec88fSEmmanuel Vadot 29*c66ec88fSEmmanuel Vadot /* Device state when FPS event LOW */ 30*c66ec88fSEmmanuel Vadot #define MAX77620_FPS_INACTIVE_STATE_SLEEP 0 31*c66ec88fSEmmanuel Vadot #define MAX77620_FPS_INACTIVE_STATE_LOW_POWER 1 32*c66ec88fSEmmanuel Vadot 33*c66ec88fSEmmanuel Vadot /* FPS source */ 34*c66ec88fSEmmanuel Vadot #define MAX77620_FPS_SRC_0 0 35*c66ec88fSEmmanuel Vadot #define MAX77620_FPS_SRC_1 1 36*c66ec88fSEmmanuel Vadot #define MAX77620_FPS_SRC_2 2 37*c66ec88fSEmmanuel Vadot #define MAX77620_FPS_SRC_NONE 3 38*c66ec88fSEmmanuel Vadot #define MAX77620_FPS_SRC_DEF 4 39*c66ec88fSEmmanuel Vadot 40*c66ec88fSEmmanuel Vadot #endif 41