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

hal: renesas: rz: Initial support for Clock Control #56

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nhutnguyenkc
Copy link
Contributor

Support to get clock frequency from device tree

Get clock frequency from device tree

Signed-off-by: Tien Nguyen <[email protected]>
Comment on lines +13 to +14
#define BSP_CFG_CLOCK_OSCCLK_HZ DT_PROP_OR(DT_NODELABEL(oscclk), clock_frequency, 24000000) /* OSC 24000000Hz */
#define BSP_CFG_CLOCK_PLL1_HZ (1100000000) /* PLL1 1100000000Hz */
Copy link
Collaborator

Choose a reason for hiding this comment

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

@nhutnguyenkc : I would like to confirm that OSC and PLL1 are fixed values as in HWM but the method to get value is different. OSC get from DT node, PLL1 is fixed definition. Is there any special reason here?

Copy link
Contributor Author

@nhutnguyenkc nhutnguyenkc Dec 24, 2024

Choose a reason for hiding this comment

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

@thaoluonguw , there is no special reason for it. I just thought that the BSP_CFG_CLOCK_PLL1_HZ is presenting for the frequency after PLL1 block and is the result of the calculation of OSC and PLL1. For example,

#define BSP_CFG_CLOCK_PLL1_HZ (BSP_CFG_CLOCK_OSCCLK_HZ/2)

But in case of RZ/G3S, no formula is provided, and only fixed value is showed in HWUM. Therefore, I would like to set the fixed value for it.

Please let me know if you have any suggestion.

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.

3 participants