Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp1172140rdh; Fri, 27 Oct 2023 06:49:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEcVQ4VAXOFpYamvFqqkVUZ51/hVmZEmxlBAdCBYi1BF+i9har/iKgia9p2uTbK8H67GcKV X-Received: by 2002:a81:4405:0:b0:5a7:cfdc:d7b1 with SMTP id r5-20020a814405000000b005a7cfdcd7b1mr2809766ywa.4.1698414593281; Fri, 27 Oct 2023 06:49:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698414593; cv=none; d=google.com; s=arc-20160816; b=ZDzALeUJzfgTx0vaDtSFqJ57PBFC6bu0jgGPt92ESGB72HX52ttUC46Vm02xgLk2e4 fb2rZvT3dAKVu6UvyBedHMk5oCevsPkym4GppllArFbgfgfKRsUCSS6LyZtQmE7vMDd3 KQ5dFCAY2n0UyMA95hA2hADklEEICguI3jDKHPsq3r9KFoO+2Jgv0Q9pvu5vJzYvdv6m 0xMmBbj45RcNBoHyi5uECwk3kGbUmShrw4+o5VXd7Lh3t5ta+Sg3VsnNk6msbEO8WcVy Rzd2wvqXM4454XpjNPdxtUPKjtIEuQ4IFjeplKpk/mHzf9D/uLcxjg7F8G3d4FVkNLx7 tybA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=M0gPzubGjl8eZd1Nr/KZ7XpYfFrjIBVB2RlxPwzjGzY=; fh=g8KT/JhjCW6dY3YmtJJaBsUWTjTPnFp8j5+EiH2dZ1I=; b=zUtosdA1LBf7ICrFcfGpyhxaU6vSHDpj+AkwiRcNm3MCr9lIozKdPA2L/hgfCBvRIY d54e2pCU2kSDo7B4UjOqV/0VFW3aCTue0Co3BprOs8Wpqu4Cb9TKbdXTbJumRrtKWb5k +6QXUjk9obrckDaYQChNZ9AINVA2vPy6568jVZ2GnhIIJyiL50n1ra49tE1CNT7rrTYi OgdZtXE3AdmlB8Ghy2baZ4VevWapGpRm7s2paq7FrNCA97D+7X++gl+HuKGpmv4ooGyk /8MzEjcg0QEmsjgt1GdnlWjss21kb+ATXDyoe38uBfA5He88cGxqaYpjFQtW2953N6KG /XgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cwltWJ88; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id c184-20020a814ec1000000b0059f527e8546si2792946ywb.103.2023.10.27.06.49.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 06:49:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cwltWJ88; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 000F5834D75A; Fri, 27 Oct 2023 06:49:49 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346003AbjJ0NtX (ORCPT + 99 others); Fri, 27 Oct 2023 09:49:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345982AbjJ0NtW (ORCPT ); Fri, 27 Oct 2023 09:49:22 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E343E18A; Fri, 27 Oct 2023 06:49:19 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 75F8CC433C8; Fri, 27 Oct 2023 13:49:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698414559; bh=DtoBfgUD9SXkRxzblhXcctUN6fwy02Tc6e40hMWArIU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=cwltWJ88666iLYUDxm4x1q3aEqU0LbdobISa/NGKQHcg9u1TUKe3UEq/ybSAUUnq4 fnpFmCzj5K/djXjLyRkKRMHOSomJ1M0rv6NvXu7/gxXJ6RWVl1Qh7uHdpEivNLqSsb X66HPhj5Ifx5vGWnrk+LCKdUGbQh/TMEyBAgHUaUaHt2nKl9j0f7bU5xhNIt9daJuo EV++XjT9NZwyBFYLdGsW5bV90e2hP2HkH3vaIJrRBE/omXPpQuWrGa5/NkW3cJ5wf2 ab/6ecq0YQZCvtvMJz6Ab5T4s0pfiFzt6UjThPe7DyzaCEWz6/exdlJ3VJx9A7/ngM pntSIy96UrR1g== Date: Fri, 27 Oct 2023 14:48:43 +0100 From: Jonathan Cameron To: Angel Iglesias Cc: linux-iio@vger.kernel.org, Biju Das , linux-kernel@vger.kernel.org, Lars-Peter Clausen , Andy Shevchenko , Linus Walleij , Phil Elwell , Uwe =?UTF-8?B?S2xlaW5lLUvDtm5pZw==?= Subject: Re: [PATCH v2 5/5] iio: pressure: bmp280: Add support for BMP390 Message-ID: <20231027144843.623dc141@jic23-huawei> In-Reply-To: References: X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Fri, 27 Oct 2023 06:49:50 -0700 (PDT) On Sun, 22 Oct 2023 19:22:21 +0200 Angel Iglesias wrote: > Add BMP390 device ID to the supported IDs on bmp380 sensor family > > Signed-off-by: Angel Iglesias > Applied to the togreg branch of iio.git and pushed out as testing for 0-day to poke at it. Thanks, Jonathan > diff --git a/drivers/iio/pressure/bmp280-core.c b/drivers/iio/pressure/bmp280-core.c > index deb336781b26..c6c761e84006 100644 > --- a/drivers/iio/pressure/bmp280-core.c > +++ b/drivers/iio/pressure/bmp280-core.c > @@ -13,6 +13,7 @@ > * https://www.bosch-sensortec.com/media/boschsensortec/downloads/datasheets/bst-bmp280-ds001.pdf > * https://www.bosch-sensortec.com/media/boschsensortec/downloads/datasheets/bst-bme280-ds002.pdf > * https://www.bosch-sensortec.com/media/boschsensortec/downloads/datasheets/bst-bmp388-ds001.pdf > + * https://www.bosch-sensortec.com/media/boschsensortec/downloads/datasheets/bst-bmp390-ds002.pdf > * https://www.bosch-sensortec.com/media/boschsensortec/downloads/datasheets/bst-bmp581-ds004.pdf > * > * Notice: > @@ -1225,7 +1226,7 @@ static int bmp380_chip_config(struct bmp280_data *data) > > static const int bmp380_oversampling_avail[] = { 1, 2, 4, 8, 16, 32 }; > static const int bmp380_iir_filter_coeffs_avail[] = { 1, 2, 4, 8, 16, 32, 64, 128}; > -static const u8 bmp380_chip_ids[] = { BMP380_CHIP_ID }; > +static const u8 bmp380_chip_ids[] = { BMP380_CHIP_ID, BMP390_CHIP_ID }; > > const struct bmp280_chip_info bmp380_chip_info = { > .id_reg = BMP380_REG_ID, > diff --git a/drivers/iio/pressure/bmp280.h b/drivers/iio/pressure/bmp280.h > index a230fcfc4a85..2971bf58f802 100644 > --- a/drivers/iio/pressure/bmp280.h > +++ b/drivers/iio/pressure/bmp280.h > @@ -292,6 +292,7 @@ > #define BMP580_CHIP_ID_ALT 0x51 > #define BMP180_CHIP_ID 0x55 > #define BMP280_CHIP_ID 0x58 > +#define BMP390_CHIP_ID 0x60 > #define BME280_CHIP_ID 0x60 > #define BMP280_SOFT_RESET_VAL 0xB6 >