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