1*21299d3aSPatrice Chotard /*
2*21299d3aSPatrice Chotard  * This file is part of stpmu1 pmic driver
3*21299d3aSPatrice Chotard  *
4*21299d3aSPatrice Chotard  * Copyright (C) 2017, STMicroelectronics - All Rights Reserved
5*21299d3aSPatrice Chotard  * Author: Pascal Paillet <p.paillet@st.com> for STMicroelectronics.
6*21299d3aSPatrice Chotard  *
7*21299d3aSPatrice Chotard  * License type: GPLv2
8*21299d3aSPatrice Chotard  *
9*21299d3aSPatrice Chotard  * This program is free software; you can redistribute it and/or modify it
10*21299d3aSPatrice Chotard  * under the terms of the GNU General Public License version 2 as published by
11*21299d3aSPatrice Chotard  * the Free Software Foundation.
12*21299d3aSPatrice Chotard  *
13*21299d3aSPatrice Chotard  * This program is distributed in the hope that it will be useful, but
14*21299d3aSPatrice Chotard  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
15*21299d3aSPatrice Chotard  * or FITNESS FOR A PARTICULAR PURPOSE.
16*21299d3aSPatrice Chotard  * See the GNU General Public License for more details.
17*21299d3aSPatrice Chotard  *
18*21299d3aSPatrice Chotard  * You should have received a copy of the GNU General Public License along with
19*21299d3aSPatrice Chotard  * this program. If not, see <http://www.gnu.org/licenses/>.
20*21299d3aSPatrice Chotard  */
21*21299d3aSPatrice Chotard 
22*21299d3aSPatrice Chotard #ifndef __DT_BINDINGS_STPMU1_H__
23*21299d3aSPatrice Chotard #define __DT_BINDINGS_STPMU1_H__
24*21299d3aSPatrice Chotard 
25*21299d3aSPatrice Chotard /* IRQ definitions */
26*21299d3aSPatrice Chotard #define IT_PONKEY_F 0
27*21299d3aSPatrice Chotard #define IT_PONKEY_R 1
28*21299d3aSPatrice Chotard #define IT_WAKEUP_F 2
29*21299d3aSPatrice Chotard #define IT_WAKEUP_R 3
30*21299d3aSPatrice Chotard #define IT_VBUS_OTG_F 4
31*21299d3aSPatrice Chotard #define IT_VBUS_OTG_R 5
32*21299d3aSPatrice Chotard #define IT_SWOUT_F 6
33*21299d3aSPatrice Chotard #define IT_SWOUT_R 7
34*21299d3aSPatrice Chotard 
35*21299d3aSPatrice Chotard #define IT_CURLIM_BUCK1 8
36*21299d3aSPatrice Chotard #define IT_CURLIM_BUCK2 9
37*21299d3aSPatrice Chotard #define IT_CURLIM_BUCK3 10
38*21299d3aSPatrice Chotard #define IT_CURLIM_BUCK4 11
39*21299d3aSPatrice Chotard #define IT_OCP_OTG 12
40*21299d3aSPatrice Chotard #define IT_OCP_SWOUT 13
41*21299d3aSPatrice Chotard #define IT_OCP_BOOST 14
42*21299d3aSPatrice Chotard #define IT_OVP_BOOST 15
43*21299d3aSPatrice Chotard 
44*21299d3aSPatrice Chotard #define IT_CURLIM_LDO1 16
45*21299d3aSPatrice Chotard #define IT_CURLIM_LDO2 17
46*21299d3aSPatrice Chotard #define IT_CURLIM_LDO3 18
47*21299d3aSPatrice Chotard #define IT_CURLIM_LDO4 19
48*21299d3aSPatrice Chotard #define IT_CURLIM_LDO5 20
49*21299d3aSPatrice Chotard #define IT_CURLIM_LDO6 21
50*21299d3aSPatrice Chotard #define IT_SHORT_SWOTG 22
51*21299d3aSPatrice Chotard #define IT_SHORT_SWOUT 23
52*21299d3aSPatrice Chotard 
53*21299d3aSPatrice Chotard #define IT_TWARN_F 24
54*21299d3aSPatrice Chotard #define IT_TWARN_R 25
55*21299d3aSPatrice Chotard #define IT_VINLOW_F 26
56*21299d3aSPatrice Chotard #define IT_VINLOW_R 27
57*21299d3aSPatrice Chotard #define IT_SWIN_F 30
58*21299d3aSPatrice Chotard #define IT_SWIN_R 31
59*21299d3aSPatrice Chotard 
60*21299d3aSPatrice Chotard #endif /* __DT_BINDINGS_STPMU1_H__ */
61