[PATCH 3/3] powerpc/fsl: Document Pulse Width Modulator controller device tree binding

Chunhe Lan Chunhe.Lan at freescale.com
Tue Jan 10 21:26:43 EST 2012


This document is created for freescale PWM node in dts file. In addition,
it explicates the properties and gives example about PWM node.

Signed-off-by: Chunhe Lan <Chunhe.Lan at freescale.com>
---
 .../devicetree/bindings/powerpc/fsl/pwm.txt        |   27 ++++++++++++++++++++
 1 files changed, 27 insertions(+), 0 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/powerpc/fsl/pwm.txt

diff --git a/Documentation/devicetree/bindings/powerpc/fsl/pwm.txt b/Documentation/devicetree/bindings/powerpc/fsl/pwm.txt
new file mode 100644
index 0000000..92d68e9
--- /dev/null
+++ b/Documentation/devicetree/bindings/powerpc/fsl/pwm.txt
@@ -0,0 +1,27 @@
+=====================================================================
+Freescale Pulse Width Modulator Controller Node
+Copyright (C) 2012 Freescale Semiconductor Inc.
+=====================================================================
+
+Properties:
+
+- name : Should be pwm.
+- compatible : Should contain "fsl,psc9131-pwm".
+- cell-index : The cell index is the pwm controller serial number,
+	       <0> = PWM1, <1> = PWM2, and so on.
+- #address-cells : Should be one.
+- #size-cells : Should be zero.
+- reg : Offset and length of the register set for the device.
+- interrupts : <interrupt mapping for PWM IRQ>
+
+Example:
+
+		pwm at 13000 {
+			cell-index = <1>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+			compatible = "fsl,psc9131-pwm";
+			reg = <0x13000 0x1000>;
+			interrupts = <44 2 0 0>;
+			interrupt-parent = <&mpic>;
+		};
-- 
1.5.6.5




More information about the Linuxppc-dev mailing list