Skip to content

Commit 81bd1f5

Browse files
le-quang168kartben
authored andcommitted
boards: renesas: rzg3s_smarc: Add SPI support
Add SPI support for board RZ/G3S-SMARC Signed-off-by: Quang Le <[email protected]> Signed-off-by: Binh Nguyen <[email protected]>
1 parent 580996d commit 81bd1f5

File tree

4 files changed

+19
-36
lines changed

4 files changed

+19
-36
lines changed

boards/renesas/rzg3s_smarc/doc/index.rst

Lines changed: 1 addition & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -58,40 +58,7 @@ Please see :zephyr:code-sample:`rz-openamp-linux-zephyr` sample for reference.
5858
Supported Features
5959
==================
6060

61-
The ``rzg3s_smarc/r9a08g045s33gbg/cm33`` board target supports the ARM Cortex-M33 System Core without FPU
62-
and the following hardware features:
63-
64-
+-----------+------------+-------------------------------------+
65-
| Interface | Controller | Driver/Component |
66-
+===========+============+=====================================+
67-
| NVIC | on-chip | arch/arm |
68-
+-----------+------------+-------------------------------------+
69-
| SYSTICK | on-chip | arch/arm |
70-
+-----------+------------+-------------------------------------+
71-
| PINCTRL | on-chip | pinctrl |
72-
+-----------+------------+-------------------------------------+
73-
| ADC | on-chip | adc |
74-
+-----------+------------+-------------------------------------+
75-
| GPIO | on-chip | gpio |
76-
+-----------+------------+-------------------------------------+
77-
| DMA | on-chip | dma |
78-
+-----------+------------+-------------------------------------+
79-
| I2C | on-chip | i2c |
80-
+-----------+------------+-------------------------------------+
81-
| UART | on-chip | serial |
82-
+-----------+------------+-------------------------------------+
83-
| GTM | on-chip | counter |
84-
+-----------+------------+-------------------------------------+
85-
| GPT | on-chip | pwm |
86-
+-----------+------------+-------------------------------------+
87-
| INTC | on-chip | external interrupt controller |
88-
+-----------+------------+-------------------------------------+
89-
| CLOCK | on-chip | clock control |
90-
+-----------+------------+-------------------------------------+
91-
| MHU | on-chip | mbox |
92-
+-----------+------------+-------------------------------------+
93-
94-
Other hardware features are currently not supported by the port.
61+
.. zephyr:board-supported-hw::
9562
9663
Programming and Debugging
9764
*************************

boards/renesas/rzg3s_smarc/rzg3s_smarc-pinctrl.dtsi

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,13 @@
6969
<RZG_PINMUX(PORT_17, 1, 3)>; /* RX */
7070
};
7171
};
72+
73+
/omit-if-no-ref/ spi0_pins: spi0 {
74+
spi0-pinmux {
75+
pinmux = <RZG_PINMUX(PORT_15, 0, 1)>, /* CK */
76+
<RZG_PINMUX(PORT_15, 1, 1)>, /* MOSI */
77+
<RZG_PINMUX(PORT_15, 2, 1)>, /* MISO */
78+
<RZG_PINMUX(PORT_15, 3, 1)>; /* SSL */
79+
};
80+
};
7281
};

boards/renesas/rzg3s_smarc/rzg3s_smarc_r9a08g045s33gbg_cm33.dts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,15 +97,21 @@
9797
status = "okay";
9898
};
9999

100-
&gpio0{
100+
&spi0 {
101+
pinctrl-0 = <&spi0_pins>;
102+
pinctrl-names = "default";
103+
status = "okay";
104+
};
105+
106+
&gpio0 {
101107
status = "okay";
102108
};
103109

104110
&gpio13{
105111
status = "okay";
106112
};
107113

108-
&gpio18{
114+
&gpio18 {
109115
status = "okay";
110116
};
111117

boards/renesas/rzg3s_smarc/rzg3s_smarc_r9a08g045s33gbg_cm33.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@ supported:
1313
- gpio
1414
- counter
1515
- pwm
16+
- spi
1617
- can

0 commit comments

Comments
 (0)