aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXiubo Li <Li.Xiubo@freescale.com>2014-02-27 04:39:52 -0500
committerThierry Reding <thierry.reding@gmail.com>2014-03-18 13:03:15 -0400
commit42586315b7b6e682bd4136a1a2bc2b1d50113487 (patch)
treefa0f8047fb07a653d24cce9dd18dac02f2e9446b
parentb505183b5117ce149c65ae62f8c00e889acafa69 (diff)
Documentation: Add device tree bindings for Freescale FTM PWM.
This adds the binding documentation for Freescale FlexTimer Module (FTM) PWM driver under Documentation/devicetree/bindings/pwm/. Signed-off-by: Xiubo Li <Li.Xiubo@freescale.com> Reviewed-by: Sascha Hauer <s.hauer@pengutronix.de> Reviewed-by: Yuan Yao <yao.yuan@freescale.com> Acked-by: Kumar Gala <galak@codeaurora.org> Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
-rw-r--r--Documentation/devicetree/bindings/pwm/pwm-fsl-ftm.txt35
1 files changed, 35 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/pwm/pwm-fsl-ftm.txt b/Documentation/devicetree/bindings/pwm/pwm-fsl-ftm.txt
new file mode 100644
index 000000000000..0bda229a6171
--- /dev/null
+++ b/Documentation/devicetree/bindings/pwm/pwm-fsl-ftm.txt
@@ -0,0 +1,35 @@
1Freescale FlexTimer Module (FTM) PWM controller
2
3Required properties:
4- compatible: Should be "fsl,vf610-ftm-pwm".
5- reg: Physical base address and length of the controller's registers
6- #pwm-cells: Should be 3. See pwm.txt in this directory for a description of
7 the cells format.
8- clock-names: Should include the following module clock source entries:
9 "ftm_sys" (module clock, also can be used as counter clock),
10 "ftm_ext" (external counter clock),
11 "ftm_fix" (fixed counter clock),
12 "ftm_cnt_clk_en" (external and fixed counter clock enable/disable).
13- clocks: Must contain a phandle and clock specifier for each entry in
14 clock-names, please see clock/clock-bindings.txt for details of the property
15 values.
16- pinctrl-names: Must contain a "default" entry.
17- pinctrl-NNN: One property must exist for each entry in pinctrl-names.
18 See pinctrl/pinctrl-bindings.txt for details of the property values.
19
20
21Example:
22
23pwm0: pwm@40038000 {
24 compatible = "fsl,vf610-ftm-pwm";
25 reg = <0x40038000 0x1000>;
26 #pwm-cells = <3>;
27 clock-names = "ftm_sys", "ftm_ext",
28 "ftm_fix", "ftm_cnt_clk_en";
29 clocks = <&clks VF610_CLK_FTM0>,
30 <&clks VF610_CLK_FTM0_EXT_SEL>,
31 <&clks VF610_CLK_FTM0_FIX_SEL>,
32 <&clks VF610_CLK_FTM0_EXT_FIX_EN>;
33 pinctrl-names = "default";
34 pinctrl-0 = <&pinctrl_pwm0_1>;
35};