Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  * Copyright (C) STMicroelectronics 2018 - All Rights Reserved
0004  * Author: Philippe Peurichard <philippe.peurichard@st.com>,
0005  * Pascal Paillet <p.paillet@st.com> for STMicroelectronics.
0006  */
0007 
0008 #ifndef __DT_BINDINGS_STPMIC1_H__
0009 #define __DT_BINDINGS_STPMIC1_H__
0010 
0011 /* IRQ definitions */
0012 #define IT_PONKEY_F 0
0013 #define IT_PONKEY_R 1
0014 #define IT_WAKEUP_F 2
0015 #define IT_WAKEUP_R 3
0016 #define IT_VBUS_OTG_F   4
0017 #define IT_VBUS_OTG_R   5
0018 #define IT_SWOUT_F  6
0019 #define IT_SWOUT_R  7
0020 
0021 #define IT_CURLIM_BUCK1 8
0022 #define IT_CURLIM_BUCK2 9
0023 #define IT_CURLIM_BUCK3 10
0024 #define IT_CURLIM_BUCK4 11
0025 #define IT_OCP_OTG  12
0026 #define IT_OCP_SWOUT    13
0027 #define IT_OCP_BOOST    14
0028 #define IT_OVP_BOOST    15
0029 
0030 #define IT_CURLIM_LDO1  16
0031 #define IT_CURLIM_LDO2  17
0032 #define IT_CURLIM_LDO3  18
0033 #define IT_CURLIM_LDO4  19
0034 #define IT_CURLIM_LDO5  20
0035 #define IT_CURLIM_LDO6  21
0036 #define IT_SHORT_SWOTG  22
0037 #define IT_SHORT_SWOUT  23
0038 
0039 #define IT_TWARN_F  24
0040 #define IT_TWARN_R  25
0041 #define IT_VINLOW_F 26
0042 #define IT_VINLOW_R 27
0043 #define IT_SWIN_F   30
0044 #define IT_SWIN_R   31
0045 
0046 /* BUCK MODES definitions */
0047 #define STPMIC1_BUCK_MODE_NORMAL 0
0048 #define STPMIC1_BUCK_MODE_LP 2
0049 
0050 #endif /* __DT_BINDINGS_STPMIC1_H__ */