From patchwork Tue Feb 26 15:02:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrick Havelange X-Patchwork-Id: 10830463 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 1A607139A for ; Tue, 26 Feb 2019 15:02:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ED5952C96B for ; Tue, 26 Feb 2019 15:02:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EAFC92C9FA; Tue, 26 Feb 2019 15:02:37 +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 F14B32C972 for ; Tue, 26 Feb 2019 15:02:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726988AbfBZPCg (ORCPT ); Tue, 26 Feb 2019 10:02:36 -0500 Received: from mail-ed1-f65.google.com ([209.85.208.65]:42580 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726151AbfBZPCg (ORCPT ); Tue, 26 Feb 2019 10:02:36 -0500 Received: by mail-ed1-f65.google.com with SMTP id j89so10963691edb.9 for ; Tue, 26 Feb 2019 07:02:34 -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:mime-version :content-transfer-encoding; bh=Y3ZkxLHdisqPpY2rCIjfhitPW7Q3/erE1IBcwy1ug3A=; b=N57EjDTT4jv74HYsvVdn0YoQrSI8jsneRuuMsN6wLTVx4XXW9/ZQSttVz9WJgdYT9G q1yniE/YdnI7DbL1Af9ykPTMnKNAcgAWkl7GGVE3GMOLilSwAZoDWKY3Yf3ulAOxvsAI Uy0k+TSCsrHxJy+zdPayI0QwvrjHD1+X24gWYvjFPKNzS7SrOfaoGqVFFNVY1SLIRsMJ 75FLHaqjMHiccfpn+y3I0IOZ/mJqh47w9CBfU8hsQS4646atkA3a9RehFmPhW055lqOZ RFnCeQvX9pDUVJN26Iu61WGaMRk3FycLiyDhzk7lHlEqaI9US155gOIadThzw7BVRgnA jDDA== 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=Y3ZkxLHdisqPpY2rCIjfhitPW7Q3/erE1IBcwy1ug3A=; b=ppIZyYfATTWIznVHSKd4DIiH7FgFbagKAusynkV2xARbGoRJ/WDr2xIfOxfuwv7rpc oESAkOH7WuS+2SYdV7inYihXkV3miGRwhCvpb4b7RcXqpAPr3GBBCqB8PLZKbBnPCtwg JHyWqInLTSzaD/wiZ2LQawvd+UeVSlE6V1FdWeB5l1aHVkbhU1obVjaKY6NBfdGUuYct ldLiqeQghG37pi14EsZotmioJKf1snPPGqQx336El6UAmy54Bj8+XADPiBqz0VEGbHmM KVT+6MZk8xVi+yuNVQYoxARSHi/MWoLJSPMtJ18KJXfrFdqsLonA78cCXOjPRRT0KnS9 6aew== X-Gm-Message-State: AHQUAuZiaSdBl6rbAYrLqR++QwAw176L4jhZP47Ckq0/FMY3PPTjKWfL UIUIIrb0eGL/qXwk8EB+vgkhPA== X-Google-Smtp-Source: AHgI3Ia/67D5PYvuK/XfqdBzRwZUcfOPzs1Em1orj/0sEPBmaOXPI1YUF5+W+gFd+9L0AoGPFugt/A== X-Received: by 2002:a17:906:4e98:: with SMTP id v24mr17465641eju.58.1551193354179; Tue, 26 Feb 2019 07:02:34 -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 x45sm3521308edb.42.2019.02.26.07.02.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Feb 2019 07:02:33 -0800 (PST) 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 v5 1/2] iio:temperature:max31856:Add device tree bind info Date: Tue, 26 Feb 2019 16:02:13 +0100 Message-Id: <20190226150214.19467-1-patrick.havelange@essensium.com> X-Mailer: git-send-email 2.19.1 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 --- 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 --- .../bindings/iio/temperature/max31856.txt | 29 +++++++++++++++++++ 1 file changed, 29 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..b4396069b8fa --- /dev/null +++ b/Documentation/devicetree/bindings/iio/temperature/max31856.txt @@ -0,0 +1,29 @@ +Maxim MAX31856 thermocouple support + +https://datasheets.maximintegrated.com/en/ds/MAX31856.pdf + +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 + - maxim,thermocouple-type: Type of thermocouple (By default is K-Type) + 0x00 : TYPE_B + 0x01 : TYPE_E + 0x02 : TYPE_J + 0x03 : TYPE_K (default) + 0x04 : TYPE_N + 0x05 : TYPE_R + 0x06 : TYPE_S + 0x07 : TYPE_T + + 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; + maxim,thermocouple-type = <0x03>; + };