Skip to content

Conversation

natto1784
Copy link
Contributor

This patchset adds

  • TI EHRPWM driver
  • TI Syscon Clock Controller driver which the EHRPWM depends on for setting tbclk

@natto1784 natto1784 marked this pull request as ready for review April 17, 2025 10:55
@github-actions github-actions bot added area: Clock Control area: PWM Pulse Width Modulation platform: TI SimpleLink Texas Instruments SimpleLink MCU labels Apr 17, 2025
This is a syscon backed gate-clock driver which uses its parent syscon node
to write to MMRs corresponding to the clk-id to enable or disable a clock.

Signed-off-by: Amneesh Singh <[email protected]>
This is the driver for EPWM/EHRPWM module of TI SoCs. It only uses Action
Qualifier submodule currently.

Signed-off-by: Amneesh Singh <[email protected]>
@natto1784
Copy link
Contributor Author

natto1784 commented May 26, 2025

Hello, it has been a while since I added this. I would like some opinions on the clock_control driver of this patchset. As you can see we are handling multiple compatible strings in the same driver. This requires creation of multiple bindings. Is there a better way to do this?

@natto1784
Copy link
Contributor Author

CC: @gramsay0 @Ayush1325 @glneo - Please feel free to review if and when you get some time.

@vaishnavachath vaishnavachath requested a review from glneo June 17, 2025 12:34

#if DT_HAS_COMPAT_STATUS_OKAY(DT_AM64_COMPAT)
static const struct ti_syscon_gate_clk_id_data am64_clk_ids[] = {
{0, 0}, {0, 1}, {0, 2}, {0, 3}, {0, 4}, {0, 5}, {0, 6}, {0, 7}, {0, 8},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any good way to encode this data into DT so that we don't need to keep device specific data here in the driver?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, I replicated this behavior from Linux where several compat strings can stay in the same driver code.
To answer your question, this can be added to the DT, provided noone has a problem with this big array of register indices in the node.

Copy link

github-actions bot commented Sep 8, 2025

This pull request has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 14 days. Note, that you can always re-open a closed pull request at any time.

@github-actions github-actions bot added the Stale label Sep 8, 2025
@natto1784
Copy link
Contributor Author

not stale

Copy link
Member

@Ayush1325 Ayush1325 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add the device to the dts of whatever board you are testing with?

@github-actions github-actions bot removed the Stale label Sep 9, 2025
@natto1784
Copy link
Contributor Author

natto1784 commented Sep 18, 2025

I think we should wait on the clock controller to get merged so that we can avoid the clock hack using macros in the driver: #90216

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: Clock Control area: PWM Pulse Width Modulation platform: TI SimpleLink Texas Instruments SimpleLink MCU

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants