-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
drivers: pwm: Add Intel PCH blinky PWM driver #59769
drivers: pwm: Add Intel PCH blinky PWM driver #59769
Conversation
3b64448
to
d53dfba
Compare
d53dfba
to
d06a7f3
Compare
d06a7f3
to
8aa1940
Compare
drivers/pwm/Kconfig.intel_blinky
Outdated
hex "PWM intel control register offset" | ||
default 0x304 |
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.
Shouldn't this be specified in devicetree instead?
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.
I will move this to soc.h
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.
Hi @henrikbrixandersen, I have added "reg-offset" property to send it through device tree.
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
description: INTEL BLINKY PWM |
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.
All upper-case intended?
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.
No, I will change this to lower case.
clock-frequency: | ||
type: int | ||
required: true | ||
description: PWM Peripheral Clock frequency in Hz |
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.
No need for an input clock (e.g. having a clocks
property)?
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.
clocks is of type "phandle-array" but here I just need to mention IP frequency, so this clock frequency is needed.
e22e788
to
2a16587
Compare
This patch adds support for PWM blink which is found in intel's PCH hardwares. Signed-off-by: Anisetti Avinash Krishna <[email protected]>
Adds pwm node for intel raptorlake pch pwm blink IP Signed-off-by: Anisetti Avinash Krishna <[email protected]>
2a16587
to
4d989b9
Compare
Enable pwm api test for intel blinky on rpl_crb board. Signed-off-by: Anisetti Avinash Krishna <[email protected]>
4cc4e44
4d989b9
to
4cc4e44
Compare
Submitting this PR for review for new PWM driver for the IP found in multiple intel PCH hardwares.
This PR includes commits for
a) The driver code
b) dts node for pwm
c) enable pwm_api test for rpl_crb
we can verify using "west build -b rpl_crb tests/drivers/pwm/pwm_api/"