Skip to content
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

rpi5: add pinctrl and scmi pinctrl Pin control protocol support #15

Closed
wants to merge 4 commits into from

Conversation

GrygiriiS
Copy link

@GrygiriiS GrygiriiS commented Aug 15, 2024

Based on the PR #14

  • added generic pinctrl interface
  • added bcm2712 pinctrl driver
  • added scmi pinctrl protocol

tested with https://github.com/GrygiriiS/linux/commits/gs_scmi_pinctrl_am_1/

Not tested under XEN as it depends on:
ARM TF #16
XEN xen-troops/xen#209

@GrygiriiS
Copy link
Author

CC: @lorc @oleksiimoisieiev

@GrygiriiS GrygiriiS force-pushed the scmi_pinctrl branch 2 times, most recently from f567b45 to 923e777 Compare August 17, 2024 10:34
@GrygiriiS GrygiriiS changed the title Draft: Scmi pinctrl rpi5: add pinctrl and scmi pinctrl Pin control protocol support Aug 17, 2024
@GrygiriiS
Copy link
Author

Ready for review.

drivers/scmi-msg/scmi_pinctrl.c Outdated Show resolved Hide resolved
drivers/scmi-msg/scmi_pinctrl.c Show resolved Hide resolved

uint16_t pinctrl_get_groups_count()
{
return 0;

Choose a reason for hiding this comment

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

I think here and below should be -ENOTSUP

Copy link
Author

Choose a reason for hiding this comment

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

No get _count should return 0 as safe value.

drivers/scmi-msg/scmi_pinctrl.c Outdated Show resolved Hide resolved
drivers/scmi-msg/scmi_pinctrl.c Outdated Show resolved Hide resolved
drivers/scmi-msg/scmi_pinctrl.c Outdated Show resolved Hide resolved
plat/rpi/rpi5/platform.mk Outdated Show resolved Hide resolved
Grygorii Strashko and others added 4 commits August 29, 2024 19:31
This defines the generic interface, and ops, which should provide
the platform specific implementation of pin control subsystem.
This driver was designed to be used from agents via SCP, as well as from
the other drivers, which requires pins configuration.

Signed-off-by: Oleksii Moisieiev <[email protected]>
Signed-off-by: Grygorii Strashko <[email protected]>
Add RPI5 BCM2712 pinctrl driver.

Signed-off-by: Grygorii Strashko <[email protected]>
Add ARM SCMI Pin control protocol implementation according to the SCMI spec
v3.2.

Limitation:
- PINCTRL_SETTINGS_GET supports only one Config per request.

Signed-off-by: Grygorii Strashko <[email protected]>
Signed-off-by: Oleksii Moisieiev <[email protected]>
Enable ARM SCMI Pin control protocol for RPI5.

Signed-off-by: Grygorii Strashko <[email protected]>
@GrygiriiS
Copy link
Author

Optimized generic pinctrl interface

@oleksiimoisieiev
Copy link

LGTM Reviewed-by: Oleksii Moisieiev <[email protected]>

@GrygiriiS
Copy link
Author

Closed as all work is now done in PR #18

@GrygiriiS GrygiriiS closed this Sep 3, 2024
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.

2 participants