From patchwork Thu Mar 7 10:34:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrick Havelange X-Patchwork-Id: 10842659 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 9458B14E1 for ; Thu, 7 Mar 2019 10:34:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7FECA2C831 for ; Thu, 7 Mar 2019 10:34:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 740DA2E482; Thu, 7 Mar 2019 10:34:43 +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 153B72C831 for ; Thu, 7 Mar 2019 10:34:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726527AbfCGKe1 (ORCPT ); Thu, 7 Mar 2019 05:34:27 -0500 Received: from mail-ed1-f66.google.com ([209.85.208.66]:43504 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726166AbfCGKeX (ORCPT ); Thu, 7 Mar 2019 05:34:23 -0500 Received: by mail-ed1-f66.google.com with SMTP id m35so12982575ede.10 for ; Thu, 07 Mar 2019 02:34:22 -0800 (PST) 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=YWml5F5NmWFC29RC/IB7M978QiPtAs5XY75gb4XVM4U=; b=DIgMWPJVZiSmRqN2EdHU3MyvvPaKmRiilO+uAnrGaW3eu7g8MkwdJpZp15adDXc6G0 HaXHnty4KFUPOukRrbv7qsMpR2ZjFOURIdLeXY2sWJRp/D+5ehkmG+Ia8aIefkEhphjf 5ieUS9+/s9Q2EI9utK9v4m7xBQerqScZaW+ZOZ5fhRTIF1XiQrk5RRbLaMdate8s0S4Q dY0NRuCbkE2RLApjYPG867YHNi46PtO7ft38/MJA6rEw44er89/vrKDgvuHfhpmSVL9g MvyYdJ65yqKBw/MmmM66sy1LuwTjtBn2y/SjZuuG7l1OMsoz5y5C0sCZ7hGzN/9oeiC1 Femg== 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=YWml5F5NmWFC29RC/IB7M978QiPtAs5XY75gb4XVM4U=; b=GIXL8s08/NgcNSURaSwKBxjr28/x9qPNCBo09qN+00DMnas2KBBWn1I6nthGQeCKj8 2NzJ3KcM+Sd0jbxmJbBYv9uaNj4/Vujp38OpfWIRdmtXIzblYgl/LhyLRzAf2fMcMQ2W LlhYVNvCzUHtMAGvo6S8mwwer4IW5sZF4EjaxAgjOWej5Vr+T5E15zvIoI2dpnAYhmwQ AOuOKxHlUNy1eFinV5d91VQa/eHbYpJVf0x7Lrsq5s3F4AccaH7+T5XvpeQDyj/SraZU DU/BQHcZ1u2rV5vcU/k7nshOYA3JDlBd6z0eMDaaNtY2/nMHONlyrrAdtAigBS/cppxb fA5g== X-Gm-Message-State: APjAAAWCS0j0RzSDCGAhXLU3CVu7peKLVLgHqRP16maX1hbn32ph0T66 EmDtdC0HqsyYFImUqx0FiH/9Xg== X-Google-Smtp-Source: APXvYqw3gHPuAqYeGqVtPdAY4+wzHx2jVlyDXOW73SkShl/67tHKg6aW3Q2/hV2TREBKjOrhkD59Cg== X-Received: by 2002:a50:b87a:: with SMTP id k55mr28334830ede.92.1551954861465; Thu, 07 Mar 2019 02:34:21 -0800 (PST) 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 h8sm1250998edb.36.2019.03.07.02.34.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Mar 2019 02:34:20 -0800 (PST) From: Patrick Havelange To: Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Rob Herring , Mark Rutland , Matt Weber , Paresh Chaudhary , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: Patrick Havelange Subject: [PATCH v6 3/4] iio:temperature:max31856:Add device tree bind info Date: Thu, 7 Mar 2019 11:34:08 +0100 Message-Id: <20190307103409.24174-3-patrick.havelange@essensium.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190307103409.24174-1-patrick.havelange@essensium.com> References: <20190307103409.24174-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 --- .../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 = ; + };