Home
last modified time | relevance | path

Searched +full:as370 +full:- +full:hwmon (Results 1 – 2 of 2) sorted by relevance

/linux/drivers/hwmon/
H A Das370-hwmon.c1 // SPDX-License-Identifier: GPL-2.0
3 * Synaptics AS370 SoC Hardware Monitoring Driver
10 #include <linux/hwmon.h>
32 static void init_pvt(struct as370_hwmon *hwmon) in init_pvt() argument
35 void __iomem *addr = hwmon->base + CTRL; in init_pvt()
51 struct as370_hwmon *hwmon = dev_get_drvdata(dev); in as370_hwmon_read() local
55 val = readl_relaxed(hwmon->base + STS) & BN_MASK; in as370_hwmon_read()
56 *temp = DIV_ROUND_CLOSEST(val * 251802, 4096) - 85525; in as370_hwmon_read()
59 return -EOPNOTSUPP; in as370_hwmon_read()
98 struct as370_hwmon *hwmon; in as370_hwmon_probe() local
[all …]
/linux/Documentation/devicetree/bindings/hwmon/
H A Dsyna,as370.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
4 $id: http://devicetree.org/schemas/hwmon/syna,as370.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Synaptics AS370 PVT sensors
10 - Javier Carrasco <javier.carrasco.cruz@gmail.com>
14 const: syna,as370-hwmon
22 - compatible
23 - reg
28 - |
[all …]