Merge remote-tracking branch 'regulator/fix/qcom-spmi' into regulator-linus
[sfrench/cifs-2.6.git] / Documentation / devicetree / bindings / iio / proximity / as3935.txt
1 Austrian Microsystems AS3935 Franklin lightning sensor device driver
2
3 Required properties:
4         - compatible: must be "ams,as3935"
5         - reg: SPI chip select number for the device
6         - spi-max-frequency: specifies maximum SPI clock frequency
7         - spi-cpha: SPI Mode 1. Refer to spi/spi-bus.txt for generic SPI
8         slave node bindings.
9         - interrupt-parent : should be the phandle for the interrupt controller
10         - interrupts : the sole interrupt generated by the device
11
12         Refer to interrupt-controller/interrupts.txt for generic
13         interrupt client node bindings.
14
15 Optional properties:
16         - ams,tuning-capacitor-pf: Calibration tuning capacitor stepping
17           value 0 - 120pF. This will require using the calibration data from
18           the manufacturer.
19         - ams,nflwdth: Set the noise and watchdog threshold register on
20           startup. This will need to set according to the noise from the
21           MCU board, and possibly the local environment. Refer to the
22           datasheet for the threshold settings.
23
24 Example:
25
26 as3935@0 {
27         compatible = "ams,as3935";
28         reg = <0>;
29         spi-max-frequency = <400000>;
30         spi-cpha;
31         interrupt-parent = <&gpio1>;
32         interrupts = <16 1>;
33         ams,tuning-capacitor-pf = <80>;
34         ams,nflwdth = <0x44>;
35 };