From: Tomasz Figa <t.figa@samsung.com>
To: linux-samsung-soc@vger.kernel.org
Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org,
Kukjin Kim <kgene.kim@samsung.com>,
Mike Turquette <mturquette@linaro.org>,
Daniel Lezcano <daniel.lezcano@linaro.org>,
Mark Rutland <mark.rutland@arm.com>,
Pawel Moll <pawel.moll@arm.com>,
Rob Herring <rob.herring@calxeda.com>,
Stephen Warren <swarren@wwwdotorg.org>,
Thomas Abraham <thomas.abraham@linaro.org>,
Thomas Gleixner <tglx@linutronix.de>,
Tushar Behera <tushar.behera@linaro.org>,
Yadwinder Singh Brar <yadi.brar@samsung.com>,
Doug Anderson <dianders@chromium.org>,
Kumar Gala <galak@codeaurora.org>,
Tomasz Figa <t.figa@samsung.com>,
Kyungmin Park <kyungmin.park@samsung.com>
Subject: [PATCH v2 01/16] pwm: samsung: Update DT bindings documentation to cover clocks
Date: Mon, 26 Aug 2013 19:08:56 +0200 [thread overview]
Message-ID: <1377536951-9307-2-git-send-email-t.figa@samsung.com> (raw)
In-Reply-To: <1377536951-9307-1-git-send-email-t.figa@samsung.com>
PWM driver consumes at least one and up to three clocks, which need to be
specified in device tree when used. This patch updates bindings
documentation to add information about clocks.
Signed-off-by: Tomasz Figa <t.figa@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Stephen Warren <swarren@nvidia.com>
---
Documentation/devicetree/bindings/pwm/pwm-samsung.txt | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/Documentation/devicetree/bindings/pwm/pwm-samsung.txt b/Documentation/devicetree/bindings/pwm/pwm-samsung.txt
index 4caa1a7..d61fccd 100644
--- a/Documentation/devicetree/bindings/pwm/pwm-samsung.txt
+++ b/Documentation/devicetree/bindings/pwm/pwm-samsung.txt
@@ -19,6 +19,16 @@ Required properties:
- reg: base address and size of register area
- interrupts: list of timer interrupts (one interrupt per timer, starting at
timer 0)
+- clock-names: should contain all following required clock names:
+ - "timers" - PWM base clock used to generate PWM signals,
+ and any subset of following optional clock names:
+ - "pwm-tclk0" - first external PWM clock source,
+ - "pwm-tclk1" - second external PWM clock source.
+ Note that not all IP variants allow using all external clock sources.
+ Refer to SoC documentation to learn which clock source configurations
+ are available.
+- clocks: should contain clock specifiers of all clocks, which input names
+ have been specified in clock-names property, in same order.
- #pwm-cells: should be 3. See pwm.txt in this directory for a description of
the cells format. The only third cell flag supported by this binding is
PWM_POLARITY_INVERTED.
@@ -34,6 +44,8 @@ Example:
reg = <0x7f006000 0x1000>;
interrupt-parent = <&vic0>;
interrupts = <23>, <24>, <25>, <27>, <28>;
+ clocks = <&clock 67>;
+ clock-names = "timers";
samsung,pwm-outputs = <0>, <1>;
#pwm-cells = <3>;
}
--
1.8.3.2
next prev parent reply other threads:[~2013-08-26 17:09 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-26 17:08 [PATCH v2 00/16] Exynos clock clean-up for 3.12 Tomasz Figa
2013-08-26 17:08 ` Tomasz Figa [this message]
2013-08-26 17:08 ` [PATCH v2 02/16] ARM: dts: exynos4: Specify PWM clocks in PWM node Tomasz Figa
2013-08-26 17:08 ` [PATCH v2 03/16] clocksource: samsung_pwm_timer: Get clock from device tree Tomasz Figa
2013-08-26 17:08 ` [PATCH v2 04/16] clk: samsung: exynos4: Use separate aliases for cpufreq related clocks Tomasz Figa
2013-08-26 17:09 ` [PATCH v2 05/16] clk: samsung: Modify _get_rate() helper to use __clk_lookup() Tomasz Figa
2013-08-26 17:09 ` [PATCH v2 06/16] clk: samsung: exynos4: Remove unused static clkdev aliases Tomasz Figa
2013-08-26 17:09 ` [PATCH v2 07/16] clk: samsung: exynos4: Remove checks for DT node Tomasz Figa
2013-08-26 17:09 ` [PATCH v2 08/16] clk: samsung: exynos4: Rename exynos4_plls to exynos4x12_plls Tomasz Figa
2013-08-26 17:09 ` [PATCH v2 09/16] clk: samsung: pll: Use new registration method for PLL45xx Tomasz Figa
2013-08-26 17:09 ` [PATCH v2 10/16] clk: samsung: pll: Add support for rate configuration of PLL45xx Tomasz Figa
2013-08-26 17:09 ` [PATCH v2 11/16] clk: samsung: pll: Use new registration method for PLL46xx Tomasz Figa
2013-08-26 17:09 ` [PATCH v2 12/16] clk: samsung: pll: Add support for rate configuration of PLL46xx Tomasz Figa
2013-08-26 17:09 ` [PATCH v2 13/16] clk: samsung: exynos4: Reorder registration of mout_vpllsrc Tomasz Figa
2013-08-26 17:09 ` [PATCH v2 14/16] clk: samsung: exynos4: Register PLL rate tables for Exynos4210 Tomasz Figa
2013-08-26 17:09 ` [PATCH v2 15/16] clk: samsung: exynos4: Register PLL rate tables for Exynos4x12 Tomasz Figa
2013-08-26 17:09 ` [PATCH v2 16/16] clk: samsung: exynos5250: Simplify registration of PLL rate tables Tomasz Figa
2013-08-29 12:43 ` [PATCH v2 00/16] Exynos clock clean-up for 3.12 Sylwester Nawrocki
2013-08-30 13:51 ` Tomasz Figa
2013-10-08 5:57 ` Mike Turquette
2013-10-08 8:14 ` Tomasz Figa
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=1377536951-9307-2-git-send-email-t.figa@samsung.com \
--to=t.figa@samsung.com \
--cc=daniel.lezcano@linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=dianders@chromium.org \
--cc=galak@codeaurora.org \
--cc=kgene.kim@samsung.com \
--cc=kyungmin.park@samsung.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=mturquette@linaro.org \
--cc=pawel.moll@arm.com \
--cc=rob.herring@calxeda.com \
--cc=swarren@wwwdotorg.org \
--cc=tglx@linutronix.de \
--cc=thomas.abraham@linaro.org \
--cc=tushar.behera@linaro.org \
--cc=yadi.brar@samsung.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