|
5 | 5 |
|
6 | 6 | #include <dt-bindings/input/input.h> |
7 | 7 | #include <dt-bindings/spmi/spmi.h> |
| 8 | +#include "qcom-adc5-gen3.h" |
8 | 9 |
|
9 | 10 | / { |
10 | 11 | thermal-zones { |
|
110 | 111 | reg = <0xa00>; |
111 | 112 | interrupts-extended = <&spmi_bus 0x0 0xa 0x0 IRQ_TYPE_EDGE_BOTH>; |
112 | 113 | #thermal-sensor-cells = <0>; |
| 114 | + io-channels = <&pmm8654au_0_adc ADC5_GEN3_DIE_TEMP(0)>; |
| 115 | + io-channel-names = "thermal"; |
113 | 116 | }; |
114 | 117 |
|
115 | 118 | pmm8654au_0_pon: pon@1200 { |
|
132 | 135 | }; |
133 | 136 | }; |
134 | 137 |
|
| 138 | + pmm8654au_0_rtc: rtc@6100 { |
| 139 | + compatible = "qcom,pmk8350-rtc"; |
| 140 | + reg = <0x6100>, |
| 141 | + <0x6200>; |
| 142 | + reg-names = "rtc", |
| 143 | + "alarm"; |
| 144 | + interrupts = <0x0 0x62 0x1 IRQ_TYPE_EDGE_RISING>; |
| 145 | + }; |
| 146 | + |
| 147 | + pmm8654au_0_adc: adc@8000 { |
| 148 | + compatible = "qcom,spmi-adc5-gen3"; |
| 149 | + reg = <0x8000>; |
| 150 | + #address-cells = <1>; |
| 151 | + #size-cells = <0>; |
| 152 | + interrupts = <0x0 0x80 0x1 IRQ_TYPE_EDGE_RISING>; |
| 153 | + #io-channel-cells = <1>; |
| 154 | + |
| 155 | + channel@3 { |
| 156 | + reg = <ADC5_GEN3_DIE_TEMP(0)>; |
| 157 | + label = "pmm8654au_0_die_temp"; |
| 158 | + qcom,pre-scaling = <1 1>; |
| 159 | + }; |
| 160 | + |
| 161 | + channel@8e { |
| 162 | + reg = <ADC5_GEN3_VPH_PWR(0)>; |
| 163 | + label = "pmm8654au_0_vph_pwr"; |
| 164 | + qcom,pre-scaling = <1 3>; |
| 165 | + }; |
| 166 | + }; |
| 167 | + |
135 | 168 | pmm8654au_0_gpios: gpio@8800 { |
136 | 169 | compatible = "qcom,pmm8654au-gpio", "qcom,spmi-gpio"; |
137 | 170 | reg = <0x8800>; |
|
167 | 200 | reg = <0xa00>; |
168 | 201 | interrupts-extended = <&spmi_bus 0x2 0xa 0x0 IRQ_TYPE_EDGE_BOTH>; |
169 | 202 | #thermal-sensor-cells = <0>; |
| 203 | + io-channels = <&pmm8654au_1_adc ADC5_GEN3_DIE_TEMP(2)>; |
| 204 | + io-channel-names = "thermal"; |
| 205 | + }; |
| 206 | + |
| 207 | + pmm8654au_1_adc: adc@8000 { |
| 208 | + compatible = "qcom,spmi-adc5-gen3"; |
| 209 | + reg = <0x8000>; |
| 210 | + #address-cells = <1>; |
| 211 | + #size-cells = <0>; |
| 212 | + interrupts = <0x2 0x80 0x1 IRQ_TYPE_EDGE_RISING>; |
| 213 | + #io-channel-cells = <1>; |
| 214 | + |
| 215 | + channel@203 { |
| 216 | + reg = <ADC5_GEN3_DIE_TEMP(2)>; |
| 217 | + label = "pmm8654au_1_die_temp"; |
| 218 | + qcom,pre-scaling = <1 1>; |
| 219 | + }; |
| 220 | + |
| 221 | + channel@28e { |
| 222 | + reg = <ADC5_GEN3_VPH_PWR(2)>; |
| 223 | + label = "pmm8654au_1_vph_pwr"; |
| 224 | + qcom,pre-scaling = <1 3>; |
| 225 | + }; |
170 | 226 | }; |
171 | 227 |
|
172 | 228 | pmm8654au_1_gpios: gpio@8800 { |
|
191 | 247 | reg = <0xa00>; |
192 | 248 | interrupts-extended = <&spmi_bus 0x4 0xa 0x0 IRQ_TYPE_EDGE_BOTH>; |
193 | 249 | #thermal-sensor-cells = <0>; |
| 250 | + io-channels = <&pmm8654au_2_adc ADC5_GEN3_DIE_TEMP(4)>; |
| 251 | + io-channel-names = "thermal"; |
| 252 | + }; |
| 253 | + |
| 254 | + pmm8654au_2_adc: adc@8000 { |
| 255 | + compatible = "qcom,spmi-adc5-gen3"; |
| 256 | + reg = <0x8000>; |
| 257 | + #address-cells = <1>; |
| 258 | + #size-cells = <0>; |
| 259 | + interrupts = <0x4 0x80 0x1 IRQ_TYPE_EDGE_RISING>; |
| 260 | + #io-channel-cells = <1>; |
| 261 | + |
| 262 | + channel@403 { |
| 263 | + reg = <ADC5_GEN3_DIE_TEMP(4)>; |
| 264 | + label = "pmm8654au_2_die_temp"; |
| 265 | + qcom,pre-scaling = <1 1>; |
| 266 | + }; |
| 267 | + |
| 268 | + channel@48e { |
| 269 | + reg = <ADC5_GEN3_VPH_PWR(4)>; |
| 270 | + label = "pmm8654au_2_vph_pwr"; |
| 271 | + qcom,pre-scaling = <1 3>; |
| 272 | + }; |
194 | 273 | }; |
195 | 274 |
|
196 | 275 | pmm8654au_2_gpios: gpio@8800 { |
|
215 | 294 | reg = <0xa00>; |
216 | 295 | interrupts-extended = <&spmi_bus 0x6 0xa 0x0 IRQ_TYPE_EDGE_BOTH>; |
217 | 296 | #thermal-sensor-cells = <0>; |
| 297 | + io-channels = <&pmm8654au_3_adc ADC5_GEN3_DIE_TEMP(6)>; |
| 298 | + io-channel-names = "thermal"; |
| 299 | + }; |
| 300 | + |
| 301 | + pmm8654au_3_adc: adc@8000 { |
| 302 | + compatible = "qcom,spmi-adc5-gen3"; |
| 303 | + reg = <0x8000>; |
| 304 | + #address-cells = <1>; |
| 305 | + #size-cells = <0>; |
| 306 | + interrupts = <0x6 0x80 0x1 IRQ_TYPE_EDGE_RISING>; |
| 307 | + #io-channel-cells = <1>; |
| 308 | + |
| 309 | + channel@603 { |
| 310 | + reg = <ADC5_GEN3_DIE_TEMP(6)>; |
| 311 | + label = "pmm8654au_3_die_temp"; |
| 312 | + qcom,pre-scaling = <1 1>; |
| 313 | + }; |
| 314 | + |
| 315 | + channel@68e { |
| 316 | + reg = <ADC5_GEN3_VPH_PWR(6)>; |
| 317 | + label = "pmm8654au_3_vph_pwr"; |
| 318 | + qcom,pre-scaling = <1 3>; |
| 319 | + }; |
218 | 320 | }; |
219 | 321 |
|
220 | 322 | pmm8654au_3_gpios: gpio@8800 { |
|
0 commit comments