Home
last modified time | relevance | path

Searched +full:ls2k1000 +full:- +full:thermal (Results 1 – 2 of 2) sorted by relevance

/linux/Documentation/devicetree/bindings/thermal/
H A Dloongson,ls2k-thermal.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/thermal/loongson,ls2k-thermal.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Thermal sensors on Loongson-2 SoCs
10 - zhanghongchen <zhanghongchen@loongson.cn>
11 - Yinbo Zhu <zhuyinbo@loongson.cn>
14 - $ref: /schemas/thermal/thermal-sensor.yaml#
19 - enum:
20 - loongson,ls2k1000-thermal
[all …]
/linux/drivers/thermal/
H A Dloongson2_thermal.c1 // SPDX-License-Identifier: GPL-2.0+
5 * Copyright (C) 2022-2023 Loongson Technology Corporation Limited
15 #include <linux/thermal.h>
35 * method of the Loongson-2K2000
54 int reg_off = data->chip_data->thermal_sensor_sel * 2; in loongson2_set_ctrl_regs()
59 writew(reg_ctrl, data->ctrl_reg + ctrl_reg + reg_off); in loongson2_set_ctrl_regs()
66 loongson2_set_ctrl_regs(data, clamp(-40, low, high), true, enable); in loongson2_thermal_set()
79 val = readl(data->ctrl_reg + LOONGSON2_THSENS_OUT_REG); in loongson2_2k1000_get_temp()
80 *temp = ((val & LOONGSON2_THSENS_OUT_MASK) - HECTO) * KILO; in loongson2_2k1000_get_temp()
90 val = readl(data->temp_reg); in loongson2_2k2000_get_temp()
[all …]