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 1/3] dt-bindings: cpufreq: sama7g5-cpufreq: add dt bindings documentation
Date: Tue, 5 Jan 2021 12:22:25 +0200 [thread overview]
Message-ID: <1609842147-8161-2-git-send-email-claudiu.beznea@microchip.com> (raw)
In-Reply-To: <1609842147-8161-1-git-send-email-claudiu.beznea@microchip.com>
Add DT bindings documentation for SAMA7G5 CPUFreq driver.
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
---
.../bindings/cpufreq/cpufreq-sama7g5.yaml | 80 ++++++++++++++++++++++
1 file changed, 80 insertions(+)
create mode 100644 Documentation/devicetree/bindings/cpufreq/cpufreq-sama7g5.yaml
diff --git a/Documentation/devicetree/bindings/cpufreq/cpufreq-sama7g5.yaml b/Documentation/devicetree/bindings/cpufreq/cpufreq-sama7g5.yaml
new file mode 100644
index 000000000000..e8185a614035
--- /dev/null
+++ b/Documentation/devicetree/bindings/cpufreq/cpufreq-sama7g5.yaml
@@ -0,0 +1,80 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/cpufreq/cpufreq-sama7g5.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: SAMA7G5's CPUFreq device tree bindings
+
+maintainers:
+ - Claudiu Beznea <claudiu.beznea@microchip.com>
+
+properties:
+ clocks:
+ items:
+ - description: The clock feeding the CPU
+ - description: The clock sharing the PLL and prescaller with CPU clock
+
+ clock-names:
+ items:
+ - const: cpu
+ - const: mck
+
+ operating-points-v2:
+ $ref: /schemas/types.yaml#/definitions/phandle
+ description:
+ Phandle to OPP table
+
+ cpu-supply:
+ $ref: /schemas/types.yaml#/definitions/phandle
+ description:
+ Phandle to CPU's voltage regulator
+
+required:
+ - clocks
+ - clock-names
+ - operating-points-v2
+ - cpu-supply
+
+additionalProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/clock/at91.h>
+ cpu_opp_table: opp-table {
+ compatible = "operating-points-v2";
+
+ opp-600000000 {
+ opp-hz = /bits/ 64 <600000000>;
+ opp-microvolt = <1125000 1050000 1225000>;
+ clock-latency-ns = <50000>;
+ };
+
+ opp-800000000 {
+ opp-hz = /bits/ 64 <800000000>;
+ opp-microvolt = <1175000 1125000 1225000>;
+ clock-latency-ns = <50000>;
+ };
+
+ opp-1000000000 {
+ opp-hz = /bits/ 64 <1000000000>;
+ opp-microvolt = <1275000 1225000 1300000>;
+ clock-latency-ns = <50000>;
+ };
+ };
+
+ - |
+ cpus {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ cpu0: cpu@0 {
+ device_type = "cpu";
+ compatible = "arm,cortex-a7";
+ reg = <0x0>;
+ clocks = <&pmc PMC_TYPE_CORE PMC_CPU>, <&pmc PMC_TYPE_CORE PMC_MCK>;
+ clock-names = "cpu", "mck";
+ operating-points-v2 = <&cpu_opp_table>;
+ cpu-supply = <&vddcpu>;
+ };
+ };
--
2.7.4
next prev parent 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 [PATCH 0/3] cpufreq: sama7g5: add support for sama7g5 Claudiu Beznea
2021-01-05 10:22 ` Claudiu Beznea [this message]
2021-01-05 17:04 ` [PATCH 1/3] dt-bindings: cpufreq: sama7g5-cpufreq: add dt bindings documentation 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-2-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;
as well as URLs for NNTP newsgroup(s).