Skip to content

Commit c8077e3

Browse files
khoa-nguyen-18kartben
authored andcommitted
boards: renesas: Add SPI support for Renesas RA6, RA4, RA2
- Add SPI support for ek_ra6m1, ek_ra6m2, ek_ra6m3, ek_ra6m4, ek_ra6m5, ek_ra6e2, fpb_ra6e1, fpb_ra6e2, ek_ra4e2, ek_ra4m2, ek_ra4m3, ek_ra4w1, ek_ra2a1 - Add SPI support doc for these board Signed-off-by: Tri Nguyen <[email protected]> Signed-off-by: Thao Luong <[email protected]> Signed-off-by: Khoa Nguyen <[email protected]>
1 parent 2e2cf83 commit c8077e3

39 files changed

+239
-0
lines changed

boards/renesas/ek_ra2a1/doc/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ hardware features:
7878
+-----------+------------+-------------------------------+
7979
| UART | on-chip | uart |
8080
+-----------+------------+-------------------------------+
81+
| SPI | on-chip | spi |
82+
+-----------+------------+-------------------------------+
8183

8284
The default configuration can be found in
8385
:zephyr_file:`boards/renesas/ek_ra2a1/ek_ra2a1_defconfig`

boards/renesas/ek_ra2a1/ek_ra2a1-pinctrl.dtsi

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,14 @@
1616
drive-strength = "medium";
1717
};
1818
};
19+
20+
spi1_default: spi1_default {
21+
group1 {
22+
/* MISO MOSI RSPCK SSL */
23+
psels = <RA_PSEL(RA_PSEL_SPI, 1, 4)>,
24+
<RA_PSEL(RA_PSEL_SPI, 1, 5)>,
25+
<RA_PSEL(RA_PSEL_SPI, 1, 3)>,
26+
<RA_PSEL(RA_PSEL_SPI, 1, 2)>;
27+
};
28+
};
1929
};

boards/renesas/ek_ra2a1/ek_ra2a1.dts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,14 @@
5858
status = "okay";
5959
};
6060
};
61+
62+
&spi1 {
63+
pinctrl-0 = <&spi1_default>;
64+
pinctrl-names = "default";
65+
cs-gpios = <&ioport1 2 GPIO_ACTIVE_LOW>;
66+
status = "okay";
67+
};
68+
69+
&ioport1 {
70+
status = "okay";
71+
};

boards/renesas/ek_ra4e2/doc/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ The below features are currently supported on Zephyr OS for EK-RA4E2 board:
9898
+-----------+------------+----------------------+
9999
| CLOCK | on-chip | clock control |
100100
+-----------+------------+----------------------+
101+
| SPI | on-chip | spi |
102+
+-----------+------------+----------------------+
101103

102104
Other hardware features are currently not supported by the port.
103105

boards/renesas/ek_ra4e2/ek_ra4e2-pinctrl.dtsi

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,14 @@
1111
<RA_PSEL(RA_PSEL_SCI_0, 4, 10)>;
1212
};
1313
};
14+
15+
spi0_default: spi0_default {
16+
group1 {
17+
/* MISO MOSI RSPCK SSL */
18+
psels = <RA_PSEL(RA_PSEL_SPI, 2, 6)>,
19+
<RA_PSEL(RA_PSEL_SPI, 2, 7)>,
20+
<RA_PSEL(RA_PSEL_SPI, 3, 2)>,
21+
<RA_PSEL(RA_PSEL_SPI, 3, 1)>;
22+
};
23+
};
1424
};

boards/renesas/ek_ra4e2/ek_ra4e2.dts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,9 @@
7676
&ioport2 {
7777
status = "okay";
7878
};
79+
80+
&spi0 {
81+
pinctrl-0 = <&spi0_default>;
82+
pinctrl-names = "default";
83+
status = "okay";
84+
};

boards/renesas/ek_ra4m2/doc/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ The below features are currently supported on Zephyr OS for EK-RA4M2 board:
9898
+-----------+------------+----------------------+
9999
| CLOCK | on-chip | clock control |
100100
+-----------+------------+----------------------+
101+
| SPI | on-chip | spi |
102+
+-----------+------------+----------------------+
101103

102104
Other hardware features are currently not supported by the port.
103105

boards/renesas/ek_ra4m2/ek_ra4m2-pinctrl.dtsi

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,14 @@
1111
<RA_PSEL(RA_PSEL_SCI_0, 4, 10)>;
1212
};
1313
};
14+
15+
spi0_default: spi0_default {
16+
group1 {
17+
/* MISO MOSI RSPCK SSL */
18+
psels = <RA_PSEL(RA_PSEL_SPI, 1, 10)>,
19+
<RA_PSEL(RA_PSEL_SPI, 1, 9)>,
20+
<RA_PSEL(RA_PSEL_SPI, 1, 11)>,
21+
<RA_PSEL(RA_PSEL_SPI, 3, 0)>;
22+
};
23+
};
1424
};

boards/renesas/ek_ra4m2/ek_ra4m2.dts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,9 @@
7272
&ioport4 {
7373
status = "okay";
7474
};
75+
76+
&spi0 {
77+
pinctrl-0 = <&spi0_default>;
78+
pinctrl-names = "default";
79+
status = "okay";
80+
};

boards/renesas/ek_ra4m3/doc/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ The below features are currently supported on Zephyr OS for EK-RA4M3 board:
100100
+-----------+------------+----------------------+
101101
| CLOCK | on-chip | clock control |
102102
+-----------+------------+----------------------+
103+
| SPI | on-chip | spi |
104+
+-----------+------------+----------------------+
103105

104106
Other hardware features are currently not supported by the port.
105107

0 commit comments

Comments
 (0)