From: Jerome Brunet <jbrunet@baylibre.com>
To: Jonathan Cameron <jic23@kernel.org>,
Lars-Peter Clausen <lars@metafoo.de>,
Neil Armstrong <neil.armstrong@linaro.org>
Cc: Jerome Brunet <jbrunet@baylibre.com>,
Kevin Hilman <khilman@baylibre.com>,
linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.org,
linux-iio@vger.kernel.org, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>
Subject: [PATCH 1/2] dt-bindings: iio: frequency: add clock measure support
Date: Mon, 24 Jun 2024 19:31:02 +0200 [thread overview]
Message-ID: <20240624173105.909554-2-jbrunet@baylibre.com> (raw)
In-Reply-To: <20240624173105.909554-1-jbrunet@baylibre.com>
Introduce new bindings for the clock measure IP found Amlogic SoCs.
These new bindings help bring IIO support to AML clock measure.
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
---
NOTE:
#1: Splitting the register space looks odd. This is done to help support
future SoCs. From meson8 to sm1, duty register comes first, then the
reg space. On s4 and c3, duty comes after the reg space.
#2: 'reg' may look like a poor choice of name. This comes from the
documentation.
- MSR_CLK_REGx for the 'reg' space (x being a number)
- MSR_CLK_DUTY for the 'duty' space
.../iio/frequency/amlogic,clk-msr-io.yaml | 50 +++++++++++++++++++
1 file changed, 50 insertions(+)
create mode 100644 Documentation/devicetree/bindings/iio/frequency/amlogic,clk-msr-io.yaml
diff --git a/Documentation/devicetree/bindings/iio/frequency/amlogic,clk-msr-io.yaml b/Documentation/devicetree/bindings/iio/frequency/amlogic,clk-msr-io.yaml
new file mode 100644
index 000000000000..eeb268b4a607
--- /dev/null
+++ b/Documentation/devicetree/bindings/iio/frequency/amlogic,clk-msr-io.yaml
@@ -0,0 +1,50 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/iio/frequency/amlogic,clk-msr-io.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Amlogic System Clock Measurer
+
+description:
+ Internal clock rate sensor within Amlogic SoCs
+
+maintainers:
+ - Neil Armstrong <neil.armstrong@linaro.org>
+
+properties:
+ compatible:
+ enum:
+ - amlogic,meson8-clk-msr-io
+ - amlogic,gx-clk-msr-io
+ - amlogic,axg-clk-msr-io
+ - amlogic,g12a-clk-msr-io
+ - amlogic,sm1-clk-msr-io
+
+ reg:
+ maxItems: 2
+
+ reg-names:
+ items:
+ - const: reg
+ - const: duty
+
+ "#io-channel-cells":
+ const: 1
+
+required:
+ - compatible
+ - reg
+ - reg-names
+
+unevaluatedProperties: false
+
+examples:
+ - |
+ clk_msr: rate-sensor@18000 {
+ compatible = "amlogic,axg-clk-msr-io";
+ reg = <0x18004 0xc>,
+ <0x18000 0x4>;
+ reg-names = "reg", "duty";
+ #io-channel-cells = <1>;
+ };
--
2.43.0
next prev parent reply other threads:[~2024-06-24 17:31 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-24 17:31 [PATCH 0/2] iio: frequency: add iio support for Amlogic clock measure Jerome Brunet
2024-06-24 17:31 ` Jerome Brunet [this message]
2024-06-25 5:38 ` [PATCH 1/2] dt-bindings: iio: frequency: add clock measure support Krzysztof Kozlowski
2024-06-24 17:31 ` [PATCH 2/2] iio: frequency: add amlogic " Jerome Brunet
2024-06-24 22:51 ` David Lechner
2024-06-24 23:03 ` David Lechner
2024-06-25 8:31 ` Jerome Brunet
2024-06-25 14:52 ` David Lechner
2024-06-25 16:59 ` Jerome Brunet
2024-06-29 19:26 ` Jonathan Cameron
2024-06-29 19:40 ` Jonathan Cameron
2024-06-30 7:21 ` Jerome Brunet
2024-06-30 10:17 ` Jonathan Cameron
2024-06-25 9:38 ` [PATCH 0/2] iio: frequency: add iio support for Amlogic clock measure Neil Armstrong
2024-06-25 9:53 ` Jerome Brunet
2024-06-25 13:18 ` Neil Armstrong
2024-06-25 13:51 ` Jerome Brunet
2024-07-01 7:41 ` Neil Armstrong
2024-07-01 9:01 ` Jerome Brunet
2024-07-01 9:10 ` Neil Armstrong
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=20240624173105.909554-2-jbrunet@baylibre.com \
--to=jbrunet@baylibre.com \
--cc=conor+dt@kernel.org \
--cc=jic23@kernel.org \
--cc=khilman@baylibre.com \
--cc=krzk+dt@kernel.org \
--cc=lars@metafoo.de \
--cc=linux-amlogic@lists.infradead.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=neil.armstrong@linaro.org \
--cc=robh@kernel.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