Path: blob/master/include/dt-bindings/regulator/samsung,s2mpg10-regulator.h
121811 views
/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */1/*2* Copyright 2021 Google LLC3* Copyright 2025 Linaro Ltd.4*5* Device Tree binding constants for the Samsung S2MPG1x PMIC regulators6*/78#ifndef _DT_BINDINGS_REGULATOR_SAMSUNG_S2MPG10_H9#define _DT_BINDINGS_REGULATOR_SAMSUNG_S2MPG10_H1011/*12* Several regulators may be controlled via external signals instead of via13* software. These constants describe the possible signals for such regulators14* and generally correspond to the respecitve on-chip pins.15*16* S2MPG10 regulators supporting these are:17* - buck1m .. buck7m buck10m18* - ldo3m .. ldo19m19*20* ldo20m supports external control, but using a different set of control21* signals.22*23* S2MPG11 regulators supporting these are:24* - buck1s .. buck3s buck5s buck8s buck9s bucka buckd25* - ldo1s ldo2s ldo8s ldo13s26*/27#define S2MPG10_EXTCTRL_PWREN 0 /* PWREN pin */28#define S2MPG10_EXTCTRL_PWREN_MIF 1 /* PWREN_MIF pin */29#define S2MPG10_EXTCTRL_AP_ACTIVE_N 2 /* ~AP_ACTIVE_N pin */30#define S2MPG10_EXTCTRL_CPUCL1_EN 3 /* CPUCL1_EN pin */31#define S2MPG10_EXTCTRL_CPUCL1_EN2 4 /* CPUCL1_EN & PWREN pins */32#define S2MPG10_EXTCTRL_CPUCL2_EN 5 /* CPUCL2_EN pin */33#define S2MPG10_EXTCTRL_CPUCL2_EN2 6 /* CPUCL2_E2 & PWREN pins */34#define S2MPG10_EXTCTRL_TPU_EN 7 /* TPU_EN pin */35#define S2MPG10_EXTCTRL_TPU_EN2 8 /* TPU_EN & ~AP_ACTIVE_N pins */36#define S2MPG10_EXTCTRL_TCXO_ON 9 /* TCXO_ON pin */37#define S2MPG10_EXTCTRL_TCXO_ON2 10 /* TCXO_ON & ~AP_ACTIVE_N pins */3839#define S2MPG10_EXTCTRL_LDO20M_EN2 11 /* VLDO20M_EN & LDO20M_SFR */40#define S2MPG10_EXTCTRL_LDO20M_EN 12 /* VLDO20M_EN pin */4142#define S2MPG11_EXTCTRL_PWREN 0 /* PWREN pin */43#define S2MPG11_EXTCTRL_PWREN_MIF 1 /* PWREN_MIF pin */44#define S2MPG11_EXTCTRL_AP_ACTIVE_N 2 /* ~AP_ACTIVE_N pin */45#define S2MPG11_EXTCTRL_G3D_EN 3 /* G3D_EN pin */46#define S2MPG11_EXTCTRL_G3D_EN2 4 /* G3D_EN & ~AP_ACTIVE_N pins */47#define S2MPG11_EXTCTRL_AOC_VDD 5 /* AOC_VDD pin */48#define S2MPG11_EXTCTRL_AOC_RET 6 /* AOC_RET pin */49#define S2MPG11_EXTCTRL_UFS_EN 7 /* UFS_EN pin */50#define S2MPG11_EXTCTRL_LDO13S_EN 8 /* VLDO13S_EN pin */5152#endif /* _DT_BINDINGS_REGULATOR_SAMSUNG_S2MPG10_H */535455