as3935.txt 825 B

12345678910111213141516171819202122232425262728
  1. Austrian Microsystems AS3935 Franklin lightning sensor device driver
  2. Required properties:
  3. - compatible: must be "ams,as3935"
  4. - reg: SPI chip select number for the device
  5. - spi-cpha: SPI Mode 1. Refer to spi/spi-bus.txt for generic SPI
  6. slave node bindings.
  7. - interrupt-parent : should be the phandle for the interrupt controller
  8. - interrupts : the sole interrupt generated by the device
  9. Refer to interrupt-controller/interrupts.txt for generic
  10. interrupt client node bindings.
  11. Optional properties:
  12. - ams,tuning-capacitor-pf: Calibration tuning capacitor stepping
  13. value 0 - 120pF. This will require using the calibration data from
  14. the manufacturer.
  15. Example:
  16. as3935@0 {
  17. compatible = "ams,as3935";
  18. reg = <0>;
  19. spi-cpha;
  20. interrupt-parent = <&gpio1>;
  21. interrupts = <16 1>;
  22. ams,tuning-capacitor-pf = <80>;
  23. };