Path: blob/main/sys/contrib/device-tree/Bindings/iio/proximity/as3935.txt
48523 views
Austrian Microsystems AS3935 Franklin lightning sensor device driver12Required properties:3- compatible: must be "ams,as3935"4- reg: SPI chip select number for the device5- spi-max-frequency: specifies maximum SPI clock frequency6- spi-cpha: SPI Mode 1. Refer to spi/spi-bus.txt for generic SPI7slave node bindings.8- interrupts : the sole interrupt generated by the device910Refer to interrupt-controller/interrupts.txt for generic11interrupt client node bindings.1213Optional properties:14- ams,tuning-capacitor-pf: Calibration tuning capacitor stepping15value 0 - 120pF. This will require using the calibration data from16the manufacturer.17- ams,nflwdth: Set the noise and watchdog threshold register on18startup. This will need to set according to the noise from the19MCU board, and possibly the local environment. Refer to the20datasheet for the threshold settings.2122Example:2324as3935@0 {25compatible = "ams,as3935";26reg = <0>;27spi-max-frequency = <400000>;28spi-cpha;29interrupt-parent = <&gpio1>;30interrupts = <16 1>;31ams,tuning-capacitor-pf = <80>;32ams,nflwdth = <0x44>;33};343536