Home
last modified time | relevance | path

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

/linux-6.12.1/Documentation/devicetree/bindings/thermal/
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-6.12.1/arch/loongarch/boot/dts/
Dloongson-2k1000.dtsi1 // SPDX-License-Identifier: GPL-2.0
6 /dts-v1/;
8 #include <dt-bindings/interrupt-controller/irq.h>
9 #include <dt-bindings/clock/loongson,ls2k-clk.h>
10 #include <dt-bindings/gpio/gpio.h>
13 #address-cells = <2>;
14 #size-cells = <2>;
17 #address-cells = <1>;
18 #size-cells = <0>;
35 ref_100m: clock-ref-100m {
[all …]
Dloongson-2k0500.dtsi1 // SPDX-License-Identifier: GPL-2.0
6 /dts-v1/;
8 #include <dt-bindings/interrupt-controller/irq.h>
9 #include <dt-bindings/clock/loongson,ls2k-clk.h>
12 #address-cells = <2>;
13 #size-cells = <2>;
16 #address-cells = <1>;
17 #size-cells = <0>;
27 ref_100m: clock-ref-100m {
28 compatible = "fixed-clock";
[all …]
/linux-6.12.1/drivers/thermal/
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 …]