Lines Matching +full:sy8106a +full:- +full:vdd
1 // SPDX-License-Identifier: GPL-2.0+
3 // sy8106a-regulator.c - Regulator device driver for SY8106A
6 // Copyright (c) 2017-2018 Icenowy Zheng <icenowy@aosc.io>
44 .name = "SY8106A",
48 .n_voltages = ((SY8106A_MAX_MV - SY8106A_MIN_MV) / SY8106A_STEP_MV) + 1,
55 * H3/H5 boards VDD-CPUX situations.
66 struct device *dev = &i2c->dev; in sy8106a_i2c_probe()
74 error = of_property_read_u32(dev->of_node, "silergy,fixed-microvolt", in sy8106a_i2c_probe()
81 return -EINVAL; in sy8106a_i2c_probe()
90 config.dev = &i2c->dev; in sy8106a_i2c_probe()
93 config.of_node = dev->of_node; in sy8106a_i2c_probe()
94 config.init_data = of_get_regulator_init_data(dev, dev->of_node, in sy8106a_i2c_probe()
98 return -ENOMEM; in sy8106a_i2c_probe()
106 vsel = (fixed_voltage / 1000 - SY8106A_MIN_MV) / in sy8106a_i2c_probe()
116 rdev = devm_regulator_register(&i2c->dev, &sy8106a_reg, &config); in sy8106a_i2c_probe()
119 dev_err(&i2c->dev, "Failed to register SY8106A regulator: %d\n", error); in sy8106a_i2c_probe()
127 { .compatible = "silergy,sy8106a" },
133 { "sy8106a" },
140 .name = "sy8106a",
152 MODULE_DESCRIPTION("Regulator device driver for Silergy SY8106A");