From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.0 required=3.0 tests=BAYES_00,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2F0A7C1B0E3 for ; Fri, 11 Dec 2020 03:36:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DC9B123770 for ; Fri, 11 Dec 2020 03:36:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405268AbgLKDfy (ORCPT ); Thu, 10 Dec 2020 22:35:54 -0500 Received: from mail-oi1-f193.google.com ([209.85.167.193]:34239 "EHLO mail-oi1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405250AbgLKDe4 (ORCPT ); Thu, 10 Dec 2020 22:34:56 -0500 Received: by mail-oi1-f193.google.com with SMTP id s75so8388209oih.1; Thu, 10 Dec 2020 19:34:40 -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; bh=5X4INTOHYkiv4qJceNlizwSZ2F4yaORFWqNAvCdXmig=; b=X0WGyrPTDte7nV+MMAEUhedlrDFhd90oxs3xkAy4/Q0RhtwVF3aFec8d4iDGqPlma0 5a72IBHx7iN9MKsyxhCuV0Gm6AFCWxmEqo5RCIv6BsV0LJz510tIfSmzXCJdpW/WIrf0 +Uq6GcZ3Jhn6rqEUjd5nJpymGYfmzU6M66Sx81RpyXGVyjA+euOd1K+1H6e8/7JJYeVk T4J7btwupHUV7opJvcv3v2f/I9euetEGBnmuUFENDn2SSfZWOOmsERJhxYEFOkOC/Zpl eIh2MxWefs8oRCvT2WibYJ9D0p+lnNClCcd3kyZz7guvvk0DBwjgqqs9hA69NfzpWJsx 1fog== X-Gm-Message-State: AOAM533H/JjKkjjfvw5fLDkB9TUna40u2VJlIvwgPX24J/wUaWHMB/Wl 0S5WzwytR8vMBQanClIkSQ== X-Google-Smtp-Source: ABdhPJx3Vfhhuz3O0orNqKdlqcTcD08QNbyPLmKrJ/Gw+Puo6Ap+WJIrHuJ01GXCsDNGsXvhVmzL+g== X-Received: by 2002:aca:6087:: with SMTP id u129mr8031458oib.173.1607657655459; Thu, 10 Dec 2020 19:34:15 -0800 (PST) Received: from xps15 (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id s9sm1577098otb.6.2020.12.10.19.34.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Dec 2020 19:34:14 -0800 (PST) Received: (nullmailer pid 3585740 invoked by uid 1000); Fri, 11 Dec 2020 03:34:13 -0000 Date: Thu, 10 Dec 2020 21:34:13 -0600 From: Rob Herring To: Alexandre Belloni Cc: Jonathan Cameron , Lars-Peter Clausen , Peter Meerwald-Stadler , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 6/6] iio:pressure:ms5637: add ms5803 support Message-ID: <20201211033413.GA3584721@robh.at.kernel.org> References: <20201209234857.1521453-1-alexandre.belloni@bootlin.com> <20201209234857.1521453-7-alexandre.belloni@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201209234857.1521453-7-alexandre.belloni@bootlin.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 10, 2020 at 12:48:57AM +0100, Alexandre Belloni wrote: > The ms5803 is very similar to the ms5805 but has less resolution options > and has the 128bit PROM layout. > > Cc: Rob Herring > Signed-off-by: Alexandre Belloni > --- > Documentation/devicetree/bindings/trivial-devices.yaml | 2 ++ > drivers/iio/pressure/ms5637.c | 8 ++++++++ > 2 files changed, 10 insertions(+) > > diff --git a/Documentation/devicetree/bindings/trivial-devices.yaml b/Documentation/devicetree/bindings/trivial-devices.yaml > index ab623ba930d5..84b0e44235c1 100644 > --- a/Documentation/devicetree/bindings/trivial-devices.yaml > +++ b/Documentation/devicetree/bindings/trivial-devices.yaml > @@ -132,6 +132,8 @@ properties: > - mcube,mc3230 > # MEMSIC 2-axis 8-bit digital accelerometer > - memsic,mxc6225 > + # Measurement Specialities I2C pressure and temperature sensor > + - meas,ms5803 Alphabetical order please. > # Microchip differential I2C ADC, 1 Channel, 18 bit > - microchip,mcp3421 > # Microchip differential I2C ADC, 2 Channel, 18 bit > diff --git a/drivers/iio/pressure/ms5637.c b/drivers/iio/pressure/ms5637.c > index 2943b88734b3..39830a51ca78 100644 > --- a/drivers/iio/pressure/ms5637.c > +++ b/drivers/iio/pressure/ms5637.c > @@ -192,8 +192,15 @@ static const struct ms_tp_hw_data ms5637_hw_data = { > .max_res_index = 5 > }; > > +static const struct ms_tp_hw_data ms5803_hw_data = { > + .prom_len = 8, > + .max_res_index = 4 > +}; > + > static const struct ms_tp_data ms5637_data = { .name = "ms5637", .hw = &ms5637_hw_data }; > > +static const struct ms_tp_data ms5803_data = { .name = "ms5803", .hw = &ms5803_hw_data }; > + > static const struct ms_tp_data ms5805_data = { .name = "ms5805", .hw = &ms5637_hw_data }; > > static const struct ms_tp_data ms5837_data = { .name = "ms5837", .hw = &ms5637_hw_data }; > @@ -205,6 +212,7 @@ static const struct ms_tp_data ms8607_data = { > > static const struct of_device_id ms5637_of_match[] = { > { .compatible = "meas,ms5637", .data = &ms5637_data }, > + { .compatible = "meas,ms5803", .data = &ms5803_data }, > { .compatible = "meas,ms5805", .data = &ms5805_data }, > { .compatible = "meas,ms5837", .data = &ms5837_data }, > { .compatible = "meas,ms8607-temppressure", .data = &ms8607_data }, > -- > 2.28.0 > From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DFE27C4361B for ; Fri, 11 Dec 2020 03:35:34 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 825FC23770 for ; Fri, 11 Dec 2020 03:35:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 825FC23770 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=DUuOqbi2z4hU6KTOFIen71vHzK/EmDOR9j5M0joEnGU=; b=uAzOinEy4FQq2reOp7r/s8pzy OTN0HmSxuKYgqwMR2r7WMGDHZw+kgruzf8IXa3X5Lieeg4B78H6xUY+hdviJ9OZ9zxzE3FmpfZ+MD G2qUinJccmBBEKmN9BzwuwxCv8v0788rHaLHO1OvYq2TO/xRY2/2tZrLCo0jFb2cY4l4ovxBh0g0o 4Viw5TAAWIXFZCk2Zx54a9g6C7p8z4Akw+/fTZjZDv7bIY5IvzKDaJP/S3xhox9LuF2QtbML8lGBt rF3Q06IJ88qYrzunX3qMIdZZLG2T9rXjKswCV/2B6n4aEWbMhKBlGs4eQ4PEeOrbkx5gE8dn4g4Mq 5bAB10PIw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1knZCF-0005Gi-CA; Fri, 11 Dec 2020 03:34:19 +0000 Received: from mail-oi1-f196.google.com ([209.85.167.196]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1knZCC-0005G6-N6 for linux-arm-kernel@lists.infradead.org; Fri, 11 Dec 2020 03:34:17 +0000 Received: by mail-oi1-f196.google.com with SMTP id f132so8338665oib.12 for ; Thu, 10 Dec 2020 19:34:16 -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; bh=5X4INTOHYkiv4qJceNlizwSZ2F4yaORFWqNAvCdXmig=; b=jVMHS99SRddIOyyarWRMdJJtX3Bt5gY6qAw+fGJ988wH5/20rHM/lqNVhpW9nYUg7Y 4ODFxQWc74aojK23j8XJUwEt2eqJSRQ9zVODKvFQN6Q5He5v8fLhpVU6s8EHQUNgxgZT BvGy/oqrR538vsu8A+wtIA9cWkcz2qnz0mxOaY6irNfezvEIuzyoAbCGFfrGGDOcadG/ NqTJyYxLhAxOxu3GfBaE3j/p5ppj3ISCA5xI6BnVTrDwFHKI+CAU64WXMvxGx7XDxHa+ Sua5m7p1eWKBmlC+Swc2awfnR/LfN7OFvBvIy8nVH1WGZ1uJUTFORhxNlDJOr3krQl+P XEGg== X-Gm-Message-State: AOAM531I3OzlKftfyHbJAoRo6T6NsGWEeLArBkC4vZxLxnolc00B8rlZ ANSJgBsUiE4p2nZ+kRzXtxbKsZ5zFw== X-Google-Smtp-Source: ABdhPJx3Vfhhuz3O0orNqKdlqcTcD08QNbyPLmKrJ/Gw+Puo6Ap+WJIrHuJ01GXCsDNGsXvhVmzL+g== X-Received: by 2002:aca:6087:: with SMTP id u129mr8031458oib.173.1607657655459; Thu, 10 Dec 2020 19:34:15 -0800 (PST) Received: from xps15 (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id s9sm1577098otb.6.2020.12.10.19.34.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Dec 2020 19:34:14 -0800 (PST) Received: (nullmailer pid 3585740 invoked by uid 1000); Fri, 11 Dec 2020 03:34:13 -0000 Date: Thu, 10 Dec 2020 21:34:13 -0600 From: Rob Herring To: Alexandre Belloni Subject: Re: [PATCH 6/6] iio:pressure:ms5637: add ms5803 support Message-ID: <20201211033413.GA3584721@robh.at.kernel.org> References: <20201209234857.1521453-1-alexandre.belloni@bootlin.com> <20201209234857.1521453-7-alexandre.belloni@bootlin.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20201209234857.1521453-7-alexandre.belloni@bootlin.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201210_223416_766718_8BEBCC76 X-CRM114-Status: GOOD ( 19.73 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Lars-Peter Clausen , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Peter Meerwald-Stadler , Jonathan Cameron Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Dec 10, 2020 at 12:48:57AM +0100, Alexandre Belloni wrote: > The ms5803 is very similar to the ms5805 but has less resolution options > and has the 128bit PROM layout. > > Cc: Rob Herring > Signed-off-by: Alexandre Belloni > --- > Documentation/devicetree/bindings/trivial-devices.yaml | 2 ++ > drivers/iio/pressure/ms5637.c | 8 ++++++++ > 2 files changed, 10 insertions(+) > > diff --git a/Documentation/devicetree/bindings/trivial-devices.yaml b/Documentation/devicetree/bindings/trivial-devices.yaml > index ab623ba930d5..84b0e44235c1 100644 > --- a/Documentation/devicetree/bindings/trivial-devices.yaml > +++ b/Documentation/devicetree/bindings/trivial-devices.yaml > @@ -132,6 +132,8 @@ properties: > - mcube,mc3230 > # MEMSIC 2-axis 8-bit digital accelerometer > - memsic,mxc6225 > + # Measurement Specialities I2C pressure and temperature sensor > + - meas,ms5803 Alphabetical order please. > # Microchip differential I2C ADC, 1 Channel, 18 bit > - microchip,mcp3421 > # Microchip differential I2C ADC, 2 Channel, 18 bit > diff --git a/drivers/iio/pressure/ms5637.c b/drivers/iio/pressure/ms5637.c > index 2943b88734b3..39830a51ca78 100644 > --- a/drivers/iio/pressure/ms5637.c > +++ b/drivers/iio/pressure/ms5637.c > @@ -192,8 +192,15 @@ static const struct ms_tp_hw_data ms5637_hw_data = { > .max_res_index = 5 > }; > > +static const struct ms_tp_hw_data ms5803_hw_data = { > + .prom_len = 8, > + .max_res_index = 4 > +}; > + > static const struct ms_tp_data ms5637_data = { .name = "ms5637", .hw = &ms5637_hw_data }; > > +static const struct ms_tp_data ms5803_data = { .name = "ms5803", .hw = &ms5803_hw_data }; > + > static const struct ms_tp_data ms5805_data = { .name = "ms5805", .hw = &ms5637_hw_data }; > > static const struct ms_tp_data ms5837_data = { .name = "ms5837", .hw = &ms5637_hw_data }; > @@ -205,6 +212,7 @@ static const struct ms_tp_data ms8607_data = { > > static const struct of_device_id ms5637_of_match[] = { > { .compatible = "meas,ms5637", .data = &ms5637_data }, > + { .compatible = "meas,ms5803", .data = &ms5803_data }, > { .compatible = "meas,ms5805", .data = &ms5805_data }, > { .compatible = "meas,ms5837", .data = &ms5837_data }, > { .compatible = "meas,ms8607-temppressure", .data = &ms8607_data }, > -- > 2.28.0 > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel