Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp28818img; Wed, 27 Feb 2019 16:00:45 -0800 (PST) X-Google-Smtp-Source: AHgI3Ia2gRX3kYqlYWdKEDs2zxKW63ovIanK9e5i03C8c4+jetiU8iQZUhj7Wg/WE09lwMmfMeOc X-Received: by 2002:a65:48c1:: with SMTP id o1mr5405322pgs.94.1551312045751; Wed, 27 Feb 2019 16:00:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551312045; cv=none; d=google.com; s=arc-20160816; b=SNspBTmaB4bkw/pM2EDeBQopmXQdasHdaX+YA/jxCHBPZ8as1ERBh3SzB0ChqP+Cly zdIgohYhu3ngkY+wL6gDkcS37vEZ5TZV41p2NKIYecUZkDuYMxV23XCe3jBQiOLJoEeP 7JF9PAgwm+7MOK7WAHHQg5Bjgz+Fqs6JNp3F43AYxbs0Dt/B7/wDJyPTg8QnVzRymGH/ OaM77fEfxlATMJuTyiatnFDP8ICOrbEWY1PShMwlWDinMM0XX3e3heq6cETiGkkzKngP RqCt/YycXE0UOeVlRw2XjydYLCQCfQ4Cwy1YK3aUhjrYRfYi82YjS+3COvVu6XZu/dmq sgdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=iuw7ppTeRBVeO4grX4blVXww60pr9qTi6AWNXrLdORw=; b=mwVx821JTuanQZH415c4Mobd1JK54IBhGHBrgrDS7yrzdyrGdxdydxZynACBCVrfuy Zp+YlICm99PNhLHnbmiQaxAZR4wfQvvqvkquDe8sHHWAAbcZIVaakkNc2+qJuN3SFcQ2 CaeiyiulrcvzWl4Z4P7hNqbpct52jYYwj5KIHhL42eaewSDzWJPLbuUjJX46T58NmYx0 QUhu6zfBYFfap+foHrGBddd5knmaiRENPCIILgOEQT+mUzPXW8DEIQ2IzTxL9F3f5M1N R+w4uBbFOIkHh2zS8DqwroqR8XHDrgn0Nq8VXYi99O/gYaGlBmQze2a7FbatXRcU10S9 MeKQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (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 j7si16988681plb.349.2019.02.27.16.00.29; Wed, 27 Feb 2019 16:00:45 -0800 (PST) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730513AbfB0X7u (ORCPT + 99 others); Wed, 27 Feb 2019 18:59:50 -0500 Received: from mail-ot1-f66.google.com ([209.85.210.66]:42569 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728397AbfB0X7u (ORCPT ); Wed, 27 Feb 2019 18:59:50 -0500 Received: by mail-ot1-f66.google.com with SMTP id i5so16047334oto.9; Wed, 27 Feb 2019 15:59:49 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=iuw7ppTeRBVeO4grX4blVXww60pr9qTi6AWNXrLdORw=; b=MpNUR1CWGgxG+LkWB3r18rO2NiNCbWhSDBIOmWH9HtkwmhmxNWKDqWyoCRoZDkm3no yPLaLqzXbrmQ98M872+dU/zQGrkuU8sfczdCne49s2EPK2Xvc0V2Fp/sUd4MeKcKLJkd Ioca7+WB0uPxDY0A4F/gfPpAcU4saKTykW1mIeqpu5FpA8u8macO7Zxh5Q3ouqdBtJsX AjMJKtXksYyoGE6aKufp14Ph+5m8/kb4bken00JpSZ40wYewJ2gfrOSWl8m8fZqXY41c CcRwF/ZtSNuPh8K9iz84eOrgdlXtnZ7JVWlpDyeHdlMcD/58dfME+z7hK8WpjqsZdB9A ijQw== X-Gm-Message-State: AHQUAuYVk+x5J0Xqul/UBv7MbhNu2qaCXxIncO5gNsHyv9DrXy5MqiAy 3Nmf864rl69jxGh/QritWDQ0tSw= X-Received: by 2002:a9d:80e:: with SMTP id 14mr3874736oty.108.1551311988816; Wed, 27 Feb 2019 15:59:48 -0800 (PST) Received: from localhost (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id p188sm7722013oia.58.2019.02.27.15.59.47 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 27 Feb 2019 15:59:47 -0800 (PST) Date: Wed, 27 Feb 2019 17:59:47 -0600 From: Rob Herring To: Patrick Havelange Cc: Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Mark Rutland , Paresh Chaudhary , Matt Weber , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH v5 1/2] iio:temperature:max31856:Add device tree bind info Message-ID: <20190227235947.GA27130@bogus> References: <20190226150214.19467-1-patrick.havelange@essensium.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190226150214.19467-1-patrick.havelange@essensium.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 26, 2019 at 04:02:13PM +0100, Patrick Havelange wrote: > 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 These appear to be standard types. Perhaps this should be a common property instead? > + > + 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>; > + }; > -- > 2.19.1 >