-
Notifications
You must be signed in to change notification settings - Fork 7.3k
drivers/pwm/it51xxx: implement pwm driver #88471
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
64f8e38
to
16b8f8f
Compare
rebase to resolve conflicts |
16b8f8f
to
c46a508
Compare
rebase to resolve conflicts |
e25f117
to
ee9bea9
Compare
rebase to resolve conflicts |
ee9bea9
to
26a8d3d
Compare
rebase to resolve conflicts |
26a8d3d
to
ed1d7f5
Compare
Hi @anangl, any comments will be appreciated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR implements a new PWM driver for the ITE it51xxx series chip.
- Introduces a header file with device binding macros and definitions.
- Adds a DTS binding YAML file defining device properties and PWM cells.
- Implements the PWM driver in a new source file with configuration, initialization, and cycle setting logic.
Reviewed Changes
Copilot reviewed 3 out of 8 changed files in this pull request and generated 1 comment.
File | Description |
---|---|
include/zephyr/dt-bindings/pwm/it51xxx_pwm.h | Added binding definitions and macro constants for PWM configuration. |
dts/bindings/pwm/ite,it51xxx-pwm.yaml | Defined device properties and bindings for the PWM controller. |
drivers/pwm/pwm_ite_it51xxx.c | Implemented the PWM driver including initialization and cycle logic. |
Files not reviewed (5)
- boards/ite/it515xx_evb/it515xx_evb.dts: Language not supported
- drivers/pwm/CMakeLists.txt: Language not supported
- drivers/pwm/Kconfig: Language not supported
- drivers/pwm/Kconfig.it51xxx: Language not supported
- dts/riscv/ite/it51xxx.dtsi: Language not supported
* Provides a type to hold PWM configuration flags. | ||
* | ||
* The upper 8 bits are reserved for SoC specific flags. | ||
* Output onpe-drain flag [ 8 ] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo in the comment: 'onpe-drain' should be corrected to 'open-drain'.
* Output onpe-drain flag [ 8 ] | |
* Output open-drain flag [ 8 ] |
Copilot uses AI. Check for mistakes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
ed1d7f5
to
81df179
Compare
Implement pwm driver for ITE it51xxx series chip. Signed-off-by: Ruibin Chang <[email protected]>
Implement pwm driver for ITE it51xxx series chip.