Lines Matching +full:spmi +full:- +full:adc +full:- +full:rev2
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>
13 const: qcom,spmi-adc-tm-hc
21 "#thermal-sensor-cells":
27 "#address-cells":
30 "#size-cells":
33 qcom,avg-samples:
37 - 1
38 - 2
39 - 4
40 - 8
41 - 16
46 description: This parameter is used to decrease ADC sampling rate.
49 - 256
50 - 512
51 - 1024
55 "^([-a-z0-9]*)@[0-7]$":
62 description: Specify the sensor channel. There are 8 channels in PMIC5's ADC TM
66 io-channels:
68 From common IIO binding. Used to pipe PMIC ADC channel to thermal monitor
79 qcom,hw-settle-time-us:
80 description: Time between AMUX getting configured and the ADC starting conversion.
83 qcom,pre-scaling:
84 $ref: /schemas/types.yaml#/definitions/uint32-array
87 pre-determined ratio and use it for post scaling. It is a pair of
90 signal is scaled down to 1/3 of its value before ADC measurement. If
93 - const: 1
94 - enum: [ 1, 3, 4, 6, 20, 8, 10 ]
97 - reg
98 - io-channels
104 - compatible
105 - reg
106 - interrupts
107 - "#address-cells"
108 - "#size-cells"
109 - "#thermal-sensor-cells"
114 - |
115 #include <dt-bindings/iio/qcom,spmi-vadc.h>
116 #include <dt-bindings/interrupt-controller/irq.h>
118 #address-cells = <1>;
119 #size-cells = <0>;
120 pm8998_adc: adc@3100 {
122 compatible = "qcom,spmi-adc-rev2";
123 #address-cells = <1>;
124 #size-cells = <0>;
125 #io-channel-cells = <1>;
128 adc-chan@4c {
133 pm8998_adc_tm: adc-tm@3400 {
134 compatible = "qcom,spmi-adc-tm-hc";
137 #thermal-sensor-cells = <1>;
138 #address-cells = <1>;
139 #size-cells = <0>;
143 io-channels = <&pm8998_adc ADC5_XO_THERM_100K_PU>;
145 qcom,hw-settle-time-us = <200>;