Skip to content

scripts: genpinctrl: handle pins with analog switch#151

Merged
fabiobaltieri merged 2 commits into
zephyrproject-rtos:mainfrom
teslabs:fix-analog-switch-handling
Sep 26, 2022
Merged

scripts: genpinctrl: handle pins with analog switch#151
fabiobaltieri merged 2 commits into
zephyrproject-rtos:mainfrom
teslabs:fix-analog-switch-handling

Conversation

@gmarull

@gmarull gmarull commented Sep 26, 2022

Copy link
Copy Markdown
Member

This patch adds support for handling pins with analog switch (found in
H7 series). This feature was removed in a previous patch because it was
generating duplicate nodes. However, it removed some valid combinations.
This patch adds them back but with proper suffix (_c) avoiding duplicate
entries.

@gmarull gmarull requested a review from erwango September 26, 2022 08:18
@erwango

erwango commented Sep 26, 2022

Copy link
Copy Markdown
Member

@GeorgeCGV

@GeorgeCGV GeorgeCGV left a comment

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.

LGTM

ps: thanks, that was quick

This patch adds support for handling pins with analog switch (found in
H7 series). This feature was removed in a previous patch because it was
generating duplicate nodes. However, it removed some valid combinations.
This patch adds them back but with proper suffix (_c) avoiding duplicate
entries.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
Regenerate files so that pins with analog switch are present.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
@gmarull gmarull force-pushed the fix-analog-switch-handling branch from 62cceec to ac8814e Compare September 26, 2022 08:25
slew-rate = "very-high-speed";
};

/omit-if-no-ref/ octospim_p1_io2_pc2_c: octospim_p1_io2_pc2_c {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Sorry, but I'm not sure to follow. If these nodes are not duplicate. Why do they need to be disambiguated ?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I was wondering the same but then realized that the the pin name in the device datasheet is actually called PC2_C so I guess this makes sense.

@gmarull gmarull Sep 26, 2022

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I was wondering the same but then realized that the the pin name in the device datasheet is actually called PC2_C so I guess this makes sense.

yep, that's the point. previous file were actually wrong to my understanding.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ok, then this will require an update in release note.

@fabiobaltieri fabiobaltieri merged commit 642e199 into zephyrproject-rtos:main Sep 26, 2022
@gmarull gmarull deleted the fix-analog-switch-handling branch September 26, 2022 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants