Skip to content

Commit d6420d2

Browse files
dssengnashif
authored andcommitted
dts: arm: rpi_pico: add interrupts for PIO
PIO interrupts are useful for some of the virtual peripherals, so describe them in the DT. This has no direct implications to existing drivers. Signed-off-by: Dmitrii Sharshakov <d3dx12.xx@gmail.com>
1 parent d35d199 commit d6420d2

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

dts/arm/raspberrypi/rpi_pico/rp2040.dtsi

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,9 @@
411411
reg = <0x50200000 DT_SIZE_K(4)>;
412412
clocks = <&clocks RPI_PICO_CLKID_CLK_SYS>;
413413
resets = <&reset RPI_PICO_RESETS_RESET_PIO0>;
414+
interrupts = <7 RPI_PICO_DEFAULT_IRQ_PRIORITY>,
415+
<8 RPI_PICO_DEFAULT_IRQ_PRIORITY>;
416+
interrupt-names = "irq0", "irq1";
414417
status = "disabled";
415418
};
416419

@@ -419,6 +422,9 @@
419422
reg = <0x50300000 DT_SIZE_K(4)>;
420423
clocks = <&clocks RPI_PICO_CLKID_CLK_SYS>;
421424
resets = <&reset RPI_PICO_RESETS_RESET_PIO1>;
425+
interrupts = <9 RPI_PICO_DEFAULT_IRQ_PRIORITY>,
426+
<10 RPI_PICO_DEFAULT_IRQ_PRIORITY>;
427+
interrupt-names = "irq0", "irq1";
422428
status = "disabled";
423429
};
424430

dts/arm/raspberrypi/rpi_pico/rp2350.dtsi

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,9 @@
429429
reg = <0x50200000 DT_SIZE_K(4)>;
430430
clocks = <&clocks RPI_PICO_CLKID_CLK_SYS>;
431431
resets = <&reset RPI_PICO_RESETS_RESET_PIO0>;
432+
interrupts = <15 RPI_PICO_DEFAULT_IRQ_PRIORITY>,
433+
<16 RPI_PICO_DEFAULT_IRQ_PRIORITY>;
434+
interrupt-names = "irq0", "irq1";
432435
status = "disabled";
433436
};
434437

@@ -437,6 +440,9 @@
437440
reg = <0x50300000 DT_SIZE_K(4)>;
438441
clocks = <&clocks RPI_PICO_CLKID_CLK_SYS>;
439442
resets = <&reset RPI_PICO_RESETS_RESET_PIO1>;
443+
interrupts = <17 RPI_PICO_DEFAULT_IRQ_PRIORITY>,
444+
<18 RPI_PICO_DEFAULT_IRQ_PRIORITY>;
445+
interrupt-names = "irq0", "irq1";
440446
status = "disabled";
441447
};
442448

@@ -445,6 +451,9 @@
445451
reg = <0x50400000 DT_SIZE_K(4)>;
446452
clocks = <&clocks RPI_PICO_CLKID_CLK_SYS>;
447453
resets = <&reset RPI_PICO_RESETS_RESET_PIO2>;
454+
interrupts = <19 RPI_PICO_DEFAULT_IRQ_PRIORITY>,
455+
<20 RPI_PICO_DEFAULT_IRQ_PRIORITY>;
456+
interrupt-names = "irq0", "irq1";
448457
status = "disabled";
449458
};
450459
};

0 commit comments

Comments
 (0)