From patchwork Tue Mar 26 11:18:41 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrick Havelange X-Patchwork-Id: 10870889 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6EBA11669 for ; Tue, 26 Mar 2019 11:19:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 582AE28DD5 for ; Tue, 26 Mar 2019 11:19:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4BFC32901B; Tue, 26 Mar 2019 11:19:02 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 211DF28DD5 for ; Tue, 26 Mar 2019 11:19:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731190AbfCZLTA (ORCPT ); Tue, 26 Mar 2019 07:19:00 -0400 Received: from mail-ed1-f65.google.com ([209.85.208.65]:44227 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726287AbfCZLS7 (ORCPT ); Tue, 26 Mar 2019 07:18:59 -0400 Received: by mail-ed1-f65.google.com with SMTP id x10so10338219edh.11 for ; Tue, 26 Mar 2019 04:18:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=essensium-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=OTeF7P8CMXOQSyh4b05fzYdChTzLr7I8xwnDJpAXFEw=; b=ceziVE5Lqjn+EzSYxVUfdbAXgDuQyl09MLo2d6dcJUGOlWQf+M7qjLCDQGRvrZ8ecj fRCeBQtuGSIa7BRfAqAfh8neVpceL9RfVdZC+wy1KfTAKKA22IMCtMcngMFGRR2Oa9E9 4tfojn71wm8FIGpomfVKgPPYv67h7gtHpZ2OsPasv2DIg+TgBWjuWk//ndYanmKw4OOI cm77rc22jzuskrga2j/DEXF6FVw6RlRwm5e+hjALlwt0hxudtG3JGm/Nd7SRLG08ZRPv +YbAv6YfUeH3CCz7ZL6N7KCbi4VB7n636duiB6ror0sG1TIm+qeis+AwYyhfgicHQEuX YNvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=OTeF7P8CMXOQSyh4b05fzYdChTzLr7I8xwnDJpAXFEw=; b=fFpAhvHzquzUyyw15PYNKT5oYtfSieZ2kOparJY/lXZVmk/SXMOiFsgCj8ZRYNyXS0 IoTwQJv3zl/Qy09FfxvaxdwpFRgTXlerHNowJA8qawz/nl7cB7yNZMYug0p9n8wqmYBQ bHt55ptZ9hnW6vQ5mGla34w4Q5wawK7VxBFSgkxB6HO6RoNJmPlgJRdDXzn2w17AovWU mZ9HeVMcdlv52UafC03kAj6s9nwVhFmy6tMSL9IQkaBhH/2C8uZwC36/9PzOPSAe90QF VtJqRtKrn28f6zANE/bBDYwdZDQyZHSIHyU+RIGobg4sZZbVCzeZd7GZ8wPcnvqYIT/S gjBg== X-Gm-Message-State: APjAAAWEus27wM/0x63UNVjH9JmZRZO5mfMq5+k3xdSH3mnQ7e90P6tO Z6Iw4iO09FwYIw6PB5nwB59Knw== X-Google-Smtp-Source: APXvYqyPI9yf/G8o+B/i8lkXsHpu2xIXaBze0QkRfdU2PriQBPfrJr1MvqSHq1fuZxhBPV3/Oa70ug== X-Received: by 2002:a50:aa4e:: with SMTP id p14mr14193692edc.59.1553599137227; Tue, 26 Mar 2019 04:18:57 -0700 (PDT) Received: from ph-ThinkPad-E560.local.ess-mail.com (ip-188-118-3-185.reverse.destiny.be. [188.118.3.185]) by smtp.gmail.com with ESMTPSA id i3sm3842464ejj.46.2019.03.26.04.18.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Mar 2019 04:18:56 -0700 (PDT) From: Patrick Havelange To: Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Rob Herring , Mark Rutland , Paresh Chaudhary , Matt Weber , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: Patrick Havelange Subject: [PATCH v7 2/3] iio:temperature:max31856:Add device tree bind info Date: Tue, 26 Mar 2019 12:18:41 +0100 Message-Id: <20190326111842.12399-2-patrick.havelange@essensium.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190326111842.12399-1-patrick.havelange@essensium.com> References: <20190326111842.12399-1-patrick.havelange@essensium.com> MIME-Version: 1.0 Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Paresh Chaudhary This patch added device tree binding info for MAX31856 driver. Signed-off-by: Paresh Chaudhary Signed-off-by: Matt Weber Signed-off-by: Patrick Havelange Reviewed-by: Rob Herring --- Changes v1 -> v2 [Matt - Removed comment block and added possibilities of thermocouple type in device tree binding doc. v2 -> v3 - Rebased v3 -> v4 - Removed one-shot property related information. - Used standard name 'temp-sensor' v4 -> v5 [Patrick - Rename thermocouple type to maxim,thermocouple-type for DT entry v5 -> v6 [Patrick - use generic thermocouple-type for DT entry v6 -> v7 [Patrick - None --- .../bindings/iio/temperature/max31856.txt | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/temperature/max31856.txt diff --git a/Documentation/devicetree/bindings/iio/temperature/max31856.txt b/Documentation/devicetree/bindings/iio/temperature/max31856.txt new file mode 100644 index 000000000000..06ab43bb4de8 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/temperature/max31856.txt @@ -0,0 +1,24 @@ +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 = ; + };