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: Danh Doan <danh.doan.ue@bp.renesas.com>
This commit is contained in:
parent
f75e3bad80
commit
201a7c630a
39 changed files with 237 additions and 0 deletions
|
|
@ -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`
|
||||
|
|
|
|||
|
|
@ -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)>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
|
|
@ -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)>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -153,3 +153,12 @@
|
|||
interrupts = <5 12>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&pwm1 {
|
||||
pinctrl-0 = <&pwm1_default>;
|
||||
pinctrl-names = "default";
|
||||
interrupts = <63 1>, <64 1>;
|
||||
interrupt-names = "gtioca", "overflow";
|
||||
divider = <RA_PWM_SOURCE_DIV_256>;
|
||||
status = "okay";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -104,6 +104,8 @@ The below features are currently supported on Zephyr OS for EK-RA4M2 board:
|
|||
+-----------+------------+----------------------+
|
||||
| ADC | on-chip | adc |
|
||||
+-----------+------------+----------------------+
|
||||
| PWM | on-chip | pwm |
|
||||
+-----------+------------+----------------------+
|
||||
|
||||
Other hardware features are currently not supported by the port.
|
||||
|
||||
|
|
|
|||
|
|
@ -29,4 +29,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)>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -116,3 +116,11 @@
|
|||
interrupts = <42 12>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&pwm1 {
|
||||
pinctrl-0 = <&pwm1_default>;
|
||||
pinctrl-names = "default";
|
||||
interrupts = <63 1>, <64 1>;
|
||||
interrupt-names = "gtioca", "overflow";
|
||||
status = "okay";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -106,6 +106,8 @@ The below features are currently supported on Zephyr OS for EK-RA4M3 board:
|
|||
+-----------+------------+----------------------+
|
||||
| ADC | on-chip | adc |
|
||||
+-----------+------------+----------------------+
|
||||
| PWM | on-chip | pwm |
|
||||
+-----------+------------+----------------------+
|
||||
|
||||
Other hardware features are currently not supported by the port.
|
||||
|
||||
|
|
|
|||
|
|
@ -29,4 +29,12 @@
|
|||
renesas,analog-enable;
|
||||
};
|
||||
};
|
||||
|
||||
pwm1_default: pwm1_default {
|
||||
group1 {
|
||||
/* GTIOC1A GTIOC1B */
|
||||
psels = <RA_PSEL(RA_PSEL_GPT1, 1, 9)>,
|
||||
<RA_PSEL(RA_PSEL_GPT1, 1, 10)>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -116,3 +116,11 @@
|
|||
interrupts = <42 12>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&pwm1 {
|
||||
pinctrl-0 = <&pwm1_default>;
|
||||
pinctrl-names = "default";
|
||||
interrupts = <63 1>, <64 1>;
|
||||
interrupt-names = "gtioca", "overflow";
|
||||
status = "okay";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -98,6 +98,8 @@ The below features are currently supported on Zephyr OS for EK-RA4W1 board:
|
|||
+-----------+------------+----------------------+
|
||||
| ADC | on-chip | adc |
|
||||
+-----------+------------+----------------------+
|
||||
| PWM | on-chip | pwm |
|
||||
+-----------+------------+----------------------+
|
||||
|
||||
Other hardware features are currently not supported by the port.
|
||||
|
||||
|
|
|
|||
|
|
@ -29,4 +29,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)>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -93,3 +93,11 @@
|
|||
interrupts = <31 12>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&pwm1 {
|
||||
pinctrl-0 = <&pwm1_default>;
|
||||
pinctrl-names = "default";
|
||||
interrupts = <8 1>, <9 1>;
|
||||
interrupt-names = "gtioca", "overflow";
|
||||
status = "okay";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -102,6 +102,8 @@ The below features are currently supported on Zephyr OS for EK-RA6E2 board:
|
|||
+-----------+------------+----------------------+
|
||||
| ADC | on-chip | adc |
|
||||
+-----------+------------+----------------------+
|
||||
| PWM | on-chip | pwm |
|
||||
+-----------+------------+----------------------+
|
||||
|
||||
Other hardware features are currently not supported by the port.
|
||||
|
||||
|
|
|
|||
|
|
@ -38,4 +38,12 @@
|
|||
renesas,analog-enable;
|
||||
};
|
||||
};
|
||||
|
||||
pwm1_default: pwm1_default {
|
||||
group1 {
|
||||
/* GTIOC1A GTIOC1B */
|
||||
psels = <RA_PSEL(RA_PSEL_GPT1, 4, 9)>,
|
||||
<RA_PSEL(RA_PSEL_GPT1, 4, 8)>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -168,3 +168,12 @@
|
|||
interrupts = <5 12>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&pwm1 {
|
||||
pinctrl-0 = <&pwm1_default>;
|
||||
pinctrl-names = "default";
|
||||
interrupts = <63 1>, <64 1>;
|
||||
interrupt-names = "gtioca", "overflow";
|
||||
divider = <RA_PWM_SOURCE_DIV_256>;
|
||||
status = "okay";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -102,6 +102,8 @@ The below features are currently supported on Zephyr OS for EK-RA6M1 board:
|
|||
+-----------+------------+----------------------+
|
||||
| ADC | on-chip | adc |
|
||||
+-----------+------------+----------------------+
|
||||
| PWM | on-chip | pwm |
|
||||
+-----------+------------+----------------------+
|
||||
|
||||
Other hardware features are currently not supported by the port.
|
||||
|
||||
|
|
|
|||
|
|
@ -38,4 +38,12 @@
|
|||
renesas,analog-enable;
|
||||
};
|
||||
};
|
||||
|
||||
pwm1_default: pwm1_default {
|
||||
group1 {
|
||||
/* GTIOC1A GTIOC1B */
|
||||
psels = <RA_PSEL(RA_PSEL_GPT1, 4, 5)>,
|
||||
<RA_PSEL(RA_PSEL_GPT1, 4, 6)>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -114,3 +114,11 @@
|
|||
interrupts = <41 12>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&pwm1 {
|
||||
pinctrl-0 = <&pwm1_default>;
|
||||
pinctrl-names = "default";
|
||||
interrupts = <63 1>, <64 1>;
|
||||
interrupt-names = "gtioca", "overflow";
|
||||
status = "okay";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -96,6 +96,8 @@ The below features are currently supported on Zephyr OS for EK-RA6M2 board:
|
|||
+-----------+------------+----------------------+
|
||||
| ADC | on-chip | adc |
|
||||
+-----------+------------+----------------------+
|
||||
| PWM | on-chip | pwm |
|
||||
+-----------+------------+----------------------+
|
||||
|
||||
Other hardware features are currently not supported by the port.
|
||||
|
||||
|
|
|
|||
|
|
@ -38,4 +38,12 @@
|
|||
renesas,analog-enable;
|
||||
};
|
||||
};
|
||||
|
||||
pwm1_default: pwm1_default {
|
||||
group1 {
|
||||
/* GTIOC1A GTIOC1B */
|
||||
psels = <RA_PSEL(RA_PSEL_GPT1, 4, 5)>,
|
||||
<RA_PSEL(RA_PSEL_GPT1, 4, 6)>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -110,3 +110,11 @@
|
|||
interrupts = <41 12>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&pwm1 {
|
||||
pinctrl-0 = <&pwm1_default>;
|
||||
pinctrl-names = "default";
|
||||
interrupts = <63 1>, <64 1>;
|
||||
interrupt-names = "gtioca", "overflow";
|
||||
status = "okay";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -106,6 +106,8 @@ The below features are currently supported on Zephyr OS for EK-RA6M3 board:
|
|||
+-----------+------------+----------------------+
|
||||
| ADC | on-chip | adc |
|
||||
+-----------+------------+----------------------+
|
||||
| PWM | on-chip | pwm |
|
||||
+-----------+------------+----------------------+
|
||||
|
||||
Other hardware features are currently not supported by the port.
|
||||
|
||||
|
|
|
|||
|
|
@ -45,4 +45,12 @@
|
|||
renesas,analog-enable;
|
||||
};
|
||||
};
|
||||
|
||||
pwm1_default: pwm1_default {
|
||||
group1 {
|
||||
/* GTIOC1A GTIOC1B */
|
||||
psels = <RA_PSEL(RA_PSEL_GPT1, 4, 5)>,
|
||||
<RA_PSEL(RA_PSEL_GPT1, 4, 6)>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -151,3 +151,11 @@
|
|||
interrupts = <42 12>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&pwm1 {
|
||||
pinctrl-0 = <&pwm1_default>;
|
||||
pinctrl-names = "default";
|
||||
interrupts = <63 1>, <64 1>;
|
||||
interrupt-names = "gtioca", "overflow";
|
||||
status = "okay";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -109,6 +109,8 @@ The below features are currently supported on Zephyr OS for EK-RA6M4 board:
|
|||
+-----------+------------+----------------------+
|
||||
| ADC | on-chip | adc |
|
||||
+-----------+------------+----------------------+
|
||||
| PWM | on-chip | pwm |
|
||||
+-----------+------------+----------------------+
|
||||
|
||||
Other hardware features are currently not supported by the port.
|
||||
|
||||
|
|
|
|||
|
|
@ -38,4 +38,12 @@
|
|||
renesas,analog-enable;
|
||||
};
|
||||
};
|
||||
|
||||
pwm1_default: pwm1_default {
|
||||
group1 {
|
||||
/* GTIOC1A GTIOC1B */
|
||||
psels = <RA_PSEL(RA_PSEL_GPT1, 4, 5)>,
|
||||
<RA_PSEL(RA_PSEL_GPT1, 4, 6)>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -134,3 +134,11 @@
|
|||
interrupts = <42 12>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&pwm1 {
|
||||
pinctrl-0 = <&pwm1_default>;
|
||||
pinctrl-names = "default";
|
||||
interrupts = <63 1>, <64 1>;
|
||||
interrupt-names = "gtioca", "overflow";
|
||||
status = "okay";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -109,6 +109,8 @@ The below features are currently supported on Zephyr OS for EK-RA6M5 board:
|
|||
+-----------+------------+----------------------+
|
||||
| ADC | on-chip | adc |
|
||||
+-----------+------------+----------------------+
|
||||
| PWM | on-chip | pwm |
|
||||
+-----------+------------+----------------------+
|
||||
|
||||
Other hardware features are currently not supported by the port.
|
||||
|
||||
|
|
|
|||
|
|
@ -45,4 +45,12 @@
|
|||
renesas,analog-enable;
|
||||
};
|
||||
};
|
||||
|
||||
pwm1_default: pwm1_default {
|
||||
group1 {
|
||||
/* GTIOC1A GTIOC1B */
|
||||
psels = <RA_PSEL(RA_PSEL_GPT1, 4, 5)>,
|
||||
<RA_PSEL(RA_PSEL_GPT1, 4, 6)>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -138,3 +138,11 @@
|
|||
interrupts = <42 12>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&pwm1 {
|
||||
pinctrl-0 = <&pwm1_default>;
|
||||
pinctrl-names = "default";
|
||||
interrupts = <63 1>, <64 1>;
|
||||
interrupt-names = "gtioca", "overflow";
|
||||
status = "okay";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -91,6 +91,8 @@ The below features are currently supported on Zephyr OS for FPB-RA6E1 board:
|
|||
+-----------+------------+----------------------+
|
||||
| ADC | on-chip | adc |
|
||||
+-----------+------------+----------------------+
|
||||
| PWM | on-chip | pwm |
|
||||
+-----------+------------+----------------------+
|
||||
|
||||
Other hardware features are currently not supported by the port.
|
||||
|
||||
|
|
|
|||
|
|
@ -38,4 +38,12 @@
|
|||
renesas,analog-enable;
|
||||
};
|
||||
};
|
||||
|
||||
pwm1_default: pwm1_default {
|
||||
group1 {
|
||||
/* GTIOC1A GTIOC1B */
|
||||
psels = <RA_PSEL(RA_PSEL_GPT1, 4, 5)>,
|
||||
<RA_PSEL(RA_PSEL_GPT1, 4, 6)>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -124,3 +124,11 @@
|
|||
interrupts = <41 12>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&pwm1 {
|
||||
pinctrl-0 = <&pwm1_default>;
|
||||
pinctrl-names = "default";
|
||||
interrupts = <63 1>, <64 1>;
|
||||
interrupt-names = "gtioca", "overflow";
|
||||
status = "okay";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -89,6 +89,8 @@ The below features are currently supported on Zephyr OS for FPB-RA6E2 board:
|
|||
+-----------+------------+----------------------+
|
||||
| ADC | on-chip | adc |
|
||||
+-----------+------------+----------------------+
|
||||
| PWM | on-chip | pwm |
|
||||
+-----------+------------+----------------------+
|
||||
|
||||
Other hardware features are currently not supported by the port.
|
||||
|
||||
|
|
|
|||
|
|
@ -29,4 +29,12 @@
|
|||
renesas,analog-enable;
|
||||
};
|
||||
};
|
||||
|
||||
pwm1_default: pwm1_default {
|
||||
group1 {
|
||||
/* GTIOC1A GTIOC1B */
|
||||
psels = <RA_PSEL(RA_PSEL_GPT1, 4, 9)>,
|
||||
<RA_PSEL(RA_PSEL_GPT1, 4, 8)>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -114,3 +114,12 @@
|
|||
interrupts = <41 12>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&pwm1 {
|
||||
pinctrl-0 = <&pwm1_default>;
|
||||
pinctrl-names = "default";
|
||||
interrupts = <63 1>, <64 1>;
|
||||
interrupt-names = "gtioca", "overflow";
|
||||
divider = <RA_PWM_SOURCE_DIV_256>;
|
||||
status = "okay";
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue