Skip to content

Commit 44f8889

Browse files
committed
dts: infineon: pse84 device tree changes to support AutAnalog ADC
*Separates AutAnalog and AutAnalog ADC in device tree. *Makes AutAnalog SAR ADC a child of the AutAnalog system to reflect hardware architecture. *Adds binding file for AutAnalog SAR ADC driver. Signed-off-by: John Batch <[email protected]>
1 parent 2cfd924 commit 44f8889

File tree

4 files changed

+79
-9
lines changed

4 files changed

+79
-9
lines changed

dts/arm/infineon/edge/pse84/pse84.cm55.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
interrupts = <19 4>;
109109
};
110110

111-
&adc0 {
111+
&autanalog {
112112
interrupts = <36 4>;
113113
};
114114

dts/arm/infineon/edge/pse84/pse84.dtsi

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -299,12 +299,21 @@
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 {

dts/arm/infineon/edge/pse84/pse84_s.dtsi

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -285,12 +285,21 @@
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 {
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
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+

0 commit comments

Comments
 (0)