Home
last modified time | relevance | path

Searched +full:ums512 +full:- +full:thermal (Results 1 – 3 of 3) sorted by relevance

/Linux-v6.1/Documentation/devicetree/bindings/thermal/
Dsprd-thermal.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/thermal/sprd-thermal.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Spreadtrum thermal sensor controller bindings
10 - Orson Zhai <orsonzhai@gmail.com>
11 - Baolin Wang <baolin.wang7@gmail.com>
12 - Chunyan Zhang <zhang.lyra@gmail.com>
16 const: sprd,ums512-thermal
24 clock-names:
[all …]
/Linux-v6.1/drivers/thermal/
Dsprd_thermal.c1 // SPDX-License-Identifier: GPL-2.0
8 #include <linux/nvmem-consumer.h>
12 #include <linux/thermal.h>
57 /* thermal sensor calibration parameters */
58 #define SPRD_THM_TEMP_LOW -40000
139 return -EINVAL; in sprd_thm_cal_read()
154 * According to thermal datasheet, the default calibration offset is 64, in sprd_thm_sensor_calibration()
163 ratio += thm->ratio_sign * thm->ratio_off; in sprd_thm_sensor_calibration()
167 * calibration value of thermal from efuse, then calibrate the real in sprd_thm_sensor_calibration()
170 * b_cal = b + (dt_offset - 64) * 500. in sprd_thm_sensor_calibration()
[all …]
/Linux-v6.1/drivers/spi/
Dspi-sprd-adi.c4 * SPDX-License-Identifier: GPL-2.0
37 #define REG_ADI_CHN_ADDR(id) (0x44 + (id - 2) * 4)
54 * ADI slave devices include RTC, ADC, regulator, charger, thermal and so on.
160 if (reg >= sadi->data->slave_addr_size) { in sprd_adi_check_addr()
161 dev_err(sadi->dev, in sprd_adi_check_addr()
164 return -EINVAL; in sprd_adi_check_addr()
176 sts = readl_relaxed(sadi->base + REG_ADI_ARM_FIFO_STS); in sprd_adi_drain_fifo()
181 } while (--timeout); in sprd_adi_drain_fifo()
184 dev_err(sadi->dev, "drain write fifo timeout\n"); in sprd_adi_drain_fifo()
185 return -EBUSY; in sprd_adi_drain_fifo()
[all …]