Commit e5e9b5fa authored by Matt Ranostay's avatar Matt Ranostay Committed by Rob Herring

iio: proximity: as3935: add missing required spi-max-frequency

spi-max-frequency is required to be set for the as3935 part, and
document such usage.

Cc: devicetree@vger.kernel.org
Signed-off-by: default avatarMatt Ranostay <matt.ranostay@konsulko.com>
Signed-off-by: default avatarRob Herring <robh@kernel.org>
parent 442e1f7e
...@@ -3,6 +3,7 @@ Austrian Microsystems AS3935 Franklin lightning sensor device driver ...@@ -3,6 +3,7 @@ Austrian Microsystems AS3935 Franklin lightning sensor device driver
Required properties: Required properties:
- compatible: must be "ams,as3935" - compatible: must be "ams,as3935"
- reg: SPI chip select number for the device - 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 - spi-cpha: SPI Mode 1. Refer to spi/spi-bus.txt for generic SPI
slave node bindings. slave node bindings.
- interrupt-parent : should be the phandle for the interrupt controller - interrupt-parent : should be the phandle for the interrupt controller
...@@ -21,6 +22,7 @@ Example: ...@@ -21,6 +22,7 @@ Example:
as3935@0 { as3935@0 {
compatible = "ams,as3935"; compatible = "ams,as3935";
reg = <0>; reg = <0>;
spi-max-frequency = <400000>;
spi-cpha; spi-cpha;
interrupt-parent = <&gpio1>; interrupt-parent = <&gpio1>;
interrupts = <16 1>; interrupts = <16 1>;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment