starfive-tech / JH7100_Docs

59 stars 8 forks source link

documentation on PCR (Power/Clock/Reset) Management Unit? #15

Open pdp7 opened 3 years ago

pdp7 commented 3 years ago

From https://github.com/esmil/linux/pull/18#issuecomment-853620440 @geertu writes

Currently the GPIO driver doesn't use this clock. The only use I can see is for power management.

While we do know GPIO is clocked by APB1, we do not know yet whether it is clocked directly (always-on), or if the clock supply can be gated, through a (to be implemented) gateable child clock of APB1.

I wouldn't be surprised if the "PCR (Power/Clock/Reset) Management Unit" would provide invididual gateable clocks for each module, which would bring us to power-domains and Runtime PM. Probably the PMR provides individual resets for each module, too.

Any chance we can get full documentation for the PMR block?

pdp7 commented 3 years ago

@MichaelZhuxx any idea on if there is information on power domains?

MichaelZhuxx commented 3 years ago

@pdp7 double confirmed with SoC team, there is no power gate for JH7100 that means all IPs will be powered up if SoC is powered. that's why our JH7100 consume so much power. howerver, JH7110 will fix this issue.