zephyr/dts/bindings/sensor/aosong,dht.yaml
Maureen Helm 8819bbf79d dts: bindings: Migrate Aosong sensors to inherit base sensor properties
Migrates all Aosong sensors to inherit base sensor device properties.
This will allow us to define properties shared by multiple sensors in
one place.

Signed-off-by: Maureen Helm <maureen.helm@intel.com>
2022-10-17 10:15:13 +02:00

33 lines
944 B
YAML

# Copyright (c) 2019 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0
description: |
Aosong DHT (Digital-output Humidity and Temperature Sensor)
The Aosong DHT family of sensors provide temperature and humidity
measurements through a bidirectional serial digital signal. The
DHT11 uses a polymer humidity capacitor with NTC thermistor; the
DHT22 replaces the thermistor with a DS18B20 1-wire thermometer.
The DHT22 is also known as an AM2303.
compatible: "aosong,dht"
include: sensor-device.yaml
properties:
dio-gpios:
type: phandle-array
required: true
description: |
Pin on which sensor communication will be performed.
Control and data are encoded by the duration of active low
signals. A pull up may be appropriate.
dht22:
type: boolean
description: |
Set to identify sensor as a DHT22/AM2303. Leave unset to identify
sensor as a DHT11.