From patchwork Sat Sep 5 17:30:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 249170 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp2420820ilg; Sat, 5 Sep 2020 10:32:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxTYYd9R9b9lKYWxxLrnDmqRWqx6jr0J23Np6Lg8qcPqb6nRi5WcmVHpF4YTu89hbqDCyQi X-Received: by 2002:aa7:da16:: with SMTP id r22mr14659066eds.132.1599327178872; Sat, 05 Sep 2020 10:32:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599327178; cv=none; d=google.com; s=arc-20160816; b=dd+kQahQzdrYk7p2pOqEjnMy4jMDDg0QYmbxE87FnTOS+aAnV46+0CWnClTKXD4h+l BP3pWhaiii0DgUQUoTMiq9pXaZaLPq8yZxo9XxIFADo1c4+EZyjw5KaEqpMlwhrzUD6N j00QNIbx6k8Y8ZsmNS5am/dd7ZEPA9dWFuO3hXWMaURX4OcCz7+BnK7A3J4w/J3IQYWT Lt20sU8/PFJYnR6NWR/9lBNIxFjR9GeeTAAf73VSB6LOiWb5lZzw/aYAL9z1ylEjCEUq iXe4v8MthUvDuME7VCcJFLjZgU5oCsBHi6KVyDbr146hE9ViGFwcTjoNB+InTe4vl7aR 5Ueg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=gDVcE1b1DY7pAi48mT1OdANFdSX46z1BCWxframRdpk=; b=zVhhLiuuXAVGAF35w6MhZGktzCpLLl7NGLgcv8RxWZZCleyPjSzrDLvvJYKYhIf/wM 2cU4KyQ68ElFT1+EplPp8POs5w3ySrgpftmx8qjzOdsDw6NuG0N106DQ2vp1EmXj6b4u WFSSK/OzASys8jVtxjc/ndAv5wHZr35FqpJnoVAEEv7yfFF9U7mrGQaLBrZJ8Nu0B/dM fpKrDy/9rQpOkifdzbWPHReef+e+tlvL2Be3ZIeZi0vEXNMK7Gmqr1Hrs+7gB29ykT3r fYH8KgJMP1XsPKyDIk2cZhi0g2uYQSBUx8QJYV9E7g8Vzcb5U/kLsBjwd06xUC9LPWCD W/WA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="TB/ugh41"; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u17si5687486ejk.29.2020.09.05.10.32.58; Sat, 05 Sep 2020 10:32:58 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="TB/ugh41"; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728491AbgIERc5 (ORCPT + 6 others); Sat, 5 Sep 2020 13:32:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:60532 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728445AbgIERcv (ORCPT ); Sat, 5 Sep 2020 13:32:51 -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 DF1E7208DB; Sat, 5 Sep 2020 17:32:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599327170; bh=D/xeIW7B0P3+axp/oO/rsfBk7WsGfDLCbQBzyamngHY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TB/ugh41LEEa4fEErW706dX9CbmCATlgLRdqYkMiSnXS5X+3MBu3xaJOwqhLVfRS0 hntCDeu1Jjpfchy5KDY8czZdwGF+TRv5EJu4nsDuI5qO+hwJ8037RqSV8PX4UJBMbu 2JaDte6ShFO6I23ihNU9+aoA+y0BzQ3LaGmCxWcQ= From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Cc: Jonathan Cameron , Vladimir Barinov Subject: [PATCH 17/20] dt-bindings:iio:adc:holt,hi8435 yaml conversion Date: Sat, 5 Sep 2020 18:30:01 +0100 Message-Id: <20200905173004.216081-18-jic23@kernel.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200905173004.216081-1-jic23@kernel.org> References: <20200905173004.216081-1-jic23@kernel.org> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Jonathan Cameron Very simple binding. I've changed the example to use the node name threshold-detector@0 as sensor@0 seemed too generic. Signed-off-by: Jonathan Cameron Cc: Vladimir Barinov --- .../devicetree/bindings/iio/adc/hi8435.txt | 21 -------- .../bindings/iio/adc/holt,hi8435.yaml | 49 +++++++++++++++++++ 2 files changed, 49 insertions(+), 21 deletions(-) -- 2.28.0 diff --git a/Documentation/devicetree/bindings/iio/adc/hi8435.txt b/Documentation/devicetree/bindings/iio/adc/hi8435.txt deleted file mode 100644 index 3b0348c5e516..000000000000 --- a/Documentation/devicetree/bindings/iio/adc/hi8435.txt +++ /dev/null @@ -1,21 +0,0 @@ -Holt Integrated Circuits HI-8435 threshold detector bindings - -Required properties: - - compatible: should be "holt,hi8435" - - reg: spi chip select number for the device - -Recommended properties: - - spi-max-frequency: definition as per - Documentation/devicetree/bindings/spi/spi-bus.txt - -Optional properties: - - gpios: GPIO used for controlling the reset pin - -Example: -sensor@0 { - compatible = "holt,hi8435"; - reg = <0>; - gpios = <&gpio6 1 0>; - - spi-max-frequency = <1000000>; -}; diff --git a/Documentation/devicetree/bindings/iio/adc/holt,hi8435.yaml b/Documentation/devicetree/bindings/iio/adc/holt,hi8435.yaml new file mode 100644 index 000000000000..4ff08e9fcc74 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/adc/holt,hi8435.yaml @@ -0,0 +1,49 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/adc/holt,hi8435.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Holt Integrated Circuits HI-8435 SPI threshold detector + +maintainers: + - Vladimir Barinov + +description: | + Datasheet: http://www.holtic.com/documents/427-hi-8435_v-rev-lpdf.do + +properties: + compatible: + const: holt,hi8435 + + reg: + maxItems: 1 + + gpios: + description: + GPIO used for controlling the reset pin + + spi-max-frequency: true + + "#io-channel-cells": + const: 1 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + threshold-detector@0 { + compatible = "holt,hi8435"; + reg = <0>; + gpios = <&gpio6 1 0>; + spi-max-frequency = <1000000>; + }; + }; +...