/usr/src/linux-headers-5.15.0-190/include/linux/regulator
NameSizeModeActions
act8865.h14810644editdlrm
arizona-ldo1.h3320644editdlrm
arizona-micsupp.h3470644editdlrm
consumer.h199860644editdlrm
coupler.h35390644editdlrm
da9121.h9560644editdlrm
da9211.h7570644editdlrm
db8500-prcmu.h11590644editdlrm
driver.h296940644editdlrm
fan53555.h12300644editdlrm
fixed.h17430644editdlrm
gpio-regulator.h21760644editdlrm
lp872x.h19320644editdlrm
lp3971.h7630644editdlrm
lp3972.h6610644editdlrm
machine.h98730644editdlrm
max1586.h15200644editdlrm
max8649.h8300644editdlrm
max8660.h9660644editdlrm
max8952.h22940644editdlrm
max8973-regulator.h25770644editdlrm
mt6311.h4390644editdlrm
mt6315-regulator.h11020644editdlrm
mt6323-regulator.h8300644editdlrm
mt6358-regulator.h10510644editdlrm
mt6359-regulator.h11620644editdlrm
mt6380-regulator.h4750644editdlrm
mt6397-regulator.h8080644editdlrm
of_regulator.h11190644editdlrm
pca9450.h59430644editdlrm
pfuze100.h16580644editdlrm
tps6507x.h5120644editdlrm
tps51632-regulator.h9780644editdlrm
tps62360.h12220644editdlrm
userspace-consumer.h6750644editdlrm
Edit: /usr/src/linux-headers-5.15.0-190/include/linux/regulator/lp872x.h (1932B)
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright 2012 Texas Instruments * * Author: Milo(Woogyom) Kim */ #ifndef __LP872X_REGULATOR_H__ #define __LP872X_REGULATOR_H__ #include #include #include #define LP872X_MAX_REGULATORS 9 #define LP8720_ENABLE_DELAY 200 #define LP8725_ENABLE_DELAY 30000 enum lp872x_regulator_id { LP8720_ID_BASE, LP8720_ID_LDO1 = LP8720_ID_BASE, LP8720_ID_LDO2, LP8720_ID_LDO3, LP8720_ID_LDO4, LP8720_ID_LDO5, LP8720_ID_BUCK, LP8725_ID_BASE, LP8725_ID_LDO1 = LP8725_ID_BASE, LP8725_ID_LDO2, LP8725_ID_LDO3, LP8725_ID_LDO4, LP8725_ID_LDO5, LP8725_ID_LILO1, LP8725_ID_LILO2, LP8725_ID_BUCK1, LP8725_ID_BUCK2, LP872X_ID_MAX, }; enum lp872x_dvs_state { DVS_LOW = GPIOF_OUT_INIT_LOW, DVS_HIGH = GPIOF_OUT_INIT_HIGH, }; enum lp872x_dvs_sel { SEL_V1, SEL_V2, }; /** * lp872x_dvs * @gpio : gpio pin number for dvs control * @vsel : dvs selector for buck v1 or buck v2 register * @init_state : initial dvs pin state */ struct lp872x_dvs { int gpio; enum lp872x_dvs_sel vsel; enum lp872x_dvs_state init_state; }; /** * lp872x_regdata * @id : regulator id * @init_data : init data for each regulator */ struct lp872x_regulator_data { enum lp872x_regulator_id id; struct regulator_init_data *init_data; }; /** * lp872x_platform_data * @general_config : the value of LP872X_GENERAL_CFG register * @update_config : if LP872X_GENERAL_CFG register is updated, set true * @regulator_data : platform regulator id and init data * @dvs : dvs data for buck voltage control * @enable_gpio : gpio pin number for enable control */ struct lp872x_platform_data { u8 general_config; bool update_config; struct lp872x_regulator_data regulator_data[LP872X_MAX_REGULATORS]; struct lp872x_dvs *dvs; int enable_gpio; }; #endif