From: Claudiu Beznea <claudiu.beznea@microchip.com>
To: <rjw@rjwysocki.net>, <viresh.kumar@linaro.org>, <robh+dt@kernel.org>
Cc: <linux-pm@vger.kernel.org>, <devicetree@vger.kernel.org>,
<linux-kernel@vger.kernel.org>,
Claudiu Beznea <claudiu.beznea@microchip.com>
Subject: [PATCH 0/3] cpufreq: sama7g5: add support for sama7g5
Date: Tue, 5 Jan 2021 12:22:24 +0200 [thread overview]
Message-ID: <1609842147-8161-1-git-send-email-claudiu.beznea@microchip.com> (raw)
Hi,
SAMA7G5 supports run-time changes of CPU frequency. This is done by
changing CPU's PLL. The block diagram explaining the relation b/w
CPU clock and its PLL is as follows:
+--------------> cpuck
|
+------+ | +-----+
cpupllck --> | pres |--+--> | div |---> mck
+------+ +-----+
where cpuck is the CPU's clock and mck is the system master clock 0
that feeds some other IPs. All the IPs feed by mck are glich free
aware.
Because MCK is also feed by cpuplllk the CPUFreq driver needs also
to handle this clock to avoid its under/over clocking: every
time the CPUFreq's .target_index API is called:
- the mck frequency is adjusted to avoid its overclocking/underclocking
- then the cpuck frequency is increased/lowered
- then mck frequency is adjusted to keep the initial 200MHz frequency
Thank you,
Claudiu Beznea
Claudiu Beznea (3):
dt-bindings: cpufreq: sama7g5-cpufreq: add dt bindings documentation
cpufreq: sama7g5: add cpufreq driver
MAINTAINERS: add sama7g5 cpufreq
.../bindings/cpufreq/cpufreq-sama7g5.yaml | 80 +++++
MAINTAINERS | 6 +
drivers/cpufreq/Kconfig.arm | 9 +
drivers/cpufreq/Makefile | 1 +
drivers/cpufreq/cpufreq-dt-platdev.c | 2 +
drivers/cpufreq/sama7g5-cpufreq.c | 371 +++++++++++++++++++++
6 files changed, 469 insertions(+)
create mode 100644 Documentation/devicetree/bindings/cpufreq/cpufreq-sama7g5.yaml
create mode 100644 drivers/cpufreq/sama7g5-cpufreq.c
--
2.7.4
next reply other threads:[~2021-01-05 10:24 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-05 10:22 Claudiu Beznea [this message]
2021-01-05 10:22 ` [PATCH 1/3] dt-bindings: cpufreq: sama7g5-cpufreq: add dt bindings documentation Claudiu Beznea
2021-01-05 17:04 ` Rob Herring
2021-01-05 10:22 ` [PATCH 2/3] cpufreq: sama7g5: add cpufreq driver Claudiu Beznea
2021-01-05 10:44 ` Viresh Kumar
2021-01-05 11:31 ` Claudiu.Beznea
2021-01-05 10:22 ` [PATCH 3/3] MAINTAINERS: add sama7g5 cpufreq Claudiu Beznea
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1609842147-8161-1-git-send-email-claudiu.beznea@microchip.com \
--to=claudiu.beznea@microchip.com \
--cc=devicetree@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=rjw@rjwysocki.net \
--cc=robh+dt@kernel.org \
--cc=viresh.kumar@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®