Searched +full:as370 +full:- +full:hwmon (Results 1 – 2 of 2) sorted by relevance
1 // SPDX-License-Identifier: GPL-2.03 * Synaptics AS370 SoC Hardware Monitoring Driver10 #include <linux/hwmon.h>32 static void init_pvt(struct as370_hwmon *hwmon) in init_pvt() argument35 void __iomem *addr = hwmon->base + CTRL; in init_pvt()51 struct as370_hwmon *hwmon = dev_get_drvdata(dev); in as370_hwmon_read() local55 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 …]
1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause3 ---4 $id: http://devicetree.org/schemas/hwmon/syna,as370.yaml#5 $schema: http://devicetree.org/meta-schemas/core.yaml#7 title: Synaptics AS370 PVT sensors10 - Javier Carrasco <javier.carrasco.cruz@gmail.com>14 const: syna,as370-hwmon22 - compatible23 - reg28 - |[all …]