Home
last modified time | relevance | path

Searched +full:lochnagar2 +full:- +full:micvdd (Results 1 – 3 of 3) sorted by relevance

/Linux-v5.10/Documentation/devicetree/bindings/mfd/
Dcirrus,lochnagar.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - patches@opensource.cirrus.com
15 Logic devices on mini-cards, as well as allowing connection of
25 [2] include/dt-bindings/pinctrl/lochnagar.h
26 [3] include/dt-bindings/clock/lochnagar.h
28 And these documents for the required sub-node binding details:
35 - if:
39 - cirrus,lochnagar2
[all …]
/Linux-v5.10/drivers/regulator/
Dlochnagar-regulator.c1 // 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()
[all …]
/Linux-v5.10/drivers/hwmon/
Dlochnagar-hwmon.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (c) 2016-2019 Cirrus Logic, Inc. and
13 #include <linux/hwmon-sysfs.h>
40 "MICVDD",
59 * float_to_long - Convert ieee754 reading from hardware to an integer
68 * will convert that into an integer in a smaller unit such as micro-amps
69 * or milli-celsius. The hardware does not return NaN, so consideration of
75 int exp = ((data & 0x7F800000) >> 23) - 127 - 23; in float_to_long()
81 if (fls64(man) + exp > (int)sizeof(long) * 8 - 1) in float_to_long()
84 result = (man + (1ull << (-exp - 1))) >> -exp; in float_to_long()
[all …]