162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * Copyright (C) STMicroelectronics 2018 - All Rights Reserved 462306a36Sopenharmony_ci * Author: Philippe Peurichard <philippe.peurichard@st.com>, 562306a36Sopenharmony_ci * Pascal Paillet <p.paillet@st.com> for STMicroelectronics. 662306a36Sopenharmony_ci */ 762306a36Sopenharmony_ci 862306a36Sopenharmony_ci#ifndef __DT_BINDINGS_STPMIC1_H__ 962306a36Sopenharmony_ci#define __DT_BINDINGS_STPMIC1_H__ 1062306a36Sopenharmony_ci 1162306a36Sopenharmony_ci/* IRQ definitions */ 1262306a36Sopenharmony_ci#define IT_PONKEY_F 0 1362306a36Sopenharmony_ci#define IT_PONKEY_R 1 1462306a36Sopenharmony_ci#define IT_WAKEUP_F 2 1562306a36Sopenharmony_ci#define IT_WAKEUP_R 3 1662306a36Sopenharmony_ci#define IT_VBUS_OTG_F 4 1762306a36Sopenharmony_ci#define IT_VBUS_OTG_R 5 1862306a36Sopenharmony_ci#define IT_SWOUT_F 6 1962306a36Sopenharmony_ci#define IT_SWOUT_R 7 2062306a36Sopenharmony_ci 2162306a36Sopenharmony_ci#define IT_CURLIM_BUCK1 8 2262306a36Sopenharmony_ci#define IT_CURLIM_BUCK2 9 2362306a36Sopenharmony_ci#define IT_CURLIM_BUCK3 10 2462306a36Sopenharmony_ci#define IT_CURLIM_BUCK4 11 2562306a36Sopenharmony_ci#define IT_OCP_OTG 12 2662306a36Sopenharmony_ci#define IT_OCP_SWOUT 13 2762306a36Sopenharmony_ci#define IT_OCP_BOOST 14 2862306a36Sopenharmony_ci#define IT_OVP_BOOST 15 2962306a36Sopenharmony_ci 3062306a36Sopenharmony_ci#define IT_CURLIM_LDO1 16 3162306a36Sopenharmony_ci#define IT_CURLIM_LDO2 17 3262306a36Sopenharmony_ci#define IT_CURLIM_LDO3 18 3362306a36Sopenharmony_ci#define IT_CURLIM_LDO4 19 3462306a36Sopenharmony_ci#define IT_CURLIM_LDO5 20 3562306a36Sopenharmony_ci#define IT_CURLIM_LDO6 21 3662306a36Sopenharmony_ci#define IT_SHORT_SWOTG 22 3762306a36Sopenharmony_ci#define IT_SHORT_SWOUT 23 3862306a36Sopenharmony_ci 3962306a36Sopenharmony_ci#define IT_TWARN_F 24 4062306a36Sopenharmony_ci#define IT_TWARN_R 25 4162306a36Sopenharmony_ci#define IT_VINLOW_F 26 4262306a36Sopenharmony_ci#define IT_VINLOW_R 27 4362306a36Sopenharmony_ci#define IT_SWIN_F 30 4462306a36Sopenharmony_ci#define IT_SWIN_R 31 4562306a36Sopenharmony_ci 4662306a36Sopenharmony_ci/* BUCK MODES definitions */ 4762306a36Sopenharmony_ci#define STPMIC1_BUCK_MODE_NORMAL 0 4862306a36Sopenharmony_ci#define STPMIC1_BUCK_MODE_LP 2 4962306a36Sopenharmony_ci 5062306a36Sopenharmony_ci#endif /* __DT_BINDINGS_STPMIC1_H__ */ 51