Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   1) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   2)  * Regulator driver for LP873X PMIC
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   3)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   4)  * Copyright (C) 2016 Texas Instruments Incorporated - https://www.ti.com/
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   5)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   6)  * This program is free software; you can redistribute it and/or
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   7)  * modify it under the terms of the GNU General Public License version 2 as
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   8)  * published by the Free Software Foundation.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   9)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  10)  * This program is distributed "as is" WITHOUT ANY WARRANTY of any
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  11)  * kind, whether expressed or implied; without even the implied warranty
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  12)  * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  13)  * GNU General Public License version 2 for more details.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  14)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  15) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  16) #include <linux/module.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  17) #include <linux/platform_device.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  18) #include <linux/regmap.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  19) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  20) #include <linux/mfd/lp873x.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  21) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  22) #define LP873X_REGULATOR(_name, _id, _of, _ops, _n, _vr, _vm, _er, _em, \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  23) 			 _delay, _lr, _cr)				\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  24) 	[_id] = {							\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  25) 		.desc = {						\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  26) 			.name			= _name,		\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  27) 			.supply_name		= _of "-in",		\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  28) 			.id			= _id,			\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  29) 			.of_match		= of_match_ptr(_of),	\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  30) 			.regulators_node	= of_match_ptr("regulators"),\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  31) 			.ops			= &_ops,		\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  32) 			.n_voltages		= _n,			\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  33) 			.type			= REGULATOR_VOLTAGE,	\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  34) 			.owner			= THIS_MODULE,		\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  35) 			.vsel_reg		= _vr,			\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  36) 			.vsel_mask		= _vm,			\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  37) 			.enable_reg		= _er,			\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  38) 			.enable_mask		= _em,			\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  39) 			.ramp_delay		= _delay,		\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  40) 			.linear_ranges		= _lr,			\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  41) 			.n_linear_ranges	= ARRAY_SIZE(_lr),	\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  42) 			.curr_table	= lp873x_buck_uA,		\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  43) 			.n_current_limits = ARRAY_SIZE(lp873x_buck_uA),	\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  44) 			.csel_reg	= (_cr),			\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  45) 			.csel_mask	= LP873X_BUCK0_CTRL_2_BUCK0_ILIM,\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  46) 		},							\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  47) 		.ctrl2_reg = _cr,					\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  48) 	}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  49) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  50) struct lp873x_regulator {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  51) 	struct regulator_desc desc;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  52) 	unsigned int ctrl2_reg;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  53) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  54) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  55) static const struct lp873x_regulator regulators[];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  56) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  57) static const struct linear_range buck0_buck1_ranges[] = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  58) 	REGULATOR_LINEAR_RANGE(0, 0x0, 0x13, 0),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  59) 	REGULATOR_LINEAR_RANGE(700000, 0x14, 0x17, 10000),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  60) 	REGULATOR_LINEAR_RANGE(735000, 0x18, 0x9d, 5000),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  61) 	REGULATOR_LINEAR_RANGE(1420000, 0x9e, 0xff, 20000),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  62) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  63) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  64) static const struct linear_range ldo0_ldo1_ranges[] = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  65) 	REGULATOR_LINEAR_RANGE(800000, 0x0, 0x19, 100000),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  66) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  67) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  68) static const unsigned int lp873x_buck_ramp_delay[] = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  69) 	30000, 15000, 10000, 7500, 3800, 1900, 940, 470
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  70) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  71) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  72) /* LP873X BUCK current limit */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  73) static const unsigned int lp873x_buck_uA[] = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  74) 	1500000, 2000000, 2500000, 3000000, 3500000, 4000000,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  75) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  76) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  77) static int lp873x_buck_set_ramp_delay(struct regulator_dev *rdev,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  78) 				      int ramp_delay)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  79) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  80) 	int id = rdev_get_id(rdev);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  81) 	struct lp873x *lp873 = rdev_get_drvdata(rdev);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  82) 	unsigned int reg;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  83) 	int ret;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  84) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  85) 	if (ramp_delay <= 470)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  86) 		reg = 7;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  87) 	else if (ramp_delay <= 940)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  88) 		reg = 6;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  89) 	else if (ramp_delay <= 1900)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  90) 		reg = 5;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  91) 	else if (ramp_delay <= 3800)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  92) 		reg = 4;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  93) 	else if (ramp_delay <= 7500)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  94) 		reg = 3;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  95) 	else if (ramp_delay <= 10000)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  96) 		reg = 2;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  97) 	else if (ramp_delay <= 15000)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  98) 		reg = 1;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  99) 	else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 100) 		reg = 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 101) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 102) 	ret = regmap_update_bits(lp873->regmap, regulators[id].ctrl2_reg,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 103) 				 LP873X_BUCK0_CTRL_2_BUCK0_SLEW_RATE,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 104) 				 reg << __ffs(LP873X_BUCK0_CTRL_2_BUCK0_SLEW_RATE));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 105) 	if (ret) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 106) 		dev_err(lp873->dev, "SLEW RATE write failed: %d\n", ret);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 107) 		return ret;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 108) 	}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 109) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 110) 	rdev->constraints->ramp_delay = lp873x_buck_ramp_delay[reg];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 111) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 112) 	return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 113) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 114) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 115) /* Operations permitted on BUCK0, BUCK1 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 116) static const struct regulator_ops lp873x_buck01_ops = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 117) 	.is_enabled		= regulator_is_enabled_regmap,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 118) 	.enable			= regulator_enable_regmap,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 119) 	.disable		= regulator_disable_regmap,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 120) 	.get_voltage_sel	= regulator_get_voltage_sel_regmap,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 121) 	.set_voltage_sel	= regulator_set_voltage_sel_regmap,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 122) 	.list_voltage		= regulator_list_voltage_linear_range,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 123) 	.map_voltage		= regulator_map_voltage_linear_range,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 124) 	.set_voltage_time_sel	= regulator_set_voltage_time_sel,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 125) 	.set_ramp_delay		= lp873x_buck_set_ramp_delay,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 126) 	.set_current_limit	= regulator_set_current_limit_regmap,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 127) 	.get_current_limit	= regulator_get_current_limit_regmap,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 128) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 129) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 130) /* Operations permitted on LDO0 and LDO1 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 131) static const struct regulator_ops lp873x_ldo01_ops = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 132) 	.is_enabled		= regulator_is_enabled_regmap,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 133) 	.enable			= regulator_enable_regmap,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 134) 	.disable		= regulator_disable_regmap,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 135) 	.get_voltage_sel	= regulator_get_voltage_sel_regmap,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 136) 	.set_voltage_sel	= regulator_set_voltage_sel_regmap,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 137) 	.list_voltage		= regulator_list_voltage_linear_range,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 138) 	.map_voltage		= regulator_map_voltage_linear_range,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 139) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 140) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 141) static const struct lp873x_regulator regulators[] = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 142) 	LP873X_REGULATOR("BUCK0", LP873X_BUCK_0, "buck0", lp873x_buck01_ops,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 143) 			 256, LP873X_REG_BUCK0_VOUT,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 144) 			 LP873X_BUCK0_VOUT_BUCK0_VSET, LP873X_REG_BUCK0_CTRL_1,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 145) 			 LP873X_BUCK0_CTRL_1_BUCK0_EN, 10000,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 146) 			 buck0_buck1_ranges, LP873X_REG_BUCK0_CTRL_2),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 147) 	LP873X_REGULATOR("BUCK1", LP873X_BUCK_1, "buck1", lp873x_buck01_ops,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 148) 			 256, LP873X_REG_BUCK1_VOUT,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 149) 			 LP873X_BUCK1_VOUT_BUCK1_VSET, LP873X_REG_BUCK1_CTRL_1,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 150) 			 LP873X_BUCK1_CTRL_1_BUCK1_EN, 10000,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 151) 			 buck0_buck1_ranges, LP873X_REG_BUCK1_CTRL_2),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 152) 	LP873X_REGULATOR("LDO0", LP873X_LDO_0, "ldo0", lp873x_ldo01_ops, 26,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 153) 			 LP873X_REG_LDO0_VOUT, LP873X_LDO0_VOUT_LDO0_VSET,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 154) 			 LP873X_REG_LDO0_CTRL,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 155) 			 LP873X_LDO0_CTRL_LDO0_EN, 0, ldo0_ldo1_ranges, 0xFF),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 156) 	LP873X_REGULATOR("LDO1", LP873X_LDO_1, "ldo1", lp873x_ldo01_ops, 26,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 157) 			 LP873X_REG_LDO1_VOUT, LP873X_LDO1_VOUT_LDO1_VSET,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 158) 			 LP873X_REG_LDO1_CTRL,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 159) 			 LP873X_LDO1_CTRL_LDO1_EN, 0, ldo0_ldo1_ranges, 0xFF),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 160) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 161) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 162) static int lp873x_regulator_probe(struct platform_device *pdev)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 163) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 164) 	struct lp873x *lp873 = dev_get_drvdata(pdev->dev.parent);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 165) 	struct regulator_config config = { };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 166) 	struct regulator_dev *rdev;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 167) 	int i;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 168) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 169) 	platform_set_drvdata(pdev, lp873);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 170) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 171) 	config.dev = &pdev->dev;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 172) 	config.dev->of_node = lp873->dev->of_node;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 173) 	config.driver_data = lp873;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 174) 	config.regmap = lp873->regmap;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 175) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 176) 	for (i = 0; i < ARRAY_SIZE(regulators); i++) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 177) 		rdev = devm_regulator_register(&pdev->dev, &regulators[i].desc,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 178) 					       &config);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 179) 		if (IS_ERR(rdev)) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 180) 			dev_err(lp873->dev, "failed to register %s regulator\n",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 181) 				pdev->name);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 182) 			return PTR_ERR(rdev);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 183) 		}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 184) 	}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 185) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 186) 	return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 187) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 188) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 189) static const struct platform_device_id lp873x_regulator_id_table[] = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 190) 	{ "lp873x-regulator", },
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 191) 	{ /* sentinel */ }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 192) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 193) MODULE_DEVICE_TABLE(platform, lp873x_regulator_id_table);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 194) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 195) static struct platform_driver lp873x_regulator_driver = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 196) 	.driver = {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 197) 		.name = "lp873x-pmic",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 198) 	},
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 199) 	.probe = lp873x_regulator_probe,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 200) 	.id_table = lp873x_regulator_id_table,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 201) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 202) module_platform_driver(lp873x_regulator_driver);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 203) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 204) MODULE_AUTHOR("J Keerthy <j-keerthy@ti.com>");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 205) MODULE_DESCRIPTION("LP873X voltage regulator driver");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 206) MODULE_ALIAS("platform:lp873x-pmic");
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 207) MODULE_LICENSE("GPL v2");