Commit 1ef5dfce authored by TOKITA Hiroshi's avatar TOKITA Hiroshi Committed by Benjamin Cabé
Browse files

boards: Migrate Renesas RA4M1 to the new configuration



Migrate to the new GPIO and Interrupt drivers based on FSP.

Signed-off-by: default avatarTOKITA Hiroshi <tokita.hiroshi@gmail.com>
parent b3133426
Loading
Loading
Loading
Loading
+17 −6
Original line number Diff line number Diff line
@@ -5,12 +5,14 @@
 */

/dts-v1/;
#include <renesas/ra/r7fa4m1ab3cfm.dtsi>

#include <renesas/ra/ra4/r7fa4m1ab3cfm.dtsi>
#include <zephyr/dt-bindings/gpio/gpio.h>
#include <zephyr/dt-bindings/adc/adc.h>

/ {
	model = "Arduino Uno R4 Board";
	compatible = "renesas,r7fa4m1ab3cfm";
	compatible = "renesas,ra4m1", "renesas,ra";

	chosen {
		zephyr,console = &uart2;
@@ -25,6 +27,9 @@
	status = "okay";
	pinctrl-0 = <&sci2_default>;
	pinctrl-names = "default";
	interrupts = <4 1>, <5 1>, <6 1>, <7 1>;
	interrupt-names = "rxi", "txi", "tei", "eri";

	uart2: uart {
		current-speed = <115200>;
		status = "okay";
@@ -35,6 +40,16 @@
	status = "okay";
};

&port_irq0 {
	interrupts = <27 12>;
	status = "okay";
};

&port_irq1 {
	interrupts = <28 12>;
	status = "okay";
};

&flash0 {
	partitions {
		compatible = "fixed-partitions";
@@ -55,10 +70,6 @@
	};
};

&fcu {
	status = "okay";
};

&hoco {
	status = "okay";
	clock-frequency = <48000000>;
+0 −2
Original line number Diff line number Diff line
@@ -4,8 +4,6 @@
 * SPDX-License-Identifier: Apache-2.0
 */

#include <zephyr/dt-bindings/pinctrl/renesas/pinctrl-ra.h>

&pinctrl {
	sci2_default: sci2_default {
		group1 {
+0 −6
Original line number Diff line number Diff line
# Copyright (c) 2023 TOKITA Hiroshi <tokita.hiroshi@fujitsu.com>
# SPDX-License-Identifier: Apache-2.0

CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=48000000

CONFIG_BUILD_OUTPUT_HEX=y

# Enable UART driver
CONFIG_SERIAL=y
CONFIG_UART_INTERRUPT_DRIVEN=y
@@ -16,6 +12,4 @@ CONFIG_UART_CONSOLE=y
# Enable GPIO
CONFIG_GPIO=y

CONFIG_CLOCK_CONTROL=y

CONFIG_USE_DT_CODE_PARTITION=y
+0 −2
Original line number Diff line number Diff line
@@ -4,8 +4,6 @@
 * SPDX-License-Identifier: Apache-2.0
 */

#include <zephyr/dt-bindings/pinctrl/renesas/pinctrl-ra.h>

&pinctrl {
	sci2_default: sci2_default {
		group1 {
+0 −6
Original line number Diff line number Diff line
# Copyright (c) 2024 TOKITA Hiroshi <tokita.hiroshi@fujitsu.com>
# SPDX-License-Identifier: Apache-2.0

CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=48000000

CONFIG_BUILD_OUTPUT_HEX=y

# Enable UART driver
CONFIG_SERIAL=y
CONFIG_UART_INTERRUPT_DRIVEN=y
@@ -16,6 +12,4 @@ CONFIG_UART_CONSOLE=y
# Enable GPIO
CONFIG_GPIO=y

CONFIG_CLOCK_CONTROL=y

CONFIG_USE_DT_CODE_PARTITION=y
Loading