Lines Matching +full:lochnagar2 +full:- +full:mic1vdd
1 // SPDX-License-Identifier: GPL-2.0
5 // Copyright (c) 2017-2018 Cirrus Logic, Inc. and
48 mutex_lock(&lochnagar->analogue_config_lock); in lochnagar_micbias_enable()
57 mutex_unlock(&lochnagar->analogue_config_lock); in lochnagar_micbias_enable()
67 mutex_lock(&lochnagar->analogue_config_lock); in lochnagar_micbias_disable()
76 mutex_unlock(&lochnagar->analogue_config_lock); in lochnagar_micbias_disable()
115 struct lochnagar *lochnagar = config->driver_data; in lochnagar_micbias_of_parse()
116 int shift = (desc->id - LOCHNAGAR_MIC1VDD) * in lochnagar_micbias_of_parse()
122 ret = of_property_read_u32(np, "cirrus,micbias-input", &val); in lochnagar_micbias_of_parse()
124 mutex_lock(&lochnagar->analogue_config_lock); in lochnagar_micbias_of_parse()
125 ret = regmap_update_bits(lochnagar->regmap, in lochnagar_micbias_of_parse()
128 mutex_unlock(&lochnagar->analogue_config_lock); in lochnagar_micbias_of_parse()
130 dev_err(lochnagar->dev, in lochnagar_micbias_of_parse()
164 .name = "MIC1VDD",
170 .of_match = of_match_ptr("MIC1VDD"),
221 .compatible = "cirrus,lochnagar2-micvdd",
225 .compatible = "cirrus,lochnagar2-mic1vdd",
229 .compatible = "cirrus,lochnagar2-mic2vdd",
233 .compatible = "cirrus,lochnagar2-vddcore",
242 struct device *dev = &pdev->dev; in lochnagar_regulator_probe()
243 struct lochnagar *lochnagar = dev_get_drvdata(dev->parent); in lochnagar_regulator_probe()
250 config.regmap = lochnagar->regmap; in lochnagar_regulator_probe()
255 return -EINVAL; in lochnagar_regulator_probe()
261 desc->name, ret); in lochnagar_regulator_probe()
270 .name = "lochnagar-regulator",
282 MODULE_ALIAS("platform:lochnagar-regulator");