Path: blob/master/Documentation/devicetree/bindings/iio/proximity/ams,as3935.yaml
26309 views
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/iio/proximity/ams,as3935.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Austrian Microsystems AS3935 Franklin lightning sensor78maintainers:9- Matt Ranostay <matt.ranostay@konsulko.com>1011description:12This lightning distance sensor uses an I2C or SPI interface. The13binding currently only covers the SPI option.1415properties:16compatible:17const: ams,as39351819reg:20maxItems: 12122spi-max-frequency:23maximum: 20000002425spi-cpha: true2627interrupts:28maxItems: 12930ams,tuning-capacitor-pf:31$ref: /schemas/types.yaml#/definitions/uint3232description:33Calibration tuning capacitor stepping value. This will require using34the calibration data from the manufacturer.35minimum: 036maximum: 1203738ams,nflwdth:39$ref: /schemas/types.yaml#/definitions/uint3240description:41Set the noise and watchdog threshold register on startup. This will42need to set according to the noise from the MCU board, and possibly43the local environment. Refer to the datasheet for the threshold settings.4445required:46- compatible47- reg48- spi-cpha49- interrupts5051allOf:52- $ref: /schemas/spi/spi-peripheral-props.yaml#5354unevaluatedProperties: false5556examples:57- |58spi {59#address-cells = <1>;60#size-cells = <0>;6162lightning@0 {63compatible = "ams,as3935";64reg = <0>;65spi-max-frequency = <400000>;66spi-cpha;67interrupt-parent = <&gpio1>;68interrupts = <16 1>;69ams,tuning-capacitor-pf = <80>;70ams,nflwdth = <0x44>;71};72};73...747576