Searched +full:lochnagar2 +full:- +full:micvdd (Results 1 – 3 of 3) sorted by relevance
/linux/Documentation/devicetree/bindings/mfd/ |
H A D | cirrus,lochnagar.yaml | 1 # 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/drivers/regulator/ |
H A D | lochnagar-regulator.c | 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() [all …]
|
/linux/drivers/hwmon/ |
H A D | lochnagar-hwmon.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (c) 2016-2019 Cirrus Logic, Inc. and 13 #include <linux/hwmon-sysfs.h> 38 "MICVDD", 57 * float_to_long - Convert ieee754 reading from hardware to an integer 66 * will convert that into an integer in a smaller unit such as micro-amps 67 * or milli-celsius. The hardware does not return NaN, so consideration of 73 int exp = ((data & 0x7F800000) >> 23) - 127 - 23; in float_to_long() 79 if (fls64(man) + exp > (int)sizeof(long) * 8 - 1) in float_to_long() 82 result = (man + (1ull << (-exp - 1))) >> -exp; in float_to_long() [all …]
|