Home | History | Annotate | Line # | Download | only in mfd
      1 /*	$NetBSD: st,stpmic1.h,v 1.1.1.1 2019/05/25 11:29:13 jmcneill Exp $	*/
      2 
      3 /* SPDX-License-Identifier: GPL-2.0 */
      4 /*
      5  * Copyright (C) STMicroelectronics 2018 - All Rights Reserved
      6  * Author: Philippe Peurichard <philippe.peurichard (at) st.com>,
      7  * Pascal Paillet <p.paillet (at) st.com> for STMicroelectronics.
      8  */
      9 
     10 #ifndef __DT_BINDINGS_STPMIC1_H__
     11 #define __DT_BINDINGS_STPMIC1_H__
     12 
     13 /* IRQ definitions */
     14 #define IT_PONKEY_F	0
     15 #define IT_PONKEY_R	1
     16 #define IT_WAKEUP_F	2
     17 #define IT_WAKEUP_R	3
     18 #define IT_VBUS_OTG_F	4
     19 #define IT_VBUS_OTG_R	5
     20 #define IT_SWOUT_F	6
     21 #define IT_SWOUT_R	7
     22 
     23 #define IT_CURLIM_BUCK1	8
     24 #define IT_CURLIM_BUCK2	9
     25 #define IT_CURLIM_BUCK3	10
     26 #define IT_CURLIM_BUCK4	11
     27 #define IT_OCP_OTG	12
     28 #define IT_OCP_SWOUT	13
     29 #define IT_OCP_BOOST	14
     30 #define IT_OVP_BOOST	15
     31 
     32 #define IT_CURLIM_LDO1	16
     33 #define IT_CURLIM_LDO2	17
     34 #define IT_CURLIM_LDO3	18
     35 #define IT_CURLIM_LDO4	19
     36 #define IT_CURLIM_LDO5	20
     37 #define IT_CURLIM_LDO6	21
     38 #define IT_SHORT_SWOTG	22
     39 #define IT_SHORT_SWOUT	23
     40 
     41 #define IT_TWARN_F	24
     42 #define IT_TWARN_R	25
     43 #define IT_VINLOW_F	26
     44 #define IT_VINLOW_R	27
     45 #define IT_SWIN_F	30
     46 #define IT_SWIN_R	31
     47 
     48 /* BUCK MODES definitions */
     49 #define STPMIC1_BUCK_MODE_NORMAL 0
     50 #define STPMIC1_BUCK_MODE_LP 2
     51 
     52 #endif /* __DT_BINDINGS_STPMIC1_H__ */
     53