Skip to content

Commit d2f9955

Browse files
Thinh Le Congduynguyenxa
authored andcommitted
dts: arm: renesas: Add ADC device node for EK-RA2A1 and set unit prop
Add ADC device node to support ADC 16-bit on EK-RA2A1 Update other Renesas board nodes to include the "unit" property Signed-off-by: Thinh Le Cong <[email protected]>
1 parent 5c1396c commit d2f9955

File tree

9 files changed

+26
-1
lines changed

9 files changed

+26
-1
lines changed

dts/arm/renesas/ra/ra2/ra2l1.dtsi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,7 @@
423423

424424
adc0: adc@4005c000 {
425425
compatible = "renesas,ra-adc";
426+
unit = <0>;
426427
reg = <0x4005c000 0x100>;
427428
#io-channel-cells = <1>;
428429
vref-mv = <3300>;

dts/arm/renesas/ra/ra2/ra2xx.dtsi

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,20 @@
260260
#size-cells = <1>;
261261
};
262262

263-
agt0: agt@40084000 {
263+
adc0: adc@4005c000 {
264+
compatible = "renesas,ra-adc";
265+
unit = <0>;
266+
reg = <0x4005c000 0x100>;
267+
#io-channel-cells = <1>;
268+
vref-mv = <3300>;
269+
channel-available-mask = <0x00ff01ff>;
270+
reference = "external";
271+
average-count = <16>;
272+
variant = <16>;
273+
status = "disabled";
274+
};
275+
276+
agt0: agt@40084000 {
264277
compatible = "renesas,ra-agt";
265278
channel = <0>;
266279
reg = <0x40084000 0x100>;

dts/arm/renesas/ra/ra4/r7fa4c1bx.dtsi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@
270270

271271
adc0: adc@40170000 {
272272
compatible = "renesas,ra-adc";
273+
unit = <0>;
273274
reg = <0x40170000 0x100>;
274275
#io-channel-cells = <1>;
275276
vref-mv = <3300>;

dts/arm/renesas/ra/ra4/r7fa4l1bx.dtsi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@
267267
compatible = "renesas,ra-adc";
268268
interrupts = <38 1>;
269269
interrupt-names = "scanend";
270+
unit = <0>;
270271
reg = <0x40170000 0x100>;
271272
#io-channel-cells = <1>;
272273
vref-mv = <3300>;

dts/arm/renesas/ra/ra4/ra4-cm33-common.dtsi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,7 @@
287287
compatible = "renesas,ra-adc";
288288
interrupts = <38 1>;
289289
interrupt-names = "scanend";
290+
unit = <0>;
290291
reg = <0x40170000 0x100>;
291292
#io-channel-cells = <1>;
292293
vref-mv = <3300>;
@@ -297,6 +298,7 @@
297298
compatible = "renesas,ra-adc";
298299
interrupts = <39 1>;
299300
interrupt-names = "scanend";
301+
unit = <1>;
300302
reg = <0x40170200 0x100>;
301303
#io-channel-cells = <1>;
302304
vref-mv = <3300>;

dts/arm/renesas/ra/ra4/ra4-cm4-common.dtsi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@
233233
adc0: adc@4005c000 {
234234
compatible = "renesas,ra-adc";
235235
interrupt-names = "scanend";
236+
unit = <0>;
236237
reg = <0x4005c000 0x100>;
237238
#io-channel-cells = <1>;
238239
vref-mv = <3300>;

dts/arm/renesas/ra/ra6/ra6-cm33-common.dtsi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,7 @@
284284
compatible = "renesas,ra-adc";
285285
interrupts = <38 1>;
286286
interrupt-names = "scanend";
287+
unit = <0>;
287288
reg = <0x40170000 0x100>;
288289
#io-channel-cells = <1>;
289290
vref-mv = <3300>;
@@ -294,6 +295,7 @@
294295
compatible = "renesas,ra-adc";
295296
interrupts = <39 1>;
296297
interrupt-names = "scanend";
298+
unit = <1>;
297299
reg = <0x40170200 0x100>;
298300
#io-channel-cells = <1>;
299301
vref-mv = <3300>;

dts/arm/renesas/ra/ra6/ra6-cm4-common.dtsi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,7 @@
307307
compatible = "renesas,ra-adc";
308308
interrupts = <38 1>;
309309
interrupt-names = "scanend";
310+
unit = <0>;
310311
reg = <0x4005c000 0x100>;
311312
#io-channel-cells = <1>;
312313
vref-mv = <3300>;
@@ -317,6 +318,7 @@
317318
compatible = "renesas,ra-adc";
318319
interrupts = <39 1>;
319320
interrupt-names = "scanend";
321+
unit = <1>;
320322
reg = <0x4005c200 0x100>;
321323
#io-channel-cells = <1>;
322324
vref-mv = <3300>;

dts/arm/renesas/ra/ra8/ra8x1.dtsi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,7 @@
372372
compatible = "renesas,ra-adc";
373373
interrupts = <38 1>;
374374
interrupt-names = "scanend";
375+
unit = <0>;
375376
reg = <0x40332000 0x100>;
376377
#io-channel-cells = <1>;
377378
vref-mv = <3300>;
@@ -383,6 +384,7 @@
383384
compatible = "renesas,ra-adc";
384385
interrupts = <39 1>;
385386
interrupt-names = "scanend";
387+
unit = <1>;
386388
reg = <0x40332200 0x100>;
387389
#io-channel-cells = <1>;
388390
vref-mv = <3300>;

0 commit comments

Comments
 (0)