-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
boards: renesas: Add configurations to support pwm on EK-RA8D1
Add support for PWM driver on EK-RA8D1 Signed-off-by: Quy Tran <[email protected]>
- Loading branch information
1 parent
1391355
commit 4793e00
Showing
4 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/* | ||
* Copyright (c) 2024 Renesas Electronics Corporation | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
#include <zephyr/dt-bindings/pwm/pwm.h> | ||
#include <zephyr/dt-bindings/pwm/ra_pwm.h> | ||
|
||
/ { | ||
pwm_loopback_0 { | ||
compatible = "test-pwm-loopback"; | ||
/* first index must be a 32-Bit timer */ | ||
pwms = <&pwm7 0 0 PWM_POLARITY_NORMAL>, | ||
<&pwm9 0 0 PWM_POLARITY_NORMAL>; | ||
}; | ||
}; | ||
|
||
&pinctrl { | ||
pwm9_default: pwm9_default { | ||
group1 { | ||
/* GTIOC9A */ | ||
psels = <RA_PSEL(RA_PSEL_GPT1, 4, 11)>; | ||
}; | ||
group2 { | ||
/* GTIOC9B */ | ||
psels = <RA_PSEL(RA_PSEL_GPT1, 4, 10)>; | ||
}; | ||
}; | ||
}; | ||
|
||
&pwm9 { | ||
pinctrl-0 = <&pwm9_default>; | ||
pinctrl-names = "default"; | ||
interrupts = <50 1>, <51 1>; | ||
interrupt-names = "gtioca", "overflow"; | ||
status = "okay"; | ||
}; |