diff --git a/boards/arm64/renesas_rcar/gen3/rcar_salvator_xs_m3_2x4g/Kconfig.board b/boards/arm64/renesas_rcar/gen3/rcar_salvator_xs_m3_2x4g/Kconfig.board new file mode 100644 index 000000000000000..afe2846b6522ea4 --- /dev/null +++ b/boards/arm64/renesas_rcar/gen3/rcar_salvator_xs_m3_2x4g/Kconfig.board @@ -0,0 +1,6 @@ +# Copyright (c) 2023 EPAM Systems +# SPDX-License-Identifier: Apache-2.0 + +config BOARD_RCAR_SALVATOR_XS_M3_2X4G + bool "Renesas Salvator XS M3 2x4g" + depends on SOC_R8A7796 diff --git a/boards/arm64/renesas_rcar/gen3/rcar_salvator_xs_m3_2x4g/Kconfig.defconfig b/boards/arm64/renesas_rcar/gen3/rcar_salvator_xs_m3_2x4g/Kconfig.defconfig new file mode 100644 index 000000000000000..b4294b8d95cd8e1 --- /dev/null +++ b/boards/arm64/renesas_rcar/gen3/rcar_salvator_xs_m3_2x4g/Kconfig.defconfig @@ -0,0 +1,9 @@ +# Copyright (c) 2023 EPAM Systems +# SPDX-License-Identifier: Apache-2.0 + +if BOARD_RCAR_SALVATOR_XS_M3_2X4G + +config BOARD + default "rcar_salvator_xs_m3_2x4g" + +endif # BOARD_RCAR_SALVATOR_XS_M3_2X4G diff --git a/boards/arm64/renesas_rcar/gen3/rcar_salvator_xs_m3_2x4g/doc/rcar_salvator_xs_m3_2x4g.rst b/boards/arm64/renesas_rcar/gen3/rcar_salvator_xs_m3_2x4g/doc/rcar_salvator_xs_m3_2x4g.rst new file mode 100644 index 000000000000000..ac2999f07bb4311 --- /dev/null +++ b/boards/arm64/renesas_rcar/gen3/rcar_salvator_xs_m3_2x4g/doc/rcar_salvator_xs_m3_2x4g.rst @@ -0,0 +1,69 @@ +.. _rcar_salvator_xs_m3_2x4g: + +R-CAR Salvator XS M3 ARM CA57 (ARMv8) +##################################### + +Overview +******** +The R-Car M3-W is an SOC that features the basic functions for next-generation +car navigation systems. + +Hardware +******** +The R-Car M3-W includes: +* two 1.5-GHz ARM Cortex-A57 MPCore cores; +* four 1.3-GHz ARM Cortex-A53 MPCore cores, +* memory controller for LPDDR4-3200 with 32 bits x 2 channels; +* 1 channels for HDMI1.4b output and 1 channel for RGB888 output and 1channel for LVDS; +* 2 channels MIPI-CSI2 Video Input, 2 channels digital Video Input; +* USB3.0 x 1ch and USB2.0 x 2ch interfaces; +* 800-MHz ARM Cortex-R7 core; +* two- and three-dimensional graphics engines; +* video processing units; +* sound processing units; +* MediaLB interface; +* SD card host interface; +* USB3.0 and USB2.0 interfaces; +* PCI Express interface; +* CAN interface; +* EtherAVB. + +Supported Features +================== +The Renesas rcar_salvator_xs_m3_2x4g board configuration supports the following +hardware features: ++-----------+------------------------------+--------------------------------+ +| Interface | Driver/components | Support level | ++===========+==============================+================================+ +| PINCTRL | pinctrl | | ++-----------+------------------------------+--------------------------------+ +| CLOCK | clock_control | | ++-----------+------------------------------+--------------------------------+ +| UART | uart | serial port-polling | ++-----------+------------------------------+--------------------------------+ +| MMC | renesas_rcar_mmc | | ++-----------+------------------------------+--------------------------------+ + +Other hardware features have not been enabled yet for this board. + +The default configuration can be found in the defconfig file: + + ``boards/arm64/renesas_rcar/rcar_salvator_xs_m3_2x4g_defconfig`` + +Programming and Debugging +************************* + +Build and flash applications as usual (see :ref:`build_an_application` and +:ref:`application_run` for more details). + +References +********** + +- `Renesas R-Car Development Support website`_ +- `eLinux Salvator-XS page`_ + +.. _Renesas R-Car Development Support website: + https://www.renesas.com/us/en/support/partners/r-car-consortium/r-car-development-support + +.. _eLinux Salvator-XS page: + https://elinux.org/R-Car/Boards/Salvator-XS diff --git a/boards/arm64/renesas_rcar/gen3/rcar_salvator_xs_m3_2x4g/salvator_xs_m3_2x4g-pinctrl.dtsi b/boards/arm64/renesas_rcar/gen3/rcar_salvator_xs_m3_2x4g/salvator_xs_m3_2x4g-pinctrl.dtsi new file mode 100644 index 000000000000000..645c7899a10f2c5 --- /dev/null +++ b/boards/arm64/renesas_rcar/gen3/rcar_salvator_xs_m3_2x4g/salvator_xs_m3_2x4g-pinctrl.dtsi @@ -0,0 +1,61 @@ +/* + * Copyright (c) 2023 EPAM Systems + * + * SPDX-License-Identifier: Apache-2.0 + */ + +#include + +&pfc { + scif2_data_a_tx_default: scif2_data_a_tx_default { + pin = ; + }; + + scif2_data_a_rx_default: scif2_data_a_rx_default { + pin = ; + }; + + sd_clk: sd_clk { + pin = ; + }; + + sd_cmd: sd_cmd { + pin = ; + }; + + sd_data0: sd_data0 { + pin = ; + }; + + sd_data1: sd_data1 { + pin = ; + }; + + sd_data2: sd_data2 { + pin = ; + }; + + sd_data3: sd_data3 { + pin = ; + }; + + sd_data4: sd_data4 { + pin = ; + }; + + sd_data5: sd_data5 { + pin = ; + }; + + sd_data6: sd_data6 { + pin = ; + }; + + sd_data7: sd_data7 { + pin = ; + }; + + sd_ds: sd_ds { + pin = ; + }; +}; diff --git a/boards/arm64/renesas_rcar/rcar_salvator_xs_m3_2x4g.dts b/boards/arm64/renesas_rcar/rcar_salvator_xs_m3_2x4g.dts new file mode 100644 index 000000000000000..313553adb00cae7 --- /dev/null +++ b/boards/arm64/renesas_rcar/rcar_salvator_xs_m3_2x4g.dts @@ -0,0 +1,15 @@ +/* + * Copyright (c) 2023 EPAM Systems + * + * SPDX-License-Identifier: Apache-2.0 + * + */ + +/dts-v1/; +#include +#include "gen3/rcar_salvator_xs_m3_2x4g/salvator_xs_m3_2x4g-pinctrl.dtsi" +#include "gen3/common_salvator_xs_h3ulcb.dts" + +/ { + model = "Salvator XS M3 2x4g"; +}; diff --git a/boards/arm64/renesas_rcar/rcar_salvator_xs_m3_2x4g.yaml b/boards/arm64/renesas_rcar/rcar_salvator_xs_m3_2x4g.yaml new file mode 100644 index 000000000000000..7e8fa49601bf0fb --- /dev/null +++ b/boards/arm64/renesas_rcar/rcar_salvator_xs_m3_2x4g.yaml @@ -0,0 +1,17 @@ +identifier: rcar_salvator_xs_m3_2x4g +name: Renesas Salvator XS M3 2x4g based on r8a7796 +type: mcu +arch: arm64 +toolchain: + - zephyr + - cross-compile +ram: 512 +supported: + - clock_control + - uart +testing: + default: true + ignore_tags: + - net + - bluetooth + - isotp diff --git a/boards/arm64/renesas_rcar/rcar_salvator_xs_m3_2x4g_defconfig b/boards/arm64/renesas_rcar/rcar_salvator_xs_m3_2x4g_defconfig new file mode 100644 index 000000000000000..c9f294d8079f081 --- /dev/null +++ b/boards/arm64/renesas_rcar/rcar_salvator_xs_m3_2x4g_defconfig @@ -0,0 +1,21 @@ +CONFIG_SOC_R8A7796=y +CONFIG_SOC_SERIES_RCAR_GEN3=y +CONFIG_BOARD_RCAR_SALVATOR_XS_M3_2X4G=y + +# Cache management +CONFIG_CACHE_MANAGEMENT=y + +# Enable UART driver +CONFIG_SERIAL=y +CONFIG_AARCH64_IMAGE_HEADER=y +CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=8300000 +CONFIG_XIP=n + +CONFIG_MAX_XLAT_TABLES=20 + +# Enable console +CONFIG_CONSOLE=y +CONFIG_UART_CONSOLE=y + +# Enable clock control +CONFIG_CLOCK_CONTROL=y diff --git a/tests/drivers/fuel_gauge/sbs_gauge/testcase.yaml b/tests/drivers/fuel_gauge/sbs_gauge/testcase.yaml index 6ef764fd7a20022..ac2a8c44fe99aec 100644 --- a/tests/drivers/fuel_gauge/sbs_gauge/testcase.yaml +++ b/tests/drivers/fuel_gauge/sbs_gauge/testcase.yaml @@ -16,6 +16,7 @@ tests: xenvm xenvm_gicv3 rcar_h3ulcb_ca57 + rcar_salvator_xs_m3_2x4g drivers.sbs_gauge_new_api.emulated_64_bit_i2c_addr: tags: drivers fuel_gauge filter: >