Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp4161440img; Tue, 26 Mar 2019 04:21:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqzK0gI1qQLef1gV3nI2GOo88Nb5bbte877AxeV/K2EArkz8ru3vA5stkjwjmy0h5q+7XMWJ X-Received: by 2002:a17:902:a81:: with SMTP id 1mr30598727plp.308.1553599292475; Tue, 26 Mar 2019 04:21:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553599292; cv=none; d=google.com; s=arc-20160816; b=Jm3YdNxbmI+UsihaVKG3r8AuuakxJrrBqesbs6xhj3pQqJO46b8l0sBSFm5eAlWZS6 rexU7Q0Xo5mxt45PQ5c67gokVoyegA7zJZ0lTMv+1cTMJzClvARRKxWGH0kfAjJd0mZR XKP1b6F06Vn+JCGlLWQ7frRWSLqayGhg4vpIBzBUsTrxvMuhKpyP+NnZeAY9RuwpjoGZ BwLrI5g3pmc5VIAqZtGV/4+2zfdb7aBEY/xwg+hkGLN2BhtA1FSLUkwW1L0DRTo+PV3c 2L2MyMGd/XBG0bBk9PQKkw20qcKqfwh7p31Cr+Eq8vU+e54eae+9adSbtjD9LuwnDJQd yDlw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=UPeXZ4AAarS9G3G4HeyW+y4EGQai6OsoJ0Zh24Hq7BU=; b=WSzdMqRhCgQ1pMcWg0Wzs8WFGXHq40a07YI4r2BG12WrvkcG8qQbx/dhYo0YALTw/B O1ZXY3z2Q6KT/pHcU9wVPnCQ4pR2dPViJ2nrVAijbMtMIVkH0UsH8ArXjw5rQhKrF6dj 0oqSBIHiq4m5x5psXaAwFtPw6SDgnOY2N56Ww8ZcRWMZZBUiH23p/6BZZqNIxUrVTtnz fAe+pBqWiVYmnYl28+WLTJCozQPeErVW/u0UNW8Y6tu58sxLby+hkDpN7ZNrGmSVQF7N qrwM7/zKdiUt3ZxllvVIDejIWsqlhxEFvWoL3mwqSf8EDsbFhnQexPLlAQX62Njzaplp ZHsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@essensium-com.20150623.gappssmtp.com header.s=20150623 header.b=X4KumO0F; 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 193si5657800pfv.108.2019.03.26.04.21.17; Tue, 26 Mar 2019 04:21:32 -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=X4KumO0F; 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 S1730697AbfCZLS6 (ORCPT + 99 others); Tue, 26 Mar 2019 07:18:58 -0400 Received: from mail-ed1-f65.google.com ([209.85.208.65]:42924 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726175AbfCZLS5 (ORCPT ); Tue, 26 Mar 2019 07:18:57 -0400 Received: by mail-ed1-f65.google.com with SMTP id x61so4719178edc.9 for ; Tue, 26 Mar 2019 04:18:56 -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:mime-version :content-transfer-encoding; bh=UPeXZ4AAarS9G3G4HeyW+y4EGQai6OsoJ0Zh24Hq7BU=; b=X4KumO0FhuZnqz+UjV7ZkLxXo2ABbK+SzEKUQEv9TwvjKA4fxLZ0JXGd2O3WB4YXC4 u4qkRnuIvBhWvmKR8Hq3hr8S0/aQ0E+Juh0AR5pDD0rxYRqku2Q4ZwO9T6pdkkOKk5H4 X803SKfUjOvwofv+JLsJMhqEvzB4hdL5TjZDMM49CyUw6/+Y4gQ+qJl8yB8RHPfL57+o 4hhFEueGAniJK53ywzw6Xsh+9geNUwbpCNRm8spOzbd8ARFNIz/Sp2ET0Exwr6cqZ0H6 J5EnEzP7LCLxFAptMUO9uIecDDiQM457ywkNQ/KdKkX9o+y+5tZ+4URC+M9ZEeQ+Nuwf pkgg== 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:mime-version :content-transfer-encoding; bh=UPeXZ4AAarS9G3G4HeyW+y4EGQai6OsoJ0Zh24Hq7BU=; b=B2pkZDxTOgvYrsj6ESpQcF667PLcix3PO0iedNYtxh2pL3SLxF2quyG9gCqKOmKviZ 91DJ4rXVsMM/+b0nR+p+8CBYA+hFjLudC9caaGY1rzoTRyKSOeUjXyRykJ0VI8A/meRH /f6m7I0d9S3LHo81y1+GGZ+syYbVf9+CezLd0ETgkNZgbiRA7AZlaNSHQcCEf8G5C6iE TdE3CWXBj9oc7JZ1EIy2qm8Y54NUVU83EkbcazYngkQ5ysH+fhxIZFUkUHgy9W6ctn3I baiLAC0DCeKz8siEr0mkmikCN8ymK5cBCDAqNuwg3uRBBURwJh7i/A/Jm31+dDjJvckd lAdQ== X-Gm-Message-State: APjAAAW5KNEbf0cT8P34GHLfKVWnkE28IgWOZTAoe4JCwzVuVwk41OfG x3LT+kKUf9m2R+S9tFIRp2neVA== X-Received: by 2002:a50:e844:: with SMTP id k4mr5026287edn.249.1553599135872; Tue, 26 Mar 2019 04:18:55 -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.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Mar 2019 04:18:54 -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 1/3] dt-bindings: iio/temperature: Add thermocouple types (and doc) Date: Tue, 26 Mar 2019 12:18:40 +0100 Message-Id: <20190326111842.12399-1-patrick.havelange@essensium.com> X-Mailer: git-send-email 2.19.1 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 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 --- 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 */ -- 2.19.1