Skip to content

Commit d83b7a2

Browse files
committed
boards: arm64: add support of Renesas Spider board
Add support of 'rcar_spider' board: minimal dts and configuration. Signed-off-by: Mykola Kvach <[email protected]>
1 parent ea55fb6 commit d83b7a2

File tree

8 files changed

+236
-0
lines changed

8 files changed

+236
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Copyright (c) 2023 EPAM Systems
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config BOARD_RCAR_SPIDER
5+
bool "Renesas Spider"
6+
depends on SOC_R8A779F
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Copyright (c) 2023 EPAM Systems
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
if BOARD_RCAR_SPIDER
5+
6+
config BOARD
7+
default "rcar_spider"
8+
9+
config BUILD_OUTPUT_BIN
10+
default y
11+
12+
endif # BOARD_RCAR_SPIDER
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
.. _rcar_spider:
2+
3+
R-CAR Spider (ARMv8)
4+
#####################################
5+
Note: currently, the board can be used only as a Xen Initial Domain, i.e. Dom0,
6+
because there isn't support of UART driver. So, it can be built only with ``xen_dom0``
7+
shield.
8+
9+
Overview
10+
********
11+
The R-Car Spider (S4) is an SOC that features the basic functions for
12+
next-generation car Gateway systems.
13+
14+
Hardware
15+
********
16+
The R-Car S4 includes:
17+
18+
* eight 1.2GHz Arm Cortex-A55 cores, 2 cores x 4 clusters;
19+
* 1.0 GHz Arm Cortex-R52 core (hardware Lock step is supported);
20+
* two 400MHz G4MH cores (hardware Lock step is supported);
21+
* memory controller for LPDDR4X-3200 with 32bit bus (16bit x 1ch + 16bit x 1ch) with ECC;
22+
* SD card host interface / eMMC;
23+
* UFS 3.0 x 1 channel;
24+
* PCI Express Gen4.0 interface (Dual lane x 2ch);
25+
* ICUMX;
26+
* ICUMH;
27+
* SHIP-S x 3 channels;
28+
* AES Accerator x 8 channels;
29+
* CAN FD interface x 16 channels;
30+
* R-Switch2 (Ether);
31+
* 100base EtherAVB x 1 channel;
32+
* Gbit-EtherTSN x 3 channels;
33+
* 1 unit FlexRay (A,B 2ch) interface.
34+
35+
Supported Features
36+
==================
37+
The Renesas rcar_spider board configuration supports the following
38+
hardware features:
39+
40+
+-----------+------------------------------+--------------------------------+
41+
| Interface | Driver/components | Support level |
42+
+===========+==============================+================================+
43+
| PINCTRL | pinctrl | |
44+
+-----------+------------------------------+--------------------------------+
45+
| CLOCK | clock_control | |
46+
+-----------+------------------------------+--------------------------------+
47+
| MMC | renesas_rcar_mmc | |
48+
+-----------+------------------------------+--------------------------------+
49+
50+
Other hardware features have not been enabled yet for this board.
51+
52+
The default configuration can be found in the defconfig file:
53+
54+
``boards/arm64/rcar_spider/rcar_spider_defconfig``
55+
56+
Programming and Debugging
57+
*************************
58+
59+
Correct shield designation for Xen must be entered when you invoke ``west build``.
60+
For example:
61+
62+
.. zephyr-app-commands::
63+
:zephyr-app: samples/synchronization
64+
:board: rcar_spider
65+
:shield: xen_dom0
66+
:goals: build
67+
68+
For more details, look at documentation of ``xen_dom0`` shield.
69+
70+
References
71+
**********
72+
73+
- `Renesas R-Car Development Support website`_
74+
- `eLinux Spider page`_
75+
76+
.. _Renesas R-Car Development Support website:
77+
https://www.renesas.com/us/en/support/partners/r-car-consortium/r-car-development-support
78+
79+
.. _eLinux Spider page:
80+
https://elinux.org/R-Car/Boards/Spider
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
/*
2+
* Copyright (c) 2023 EPAM Systems
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*
6+
*/
7+
8+
/dts-v1/;
9+
#include <mem.h>
10+
#include <arm64/renesas/r8a779f.dtsi>
11+
#include "spider-pinctrl.dtsi"
12+
13+
/ {
14+
model = "Spider (S4)";
15+
chosen {
16+
zephyr,sram = &ram;
17+
};
18+
19+
/* These aliases are provided for compatibility with samples */
20+
aliases {
21+
sdhc0 = &mmc0;
22+
};
23+
24+
ram: memory@48000000 {
25+
device_type = "mmio-sram";
26+
reg = <0x0 0x48000000 0x0 DT_SIZE_M(512)>;
27+
};
28+
};
29+
30+
&mmc0 {
31+
pinctrl-0 = <&mmc_clk &mmc_cmd &mmc_ds
32+
&mmc_data0 &mmc_data1 &mmc_data2 &mmc_data3
33+
&mmc_data4 &mmc_data5 &mmc_data6 &mmc_data7>;
34+
pinctrl-1 = <&mmc_clk &mmc_cmd &mmc_ds
35+
&mmc_data0 &mmc_data1 &mmc_data2 &mmc_data3
36+
&mmc_data4 &mmc_data5 &mmc_data6 &mmc_data7>;
37+
pinctrl-names = "default", "uhs";
38+
disk {
39+
compatible = "zephyr,mmc-disk";
40+
status = "disabled";
41+
};
42+
bus-width = <8>;
43+
mmc-hs200-1_8v;
44+
mmc-hs400-1_8v;
45+
non-removable;
46+
};
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
identifier: rcar_spider
2+
name: Renesas Spider based on r8a779f (S4)
3+
type: mcu
4+
arch: arm64
5+
toolchain:
6+
- zephyr
7+
- cross-compile
8+
ram: 512
9+
supported:
10+
- clock_control
11+
- uart
12+
testing:
13+
default: true
14+
ignore_tags:
15+
- net
16+
- bluetooth
17+
- isotp
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
CONFIG_SOC_R8A779F=y
2+
CONFIG_SOC_SERIES_RCAR_GEN4=y
3+
CONFIG_BOARD_RCAR_SPIDER=y
4+
5+
# Cache management
6+
CONFIG_CACHE_MANAGEMENT=y
7+
8+
# Enable UART driver
9+
CONFIG_SERIAL=y
10+
CONFIG_AARCH64_IMAGE_HEADER=y
11+
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=16666000
12+
CONFIG_XIP=n
13+
14+
CONFIG_MAX_XLAT_TABLES=24
15+
16+
# Enable console
17+
CONFIG_CONSOLE=y
18+
CONFIG_UART_CONSOLE=y
19+
20+
# Enable clock control
21+
CONFIG_CLOCK_CONTROL=y
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
/*
2+
* Copyright (c) 2023 EPAM Systems
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#include <zephyr/dt-bindings/pinctrl/renesas/pinctrl-r8a779f.h>
8+
9+
&pfc {
10+
mmc_clk: mmc_clk {
11+
pin = <PIN_MMC_SD_CLK>;
12+
};
13+
14+
mmc_cmd: mmc_cmd {
15+
pin = <PIN_MMC_SD_CMD>;
16+
};
17+
18+
mmc_data0: mmc_data0 {
19+
pin = <PIN_MMC_SD_D0>;
20+
};
21+
22+
mmc_data1: mmc_data1 {
23+
pin = <PIN_MMC_SD_D1>;
24+
};
25+
26+
mmc_data2: mmc_data2 {
27+
pin = <PIN_MMC_SD_D2>;
28+
};
29+
30+
mmc_data3: mmc_data3 {
31+
pin = <PIN_MMC_SD_D3>;
32+
};
33+
34+
mmc_data4: mmc_data4 {
35+
pin = <PIN_MMC_D4>;
36+
};
37+
38+
mmc_data5: mmc_data5 {
39+
pin = <PIN_MMC_D5>;
40+
};
41+
42+
mmc_data6: mmc_data6 {
43+
pin = <PIN_MMC_D6>;
44+
};
45+
46+
mmc_data7: mmc_data7 {
47+
pin = <PIN_MMC_D7>;
48+
};
49+
50+
mmc_ds: mmc_ds {
51+
pin = <PIN_MMC_DS>;
52+
};
53+
};

tests/drivers/fuel_gauge/sbs_gauge/testcase.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ tests:
1919
- xenvm_gicv3
2020
- rcar_h3ulcb_ca57
2121
- rcar_salvator_xs_m3
22+
- rcar_spider
2223
integration_platforms:
2324
- qemu_x86
2425
drivers.sbs_gauge_new_api.emulated_64_bit_i2c_addr:

0 commit comments

Comments
 (0)