1*4882a593SmuzhiyunAustrian Microsystems AS3935 Franklin lightning sensor device driver 2*4882a593Smuzhiyun 3*4882a593SmuzhiyunRequired properties: 4*4882a593Smuzhiyun - compatible: must be "ams,as3935" 5*4882a593Smuzhiyun - reg: SPI chip select number for the device 6*4882a593Smuzhiyun - spi-max-frequency: specifies maximum SPI clock frequency 7*4882a593Smuzhiyun - spi-cpha: SPI Mode 1. Refer to spi/spi-bus.txt for generic SPI 8*4882a593Smuzhiyun slave node bindings. 9*4882a593Smuzhiyun - interrupts : the sole interrupt generated by the device 10*4882a593Smuzhiyun 11*4882a593Smuzhiyun Refer to interrupt-controller/interrupts.txt for generic 12*4882a593Smuzhiyun interrupt client node bindings. 13*4882a593Smuzhiyun 14*4882a593SmuzhiyunOptional properties: 15*4882a593Smuzhiyun - ams,tuning-capacitor-pf: Calibration tuning capacitor stepping 16*4882a593Smuzhiyun value 0 - 120pF. This will require using the calibration data from 17*4882a593Smuzhiyun the manufacturer. 18*4882a593Smuzhiyun - ams,nflwdth: Set the noise and watchdog threshold register on 19*4882a593Smuzhiyun startup. This will need to set according to the noise from the 20*4882a593Smuzhiyun MCU board, and possibly the local environment. Refer to the 21*4882a593Smuzhiyun datasheet for the threshold settings. 22*4882a593Smuzhiyun 23*4882a593SmuzhiyunExample: 24*4882a593Smuzhiyun 25*4882a593Smuzhiyunas3935@0 { 26*4882a593Smuzhiyun compatible = "ams,as3935"; 27*4882a593Smuzhiyun reg = <0>; 28*4882a593Smuzhiyun spi-max-frequency = <400000>; 29*4882a593Smuzhiyun spi-cpha; 30*4882a593Smuzhiyun interrupt-parent = <&gpio1>; 31*4882a593Smuzhiyun interrupts = <16 1>; 32*4882a593Smuzhiyun ams,tuning-capacitor-pf = <80>; 33*4882a593Smuzhiyun ams,nflwdth = <0x44>; 34*4882a593Smuzhiyun}; 35