mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-22 20:30:58 +02:00
Properties with standard unit suffixes already have a type and don't need type definitions. They also default to a single entry, so 'maxItems: 1' can be dropped. adi,ad5758 is an oddball which defined an enum of arrays. While a valid schema, it is simpler as a whole to only define scalar constraints. Cc: Jean Delvare <jdelvare@suse.com> Cc: Lars-Peter Clausen <lars@metafoo.de> Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com> Cc: Ulf Hansson <ulf.hansson@linaro.org> Cc: "David S. Miller" <davem@davemloft.net> Cc: Jakub Kicinski <kuba@kernel.org> Cc: Serge Semin <fancer.lancer@gmail.com> Cc: linux-hwmon@vger.kernel.org Cc: linux-i2c@vger.kernel.org Cc: linux-iio@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-input@vger.kernel.org Cc: linux-mmc@vger.kernel.org Cc: netdev@vger.kernel.org Cc: linux-pm@vger.kernel.org Cc: linux-rtc@vger.kernel.org Cc: linux-serial@vger.kernel.org Cc: alsa-devel@alsa-project.org Cc: linux-watchdog@vger.kernel.org Signed-off-by: Rob Herring <robh@kernel.org> Acked-by: Guenter Roeck <linux@roeck-us.net> Acked-by: Mark Brown <broonie@kernel.org> Acked-by: Wolfram Sang <wsa@kernel.org> # for I2C Acked-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Acked-by: Sebastian Reichel <sre@kernel.org> # for power-supply Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> #for-iio Acked-by: Alexandre TORGUE <alexandre.torgue@foss.st.com> Link: https://lore.kernel.org/r/20210128194515.743252-1-robh@kernel.org
86 lines
1.8 KiB
YAML
86 lines
1.8 KiB
YAML
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/iio/adc/ti,palmas-gpadc.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: Palmas general purpose ADC IP block devicetree bindings
|
|
|
|
maintainers:
|
|
- Tony Lindgren <tony@atomide.com>
|
|
|
|
description: |
|
|
This ADC is often used to provide channels via the io-channels
|
|
consumer framework.
|
|
Channels list:
|
|
0 battery type
|
|
1 battery temp NTC (optional current source)
|
|
2 GP
|
|
3 temp (with ext. diode, optional current source)
|
|
4 GP
|
|
5 GP
|
|
6 VBAT_SENSE
|
|
7 VCC_SENSE
|
|
8 Backup Battery voltage
|
|
9 external charger (VCHG)
|
|
10 VBUS
|
|
11 DC-DC current probe (how does this work?)
|
|
12 internal die temp
|
|
13 internal die temp
|
|
14 USB ID pin voltage
|
|
15 test network
|
|
|
|
properties:
|
|
compatible:
|
|
const: ti,palmas-gpadc
|
|
|
|
interrupts:
|
|
minItems: 1
|
|
maxItems: 3
|
|
|
|
"#io-channel-cells":
|
|
const: 1
|
|
|
|
ti,channel0-current-microamp:
|
|
description: Channel 0 current in uA.
|
|
enum:
|
|
- 0
|
|
- 5
|
|
- 15
|
|
- 20
|
|
|
|
ti,channel3-current-microamp:
|
|
description: Channel 3 current in uA.
|
|
enum:
|
|
- 0
|
|
- 10
|
|
- 400
|
|
- 800
|
|
|
|
ti,enable-extended-delay:
|
|
$ref: /schemas/types.yaml#/definitions/flag
|
|
description: Enable extended delay.
|
|
|
|
additionalProperties: false
|
|
|
|
required:
|
|
- compatible
|
|
- "#io-channel-cells"
|
|
|
|
examples:
|
|
- |
|
|
#include <dt-bindings/clock/mt8183-clk.h>
|
|
pmic {
|
|
compatible = "ti,twl6035-pmic", "ti,palmas-pmic";
|
|
adc {
|
|
compatible = "ti,palmas-gpadc";
|
|
interrupts = <18 0
|
|
16 0
|
|
17 0>;
|
|
#io-channel-cells = <1>;
|
|
ti,channel0-current-microamp = <5>;
|
|
ti,channel3-current-microamp = <10>;
|
|
};
|
|
};
|
|
...
|