xref: /freebsd/sys/contrib/device-tree/Bindings/iio/proximity/as3935.txt (revision 6be3386466ab79a84b48429ae66244f21526d3df)
1Austrian Microsystems AS3935 Franklin lightning sensor device driver
2
3Required 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	- interrupts : the sole interrupt generated by the device
10
11	Refer to interrupt-controller/interrupts.txt for generic
12	interrupt client node bindings.
13
14Optional properties:
15	- ams,tuning-capacitor-pf: Calibration tuning capacitor stepping
16	  value 0 - 120pF. This will require using the calibration data from
17	  the manufacturer.
18	- ams,nflwdth: Set the noise and watchdog threshold register on
19	  startup. This will need to set according to the noise from the
20	  MCU board, and possibly the local environment. Refer to the
21	  datasheet for the threshold settings.
22
23Example:
24
25as3935@0 {
26	compatible = "ams,as3935";
27	reg = <0>;
28	spi-max-frequency = <400000>;
29	spi-cpha;
30	interrupt-parent = <&gpio1>;
31	interrupts = <16 1>;
32	ams,tuning-capacitor-pf = <80>;
33	ams,nflwdth = <0x44>;
34};
35