iio: proximity: as3935: add missing required spi-max-frequency
authorMatt Ranostay <matt.ranostay@konsulko.com>
Wed, 17 May 2017 02:03:10 +0000 (19:03 -0700)
committerRob Herring <robh@kernel.org>
Tue, 23 May 2017 00:32:20 +0000 (19:32 -0500)
spi-max-frequency is required to be set for the as3935 part, and
document such usage.

Cc: devicetree@vger.kernel.org
Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Documentation/devicetree/bindings/iio/proximity/as3935.txt

index ae23dd8da7366f18b9e60f70debbce704f89a927..38d74314b7abe5c52999d77f36489a0486f222f7 100644 (file)
@@ -3,6 +3,7 @@ Austrian Microsystems AS3935 Franklin lightning sensor device driver
 Required properties:
        - compatible: must be "ams,as3935"
        - reg: SPI chip select number for the device
+       - spi-max-frequency: specifies maximum SPI clock frequency
        - spi-cpha: SPI Mode 1. Refer to spi/spi-bus.txt for generic SPI
        slave node bindings.
        - interrupt-parent : should be the phandle for the interrupt controller
@@ -21,6 +22,7 @@ Example:
 as3935@0 {
        compatible = "ams,as3935";
        reg = <0>;
+       spi-max-frequency = <400000>;
        spi-cpha;
        interrupt-parent = <&gpio1>;
        interrupts = <16 1>;