From patchwork Sat Oct 31 13:41:10 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 320090 Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp2268663ilc; Sat, 31 Oct 2020 06:44:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxhOiqrhHozelf/NBGt8Dm4gwZf85g+xGF+87nV95NepG1JwAZCWYmrzDZrJ8XHi4NszpRb X-Received: by 2002:a50:a845:: with SMTP id j63mr2457650edc.32.1604151867882; Sat, 31 Oct 2020 06:44:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604151867; cv=none; d=google.com; s=arc-20160816; b=EEZPIaXJb6YEAcSrNLuvMUt0gCrd/YMPPyVJ4I2mABsLwJXzo8RdAWFf1YiCZFCVLM BZmO4CgfaOn9vrBAG8+hgxNZTq/ucdwlVlKcWf7IRAbONmTf8dlP/GFGKdlBk7bLOKg3 Wjs1jnIiGwdckPjldOPKu6NgoQSsbPltQOhExnmULJUP/m9iAQNAhNOsNwwYSm3sUUzH JN5HIBXzrRkV7xXSNsnkCvt/E3X0cPM/tl/aDs07T6jOQoCLxRlD6aWiM9in1tphMzb9 D9Vn1Czd0ErY5N9YQpw/hVXtxMKjHwsc9hZhUhe/L+15RU3bO3blkMmwnJOOfSi2eGMb XS8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=RqxtgH19Opprx6OYAMMfEoplto/inQp2Du4si31xRXU=; b=hqPeQlYRBM9zmxfqHKmMDzFI8TBLK2T2Wc/0tI/Ekotoo5SAIieU7eFN/FYC4oWFUW Lv2b3sd08am+dj2kGDR0azv0A4V4j4a2ODYywwEBUgZSozHBndpO1Rzzfi3PVocypeEy XvjKefG5ksdZemJ5/1bzoqK1jhjgRDvyQcEg/3SDvElWWXHKhyq7Qi8x2y83Do8WD+pZ wNS097fHaAppmm5pTRnBa48OhXj7QCud/Hs/VvlNQbaFFepSDHsWA/3XR3ekBiLo14mD 184QRsl6Btw+3jaORZGkRQnlCBxc59xZUZM+8RamUIGFJhbvoN344c4n1xizjcDu7Jz5 MLng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=V5MCvJYr; 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 h25si6243872ejc.209.2020.10.31.06.44.27; Sat, 31 Oct 2020 06:44:27 -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=V5MCvJYr; 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 S1727805AbgJaNo0 (ORCPT + 6 others); Sat, 31 Oct 2020 09:44:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:43644 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727461AbgJaNo0 (ORCPT ); Sat, 31 Oct 2020 09:44:26 -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 CB3A020756; Sat, 31 Oct 2020 13:44:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604151866; bh=ZMZApij4WsX+DlKlfh/xbMOnotONaYZnxY/ZbTKbQEI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=V5MCvJYrVXBPCtnHtVNQ6s54naBAEYSPr/lRAb9SVvqC/vQUsvYlHJLuG3SYyU4WB feZxRvRBxVgSP/C80EfhJrUzotBnBg6C1Jm6F6yPinbvGtST3Gzue1XTH4So8NigTE HZ+2if6AH022Qec2LQUZ+oCZFyy9KTnj0r38K7FQ= From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Cc: Jonathan Cameron , Rob Herring , Manivannan Sadhasivam Subject: [PATCH v2 29/29] dt-bindings:iio:temperature:ti, tmp07 yaml conversion Date: Sat, 31 Oct 2020 13:41:10 +0000 Message-Id: <20201031134110.724233-30-jic23@kernel.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201031134110.724233-1-jic23@kernel.org> References: <20201031134110.724233-1-jic23@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Jonathan Cameron Simple conversion from txt to yaml. Signed-off-by: Jonathan Cameron Reviewed-by: Rob Herring Acked-by: Manivannan Sadhasivam --- .../bindings/iio/temperature/ti,tmp007.yaml | 57 +++++++++++++++++++ .../bindings/iio/temperature/tmp007.txt | 33 ----------- 2 files changed, 57 insertions(+), 33 deletions(-) -- 2.28.0 diff --git a/Documentation/devicetree/bindings/iio/temperature/ti,tmp007.yaml b/Documentation/devicetree/bindings/iio/temperature/ti,tmp007.yaml new file mode 100644 index 000000000000..3c2b7189fa2e --- /dev/null +++ b/Documentation/devicetree/bindings/iio/temperature/ti,tmp007.yaml @@ -0,0 +1,57 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/temperature/ti,tmp007.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: IR thermopile sensor with integrated math engine + +maintainers: + - Manivannan Sadhasivam + +description: | + http://www.ti.com/lit/ds/symlink/tmp007.pdf + +properties: + compatible: + const: ti,tmp007 + + reg: + description: | + The I2C address of the sensor (changeable via ADR pins) + ------------------------------ + |ADR1 | ADR0 | Device Address| + ------------------------------ + 0 0 0x40 + 0 1 0x41 + 0 SDA 0x42 + 0 SCL 0x43 + 1 0 0x44 + 1 1 0x45 + 1 SDA 0x46 + 1 SCL 0x47 + maxItems: 1 + + interrupts: + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + temp-sensor@40 { + compatible = "ti,tmp007"; + reg = <0x40>; + interrupt-parent = <&gpio0>; + interrupts = <5 0x08>; + }; + }; +... diff --git a/Documentation/devicetree/bindings/iio/temperature/tmp007.txt b/Documentation/devicetree/bindings/iio/temperature/tmp007.txt deleted file mode 100644 index da0af234a357..000000000000 --- a/Documentation/devicetree/bindings/iio/temperature/tmp007.txt +++ /dev/null @@ -1,33 +0,0 @@ -* TI TMP007 - IR thermopile sensor with integrated math engine - -Link to datasheet: http://www.ti.com/lit/ds/symlink/tmp007.pdf - -Required properties: - - - compatible: should be "ti,tmp007" - - reg: the I2C address of the sensor (changeable via ADR pins) - ------------------------------ - |ADR1 | ADR0 | Device Address| - ------------------------------ - 0 0 0x40 - 0 1 0x41 - 0 SDA 0x42 - 0 SCL 0x43 - 1 0 0x44 - 1 1 0x45 - 1 SDA 0x46 - 1 SCL 0x47 - -Optional properties: - - - interrupts: interrupt mapping for GPIO IRQ (level active low) - -Example: - -tmp007@40 { - compatible = "ti,tmp007"; - reg = <0x40>; - interrupt-parent = <&gpio0>; - interrupts = <5 0x08>; -}; -