Home
last modified time | relevance | path

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

12

/openbmc/linux/Documentation/devicetree/bindings/thermal/
H A 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 …]
H A 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
16 - qcom,adc-tm7 # Incomplete / subject to change
24 "#thermal-sensor-cells":
[all …]
H A 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 …]
/openbmc/linux/drivers/thermal/qcom/
H A 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>
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.
186 * @avg_samples: ability to provide single result from the ADC
[all …]
H A Dtsens-v2.c1 // SPDX-License-Identifier: GPL-2.0
11 /* ----- SROT ------ */
15 /* ----- TM ------ */
35 .adc = 0,
38 .trip_min_temp = -40000,
46 .adc = 0,
54 /* ----- SROT ------ */
63 /* ----- TM ------ */
H A Dtsens.h1 /* SPDX-License-Identifier: GPL-2.0 */
47 * struct tsens_sensor - data for each sensor connected to the tsens device
51 * @hw_id: HW ID can be used in case of platform-specific IDs
53 * @status: 8960-specific variable to track 8960 and 8660 status register offset
67 * struct tsens_ops - operations as supported by the tsens device
161 /* ----- SROT ------ */
172 /* ----- TM ------ */
500 * struct tsens_features - Features supported by the IP
504 * @adc: do the sensors only output adc code (instead of temperature)?
505 * @srot_split: does the IP neatly splits the register space into SROT and TM,
[all …]
H A Dtsens-v1.c1 // SPDX-License-Identifier: GPL-2.0
12 /* ----- SROT ------ */
16 /* ----- TM ------ */
55 qfprom_cdata = (u32 *)qfprom_read(priv->dev, "calib"); in calibrate_v1()
75 .adc = 1,
78 .trip_min_temp = -40000,
83 /* ----- SROT ------ */
93 /* ----- TM ------ */
138 priv->sensor[0].slope = 3313; in init_8956()
139 priv->sensor[1].slope = 3275; in init_8956()
[all …]
H A Dtsens.c1 // SPDX-License-Identifier: GPL-2.0
11 #include <linux/nvmem-consumer.h>
25 * struct tsens_irq_data - IRQ status and temperature violations
80 if (priv->num_sensors > MAX_SENSORS) in tsens_read_calibration()
81 return -EINVAL; in tsens_read_calibration()
87 ret = nvmem_cell_read_variable_le_u32(priv->dev, name, &mode); in tsens_read_calibration()
88 if (ret == -ENOENT) in tsens_read_calibration()
89 dev_warn(priv->dev, "Please migrate to separate nvmem cells for calibration data\n"); in tsens_read_calibration()
93 dev_dbg(priv->dev, "calibration mode is %d\n", mode); in tsens_read_calibration()
99 ret = nvmem_cell_read_variable_le_u32(priv->dev, name, &base1); in tsens_read_calibration()
[all …]
H A Dtsens-v0_1.c1 // SPDX-License-Identifier: GPL-2.0
7 #include <linux/nvmem-consumer.h>
11 /* ----- SROT ------ */
14 /* ----- TM ------ */
96 qfprom_cdata = (u32 *)qfprom_read(priv->dev, "calib"); in calibrate_8916()
100 qfprom_csel = (u32 *)qfprom_read(priv->dev, "calib_sel"); in calibrate_8916()
152 ret = nvmem_cell_read_variable_le_u32(priv->dev, "use_backup", &backup); in calibrate_8974_nvmem()
153 if (ret == -ENOENT) in calibrate_8974_nvmem()
154 dev_warn(priv->dev, "Please migrate to separate nvmem cells for calibration data\n"); in calibrate_8974_nvmem()
180 calib = (u32 *)qfprom_read(priv->dev, "calib"); in calibrate_8974()
[all …]
/openbmc/linux/Documentation/devicetree/bindings/mfd/
H A 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 …]
/openbmc/linux/arch/arm64/boot/dts/qcom/
H A 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 …]
H A Dsc8180x-pmics.dtsi1 // SPDX-License-Identifier: BSD-3-Clause
3 * Copyright (c) 2017-2019, The Linux Foundation. All rights reserved.
4 * Copyright (c) 2021-2023, Linaro Limited
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 pmc8180-thermal {
15 polling-delay-passive = <100>;
[all …]
H A Dpm6150.dtsi1 // SPDX-License-Identifier: BSD-3-Clause
6 #include <dt-bindings/iio/qcom,spmi-vadc.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>
10 #include <dt-bindings/thermal/thermal.h>
13 thermal-zones {
14 pm6150_thermal: pm6150-thermal {
15 polling-delay-passive = <100>;
17 thermal-sensors = <&pm6150_temp>;
[all …]
H A 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>
17 reboot-mode {
18 compatible = "nvmem-reboot-mode";
19 nvmem-cells = <&reboot_reason>;
20 nvmem-cell-names = "reboot-mode";
21 mode-recovery = <0x01>;
[all …]
H A 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 …]
H A 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 …]
H A 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 …]
H A Dpm6150l.dtsi1 // SPDX-License-Identifier: BSD-3-Clause
6 #include <dt-bindings/iio/qcom,spmi-vadc.h>
7 #include <dt-bindings/interrupt-controller/irq.h>
8 #include <dt-bindings/spmi/spmi.h>
11 thermal-zones {
12 pm6150l-thermal {
13 thermal-sensors = <&pm6150l_temp>;
40 compatible = "qcom,pm6150l", "qcom,spmi-pmic";
42 #address-cells = <1>;
43 #size-cells = <0>;
[all …]
H A 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 …]
H A Dpm6125.dtsi1 // SPDX-License-Identifier: BSD-3-Clause
3 #include <dt-bindings/iio/qcom,spmi-vadc.h>
4 #include <dt-bindings/input/input.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>
10 thermal-zones {
11 pm6125-thermal {
12 polling-delay-passive = <100>;
13 polling-delay = <0>;
[all …]
H A Dpm7250b.dtsi1 // SPDX-License-Identifier: BSD-3-Clause
6 #include <dt-bindings/iio/qcom,spmi-vadc.h>
7 #include <dt-bindings/interrupt-controller/irq.h>
8 #include <dt-bindings/spmi/spmi.h>
11 thermal-zones {
12 pm7250b-thermal {
13 polling-delay-passive = <100>;
14 polling-delay = <0>;
16 thermal-sensors = <&pm7250b_temp>;
43 compatible = "qcom,pm7250b", "qcom,spmi-pmic";
[all …]
H A Dpmi632.dtsi1 // SPDX-License-Identifier: BSD-3-Clause
6 #include <dt-bindings/iio/qcom,spmi-vadc.h>
7 #include <dt-bindings/interrupt-controller/irq.h>
8 #include <dt-bindings/spmi/spmi.h>
11 thermal-zones {
12 pmi632-thermal {
13 polling-delay-passive = <100>;
14 polling-delay = <0>;
16 thermal-sensors = <&pmi632_temp>;
43 compatible = "qcom,pmi632", "qcom,spmi-pmic";
[all …]
H A Dsc8280xp-pmics.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>
11 thermal-zones {
12 pm8280_1_thermal: pm8280-1-thermal {
13 polling-delay-passive = <100>;
14 polling-delay = <0>;
15 thermal-sensors = <&pm8280_1_temp_alarm>;
32 pm8280_2_thermal: pm8280-2-thermal {
[all …]
/openbmc/linux/sound/mips/
H A 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 …]
/openbmc/linux/drivers/input/touchscreen/
H A 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 …]

12