Skip to content

projects/ad469x_evb: Add PWM_OFFLOAD parameter for ad4692 support #2030

Merged
PIoandan merged 2 commits intomainfrom
fix_ad4692
Apr 29, 2026
Merged

projects/ad469x_evb: Add PWM_OFFLOAD parameter for ad4692 support #2030
PIoandan merged 2 commits intomainfrom
fix_ad4692

Conversation

@PIoandan
Copy link
Copy Markdown
Collaborator

@PIoandan PIoandan commented Mar 17, 2026

PR Description

Add PWM_OFFLOAD parameter to support ad4692 register and manual modes alongside the existing ad469x functionality.

PR Type

  • Bug fix (change that fixes an issue)
  • New feature (change that adds new functionality)
  • Breaking change (has dependencies in other repos or will cause CI to fail)
  • Documentation

PR Checklist

  • I have followed the code style guidelines
  • I have performed a self-review of changes
  • I have compiled all hdl projects and libraries affected by this PR
  • I have tested in hardware affected projects, at least on relevant boards
  • I have commented my code, at least hard-to-understand parts
  • I have signed off all commits from this PR
  • I have updated the documentation (wiki pages, ReadMe files, Copyright etc)
  • I have not introduced new Warnings/Critical Warnings on compilation
  • I have added new hdl testbenches or updated existing ones

```
cd projects/ad469x_evb/coraz7s
make SPI_4WIRE=0
make SPI_4WIRE=0 PWM_OFFLOAD=0
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Readme must contain all valid parameter combination

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Done.

```
cd projects/ad469x_evb/zed
make SPI_4WIRE=0
make SPI_4WIRE=0 PWM_OFFLOAD=0
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Readme must contain all valid parameter combination

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Done.

adi_project ad469x_evb_coraz7s 0 [list \
SPI_4WIRE [get_env_param SPI_4WIRE 0]]
SPI_4WIRE [get_env_param SPI_4WIRE 0] \
PWM_OFFLOAD [get_env_param PWM_OFFLOAD 0]]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

indentation

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Done.

set PWM_OFFLOAD $ad_project_params(PWM_OFFLOAD)
} else {
set PWM_OFFLOAD 0
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

why use different param handling?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Fixed.


# CNV gating configuration

if {$PWM_OFFLOAD == 0} {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

duplicating IF statements looks confusing. use single IF statements and comment properly. what is the relation with the SPI_4WIRE param?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Slightly reorganized.

@PIoandan PIoandan requested a review from sarpadi April 1, 2026 07:10
sarpadi and others added 2 commits April 29, 2026 16:09
Signed-off-by: sarpadi <[email protected]>
Signed-off-by: Pop Ioan Daniel <[email protected]>
Signed-off-by: Pop Ioan Daniel <[email protected]>
@PIoandan PIoandan merged commit 2779008 into main Apr 29, 2026
7 checks passed
@PIoandan PIoandan deleted the fix_ad4692 branch April 29, 2026 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants