162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * This header provides macros for MAXIM MAX77620 device bindings. 462306a36Sopenharmony_ci * 562306a36Sopenharmony_ci * Copyright (c) 2016, NVIDIA Corporation. 662306a36Sopenharmony_ci * Author: Laxman Dewangan <ldewangan@nvidia.com> 762306a36Sopenharmony_ci */ 862306a36Sopenharmony_ci 962306a36Sopenharmony_ci#ifndef _DT_BINDINGS_MFD_MAX77620_H 1062306a36Sopenharmony_ci#define _DT_BINDINGS_MFD_MAX77620_H 1162306a36Sopenharmony_ci 1262306a36Sopenharmony_ci/* MAX77620 interrupts */ 1362306a36Sopenharmony_ci#define MAX77620_IRQ_TOP_GLBL 0 /* Low-Battery */ 1462306a36Sopenharmony_ci#define MAX77620_IRQ_TOP_SD 1 /* SD power fail */ 1562306a36Sopenharmony_ci#define MAX77620_IRQ_TOP_LDO 2 /* LDO power fail */ 1662306a36Sopenharmony_ci#define MAX77620_IRQ_TOP_GPIO 3 /* GPIO internal int to MAX77620 */ 1762306a36Sopenharmony_ci#define MAX77620_IRQ_TOP_RTC 4 /* RTC */ 1862306a36Sopenharmony_ci#define MAX77620_IRQ_TOP_32K 5 /* 32kHz oscillator */ 1962306a36Sopenharmony_ci#define MAX77620_IRQ_TOP_ONOFF 6 /* ON/OFF oscillator */ 2062306a36Sopenharmony_ci#define MAX77620_IRQ_LBT_MBATLOW 7 /* Thermal alarm status, > 120C */ 2162306a36Sopenharmony_ci#define MAX77620_IRQ_LBT_TJALRM1 8 /* Thermal alarm status, > 120C */ 2262306a36Sopenharmony_ci#define MAX77620_IRQ_LBT_TJALRM2 9 /* Thermal alarm status, > 140C */ 2362306a36Sopenharmony_ci 2462306a36Sopenharmony_ci/* FPS event source */ 2562306a36Sopenharmony_ci#define MAX77620_FPS_EVENT_SRC_EN0 0 2662306a36Sopenharmony_ci#define MAX77620_FPS_EVENT_SRC_EN1 1 2762306a36Sopenharmony_ci#define MAX77620_FPS_EVENT_SRC_SW 2 2862306a36Sopenharmony_ci 2962306a36Sopenharmony_ci/* Device state when FPS event LOW */ 3062306a36Sopenharmony_ci#define MAX77620_FPS_INACTIVE_STATE_SLEEP 0 3162306a36Sopenharmony_ci#define MAX77620_FPS_INACTIVE_STATE_LOW_POWER 1 3262306a36Sopenharmony_ci 3362306a36Sopenharmony_ci/* FPS source */ 3462306a36Sopenharmony_ci#define MAX77620_FPS_SRC_0 0 3562306a36Sopenharmony_ci#define MAX77620_FPS_SRC_1 1 3662306a36Sopenharmony_ci#define MAX77620_FPS_SRC_2 2 3762306a36Sopenharmony_ci#define MAX77620_FPS_SRC_NONE 3 3862306a36Sopenharmony_ci#define MAX77620_FPS_SRC_DEF 4 3962306a36Sopenharmony_ci 4062306a36Sopenharmony_ci#endif 41