xref: /freebsd/sys/contrib/device-tree/Bindings/iio/health/ti,afe4403.yaml (revision a03411e84728e9b267056fd31c7d1d9d1dc1b01e)
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/iio/health/ti,afe4403.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Texas Instruments AFE4403 Heart rate and Pulse Oximeter
8
9maintainers:
10  - Jonathan Cameron <jic23@kernel.org>
11
12properties:
13  compatible:
14    const: ti,afe4403
15
16  reg:
17    maxItems: 1
18
19  tx-supply:
20    description: Supply to transmitting LEDs.
21
22  interrupts:
23    maxItems: 1
24    description: Connected to ADC_RDY pin.
25
26  reset-gpios: true
27
28required:
29  - compatible
30  - reg
31
32allOf:
33  - $ref: /schemas/spi/spi-peripheral-props.yaml#
34
35unevaluatedProperties: false
36
37examples:
38  - |
39    #include <dt-bindings/gpio/gpio.h>
40    #include <dt-bindings/interrupt-controller/irq.h>
41    spi {
42        #address-cells = <1>;
43        #size-cells = <0>;
44
45        heart-mon@0 {
46            compatible = "ti,afe4403";
47            reg = <0>;
48            spi-max-frequency = <10000000>;
49            tx-supply = <&vbat>;
50            interrupt-parent = <&gpio1>;
51            interrupts = <28 IRQ_TYPE_EDGE_RISING>;
52            reset-gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
53        };
54    };
55...
56