File tree Expand file tree Collapse file tree 4 files changed +79
-9
lines changed Expand file tree Collapse file tree 4 files changed +79
-9
lines changed Original file line number Diff line number Diff line change 108108 interrupts = <19 4>;
109109};
110110
111- &adc0 {
111+ &autanalog {
112112 interrupts = <36 4>;
113113};
114114
Original file line number Diff line number Diff line change 299299 #gpio-cells = <2>;
300300 };
301301
302- adc0: adc@42e80000 {
303- compatible = "infineon,autanalog-sar-adc";
304- reg = <0x42e80000 0xf20>;
302+ autanalog: autanalog@42e00000 {
303+ reg = <0x42e00000 0x100000>;
305304 interrupts = <57 4>;
306- status = "disabled";
305+ #address-cells = <1>;
306+ #size-cells = <1>;
307307 #io-channel-cells = <1>;
308+ ranges;
309+
310+ adc0: adc0@80000 {
311+ compatible = "infineon,autanalog-sar-adc";
312+ /* Offset within AutAnalog subsystem */
313+ reg = <0x80000 0xf20>;
314+ status = "disabled";
315+ #io-channel-cells = <1>;
316+ };
308317 };
309318
310319 ipc0: ipc@422a0000 {
Original file line number Diff line number Diff line change 285285 #gpio-cells = <2>;
286286 };
287287
288- adc0: adc@52e80000 {
289- compatible = "infineon,autanalog-sar-adc";
290- reg = <0x52e80000 0xf20>;
288+ autanalog: autanalog@52e00000 {
289+ reg = <0x52e00000 0x100000>;
291290 interrupts = <57 4>;
292- status = "disabled";
291+ #address-cells = <1>;
292+ #size-cells = <1>;
293293 #io-channel-cells = <1>;
294+ ranges;
295+
296+ adc0: adc0@80000 {
297+ compatible = "infineon,autanalog-sar-adc";
298+ /* Offset within AutAnalog subsystem */
299+ reg = <0x80000 0xf20>;
300+ status = "disabled";
301+ #io-channel-cells = <1>;
302+ };
294303 };
295304
296305 ipc0: ipc@522a0000 {
Original file line number Diff line number Diff line change 1+ # Copyright (c) 2025 Infineon Technologies AG,
2+ # or an affiliate of Infineon Technologies AG.
3+ #
4+ # SPDX-License-Identifier: Apache-2.0
5+
6+ description : |
7+ Infineon AutAnalog ADC
8+ Refer to PSOC Edge reference manual for specific channel mapping to a port-pin on the device.
9+
10+ compatible : " infineon,autanalog-sar-adc"
11+
12+ include : adc-controller.yaml
13+
14+ properties :
15+ vref-mv :
16+ type : int
17+ default : 1800
18+ description : |
19+ Internal reference voltage in millivolts.
20+
21+ offset-cal :
22+ type : boolean
23+ description : |
24+ Enables Self-Calibration for offset correction within the ADC. If left disabled,
25+ the factory calibration for offset correction will be used.
26+
27+ linear-cal :
28+ type : boolean
29+ description : |
30+ Enables Self-Calibration for linearity correction within the ADC. If left disabled,
31+ the factory calibration for linearity will be used.
32+
33+ vref-source :
34+ type : string
35+ default : " vdda"
36+ enum :
37+ - " vdda"
38+ - " external"
39+ - " vbgr"
40+ - " vdda_by_2"
41+ - " prb_out1"
42+ - " prb_out2"
43+ description : |
44+ Selects which voltage reference to use for the ADC. Note that the enum order
45+ specified is expected to match cy_en_autanalog_sar_vref_t.
46+
47+ " #io-channel-cells " :
48+ const : 1
49+
50+ io-channel-cells :
51+ - input
52+
You can’t perform that action at this time.
0 commit comments