Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings:iio:humidity:dht11 yaml conversion

The conversion is straight forward, but leaves an open question.
The compatible for this device has never had a vendor.

Harald Geyer has identified as probably being made by aosong,
but we have no current match to any of their more specific part
numbers. As such, this is noted in the file but the
compatible doesn't include the vendor prefix.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Acked-By: Harald Geyer <harald@ccbib.org>
Link: https://lore.kernel.org/r/20201031134110.724233-5-jic23@kernel.org

+41 -14
-14
Documentation/devicetree/bindings/iio/humidity/dht11.txt
··· 1 - * DHT11 humidity/temperature sensor (and compatibles like DHT22) 2 - 3 - Required properties: 4 - - compatible: Should be "dht11" 5 - - gpios: Should specify the GPIO connected to the sensor's data 6 - line, see "gpios property" in 7 - Documentation/devicetree/bindings/gpio/gpio.txt. 8 - 9 - Example: 10 - 11 - humidity_sensor { 12 - compatible = "dht11"; 13 - gpios = <&gpio0 6 0>; 14 - }
+41
Documentation/devicetree/bindings/iio/humidity/dht11.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/iio/humidity/dht11.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: DHT11 humidity + temperature sensor 8 + 9 + maintainers: 10 + - Harald Geyer <harald@ccbib.org> 11 + 12 + description: | 13 + A simple and low cost module providing a non standard single GPIO based 14 + interface. It is believed the part is made by aosong but don't have 15 + absolute confirmation of this, or what the aosong part number is. 16 + 17 + properties: 18 + compatible: 19 + const: dht11 20 + 21 + reg: 22 + maxItems: 1 23 + 24 + gpios: 25 + maxItems: 1 26 + description: 27 + Single, interrupt capable, GPIO used to communicate with the device. 28 + 29 + required: 30 + - compatible 31 + - gpios 32 + 33 + additionalProperties: false 34 + 35 + examples: 36 + - | 37 + humidity_sensor { 38 + compatible = "dht11"; 39 + gpios = <&gpio0 6 0>; 40 + }; 41 + ...