Lines Matching +full:lochnagar2 +full:- +full:mic1vdd

1 // SPDX-License-Identifier: GPL-2.0
5 // Copyright (c) 2017-2018 Cirrus Logic, Inc. and
49 mutex_lock(&lochnagar->analogue_config_lock); in lochnagar_micbias_enable()
58 mutex_unlock(&lochnagar->analogue_config_lock); in lochnagar_micbias_enable()
68 mutex_lock(&lochnagar->analogue_config_lock); in lochnagar_micbias_disable()
77 mutex_unlock(&lochnagar->analogue_config_lock); in lochnagar_micbias_disable()
116 struct lochnagar *lochnagar = config->driver_data; in lochnagar_micbias_of_parse()
117 int shift = (desc->id - LOCHNAGAR_MIC1VDD) * in lochnagar_micbias_of_parse()
123 ret = of_property_read_u32(np, "cirrus,micbias-input", &val); in lochnagar_micbias_of_parse()
125 mutex_lock(&lochnagar->analogue_config_lock); in lochnagar_micbias_of_parse()
126 ret = regmap_update_bits(lochnagar->regmap, in lochnagar_micbias_of_parse()
129 mutex_unlock(&lochnagar->analogue_config_lock); in lochnagar_micbias_of_parse()
131 dev_err(lochnagar->dev, in lochnagar_micbias_of_parse()
165 .name = "MIC1VDD",
171 .of_match = of_match_ptr("MIC1VDD"),
222 .compatible = "cirrus,lochnagar2-micvdd",
226 .compatible = "cirrus,lochnagar2-mic1vdd",
230 .compatible = "cirrus,lochnagar2-mic2vdd",
234 .compatible = "cirrus,lochnagar2-vddcore",
243 struct device *dev = &pdev->dev; in lochnagar_regulator_probe()
244 struct lochnagar *lochnagar = dev_get_drvdata(dev->parent); in lochnagar_regulator_probe()
252 config.regmap = lochnagar->regmap; in lochnagar_regulator_probe()
257 return -EINVAL; in lochnagar_regulator_probe()
259 desc = of_id->data; in lochnagar_regulator_probe()
265 desc->name, ret); in lochnagar_regulator_probe()
274 .name = "lochnagar-regulator",
285 MODULE_ALIAS("platform:lochnagar-regulator");