Skip to content

Commit 6ca258e

Browse files
Hieu Nguyenjhedberg
authored andcommitted
dts: renesas: Add SPI support for Renesas RZ/V2L, A3UL
Add SPI nodes to Renesas RZ/V2L, A3UL Signed-off-by: Hieu Nguyen <[email protected]> Signed-off-by: Nhut Nguyen <[email protected]>
1 parent 04018d6 commit 6ca258e

File tree

2 files changed

+92
-0
lines changed

2 files changed

+92
-0
lines changed

dts/arm/renesas/rz/rzv/r9a07g054.dtsi

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include <zephyr/dt-bindings/adc/adc.h>
1010
#include <zephyr/dt-bindings/clock/renesas_rzv_clock.h>
1111
#include <zephyr/dt-bindings/i2c/i2c.h>
12+
#include <zephyr/dt-bindings/dma/renesas_rz_dma.h>
1213

1314
/ {
1415
compatible = "renesas,r9a07g054";
@@ -641,6 +642,26 @@
641642
};
642643
};
643644

645+
dma0: dma@41800000 { /* Secure DMA */
646+
compatible = "renesas,rz-dma";
647+
reg = <0x41800000 0x800>, <0x41810000 0x20>;
648+
reg-names = "reg_main", "ext";
649+
interrupts = <108 1>, <109 1>, <110 1>, <111 1>,
650+
<112 1>, <113 1>, <114 1>, <115 1>,
651+
<116 1>, <117 1>, <118 1>, <119 1>,
652+
<120 1>, <121 1>, <122 1>, <123 1>,
653+
<124 1>; /* DMAERR1 */
654+
interrupt-names = "ch0", "ch1", "ch2", "ch3",
655+
"ch4", "ch5", "ch6", "ch7",
656+
"ch8", "ch9", "ch10", "ch11",
657+
"ch12", "ch13", "ch14", "ch15",
658+
"err1";
659+
dma-channels = <16>;
660+
#dma-cells = <2>;
661+
dma-buf-addr-alignment = <4>;
662+
status = "disabled";
663+
};
664+
644665
scif0: serial@4004b800 {
645666
compatible = "renesas,rz-scif-uart";
646667
channel = <0>;
@@ -1018,6 +1039,39 @@
10181039
status = "disabled";
10191040
};
10201041

1042+
spi0: spi@4004ac00 {
1043+
compatible = "renesas,rz-rspi";
1044+
reg = <0x4004ac00 DT_SIZE_K(1)>;
1045+
interrupts = <413 1>, <414 1>, <415 1>;
1046+
interrupt-names = "rx", "tx", "error";
1047+
channel = <0>;
1048+
#address-cells = <1>;
1049+
#size-cells = <0>;
1050+
status = "disabled";
1051+
};
1052+
1053+
spi1: spi@4004b000 {
1054+
compatible = "renesas,rz-rspi";
1055+
reg = <0x4004b000 DT_SIZE_K(1)>;
1056+
interrupts = <416 1>, <417 1>, <418 1>;
1057+
interrupt-names = "rx", "tx", "error";
1058+
channel = <1>;
1059+
#address-cells = <1>;
1060+
#size-cells = <0>;
1061+
status = "disabled";
1062+
};
1063+
1064+
spi2: spi@4004b400 {
1065+
compatible = "renesas,rz-rspi";
1066+
reg = <0x4004b400 DT_SIZE_K(1)>;
1067+
interrupts = <419 1>, <420 1>, <421 1>;
1068+
interrupt-names = "rx", "tx", "error";
1069+
channel = <2>;
1070+
#address-cells = <1>;
1071+
#size-cells = <0>;
1072+
status = "disabled";
1073+
};
1074+
10211075
gtm0: gtm@42801000 {
10221076
compatible = "renesas,rz-gtm";
10231077
reg = <0x42801000 0x400>;

dts/arm64/renesas/rz/rza/r9a07g063.dtsi

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -855,6 +855,44 @@
855855
status = "disabled";
856856
};
857857

858+
spi0: spi@1004ac00 {
859+
compatible = "renesas,rz-rspi";
860+
reg = <0x1004ac00 DT_SIZE_K(1)>;
861+
interrupts = <GIC_SPI 413 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>,
862+
<GIC_SPI 414 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>,
863+
<GIC_SPI 415 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>;
864+
interrupt-names = "rx", "tx", "error";
865+
channel = <0>;
866+
#address-cells = <1>;
867+
#size-cells = <0>;
868+
status = "disabled";
869+
};
870+
871+
spi1: spi@1004b000 {
872+
compatible = "renesas,rz-rspi";
873+
reg = <0x1004b000 DT_SIZE_K(1)>;
874+
interrupts = <GIC_SPI 416 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>,
875+
<GIC_SPI 417 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>,
876+
<GIC_SPI 418 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>;
877+
interrupt-names = "rx", "tx", "error";
878+
channel = <1>;
879+
#address-cells = <1>;
880+
#size-cells = <0>;
881+
status = "disabled";
882+
};
883+
884+
spi2: spi@1004b400 {
885+
compatible = "renesas,rz-rspi";
886+
reg = <0x1004b400 DT_SIZE_K(1)>;
887+
interrupts = <GIC_SPI 419 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>,
888+
<GIC_SPI 420 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>,
889+
<GIC_SPI 421 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>;
890+
interrupt-names = "rx", "tx", "error";
891+
channel = <2>;
892+
#address-cells = <1>;
893+
#size-cells = <0>;
894+
};
895+
858896
gtm0: gtm@12801000 {
859897
compatible = "renesas,rz-gtm";
860898
reg = <0x12801000 0x400>;

0 commit comments

Comments
 (0)