From patchwork Wed Sep 9 17:59:43 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 249542 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ecf:0:0:0:0 with SMTP id i15csp57442ilk; Wed, 9 Sep 2020 11:06:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyxZXXx9YYsV+GNNU3+b6cGTUUSzGs05y/aeEdO7kJllY6hnw3hhQ2cfKzuEYgJHQuDTJgd X-Received: by 2002:a17:906:6805:: with SMTP id k5mr4645826ejr.397.1599674767243; Wed, 09 Sep 2020 11:06:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599674767; cv=none; d=google.com; s=arc-20160816; b=Ny19mlnf8etlbt42CKy+q3OPu8nUle29srHllPIoJidufodWTJCP8Z1fmOcBdK4x3f 6f05qR0/A/jb933zgSH3TKOs4Sdw3+YJ02oLtjTc+NCHT0q5RcKd89Tvzcn/zK2KNqzX 2/xZMtzdzGMVJ5N5UeXZGq8EWz4t3pm9E+pxjRJUs2GbyimfZUZ1IgFwPzTuSW5CjM1K Q9feMkE/XyO0N2MX72qnv7gWOIXunwZBONSgrAXz/PU/um5RHPsNCVbPyRXM/yIIfuqo slN9UPSpKsqeqsQ+SeysfQ+0fY5nMLhgdbRXCDh3volkHi/J5Z0AaOu32LbyIN+1Bpgw RD3w== 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=zIFAN+nqD3m61TdryM/IrPyYirQeFVvLlkxVgIaLloY=; b=a78d7V9/TFoTKWB3LlWJiQ6e83QLptHak/P2zpWhId5IpqH0aFy5I5gOoZNNndgHRu VZ0Dlf0DyjWbSoxQ8eKqBSr+iVDfltW1OCABmQ6zxLxmL+yPyKPx85x2HfujjmcDQN0Y 63rs+3KEv44ZBGg8icnNyBGFjJNBdK9QuXb/KKBOhZJObsFxaE5Rh4HbOswul5hCpJgf lbbJepc115et12nuX5S5ixvcx0GHKKzN4xp9FTzXt5Ot6ouRBwsoYDpBwhzE8SqcZrPu 7bX4adTaXXNR19fkAp3RRgjSrZiRiQKKr9wVggMzTEVG+Rm7Tm9cB+Iqw5Ul5HpobQGW lASQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=WWkUUKGH; 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 g1si2010474ejz.637.2020.09.09.11.06.07; Wed, 09 Sep 2020 11:06:07 -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=WWkUUKGH; 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 S1726414AbgIISGE (ORCPT + 6 others); Wed, 9 Sep 2020 14:06:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:60330 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729298AbgIISEa (ORCPT ); Wed, 9 Sep 2020 14:04:30 -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 A273F221EC; Wed, 9 Sep 2020 18:02:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599674565; bh=gT/krbdOva64tyJhEml19mVo5QwxHJLHEdlb5tBEbzE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WWkUUKGHUzM8AofFDzPL3oQ9afFUpxH1rPvJZZhc1SX+6TeJEmc611HhR8fyPYY5f KoY5PC92ACY2j/JUCsHzOHxVqnMfpU1BMIIod4hOecaa2TioBuRKnHRQIJPp8A4eOc ydvFhR75wMNWI03VWuOc4t7NxCmJp6u4RVF0Zm2Q= From: Jonathan Cameron To: linux-iio@vger.kernel.org Cc: Rob Herring , devicetree@vger.kernel.org, Jonathan Cameron , Vladimir Barinov Subject: [PATCH v2 17/20] dt-bindings:iio:adc:holt,hi8435 yaml conversion Date: Wed, 9 Sep 2020 18:59:43 +0100 Message-Id: <20200909175946.395313-18-jic23@kernel.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200909175946.395313-1-jic23@kernel.org> References: <20200909175946.395313-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 Reviewed-by: Rob Herring 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..a35cf3876b86 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/adc/holt,hi8435.yaml @@ -0,0 +1,49 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%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>; + }; + }; +...