Home
last modified time | relevance | path

Searched +full:adc +full:- +full:tm (Results 1 – 25 of 27) sorted by relevance

12

/Linux-v6.1/Documentation/devicetree/bindings/thermal/
Dqcom-spmi-adc-tm-hc.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/thermal/qcom-spmi-adc-tm-hc.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Qualcomm's SPMI PMIC ADC HC Thermal Monitoring
9 - Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
13 const: qcom,spmi-adc-tm-hc
21 "#thermal-sensor-cells":
27 "#address-cells":
30 "#size-cells":
[all …]
Dqcom-spmi-adc-tm5.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/thermal/qcom-spmi-adc-tm5.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Qualcomm's SPMI PMIC ADC Thermal Monitoring
9 - Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
14 - qcom,spmi-adc-tm5
15 - qcom,spmi-adc-tm5-gen2
23 "#thermal-sensor-cells":
29 "#address-cells":
[all …]
Dthermal-sensor.yaml1 # SPDX-License-Identifier: (GPL-2.0)
4 ---
5 $id: http://devicetree.org/schemas/thermal/thermal-sensor.yaml#
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
11 - Amit Kucheria <amitk@kernel.org>
20 - thermal-sensor: device that measures temperature, has SoC-specific bindings
21 - cooling-device: device used to dissipate heat either passively or actively
22 - thermal-zones: a container of the following node types used to describe all
25 This binding describes the thermal-sensor.
28 zones. Typical devices are I2C ADC converters and bandgaps. Thermal sensor
[all …]
/Linux-v6.1/drivers/thermal/qcom/
Dqcom-spmi-adc-tm5.c1 // SPDX-License-Identifier: GPL-2.0-only
6 * Copyright (c) 2012-2020, The Linux Foundation. All rights reserved.
12 #include <linux/iio/adc/qcom-vadc-common.h>
21 #include <asm-generic/unaligned.h>
27 * channel is programmed to use one of ADC channels for voltage comparison.
28 * Voltages are programmed using ADC codes, so we have to convert temp to
29 * voltage and then to ADC code value.
31 * Configuration of TM channels must match configuration of corresponding ADC
178 * struct adc_tm5_channel - ADC Thermal Monitoring channel data.
180 * @adc_channel: corresponding ADC channel number.
[all …]
Dtsens.h1 /* SPDX-License-Identifier: GPL-2.0 */
42 * struct tsens_sensor - data for each sensor connected to the tsens device
46 * @hw_id: HW ID can be used in case of platform-specific IDs
48 * @status: 8960-specific variable to track 8960 and 8660 status register offset
60 * struct tsens_ops - operations as supported by the tsens device
154 /* ----- SROT ------ */
165 /* ----- TM ------ */
493 * struct tsens_features - Features supported by the IP
496 * @adc: do the sensors only output adc code (instead of temperature)?
497 * @srot_split: does the IP neatly splits the register space into SROT and TM,
[all …]
Dtsens-v2.c1 // SPDX-License-Identifier: GPL-2.0
11 /* ----- SROT ------ */
15 /* ----- TM ------ */
34 .adc = 0,
40 /* ----- SROT ------ */
49 /* ----- TM ------ */
Dtsens.c1 // SPDX-License-Identifier: GPL-2.0
11 #include <linux/nvmem-consumer.h>
25 * struct tsens_irq_data - IRQ status and temperature violations
76 * and offset values are derived from tz->tzp->slope and tz->tzp->offset
85 for (i = 0; i < priv->num_sensors; i++) { in compute_intercept_slope()
86 dev_dbg(priv->dev, in compute_intercept_slope()
87 "%s: sensor%d - data_point1:%#x data_point2:%#x\n", in compute_intercept_slope()
90 if (!priv->sensor[i].slope) in compute_intercept_slope()
91 priv->sensor[i].slope = SLOPE_DEFAULT; in compute_intercept_slope()
94 * slope (m) = adc_code2 - adc_code1 (y2 - y1)/ in compute_intercept_slope()
[all …]
Dtsens-v1.c1 // SPDX-License-Identifier: GPL-2.0
12 /* ----- SROT ------ */
16 /* ----- TM ------ */
150 priv->sensor[0].slope = 3313; in compute_intercept_slope_8976()
151 priv->sensor[1].slope = 3275; in compute_intercept_slope_8976()
152 priv->sensor[2].slope = 3320; in compute_intercept_slope_8976()
153 priv->sensor[3].slope = 3246; in compute_intercept_slope_8976()
154 priv->sensor[4].slope = 3279; in compute_intercept_slope_8976()
155 priv->sensor[5].slope = 3257; in compute_intercept_slope_8976()
156 priv->sensor[6].slope = 3234; in compute_intercept_slope_8976()
[all …]
Dtsens-8960.c1 // SPDX-License-Identifier: GPL-2.0
41 #define S5_STATUS_OFF 0x3664 /* Sensors 5-10 found on apq8064/msm8960 */
48 /* Original slope - 350 to compensate mC to C inaccuracy */
59 struct regmap *map = priv->tm_map; in suspend_8960()
61 ret = regmap_read(map, THRESHOLD_ADDR, &priv->ctx.threshold); in suspend_8960()
65 ret = regmap_read(map, CNTL_ADDR, &priv->ctx.control); in suspend_8960()
69 if (priv->num_sensors > 1) in suspend_8960()
84 struct regmap *map = priv->tm_map; in resume_8960()
94 if (priv->num_sensors > 1) { in resume_8960()
100 ret = regmap_write(map, THRESHOLD_ADDR, priv->ctx.threshold); in resume_8960()
[all …]
Dtsens-v0_1.c1 // SPDX-License-Identifier: GPL-2.0
9 /* ----- SROT ------ */
12 /* ----- TM ------ */
233 qfprom_cdata = (u32 *)qfprom_read(priv->dev, "calib"); in calibrate_8916()
237 qfprom_csel = (u32 *)qfprom_read(priv->dev, "calib_sel"); in calibrate_8916()
244 dev_dbg(priv->dev, "calibration mode is %d\n", mode); in calibrate_8916()
254 for (i = 0; i < priv->num_sensors; i++) in calibrate_8916()
264 for (i = 0; i < priv->num_sensors; i++) in calibrate_8916()
268 for (i = 0; i < priv->num_sensors; i++) { in calibrate_8916()
290 qfprom_cdata = (u32 *)qfprom_read(priv->dev, "calib"); in calibrate_8939()
[all …]
/Linux-v6.1/Documentation/devicetree/bindings/mfd/
Dqcom,spmi-pmic.yaml1 # SPDX-License-Identifier: GPL-2.0-only
3 ---
4 $id: http://devicetree.org/schemas/mfd/qcom,spmi-pmic.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Qualcomm SPMI PMICs multi-function device
13 16-bit SPMI peripheral address space into 256 smaller fixed-size regions, 256 bytes
14 each. A function can consume one or more of these fixed-size register regions.
24 - Stephen Boyd <sboyd@kernel.org>
29 - pattern: '^pmic@.*$'
30 - pattern: '^pm(a|s)?[0-9]*@.*$'
[all …]
/Linux-v6.1/arch/arm64/boot/dts/qcom/
Dpm8998.dtsi1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
4 #include <dt-bindings/iio/qcom,spmi-vadc.h>
5 #include <dt-bindings/input/linux-event-codes.h>
6 #include <dt-bindings/interrupt-controller/irq.h>
7 #include <dt-bindings/spmi/spmi.h>
8 #include <dt-bindings/thermal/thermal.h>
11 thermal-zones {
12 pm8998-thermal {
13 polling-delay-passive = <250>;
14 polling-delay = <1000>;
[all …]
Dpm6150l.dtsi1 // SPDX-License-Identifier: BSD-3-Clause
4 #include <dt-bindings/iio/qcom,spmi-vadc.h>
5 #include <dt-bindings/interrupt-controller/irq.h>
6 #include <dt-bindings/spmi/spmi.h>
10 compatible = "qcom,pm6150l", "qcom,spmi-pmic";
12 #address-cells = <1>;
13 #size-cells = <0>;
15 pm6150l_adc: adc@3100 {
16 compatible = "qcom,spmi-adc5";
19 #address-cells = <1>;
[all …]
Dpm7250b.dtsi1 // SPDX-License-Identifier: BSD-3-Clause
6 #include <dt-bindings/interrupt-controller/irq.h>
7 #include <dt-bindings/spmi/spmi.h>
10 thermal-zones {
11 pm7250b-thermal {
12 polling-delay-passive = <100>;
13 polling-delay = <0>;
15 thermal-sensors = <&pm7250b_temp>;
42 compatible = "qcom,pm7250b", "qcom,spmi-pmic";
44 #address-cells = <1>;
[all …]
Dpmk8350.dtsi1 // SPDX-License-Identifier: BSD-3-Clause
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/input/linux-event-codes.h>
8 #include <dt-bindings/interrupt-controller/irq.h>
9 #include <dt-bindings/spmi/spmi.h>
13 compatible = "qcom,pmk8350", "qcom,spmi-pmic";
15 #address-cells = <1>;
16 #size-cells = <0>;
19 compatible = "qcom,pm8998-pon";
23 compatible = "qcom,pmk8350-pwrkey";
[all …]
Dpm6150.dtsi1 // SPDX-License-Identifier: BSD-3-Clause
4 #include <dt-bindings/iio/qcom,spmi-vadc.h>
5 #include <dt-bindings/input/linux-event-codes.h>
6 #include <dt-bindings/interrupt-controller/irq.h>
7 #include <dt-bindings/spmi/spmi.h>
8 #include <dt-bindings/thermal/thermal.h>
11 thermal-zones {
12 pm6150_thermal: pm6150-thermal {
13 polling-delay-passive = <100>;
14 polling-delay = <0>;
[all …]
Dpm8150l.dtsi1 // SPDX-License-Identifier: BSD-3-Clause
3 * Copyright (c) 2017-2019, The Linux Foundation. All rights reserved.
7 #include <dt-bindings/iio/qcom,spmi-vadc.h>
8 #include <dt-bindings/interrupt-controller/irq.h>
9 #include <dt-bindings/spmi/spmi.h>
12 thermal-zones {
13 pm8150l-thermal {
14 polling-delay-passive = <100>;
15 polling-delay = <0>;
17 thermal-sensors = <&pm8150l_temp>;
[all …]
Dpm8150b.dtsi1 // SPDX-License-Identifier: BSD-3-Clause
3 * Copyright (c) 2017-2019, The Linux Foundation. All rights reserved.
7 #include <dt-bindings/iio/qcom,spmi-vadc.h>
8 #include <dt-bindings/interrupt-controller/irq.h>
9 #include <dt-bindings/spmi/spmi.h>
12 thermal-zones {
13 pm8150b-thermal {
14 polling-delay-passive = <100>;
15 polling-delay = <0>;
17 thermal-sensors = <&pm8150b_temp>;
[all …]
Dpmm8155au_1.dtsi1 // SPDX-License-Identifier: BSD-3-Clause
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/interrupt-controller/irq.h>
8 #include <dt-bindings/spmi/spmi.h>
9 #include <dt-bindings/iio/qcom,spmi-vadc.h>
12 thermal-zones {
13 pmm8155au-1-thermal {
14 polling-delay-passive = <100>;
15 polling-delay = <0>;
17 thermal-sensors = <&pmm8155au_1_temp>;
[all …]
Dpm8150.dtsi1 // SPDX-License-Identifier: BSD-3-Clause
3 * Copyright (c) 2017-2019, The Linux Foundation. All rights reserved.
7 #include <dt-bindings/input/input.h>
8 #include <dt-bindings/interrupt-controller/irq.h>
9 #include <dt-bindings/spmi/spmi.h>
10 #include <dt-bindings/iio/qcom,spmi-vadc.h>
13 thermal-zones {
14 pm8150-thermal {
15 polling-delay-passive = <100>;
16 polling-delay = <0>;
[all …]
/Linux-v6.1/sound/mips/
Dhal2.c1 // SPDX-License-Identifier: GPL-2.0-only
6 * Based on OSS code from Ladislav Michl <ladis@linux-mips.org>, which
12 #include <linux/dma-mapping.h>
24 #include <sound/pcm-indirect.h>
29 static int index = SNDRV_DEFAULT_IDX1; /* Index 0-MAX */
47 unsigned int ctrl; /* Current state of pbus->pbdma_ctrl */
84 struct hal2_codec adc; member
87 #define H2_INDIRECT_WAIT(regs) while (hal2_read(&regs->isr) & H2_ISR_TSTATUS);
106 struct hal2_ctl_regs *regs = hal2->ctl_regs; in hal2_i_read32()
108 hal2_write(H2_READ_ADDR(addr), &regs->iar); in hal2_i_read32()
[all …]
/Linux-v6.1/drivers/input/touchscreen/
DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
20 support for the built-in touchscreen.
25 module will be called 88pm860x-ts.
34 and your board-specific setup code includes that in its
51 AD7877 controller, and your board-specific initialization
60 tristate "Analog Devices AD7879-1/AD7889-1 touchscreen interface"
63 the AD7879-1/AD7889-1 controller.
75 Say Y here if you have AD7879-1/AD7889-1 hooked to an I2C bus.
78 module will be called ad7879-i2c.
85 Say Y here if you have AD7879-1/AD7889-1 hooked to a SPI bus.
[all …]
/Linux-v6.1/sound/pci/ice1712/
Dice1712.c1 // SPDX-License-Identifier: GPL-2.0-or-later
10 - spdif nonaudio consumer mode does not work (at least with my
11 Sony STR-DB830)
18 * split the code to several files. each low-level routine
25 * I also haven't done anything with the internal S/PDIF transmitter or the MPU-401
40 #include <linux/dma-mapping.h>
64 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */
69 static int cs8427_timeout[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS-1)] = 500}; /* CS8427 S/PDIF transcei…
79 MODULE_PARM_DESC(omni, "Enable Midiman M-Audio Delta Omni I/O support.");
106 /* check whether the clock mode is spdif-in */
[all …]
Dice1724.c1 // SPDX-License-Identifier: GPL-2.0-or-later
48 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */
86 /* check whether the clock mode is spdif-in */
97 return (!ice->is_spdif_master(ice)) && PRO_RATE_LOCKED; in is_pro_rate_locked()
107 int tm; in snd_vt1724_ac97_ready() local
108 for (tm = 0; tm < 0x10000; tm++) { in snd_vt1724_ac97_ready()
116 dev_dbg(ice->card->dev, "snd_vt1724_ac97_ready: timeout\n"); in snd_vt1724_ac97_ready()
122 int tm; in snd_vt1724_ac97_wait_bit() local
123 for (tm = 0; tm < 0x10000; tm++) in snd_vt1724_ac97_wait_bit()
126 dev_dbg(ice->card->dev, "snd_vt1724_ac97_wait_bit: timeout\n"); in snd_vt1724_ac97_wait_bit()
[all …]
/Linux-v6.1/Documentation/sound/cards/
Daudiophile-usb.rst2 Guide to using M-Audio Audiophile USB with ALSA and Jack
9 This document is a guide to using the M-Audio Audiophile USB (tm) device with
15 * v1.4 - Thibault Le Meur (2007-07-11)
17 - Added Low Endianness nature of 16bits-modes
19 - Modifying document structure
21 * v1.5 - Thibault Le Meur (2007-07-12)
22 - Added AC3/DTS passthru info
35 - This port supports 2 pairs of line-level audio inputs (1/4" TS and RCA)
36 - When the 1/4" TS (jack) connectors are connected, the RCA connectors
45 The internal DAC/ADC has the following characteristics:
[all …]

12