From patchwork Sun Oct 11 17:07:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 11830957 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id DD5D4109B for ; Sun, 11 Oct 2020 17:10:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C67DA22246 for ; Sun, 11 Oct 2020 17:10:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1602436204; bh=oaRRkSSGkLvjYvC7py+YBMLCWtUP45LKWRnWSsfQlPg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=nyaT67kQWrnEfqN2IglMP0jzHkQsa11HcQ/fNiCv7sMEYN7u5rFuA1niLsvmLou93 P6ZOcBsN3W4wDOErEv3WE4OOyExu8Ic8Am1A+unML7jxoVM7HxDbTaQ1K4DA+PBOoB MMrOncyF3GgfYwJb3Ua1MHAgMnjQDKhSaJNlcTlE= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730268AbgJKRKE (ORCPT ); Sun, 11 Oct 2020 13:10:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:51732 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729634AbgJKRKE (ORCPT ); Sun, 11 Oct 2020 13:10:04 -0400 Received: from localhost.localdomain (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DC8C322247; Sun, 11 Oct 2020 17:10:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1602436203; bh=oaRRkSSGkLvjYvC7py+YBMLCWtUP45LKWRnWSsfQlPg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kUM0TYpZCM8RHXIuHU2/jY4v5hhUsISNqTQI1N2MKl9zmSGy1TrXT1UPghvgOWxr3 W/+wRFjSFlpwL/QHYYt/rvSyJ8ke3KCabYrzFienXakCgRx1PRhjaRKhneA9elYxYs nqZYeSlXFXJAyt80y+RBI5EYOYlAkzkv6Ak5cnDA= From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring Cc: Jonathan Cameron , Harald Geyer Subject: [PATCH 04/29] dt-bindings:iio:humidity:dht11 yaml conversion Date: Sun, 11 Oct 2020 18:07:24 +0100 Message-Id: <20201011170749.243680-5-jic23@kernel.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201011170749.243680-1-jic23@kernel.org> References: <20201011170749.243680-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org From: Jonathan Cameron The conversion is straight forward, but leaves an open question. The compatible for this device has never had a vendor. I suspect this because it is non-obvious who actually makes the module. It is resold by numerous vendors and it may be that there is no single vendor of the parts they are using. If anyone has any more info on the vendor, please let me know and we can add a more informative compatible. Signed-off-by: Jonathan Cameron Cc: Harald Geyer Acked-By: Harald Geyer --- .../bindings/iio/humidity/dht11.txt | 14 ------- .../bindings/iio/humidity/dht11.yaml | 41 +++++++++++++++++++ 2 files changed, 41 insertions(+), 14 deletions(-) diff --git a/Documentation/devicetree/bindings/iio/humidity/dht11.txt b/Documentation/devicetree/bindings/iio/humidity/dht11.txt deleted file mode 100644 index ecc24c199fd6..000000000000 --- a/Documentation/devicetree/bindings/iio/humidity/dht11.txt +++ /dev/null @@ -1,14 +0,0 @@ -* DHT11 humidity/temperature sensor (and compatibles like DHT22) - -Required properties: - - compatible: Should be "dht11" - - gpios: Should specify the GPIO connected to the sensor's data - line, see "gpios property" in - Documentation/devicetree/bindings/gpio/gpio.txt. - -Example: - -humidity_sensor { - compatible = "dht11"; - gpios = <&gpio0 6 0>; -} diff --git a/Documentation/devicetree/bindings/iio/humidity/dht11.yaml b/Documentation/devicetree/bindings/iio/humidity/dht11.yaml new file mode 100644 index 000000000000..38ec4c302760 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/humidity/dht11.yaml @@ -0,0 +1,41 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/humidity/dht11.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: DHT11 humidity + temperature sensor + +maintainers: + - Harald Geyer + +description: | + A simple and low cost module providing a non standard single GPIO based + interface. Whilst commonly available it is not easy to establish if there + is a single manufacturer for this part. + +properties: + compatible: + const: dht11 + + reg: + maxItems: 1 + + gpios: + maxItems: 1 + description: + Single, interrupt capable, GPIO used to communicate with the device. + +required: + - compatible + - gpios + +additionalProperties: false + +examples: + - | + humidity_sensor { + compatible = "dht11"; + gpios = <&gpio0 6 0>; + }; +...