/linux-6.12.1/Documentation/devicetree/bindings/thermal/ |
D | qcom-spmi-adc-tm-hc.yaml | 1 # 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> 11 $ref: thermal-sensor.yaml# 15 const: qcom,spmi-adc-tm-hc 23 "#thermal-sensor-cells": 26 "#address-cells": [all …]
|
D | qcom-spmi-adc-tm5.yaml | 1 # 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> 11 $ref: thermal-sensor.yaml# 16 - qcom,spmi-adc-tm5 17 - qcom,spmi-adc-tm5-gen2 18 - qcom,adc-tm7 # Incomplete / subject to change [all …]
|
D | thermal-sensor.yaml | 1 # 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-6.12.1/drivers/thermal/qcom/ |
D | qcom-spmi-adc-tm5.c | 1 // 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 …]
|
D | tsens-v2.c | 1 // 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 ------ */
|
D | tsens.h | 1 /* 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 …]
|
D | tsens-v1.c | 1 // 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 …]
|
D | tsens.c | 1 // SPDX-License-Identifier: GPL-2.0 11 #include <linux/nvmem-consumer.h> 26 * struct tsens_irq_data - IRQ status and temperature violations 81 if (priv->num_sensors > MAX_SENSORS) in tsens_read_calibration() 82 return -EINVAL; in tsens_read_calibration() 88 ret = nvmem_cell_read_variable_le_u32(priv->dev, name, &mode); in tsens_read_calibration() 89 if (ret == -ENOENT) in tsens_read_calibration() 90 dev_warn(priv->dev, "Please migrate to separate nvmem cells for calibration data\n"); in tsens_read_calibration() 94 dev_dbg(priv->dev, "calibration mode is %d\n", mode); in tsens_read_calibration() 100 ret = nvmem_cell_read_variable_le_u32(priv->dev, name, &base1); in tsens_read_calibration() [all …]
|
D | tsens-v0_1.c | 1 // 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 …]
|
D | tsens-8960.c | 1 // 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 …]
|
/linux-6.12.1/Documentation/devicetree/bindings/mfd/ |
D | qcom,spmi-pmic.yaml | 1 # 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-6.12.1/arch/arm64/boot/dts/qcom/ |
D | pm8998.dtsi | 1 // 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>; 15 thermal-sensors = <&pm8998_temp>; [all …]
|
D | sc8180x-pmics.dtsi | 1 // 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 …]
|
D | pmk8350.dtsi | 1 // 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 …]
|
D | pm6150l.dtsi | 1 // 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 …]
|
D | pmm8155au_1.dtsi | 1 // 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>; 16 thermal-sensors = <&pmm8155au_1_temp>; 43 compatible = "qcom,pmm8155au", "qcom,spmi-pmic"; [all …]
|
D | pm8150l.dtsi | 1 // 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>; 16 thermal-sensors = <&pm8150l_temp>; 43 compatible = "qcom,pm8150l", "qcom,spmi-pmic"; [all …]
|
D | pm8150.dtsi | 1 // 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>; 17 thermal-sensors = <&pm8150_temp>; [all …]
|
D | pm6125.dtsi | 1 // 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>; 14 thermal-sensors = <&pm6125_temp>; [all …]
|
D | pm6150.dtsi | 1 // 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 …]
|
D | pm8150b.dtsi | 1 // 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>; 16 thermal-sensors = <&pm8150b_temp>; 43 compatible = "qcom,pm8150b", "qcom,spmi-pmic"; [all …]
|
D | pmi632.dtsi | 1 // 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>; 15 thermal-sensors = <&pmi632_temp>; 42 compatible = "qcom,pmi632", "qcom,spmi-pmic"; 44 #address-cells = <1>; [all …]
|
D | pm7250b.dtsi | 1 // 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>; 15 thermal-sensors = <&pm7250b_temp>; 42 compatible = "qcom,pm7250b", "qcom,spmi-pmic"; 44 #address-cells = <1>; [all …]
|
D | sc8280xp-pmics.dtsi | 1 // SPDX-License-Identifier: BSD-3-Clause 6 #include <dt-bindings/iio/qcom,spmi-adc7-pm8350.h> 7 #include <dt-bindings/iio/qcom,spmi-adc7-pmk8350.h> 8 #include <dt-bindings/iio/qcom,spmi-adc7-pmr735a.h> 9 #include <dt-bindings/input/input.h> 10 #include <dt-bindings/interrupt-controller/irq.h> 11 #include <dt-bindings/spmi/spmi.h> 14 thermal-zones { 15 pm8280_1_thermal: pm8280-1-thermal { 16 polling-delay-passive = <100>; [all …]
|
/linux-6.12.1/sound/mips/ |
D | hal2.c | 1 // 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(®s->isr) & H2_ISR_TSTATUS); 106 struct hal2_ctl_regs *regs = hal2->ctl_regs; in hal2_i_read32() 108 hal2_write(H2_READ_ADDR(addr), ®s->iar); in hal2_i_read32() [all …]
|