Commit 201a7c63 authored by Danh Doan's avatar Danh Doan Committed by Benjamin Cabé
Browse files

boards: renesas: Add PWM support for Renesas RA6, RA4, RA2

Add pinctrl & node of pwm driver for these board:
ek_ra2a1, ek_ra4e2, ek_ra4m2, ek_ra4m3, ek_ra4w1,
ek_ra6e2, ek_ra6m1, ek_ra6m2, ek_ra6m3, ek_ra6m4,
ek_ra6m5, fpb_ra6e1, fpb_ra6e2.

Signed-off-by: default avatarDanh Doan <danh.doan.ue@bp.renesas.com>
parent f75e3bad
Loading
Loading
Loading
Loading
+2 −0
Changes for boards/renesas/ek_ra2a1/doc/index.rst: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -82,6 +82,8 @@ hardware features:
+-----------+------------+-------------------------------+
| COUNTER   | on-chip    | counter                       |
+-----------+------------+-------------------------------+
| PWM       | on-chip    | pwm                           |
+-----------+------------+-------------------------------+

The default configuration can be found in
:zephyr_file:`boards/renesas/ek_ra2a1/ek_ra2a1_defconfig`
+8 −0
Changes for boards/renesas/ek_ra2a1/ek_ra2a1-pinctrl.dtsi: 8 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -26,4 +26,12 @@
			<RA_PSEL(RA_PSEL_SPI, 1, 2)>;
		};
	};

	pwm0_default: pwm0_default {
		group1 {
			/* GTIOC0A GTIOC0B */
			psels = <RA_PSEL(RA_PSEL_GPT1, 4, 8)>,
				<RA_PSEL(RA_PSEL_GPT1, 4, 7)>;
		};
	};
};
+8 −0
Changes for boards/renesas/ek_ra2a1/ek_ra2a1.dts: 8 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -85,3 +85,11 @@
	interrupts = <29 3>;
	status = "okay";
};

&pwm0 {
	pinctrl-0 = <&pwm0_default>;
	pinctrl-names = "default";
	interrupts = <28 1>, <31 1>;
	interrupt-names = "gtioca", "overflow";
	status = "okay";
};
+2 −0
Changes for boards/renesas/ek_ra4e2/doc/index.rst: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -102,6 +102,8 @@ The below features are currently supported on Zephyr OS for EK-RA4E2 board:
+-----------+------------+----------------------+
| ADC       | on-chip    | adc                  |
+-----------+------------+----------------------+
| PWM       | on-chip    | pwm                  |
+-----------+------------+----------------------+

Other hardware features are currently not supported by the port.

+8 −0
Changes for boards/renesas/ek_ra4e2/ek_ra4e2-pinctrl.dtsi: 8 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -38,4 +38,12 @@
			renesas,analog-enable;
		};
	};

	pwm1_default: pwm1_default {
		group1 {
			/* GTIOC1A GTIOC1B */
			psels = <RA_PSEL(RA_PSEL_GPT1, 1, 5)>,
				<RA_PSEL(RA_PSEL_GPT1, 1, 4)>;
		};
	};
};
Loading