File tree Expand file tree Collapse file tree 8 files changed +152
-0
lines changed Expand file tree Collapse file tree 8 files changed +152
-0
lines changed Original file line number Diff line number Diff line change 1+ # Copyright (c) 2023 IoT.bzh
2+ # SPDX-License-Identifier: Apache-2.0
3+
4+ config BOARD_RCAR_SPIDER_CR52
5+ bool "Cortex-R52 for Renesas Spider"
6+ depends on SOC_R8A779F0
Original file line number Diff line number Diff line change 1+ # Copyright (c) 2023 IoT.bzh
2+ # SPDX-License-Identifier: Apache-2.0
3+
4+ if BOARD_RCAR_SPIDER_CR52
5+
6+ config BOARD
7+ default "rcar_spider_cr52"
8+
9+ endif # BOARD_RCAR_SPIDER_CR52
Original file line number Diff line number Diff line change 1+ # SPDX-License-Identifier: Apache-2.0
2+ board_runner_args(openocd "--use-elf" )
3+ include (${ZEPHYR_BASE} /boards/common/openocd.board.cmake)
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright (c) 2023 IoT.bzh
3+ *
4+ * SPDX-License-Identifier: Apache-2.0
5+ */
6+
7+ #include <dt-bindings/pinctrl/renesas/pinctrl-r8a779f0.h>
8+
9+ &pfc {
10+ scif0_data_tx_default: scif0_data_tx_default {
11+ pin = <PIN_RX0 FUNC_RX0>;
12+ };
13+
14+ scif0_data_rx_default: scif0_data_rx_default {
15+ pin = <PIN_TX0 FUNC_TX0>;
16+ };
17+
18+ scif3_data_tx_default: scif3_data_tx_default {
19+ pin = <PIN_HTX0 FUNC_TX3>;
20+ };
21+
22+ scif3_data_rx_default: scif3_data_rx_default {
23+ pin = <PIN_HRX0 FUNC_RX3>;
24+ };
25+ };
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright (c) 2023 IoT.bzh
3+ *
4+ * SPDX-License-Identifier: Apache-2.0
5+ *
6+ */
7+
8+ /dts-v1/;
9+ #include <arm/renesas/rcar/gen4/r8a779f0.dtsi>
10+ #include "rcar_spider_cr52-pinctrl.dtsi"
11+ #include <zephyr/dt-bindings/input/input-event-codes.h>
12+
13+ / {
14+ model = "Renesas Spider board";
15+ compatible = "renesas,spider-cr52";
16+
17+ chosen {
18+ zephyr,sram = &sram0;
19+ zephyr,console = &scif0;
20+ zephyr,shell-uart = &scif0;
21+ };
22+
23+ leds {
24+ compatible = "gpio-leds";
25+ user_led: led_8 {
26+ gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
27+ label = "User LED";
28+ };
29+ };
30+
31+ gpio_keys {
32+ compatible = "gpio-keys";
33+ user_button: sw10 {
34+ gpios = <&gpio4 13 GPIO_ACTIVE_LOW>;
35+ label = "User switch";
36+ zephyr,code = <INPUT_KEY_0>;
37+ };
38+ };
39+
40+ aliases {
41+ led0 = &user_led;
42+ sw0 = &user_button;
43+ };
44+ };
45+
46+ &scif0 {
47+ pinctrl-0 = <&scif0_data_tx_default &scif0_data_rx_default>;
48+ pinctrl-names = "default";
49+ status = "okay";
50+ };
51+
52+ &gpio0 {
53+ status = "okay";
54+ };
55+
56+ &gpio4 {
57+ status = "okay";
58+ };
Original file line number Diff line number Diff line change 1+ identifier : rcar_spider_cr52
2+ name : Cortex r52 for Renesas Spider
3+ type : mcu
4+ arch : arm
5+ toolchain :
6+ - zephyr
7+ - gnuarmemb
8+ supported :
9+ - gpio
10+ - clock_control
11+ - uart
Original file line number Diff line number Diff line change 1+ CONFIG_SOC_R8A779F0=y
2+ CONFIG_SOC_SERIES_RCAR_GEN4=y
3+ CONFIG_BOARD_RCAR_SPIDER_CR52=y
4+ CONFIG_CLOCK_CONTROL=y
5+ CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=12500000
6+ CONFIG_CONSOLE=y
7+ CONFIG_RAM_CONSOLE=y
8+ CONFIG_FLASH_SIZE=0
9+ CONFIG_FLASH_BASE_ADDRESS=0
10+ CONFIG_SERIAL=y
11+ CONFIG_UART_CONSOLE=y
12+ CONFIG_UART_INTERRUPT_DRIVEN=y
13+ CONFIG_GPIO=y
Original file line number Diff line number Diff line change 1+ # Renesas R-Car Spider S4 Cortex-R52 Board Config
2+
3+ source [find interface/ftdi/olimex-arm-usb-ocd-h.cfg]
4+ source [find target/renesas_rcar_reset_common.cfg]
5+
6+ set _CHIPNAME r8a779f0
7+ set _CORE_NAME r52
8+ set _TARGETNAME $_CHIPNAME.$_CORE_NAME
9+ set _CTINAME $_TARGETNAME.cti
10+ set _DAPNAME $_CHIPNAME.dap
11+ set DAP_TAPID 0x5ba00477
12+
13+ set CR52_DBGBASE 0x80c10000
14+ set CR52_CTIBASE 0x80c20000
15+
16+ adapter srst delay 1000
17+ adapter speed 20000
18+ global $_CHIPNAME
19+ transport select jtag
20+
21+ jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x01 -irmask 0x0f -expected-id $DAP_TAPID
22+ dap create $_DAPNAME -chain-position $_CHIPNAME.cpu
23+
24+ cti create $_CTINAME -dap $_DAPNAME -ap-num 1 -baseaddr $CR52_CTIBASE
25+ target create $_TARGETNAME armv8r -dap $_DAPNAME -ap-num 1 -dbgbase $CR52_DBGBASE -cti $_CTINAME
26+
27+ $_TARGETNAME configure -rtos auto
You can’t perform that action at this time.
0 commit comments