mirror of
https://github.com/torvalds/linux.git
synced 2026-04-25 10:02:31 -04:00
A few questions came up whilst converting this one.
1) What is actually required?
- Checking Linux driver, interrupt is not, and the tx-supply could
be supplied by a stub regulator as long as it's always on.
As such I have reduced the required list to just compatible and reg.
2) What is the regulator called?
- It's tx-supply in the binding doc, but the driver requests tx_sup.
I'll post a fix patch to change the driver to fix this as it makes
little sense.
Andrew's email is bouncing so until someone else steps up I have
listed myself as maintainer for this binding.
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20201031184854.745828-8-jic23@kernel.org
55 lines
1.1 KiB
YAML
55 lines
1.1 KiB
YAML
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/iio/health/ti,afe4403.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: Texas Instruments AFE4403 Heart rate and Pulse Oximeter
|
|
|
|
maintainers:
|
|
- Jonathan Cameron <jic23@kernel.org>
|
|
|
|
properties:
|
|
compatible:
|
|
const: ti,afe4403
|
|
|
|
reg:
|
|
maxItems: 1
|
|
|
|
tx-supply:
|
|
description: Supply to transmitting LEDs.
|
|
|
|
interrupts:
|
|
maxItems: 1
|
|
description: Connected to ADC_RDY pin.
|
|
|
|
reset-gpios: true
|
|
|
|
spi-max-frequency: true
|
|
|
|
additionalProperties: false
|
|
|
|
required:
|
|
- compatible
|
|
- reg
|
|
|
|
examples:
|
|
- |
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
#include <dt-bindings/interrupt-controller/irq.h>
|
|
spi {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
heart_mon@0 {
|
|
compatible = "ti,afe4403";
|
|
reg = <0>;
|
|
spi-max-frequency = <10000000>;
|
|
tx-supply = <&vbat>;
|
|
interrupt-parent = <&gpio1>;
|
|
interrupts = <28 IRQ_TYPE_EDGE_RISING>;
|
|
reset-gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
|
|
};
|
|
};
|
|
...
|