浏览代码

pwm: rockchip: document device tree bindings

This adds binding documentation for Rockchip SoC PWM driver.

Signed-off-by: Beniamino Galvani <b.galvani@gmail.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Beniamino Galvani 11 年之前
父节点
当前提交
eae266a284
共有 1 个文件被更改,包括 17 次插入0 次删除
  1. 17 0
      Documentation/devicetree/bindings/pwm/pwm-rockchip.txt

+ 17 - 0
Documentation/devicetree/bindings/pwm/pwm-rockchip.txt

@@ -0,0 +1,17 @@
+Rockchip PWM controller
+
+Required properties:
+ - compatible: should be "rockchip,rk2928-pwm"
+ - reg: physical base address and length of the controller's registers
+ - clocks: phandle and clock specifier of the PWM reference clock
+ - #pwm-cells: should be 2. See pwm.txt in this directory for a
+   description of the cell format.
+
+Example:
+
+	pwm0: pwm@20030000 {
+		compatible = "rockchip,rk2928-pwm";
+		reg = <0x20030000 0x10>;
+		clocks = <&cru PCLK_PWM01>;
+		#pwm-cells = <2>;
+	};