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