Received: by 2002:a25:5b86:0:0:0:0:0 with SMTP id p128csp2633914ybb; Sat, 30 Mar 2019 09:43:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqxbIsiPqgGlMJWuLJ6ojExxZjoIiobmvF83CX66m7ggdH/8F4n+XqifeXE+dvSSIbNsLC50 X-Received: by 2002:a63:cf11:: with SMTP id j17mr52288093pgg.252.1553964197474; Sat, 30 Mar 2019 09:43:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553964197; cv=none; d=google.com; s=arc-20160816; b=c4LPSOu5/nJzxuEZ1c3vWKyPDB6TZxp+V+K+S1l2opAISRzN/P0tkXs7SSevj06jhD 5mXqWcsJ1J4DTc0b6F7RxVWitxvZ587IjBHXG3u0hdgZxCLC6MjVlXP9kLagcSE46TJ0 KRb3/BizIz2trXr1+naGEsSAnyL0898r4mA8ihCWsHefWtUXXrYnw4K/tCW0UKuSznrq LQ/wUpOAhnfD9WK4lN7Cfnd7Bue9s5R20wk7plzsZhYv4NE0oLATV55722ywWHJOJrmn 6CcJKwY7ej+WvMhpEbVWH3DMMDchkZFSy3Wf+MtMAJ8tlkHFKdtNq+s1KsTYgRSP6x1x 08tQ== 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:subject:cc:to:from:date :dkim-signature; bh=ZVJGAWPB9O+/Qmei5Fz5hEHXilhqCptJk6c57w+O4p4=; b=xljsG4zCAVOsWmkLosTCCE6AZmYUWtfrdqEaE6/8BXC9UdQI/JhaoGxeUFa4UtQLYS C7MfF3P24L5GnuDcK0aopoeTKl4x2CjNm8j8cPrcJMzcdZKUzEet+uO4n2WwAZO+wOp0 cdWSwso3Hfngr0o8MP+2B+i2vFOfpLHLSXHaH/btBwB/zzwNTS+vVUOnMqj12S2oQTEy HonbvFvylww2G7u5v4PJ7kJ7nVnyCKVWIeyDQZSB+GfeHanheViVto5dd2kB0bkRmF2/ cID1R95vaZa7tDFvR0zvT90vIIRUaoFDe8ThtImKXIQeGPFthCFb8UOer9sPJvg18b9s TK8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=T6NcWWrQ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u26si4685309pfh.15.2019.03.30.09.43.02; Sat, 30 Mar 2019 09:43:17 -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=@kernel.org header.s=default header.b=T6NcWWrQ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730638AbfC3QmV (ORCPT + 99 others); Sat, 30 Mar 2019 12:42:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:43366 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730395AbfC3QmV (ORCPT ); Sat, 30 Mar 2019 12:42:21 -0400 Received: from archlinux (cpc91196-cmbg18-2-0-cust659.5-4.cable.virginm.net [81.96.234.148]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 19C81218A3; Sat, 30 Mar 2019 16:42:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553964140; bh=nPy2ifQ54x7DxDr4UyLBeesbBInz8JwCwrDLuvli8PU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=T6NcWWrQ1Ld2sitoib3ajAabRFERyNnd0lAg0WSaoBxyBrW+D8h6/MnCrYUPMJZ9/ kmIsy/N1a81lwl33JGcID5WuDuP1aVPYgQtCMhYGOqw9CWIYt+MpVYeah2bSd5/NRY 6YRxERpdnsMapB1RfOvyk9nbRNPbE8Dvwoh4/hnw= Date: Sat, 30 Mar 2019 16:42:14 +0000 From: Jonathan Cameron To: Patrick Havelange Cc: 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 Subject: Re: [PATCH v7 1/3] dt-bindings: iio/temperature: Add thermocouple types (and doc) Message-ID: <20190330164214.3189ca54@archlinux> In-Reply-To: <20190326111842.12399-1-patrick.havelange@essensium.com> References: <20190326111842.12399-1-patrick.havelange@essensium.com> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 26 Mar 2019 12:18:40 +0100 Patrick Havelange wrote: > This patch introduces common thermocouple types used by various > temperature sensors. Also a brief documentation explaining this > "thermocouple-type" property. > > Signed-off-by: Patrick Havelange You have addressed all of Rob's feedback I think, so I'll not pester Rob for any follow up (always welcome of course if he wants to give it!) Applied to the togreg branch of iio.git and pushed out as testing for the autobuilders to play with it. Thanks, Jonathan > --- > Changes v7 > - Merge header and doc in same patch > - Doc:add it's a single cell entry > - Doc:removed non complete example > > Changes v6 > - Add this file > --- > .../iio/temperature/temperature-bindings.txt | 7 +++++++ > .../dt-bindings/iio/temperature/thermocouple.h | 16 ++++++++++++++++ > 2 files changed, 23 insertions(+) > create mode 100644 Documentation/devicetree/bindings/iio/temperature/temperature-bindings.txt > create mode 100644 include/dt-bindings/iio/temperature/thermocouple.h > > diff --git a/Documentation/devicetree/bindings/iio/temperature/temperature-bindings.txt b/Documentation/devicetree/bindings/iio/temperature/temperature-bindings.txt > new file mode 100644 > index 000000000000..8f339cab74ae > --- /dev/null > +++ b/Documentation/devicetree/bindings/iio/temperature/temperature-bindings.txt > @@ -0,0 +1,7 @@ > +If the temperature sensor device can be configured to use some specific > +thermocouple type, you can use the defined types provided in the file > +"include/dt-bindings/iio/temperature/thermocouple.h". > + > +Property: > +thermocouple-type: A single cell representing the type of the thermocouple > + used by the device. > diff --git a/include/dt-bindings/iio/temperature/thermocouple.h b/include/dt-bindings/iio/temperature/thermocouple.h > new file mode 100644 > index 000000000000..ce037f5238ac > --- /dev/null > +++ b/include/dt-bindings/iio/temperature/thermocouple.h > @@ -0,0 +1,16 @@ > +/* SPDX-License-Identifier: GPL-2.0 */ > + > +#ifndef _DT_BINDINGS_TEMPERATURE_THERMOCOUPLE_H > +#define _DT_BINDINGS_TEMPERATURE_THERMOCOUPLE_H > + > + > +#define THERMOCOUPLE_TYPE_B 0x00 > +#define THERMOCOUPLE_TYPE_E 0x01 > +#define THERMOCOUPLE_TYPE_J 0x02 > +#define THERMOCOUPLE_TYPE_K 0x03 > +#define THERMOCOUPLE_TYPE_N 0x04 > +#define THERMOCOUPLE_TYPE_R 0x05 > +#define THERMOCOUPLE_TYPE_S 0x06 > +#define THERMOCOUPLE_TYPE_T 0x07 > + > +#endif /* _DT_BINDINGS_TEMPERATURE_THERMOCOUPLE_H */