Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp4160157img; Tue, 26 Mar 2019 04:19:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqwV8mIZJNgueBZa9SUuKclA7MYhONG5uuPEZGBzy3FNfu/PQ+7VO75L2LBjdfnX75hvJh1a X-Received: by 2002:a17:902:8697:: with SMTP id g23mr31393223plo.30.1553599194693; Tue, 26 Mar 2019 04:19:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553599194; cv=none; d=google.com; s=arc-20160816; b=lUA6IuiCEhkLjWRah2M5ZpBoIYJ62Sjqd832eDTlI7VsBSEv04fUNMOBrODbGg6iQI 7eI9IgP1c8eCikAVzR2YXRA/RX6cgq6GT3qc1kJHPR1luV+dEKb/X3/qbqFNvIKLsgc+ 1Wr0RjVzb/8WgBVtgPJIflxpP8mXiKUydHzVDs0ORdKohTEMYNAbGuICveH4n8cYwdaE pztRLQh+ukw0Am+RLY99/aYXhMWvDneMRoifQafIOxYWZQN9TsUnclnVKgtobQtBkZiR wSEXY58rB1LYyH1KolYz1ZRIpZfqDYxEFacfyuXKYgzBr5s4aPB6YcvQeDJotP6wDhqp 9DGQ== 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=OTeF7P8CMXOQSyh4b05fzYdChTzLr7I8xwnDJpAXFEw=; b=dIVDIJoNJx87/FyKvNCiHIg3ZYAin138epyEoaabEnK5DbkHFEkJER3eoKcWAkCGEU rO0TOx0CDiK2cQgFy6D9ud3Th3wB211UCNJxsszPOrm4WVZ/JCetCT2bFYKzG1nokvIN v3jMF50kI0P0rm2qSKg5fZliQjd/pFs6JFl2PYKREFQgp6a+owrGUymyMTA76MhnnP7v /Z3DXMe2EmdRQbmBAfndc+jZmTQIXa6Efm/ncXr9HNpw2cpHjuFKfGZpT4v+xWSKao7L kP0zmeebWYj/jGrXX6J6Ca5nhwBzgYbXVI4kzkVh71S2HiAh8eI7t+OYkysZvD3rMUM+ CRoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@essensium-com.20150623.gappssmtp.com header.s=20150623 header.b=ceziVE5L; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k16si15756688pfj.174.2019.03.26.04.19.38; Tue, 26 Mar 2019 04:19:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@essensium-com.20150623.gappssmtp.com header.s=20150623 header.b=ceziVE5L; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731339AbfCZLTB (ORCPT + 99 others); Tue, 26 Mar 2019 07:19:01 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:43803 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726171AbfCZLS6 (ORCPT ); Tue, 26 Mar 2019 07:18:58 -0400 Received: by mail-ed1-f68.google.com with SMTP id d26so10364157ede.10 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=gwIawZXP/ETBvHLf/BH8IDyajxqeyhWZPrEeDieHJZ58YjYtllFd4cHlWUeEoyWbb0 TKcnTMLXIzFmDzBZB3tuKMiR3uY61NC1YH5wZBXTaBkwlwQb04JM3HJpDfFiFqI3FoXW biQRCYGtwb/dJxMdjJaVREo6OtV3FhkAj3Sd98x9CbrWwq6TrAY0fMPAYD2Rj3CFkHRY MKFEUQjC3mIWJAFCpSpo42lFiopMPC2KBS/ob3PR294XatHRDs76WlNc7/mRJ6Qc8OGb BrpcATzExTiVWIIhWnqqBMf0YREBciGXT8sISkfKhErys5hu+QozamOIXhe3WGdmWPRO dLFg== X-Gm-Message-State: APjAAAWnXadm3GNqFdxWYxL4RWrR9+zaVXshtkFYLNuqdY+Qj1PTEcWP UFhhUNM52FKQiyWv8/hKGpssw9lCgv0= 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 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 = ; + }; -- 2.19.1