From: Vignesh Raghavendra <vigneshr@ti.com>
To: Michael Turquette <mturquette@baylibre.com>,
Stephen Boyd <sboyd@kernel.org>, Rob Herring <robh+dt@kernel.org>,
Mark Rutland <mark.rutland@arm.com>,
Santosh Shilimkar <ssantosh@kernel.org>
Cc: <linux-clk@vger.kernel.org>, <devicetree@vger.kernel.org>,
<linux-kernel@vger.kernel.org>,
Vignesh Raghavendra <vigneshr@ti.com>,
Tero Kristo <t-kristo@ti.com>
Subject: [PATCH v2 1/2] dt-bindings: clock: Add binding documentation for TI syscon gate clock
Date: Fri, 7 Feb 2020 10:14:24 +0530 [thread overview]
Message-ID: <20200207044425.32398-2-vigneshr@ti.com> (raw)
In-Reply-To: <20200207044425.32398-1-vigneshr@ti.com>
Add dt bindings for TI syscon gate clock driver that is used to control
EHRPWM's TimeBase clock (TBCLK) on TI's AM654 SoC.
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
---
.../bindings/clock/ti,am654-ehrpwm-tbclk.yaml | 47 +++++++++++++++++++
1 file changed, 47 insertions(+)
create mode 100644 Documentation/devicetree/bindings/clock/ti,am654-ehrpwm-tbclk.yaml
diff --git a/Documentation/devicetree/bindings/clock/ti,am654-ehrpwm-tbclk.yaml b/Documentation/devicetree/bindings/clock/ti,am654-ehrpwm-tbclk.yaml
new file mode 100644
index 000000000000..98fcac2b41f3
--- /dev/null
+++ b/Documentation/devicetree/bindings/clock/ti,am654-ehrpwm-tbclk.yaml
@@ -0,0 +1,47 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/clock/ti,am654-ehrpwm-tbclk.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: TI syscon gate clock driver
+
+maintainers:
+ - Vignesh Raghavendra <vigneshr@ti.com>
+
+description: |
+
+ This binding uses common clock bindings
+ Documentation/devicetree/bindings/clock/clock-bindings.txt
+
+properties:
+ compatible:
+ items:
+ - const: ti,am654-ehrpwm-tbclk
+
+ "#clock-cells":
+ const: 1
+
+ ti,tbclk-syscon:
+ $ref: /schemas/types.yaml#/definitions/phandle
+ description:
+ Phandle to the system controller node that has bits to
+ control eHRPWM's TBCLK
+
+required:
+ - compatible
+ - "#clock-cells"
+ - ti,tbclk-syscon
+
+examples:
+ - |
+ tbclk_ctrl: tbclk_ctrl@4140 {
+ compatible = "syscon";
+ reg = <0x4140 0x18>;
+ };
+
+ ehrpwm_tbclk: clk0 {
+ compatible = "ti,am654-ehrpwm-tbclk";
+ #clock-cells = <1>;
+ ti,tbclk-syscon = <&tbclk_ctrl>;
+ };
--
2.25.0
next prev parent reply other threads:[~2020-02-07 4:44 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-07 4:44 [PATCH v2 0/2] clk: keystone: Add new driver to handle ehrpwm tbclk Vignesh Raghavendra
2020-02-07 4:44 ` Vignesh Raghavendra [this message]
2020-02-10 18:45 ` [PATCH v2 1/2] dt-bindings: clock: Add binding documentation for TI syscon gate clock Stephen Boyd
2020-02-15 12:37 ` Vignesh Raghavendra
2020-02-07 4:44 ` [PATCH v2 2/2] clk: keystone: Add new driver to handle syscon based clocks Vignesh Raghavendra
2020-02-10 18:59 ` Stephen Boyd
2020-02-15 12:42 ` Vignesh Raghavendra
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=20200207044425.32398-2-vigneshr@ti.com \
--to=vigneshr@ti.com \
--cc=devicetree@vger.kernel.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=mturquette@baylibre.com \
--cc=robh+dt@kernel.org \
--cc=sboyd@kernel.org \
--cc=ssantosh@kernel.org \
--cc=t-kristo@ti.com \
/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).