Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4380995pxu; Wed, 9 Dec 2020 16:02:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJyte0HTZ+ZSdWYwEioO3FKT8aEgv/KYqOT3R7JT6Gv2rJNxLObrw8lzIy7mnWViitQqeniX X-Received: by 2002:a17:906:a011:: with SMTP id p17mr4107410ejy.30.1607558572176; Wed, 09 Dec 2020 16:02:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607558572; cv=none; d=google.com; s=arc-20160816; b=Nm6cqyJ8YvTYp1U9rM16AqHYNeaD219IEBwjzGCDH8I9ih0KBDm9xhEijJmK5EyM0r wW+7iZrDujL+WE3yo+4jtb7W0IGy812jHM2c5mUP11y49PKiHwaDjjCYQdpObJC/4fQm VZAZfDjOi/2DoyYnxj1s8YB08QtRYLjSaPkXY+esXA+cKgGidjFzNHnjqaB7KvXpMVYJ NVgstElepxUazNjCXHVms7IhVuOSDb06IWdHl87O9C8wnwi3Dq9NaQPa9e2CGqyiss2m lzY6sR6pgX2ii7D/3Ni7gDMhTVknKHe2sFGxz3EqoXbmne8qAJ03X1xgJ29rUbdqKY0b pUow== 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 :message-id:date:subject:cc:to:from; bh=8vydFiExw7vCTAZRMt2ZhU/5pFs4hVUJHzDfK1Mte4w=; b=lXrQeYDki1vSwejpbSDvr7YIQffWJVG5WgTy4St7JIFEhN2CbmEyWtAIWFmLUTsJSh cszwDw8X8+3WF6zht+5EO3HOyL+PMI0cUneJDxaT/4oyGuLDU7OOMjG/W3r5dOtDSTuN 3ZHlfsZtYLQxo1sBSR075mCs5Xdidu/9VTis9MkGeGomOPPEbJgAyys8JvdOWS/aFt4T p1JEEwZILOCCe/udg5CCg1gC6Kvp7ElrBbTNy445qNxdIUTRIPY+7QFyGha6EOLFzuRv HzAdFIy65qJBeM0KimkyPPVMwBLnHQizW7dYHETLCjY+S2cZ2VO3VhdSlccInVmGs6zB 0Jig== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f12si1930825edx.584.2020.12.09.16.02.30; Wed, 09 Dec 2020 16:02:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730173AbgLIXtq (ORCPT + 99 others); Wed, 9 Dec 2020 18:49:46 -0500 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:50809 "EHLO relay3-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726840AbgLIXtq (ORCPT ); Wed, 9 Dec 2020 18:49:46 -0500 X-Originating-IP: 86.194.74.19 Received: from localhost (lfbn-lyo-1-997-19.w86-194.abo.wanadoo.fr [86.194.74.19]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id AF16260004; Wed, 9 Dec 2020 23:49:02 +0000 (UTC) From: Alexandre Belloni To: Jonathan Cameron Cc: 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, Alexandre Belloni Subject: [PATCH 0/6] iio:pressure:ms5637: add ms5803 support Date: Thu, 10 Dec 2020 00:48:51 +0100 Message-Id: <20201209234857.1521453-1-alexandre.belloni@bootlin.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, This series adds support for the Measurement Specialities ms5803. It is very similar to the ms5805 but has a different PROM layout (which I suspect predates the ms5805 PROM layout). Also it supports less frequency sampling options. After a bit of preparatory work in the ms5637 driver and its common library, mainly to handle the PROM layou and sample frequencies, adding support is trivial. Alexandre Belloni (6): iio:pressure:ms5637: switch to probe_new iio:pressure:ms5637: introduce hardware differentiation iio:pressure:ms5637: limit available sample frequencies iio:common:ms_sensors:ms_sensors_i2c: rework CRC calculation helper iio:common:ms_sensors:ms_sensors_i2c: add support for alternative PROM layout iio:pressure:ms5637: add ms5803 support .../devicetree/bindings/trivial-devices.yaml | 2 + .../iio/common/ms_sensors/ms_sensors_i2c.c | 76 +++++++++++++++---- .../iio/common/ms_sensors/ms_sensors_i2c.h | 15 +++- drivers/iio/pressure/ms5637.c | 73 +++++++++++++----- 4 files changed, 128 insertions(+), 38 deletions(-) -- 2.28.0