Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp6303730rwl; Thu, 29 Dec 2022 10:25:49 -0800 (PST) X-Google-Smtp-Source: AMrXdXsPk8JJsCxnhJZUS0+XiS7O7KKv/Q2fwSw3iuabsoSU2ApZDqGSA/8z01VMfVSItlFFZ97B X-Received: by 2002:a17:907:a641:b0:7c0:f7b0:95d3 with SMTP id vu1-20020a170907a64100b007c0f7b095d3mr25707603ejc.36.1672338349077; Thu, 29 Dec 2022 10:25:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672338349; cv=none; d=google.com; s=arc-20160816; b=XDtBGvt2+UzJ8xs+Anq14LPfjQ1RphCwHIkPEfSD7/0QX7vPFQKrHnQhg9cNuGDxhk JC3VmEOOheE22WMQM2bwjLlGfFnIsI9h+M1O4YQPFJS2jJUx11T0pyGL8aVhpEj+w0M1 WIJS6GsFALWJVrg28yYxvYNBwxeb1WD/oFcgszd7JfakwNGAxmQLLIYr8ZzdCLxJnpmv wC7mQOA59kEJnYXwiI//PTjcYG1CmD66muY9s/c7g7B6TH5xSwczK4aaHW5UP6aSGpaf qEwfk/tY/DRB/CeYhnCo2yXtreOvzYheuZDOUzh/lzgYDJZfjY8gDF9goJ5WtNkKl+H5 onEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=kIxgIgec4/62xVVIZ3p6L5d8xjRJMTAz3qHNdps8eBg=; b=Uc4bleItpkOWaemqD6IaHkCAGpmsVdy72bN845tczU2+wSSl9X8yv4f1e/9XL42LXF 90Xa2GYBcNXOE9kb3m6ahsPYFTSQoTcoy4m4519/jFuuvv4RoXCZGiX0HQmr7KaTd2SD XVPAWFax0YfU6XIyPxhyPRbHFvpQDpkANJGSPHuo+UshBy2GnjsAnzRUE6XZiqv2uVxO uZ2usyr3z7544iOrRublEhNNmrhM2LXstcRGKbvdCakrEiMAKc5Q1bX4MhvAjQi6LQAR UKcSux5ybc3IgoTQrM5v9I8KTACCjo8uJW2E6Ois91ipqk5hq+FJoo9SziOAV6chLWv9 f0yg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id wz13-20020a170906fe4d00b007c0daaa5060si14375410ejb.699.2022.12.29.10.25.34; Thu, 29 Dec 2022 10:25:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231226AbiL2Rfl (ORCPT + 61 others); Thu, 29 Dec 2022 12:35:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33346 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233949AbiL2Rff (ORCPT ); Thu, 29 Dec 2022 12:35:35 -0500 Received: from smtp.smtpout.orange.fr (smtp-22.smtpout.orange.fr [80.12.242.22]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B62815825 for ; Thu, 29 Dec 2022 09:35:34 -0800 (PST) Received: from [192.168.1.18] ([86.243.100.34]) by smtp.orange.fr with ESMTPA id AwoUpb98MIwEfAwoUpvG0O; Thu, 29 Dec 2022 18:35:32 +0100 X-ME-Helo: [192.168.1.18] X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Thu, 29 Dec 2022 18:35:32 +0100 X-ME-IP: 86.243.100.34 Message-ID: Date: Thu, 29 Dec 2022 18:35:29 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH v2 3/5] iio: pressure: bmp280: Add support for new sensor BMP580 Content-Language: fr, en-US To: ang.iglesiasg@gmail.com Cc: ak@it-klinger.de, andriy.shevchenko@linux.intel.com, devicetree@vger.kernel.org, jic23@kernel.org, krzysztof.kozlowski+dt@linaro.org, lars@metafoo.de, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, nikita.yoush@cogentembedded.com, paul@crapouillou.net, rafael.j.wysocki@intel.com, robh+dt@kernel.org, ulf.hansson@linaro.org References: From: Christophe JAILLET In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 26/12/2022 à 15:29, Angel Iglesias a écrit : > Adds compatibility with the new sensor generation, the BMP580. > > The measurement and initialization codepaths are adapted from > the device datasheet and the repository from manufacturer at > https://github.com/boschsensortec/BMP5-Sensor-API. > > Signed-off-by: Angel Iglesias > [...] > diff --git a/drivers/iio/pressure/bmp280.h b/drivers/iio/pressure/bmp280.h > index efc31bc84708..27d2abc17d01 100644 > --- a/drivers/iio/pressure/bmp280.h > +++ b/drivers/iio/pressure/bmp280.h [...] > +#define BMP580_CHIP_ID 0x50 > #define BMP380_CHIP_ID 0x50 Hi, this is maybe correct (I've not been able to find the datasheet to check myself), but it looks odd to have the same ID for 2 different chips. CJ > #define BMP180_CHIP_ID 0x55 > #define BMP280_CHIP_ID 0x58