Home
last modified time | relevance | path

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

/linux-6.12.1/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:
32 [7] Hardware Monitor: ../hwmon/cirrus,lochnagar.yaml
35 - if:
[all …]
/linux-6.12.1/Documentation/devicetree/bindings/hwmon/
Dcirrus,lochnagar.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
4 $id: http://devicetree.org/schemas/hwmon/cirrus,lochnagar.yaml#
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 various
30 - cirrus,lochnagar2-hwmon
33 - compatible
/linux-6.12.1/drivers/hwmon/
Dlochnagar-hwmon.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (c) 2016-2019 Cirrus Logic, Inc. and
12 #include <linux/hwmon.h>
13 #include <linux/hwmon-sysfs.h>
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 …]