18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * This header provides macros for MAXIM MAX77620 device bindings. 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * Copyright (c) 2016, NVIDIA Corporation. 68c2ecf20Sopenharmony_ci * Author: Laxman Dewangan <ldewangan@nvidia.com> 78c2ecf20Sopenharmony_ci */ 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ci#ifndef _DT_BINDINGS_MFD_MAX77620_H 108c2ecf20Sopenharmony_ci#define _DT_BINDINGS_MFD_MAX77620_H 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ci/* MAX77620 interrupts */ 138c2ecf20Sopenharmony_ci#define MAX77620_IRQ_TOP_GLBL 0 /* Low-Battery */ 148c2ecf20Sopenharmony_ci#define MAX77620_IRQ_TOP_SD 1 /* SD power fail */ 158c2ecf20Sopenharmony_ci#define MAX77620_IRQ_TOP_LDO 2 /* LDO power fail */ 168c2ecf20Sopenharmony_ci#define MAX77620_IRQ_TOP_GPIO 3 /* GPIO internal int to MAX77620 */ 178c2ecf20Sopenharmony_ci#define MAX77620_IRQ_TOP_RTC 4 /* RTC */ 188c2ecf20Sopenharmony_ci#define MAX77620_IRQ_TOP_32K 5 /* 32kHz oscillator */ 198c2ecf20Sopenharmony_ci#define MAX77620_IRQ_TOP_ONOFF 6 /* ON/OFF oscillator */ 208c2ecf20Sopenharmony_ci#define MAX77620_IRQ_LBT_MBATLOW 7 /* Thermal alarm status, > 120C */ 218c2ecf20Sopenharmony_ci#define MAX77620_IRQ_LBT_TJALRM1 8 /* Thermal alarm status, > 120C */ 228c2ecf20Sopenharmony_ci#define MAX77620_IRQ_LBT_TJALRM2 9 /* Thermal alarm status, > 140C */ 238c2ecf20Sopenharmony_ci 248c2ecf20Sopenharmony_ci/* FPS event source */ 258c2ecf20Sopenharmony_ci#define MAX77620_FPS_EVENT_SRC_EN0 0 268c2ecf20Sopenharmony_ci#define MAX77620_FPS_EVENT_SRC_EN1 1 278c2ecf20Sopenharmony_ci#define MAX77620_FPS_EVENT_SRC_SW 2 288c2ecf20Sopenharmony_ci 298c2ecf20Sopenharmony_ci/* Device state when FPS event LOW */ 308c2ecf20Sopenharmony_ci#define MAX77620_FPS_INACTIVE_STATE_SLEEP 0 318c2ecf20Sopenharmony_ci#define MAX77620_FPS_INACTIVE_STATE_LOW_POWER 1 328c2ecf20Sopenharmony_ci 338c2ecf20Sopenharmony_ci/* FPS source */ 348c2ecf20Sopenharmony_ci#define MAX77620_FPS_SRC_0 0 358c2ecf20Sopenharmony_ci#define MAX77620_FPS_SRC_1 1 368c2ecf20Sopenharmony_ci#define MAX77620_FPS_SRC_2 2 378c2ecf20Sopenharmony_ci#define MAX77620_FPS_SRC_NONE 3 388c2ecf20Sopenharmony_ci#define MAX77620_FPS_SRC_DEF 4 398c2ecf20Sopenharmony_ci 408c2ecf20Sopenharmony_ci#endif 41