18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Copyright (C) STMicroelectronics 2018 - All Rights Reserved 48c2ecf20Sopenharmony_ci * Author: Philippe Peurichard <philippe.peurichard@st.com>, 58c2ecf20Sopenharmony_ci * Pascal Paillet <p.paillet@st.com> for STMicroelectronics. 68c2ecf20Sopenharmony_ci */ 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ci#ifndef __DT_BINDINGS_STPMIC1_H__ 98c2ecf20Sopenharmony_ci#define __DT_BINDINGS_STPMIC1_H__ 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ci/* IRQ definitions */ 128c2ecf20Sopenharmony_ci#define IT_PONKEY_F 0 138c2ecf20Sopenharmony_ci#define IT_PONKEY_R 1 148c2ecf20Sopenharmony_ci#define IT_WAKEUP_F 2 158c2ecf20Sopenharmony_ci#define IT_WAKEUP_R 3 168c2ecf20Sopenharmony_ci#define IT_VBUS_OTG_F 4 178c2ecf20Sopenharmony_ci#define IT_VBUS_OTG_R 5 188c2ecf20Sopenharmony_ci#define IT_SWOUT_F 6 198c2ecf20Sopenharmony_ci#define IT_SWOUT_R 7 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_ci#define IT_CURLIM_BUCK1 8 228c2ecf20Sopenharmony_ci#define IT_CURLIM_BUCK2 9 238c2ecf20Sopenharmony_ci#define IT_CURLIM_BUCK3 10 248c2ecf20Sopenharmony_ci#define IT_CURLIM_BUCK4 11 258c2ecf20Sopenharmony_ci#define IT_OCP_OTG 12 268c2ecf20Sopenharmony_ci#define IT_OCP_SWOUT 13 278c2ecf20Sopenharmony_ci#define IT_OCP_BOOST 14 288c2ecf20Sopenharmony_ci#define IT_OVP_BOOST 15 298c2ecf20Sopenharmony_ci 308c2ecf20Sopenharmony_ci#define IT_CURLIM_LDO1 16 318c2ecf20Sopenharmony_ci#define IT_CURLIM_LDO2 17 328c2ecf20Sopenharmony_ci#define IT_CURLIM_LDO3 18 338c2ecf20Sopenharmony_ci#define IT_CURLIM_LDO4 19 348c2ecf20Sopenharmony_ci#define IT_CURLIM_LDO5 20 358c2ecf20Sopenharmony_ci#define IT_CURLIM_LDO6 21 368c2ecf20Sopenharmony_ci#define IT_SHORT_SWOTG 22 378c2ecf20Sopenharmony_ci#define IT_SHORT_SWOUT 23 388c2ecf20Sopenharmony_ci 398c2ecf20Sopenharmony_ci#define IT_TWARN_F 24 408c2ecf20Sopenharmony_ci#define IT_TWARN_R 25 418c2ecf20Sopenharmony_ci#define IT_VINLOW_F 26 428c2ecf20Sopenharmony_ci#define IT_VINLOW_R 27 438c2ecf20Sopenharmony_ci#define IT_SWIN_F 30 448c2ecf20Sopenharmony_ci#define IT_SWIN_R 31 458c2ecf20Sopenharmony_ci 468c2ecf20Sopenharmony_ci/* BUCK MODES definitions */ 478c2ecf20Sopenharmony_ci#define STPMIC1_BUCK_MODE_NORMAL 0 488c2ecf20Sopenharmony_ci#define STPMIC1_BUCK_MODE_LP 2 498c2ecf20Sopenharmony_ci 508c2ecf20Sopenharmony_ci#endif /* __DT_BINDINGS_STPMIC1_H__ */ 51