From patchwork Sat Oct 31 13:41:08 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 320088 Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp2268640ilc; Sat, 31 Oct 2020 06:44:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyDEsV3FbC7qY5QbnTnDCvCNp5zWNoX46PO6plAiM4+zJPhkbIrq4MDkFhw3awy5pxqKsCp X-Received: by 2002:a17:906:52c6:: with SMTP id w6mr6793286ejn.199.1604151865874; Sat, 31 Oct 2020 06:44:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604151865; cv=none; d=google.com; s=arc-20160816; b=hZa49tZCZFg4qcQN7kz8iTNuDjJwaeNGrSCkT9cITe4aiseKg6FjtZQXs1VmZqOEHB hWGTJJhW1GK2KcZV6vfhzZaTBpAMYXKNXF6hx+m8DV9VhOdbc2RsY6z0FGWH34Px3H/I LcmO/IpwX/R+G++TDbTw18WqGFvXdlmcRfCA+gIpBW5FKEGylLdtDKngoSeOtVH6n9AD /Bvhpc0vIe9/dcg7Mp9LcFJUmynCiytXVJoSoWDVujgj8YXJhV8mar4eXkSP2SRurC1I 32ehs1Md4Dy8JIXK7uq+aKj15lAvcsbyAz1Gy6WJuPjgankVKcDCjxk6+fiSrp5Efg0R quRg== 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=Mw8rW7VwUiM8JaBRGgmxODlgHUTk5+mGP3fpJVoeriM=; b=iU3gpF88gEYlDErk2VpyIDS1QxBqSMn0kDTnfksiUknyaNr0Kku1zbDBUbIUF5KLDA Ir+1KXPiOUUUYi54mgwEy9t/q+Ol3WV6jQAOu+j7lNkZHTGgYSmHq30Ovh7tX5vDDUN8 5OEVgw2Lle8vDuNLDxDWbeuiUqfTqqFTq/GXjpUCySwCm7UWgdu/n5BZosjiTz9VYjWg wFapmi42HqNkodpQmV9KBJFX1ih8uy11HZzZM6/U5giykTEzs/8dho7ZTcs01hrpErGC GhD/t7w6WLikMSRB1peep77+cBHpDvwB49KL8iGJNlptEtvyhbZnIMmYyyanPezmRzFQ nOmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=sSm6HQun; 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.25; Sat, 31 Oct 2020 06:44:25 -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=sSm6HQun; 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 S1727794AbgJaNoY (ORCPT + 6 others); Sat, 31 Oct 2020 09:44:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:43582 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727461AbgJaNoX (ORCPT ); Sat, 31 Oct 2020 09:44:23 -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 C8D5B2071A; Sat, 31 Oct 2020 13:44:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604151862; bh=qW4vYQl7MuWt6vW94tGoBpICirXSoCPZ+2WN9wqYkJE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sSm6HQun2vDjM2E4YhQYRtMdcjQOloR1HzVljAOayYTnkWIDxpopRILKw25tHXii3 A2ZWBeVl0iMLllI9X8RCkiOCxHTVTxIUD+qspcYXWpvjcnfPV2dAwPLY6t7lyo99A6 gFdHkLVpWQsZmK5B13lCsKz+8Me3WGjsTDsEaUjI= From: Jonathan Cameron To: linux-iio@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Cc: Jonathan Cameron , Rob Herring Subject: [PATCH v2 27/29] dt-bindings:iio:temperature:maxim, max31856 yaml conversion. Date: Sat, 31 Oct 2020 13:41:08 +0000 Message-Id: <20201031134110.724233-28-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 txt to yaml conversion of this binding. Paresh Chaudhary's email is bouncing so for now I've listed myself as maintainer. Signed-off-by: Jonathan Cameron Reviewed-by: Rob Herring --- .../bindings/iio/temperature/max31856.txt | 24 --------- .../iio/temperature/maxim,max31856.yaml | 54 +++++++++++++++++++ 2 files changed, 54 insertions(+), 24 deletions(-) -- 2.28.0 diff --git a/Documentation/devicetree/bindings/iio/temperature/max31856.txt b/Documentation/devicetree/bindings/iio/temperature/max31856.txt deleted file mode 100644 index 06ab43bb4de8..000000000000 --- a/Documentation/devicetree/bindings/iio/temperature/max31856.txt +++ /dev/null @@ -1,24 +0,0 @@ -Maxim MAX31856 thermocouple support - -https://datasheets.maximintegrated.com/en/ds/MAX31856.pdf - -Optional property: - - thermocouple-type: Type of thermocouple (THERMOCOUPLE_TYPE_K if - omitted). Supported types are B, E, J, K, N, R, S, T. - -Required properties: - - compatible: must be "maxim,max31856" - - reg: SPI chip select number for the device - - spi-max-frequency: As per datasheet max. supported freq is 5000000 - - spi-cpha: must be defined for max31856 to enable SPI mode 1 - - Refer to spi/spi-bus.txt for generic SPI slave bindings. - - Example: - temp-sensor@0 { - compatible = "maxim,max31856"; - reg = <0>; - spi-max-frequency = <5000000>; - spi-cpha; - thermocouple-type = ; - }; diff --git a/Documentation/devicetree/bindings/iio/temperature/maxim,max31856.yaml b/Documentation/devicetree/bindings/iio/temperature/maxim,max31856.yaml new file mode 100644 index 000000000000..873b34766676 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/temperature/maxim,max31856.yaml @@ -0,0 +1,54 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/temperature/maxim,max31856.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Maxim MAX31856 thermocouple support + +maintainers: + - Jonathan Cameron + +description: | + https://datasheets.maximintegrated.com/en/ds/MAX31856.pdf + +properties: + compatible: + const: maxim,max31856 + + reg: + maxItems: 1 + + spi-max-frequency: true + spi-cpha: true + + thermocouple-type: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Type of thermocouple (THERMOCOUPLE_TYPE_K if omitted). + Use defines in dt-bindings/iio/temperature/thermocouple.h. + Supported types are B, E, J, K, N, R, S, T. + +required: + - compatible + - reg + - spi-cpha + +additionalProperties: false + +examples: + - | + #include + spi { + #address-cells = <1>; + #size-cells = <0>; + + temp-sensor@0 { + compatible = "maxim,max31856"; + reg = <0>; + spi-max-frequency = <5000000>; + spi-cpha; + thermocouple-type = ; + }; + }; +...