diff options
author | Paul Cercueil <paul@crapouillou.net> | 2018-01-06 19:58:42 +0300 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2018-03-28 01:23:56 +0300 |
commit | cc20173304e4f54c0ccabe0c0636b05c2410a4be (patch) | |
tree | 872d93477edf49f64dcec680f05207ec95ba07ff /Documentation/devicetree | |
parent | 174dcc8eaec5fd53f9d6f3aa3068e8415a9c0d35 (diff) | |
download | linux-cc20173304e4f54c0ccabe0c0636b05c2410a4be.tar.xz |
pwm: jz4740: Add support for devicetree
Add support for probing the pwm-jz4740 directly from devicetree.
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'Documentation/devicetree')
-rw-r--r-- | Documentation/devicetree/bindings/pwm/ingenic,jz47xx-pwm.txt | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/pwm/ingenic,jz47xx-pwm.txt b/Documentation/devicetree/bindings/pwm/ingenic,jz47xx-pwm.txt new file mode 100644 index 000000000000..7d9d3f90641b --- /dev/null +++ b/Documentation/devicetree/bindings/pwm/ingenic,jz47xx-pwm.txt @@ -0,0 +1,25 @@ +Ingenic JZ47xx PWM Controller +============================= + +Required properties: +- compatible: One of: + * "ingenic,jz4740-pwm" + * "ingenic,jz4770-pwm" + * "ingenic,jz4780-pwm" +- #pwm-cells: Should be 3. See pwm.txt in this directory for a description + of the cells format. +- clocks : phandle to the external clock. +- clock-names : Should be "ext". + + +Example: + + pwm: pwm@10002000 { + compatible = "ingenic,jz4740-pwm"; + reg = <0x10002000 0x1000>; + + #pwm-cells = <3>; + + clocks = <&ext>; + clock-names = "ext"; + }; |