-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
Enable MCUX_PIT with multiple pit channels #66336
Enable MCUX_PIT with multiple pit channels #66336
Conversation
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.
This is breaking support for S32Z2 boards, see https://github.com/zephyrproject-rtos/zephyr/blob/main/dts/arm/nxp/nxp_s32z27x_rtu0_r52.dtsi#L92. Please do the updates needed for these boards and their test overlays.
drivers/counter/counter_nxp_pit.c
Outdated
}, \ | ||
.base = (PIT_Type *)DT_INST_REG_ADDR(n), \ | ||
.irq_config_func = nxp_pit_irq_config_func_##n, \ | ||
.num_channels = DT_INST_FOREACH_CHILD(n, NXP_PIT_INC_FOR_CHANNEL_COUNT) 0, \ |
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.
cant use sep macro?
please investigate sep macro, I think the issue of the 1+ has been solved many times before without defining a 1+ macro
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.
It's not valid, the SEP macro requires the use of the node name which will concatenated with the equation node_name_1 + node_name_2, unless I missed some valuable documentation?
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.
DT_INST_FOREACH_CHILD_SEP_VARGS(n, DT_NODE_HAS_COMPAT, (+), nxp_pit_channel)
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.
Copyright legends need updates
tests/drivers/counter/counter_basic_api/boards/mimxrt1060_evk.overlay
Outdated
Show resolved
Hide resolved
The following west manifest projects have been modified in this Pull Request:
Note: This message is automatically posted and updated by the Manifest GitHub Action. |
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.
Needs converting to hwmv2
Should be resolved now |
@henrikbrixandersen please revisit |
@nordic-krch can you please visit this PR, you're assignee |
Renamed pit binding from nxp,kinetis-pit to nxp,pit Signed-off-by: Emilio Benavente <[email protected]>
Update the api named for the new nxp pit driver. Signed-off-by: Emilio Benavente <[email protected]>
Updating the nxp,pit driver to support mutliple channels. Updating the dts and board overlays to account for the changes. Signed-off-by: Emilio Benavente <[email protected]>
Enabled the PIT and Multi channel support for some of the rtXXXX devices. - rt1010 - rt1060 - rt1160 - rt1170 Signed-off-by: Emilio Benavente <[email protected]>
Updated the board documentation to reflect the enablement of the PIT peripheral. Signed-off-by: Emilio Benavente <[email protected]>
77eb425
Merging as @nordic-krch +1 was removed when we updated the manifest to point to the merged HAL side. |
Enable MCUX_PIT with multiple pit channels