Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp1309078pxb; Sat, 9 Jan 2021 15:18:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJx5vLJg81prpcH32BjsLdiM2DOblXDJa5ckxLN3HSqE5KiChcEDVYWSP43RL3wAl8gM0M/6 X-Received: by 2002:a17:907:d8e:: with SMTP id go14mr6705028ejc.472.1610234309276; Sat, 09 Jan 2021 15:18:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610234309; cv=none; d=google.com; s=arc-20160816; b=B/SnIZoa/bdeH/Z34j/U7Ci9ecUMx4k3Tp4ByYCtJ3JVQl404yKPYFSXbDaEBwuY/c by9HYHLf6Snq3UymTPi+eQlv8dgg+UfkfpTqzGTS7ImEoghuXJilxpwky4cOQ8+07ulx IPI4rDOwK//w458G50yklq7VfFd9wB2Pd7rXgAphs2MwyZU7j5hlhjtn0WX7mtwJYC6e Esyn7IlT7s5Rzj1S+skSxkWLcy0tlsNfvTfNUFO2vvZ2YiCWxCpy7StN4YXKLzmR9DFD cGysF8Kj+gbd8e0/5YtdJAfuRntY4haHiN6CbZATDfXIbdbTY6jdINQSgLA3WL95lt4i tjog== 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=W2C5flZgE/stzd4d7HUXbnN96xZHbaPiLOSSLH3Qs3w=; b=LvPVZd55u0s+o1X+/bH2758Pt1tbJXsygznjRalzBlBoujrFMHNzZhoQprGy/q1xvt JgybmSS5R9J/wZ5DffJ4H1ycohDomUtuBWeQ2NkUOaCCbkvWwEO4FEZTN0gjMU7jv9Vn lQEoy0QbfvT8h1uD6TqXM3rNLbDZHMlVMyUd1tlWa1XtWVjC6SlZmZpvTRQSeFnpOxr8 KT8x/R8aASvYoFQD59OzvPEV5mpdGW4x8KQPQfonRnbZrGAuaGJZWbK/kE+hdo14R64O ezl+RRBvURGn/Djcf/HRCqQmRwn9nN4Kh36JKPC5l/cL+8boq2WZpEvofURNrxIk2hfE xtcw== 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 g10si4948412ejw.16.2021.01.09.15.18.05; Sat, 09 Jan 2021 15:18:29 -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 S1726398AbhAIXNT (ORCPT + 99 others); Sat, 9 Jan 2021 18:13:19 -0500 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:60701 "EHLO relay2-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726080AbhAIXNT (ORCPT ); Sat, 9 Jan 2021 18:13:19 -0500 X-Originating-IP: 86.202.109.140 Received: from localhost (lfbn-lyo-1-13-140.w86-202.abo.wanadoo.fr [86.202.109.140]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id B0CC840009; Sat, 9 Jan 2021 23:12:35 +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 v2 0/6] iio:pressure:ms5637: add ms5803 support Date: Sun, 10 Jan 2021 00:11:42 +0100 Message-Id: <20210109231148.1168104-1-alexandre.belloni@bootlin.com> X-Mailer: git-send-email 2.29.2 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 layout and sample frequencies, adding support is trivial. Changes in v2: - Dropped "iio:pressure:ms5637: switch to probe_new" to keep the i2c_device_id table. - Reorder trivial-devices.yaml Alexandre Belloni (6): dt-bindings: trivial-devices: reorder memsic devices 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 | 10 ++- .../iio/common/ms_sensors/ms_sensors_i2c.c | 76 ++++++++++++++---- .../iio/common/ms_sensors/ms_sensors_i2c.h | 15 +++- drivers/iio/pressure/ms5637.c | 77 +++++++++++++++---- 4 files changed, 143 insertions(+), 35 deletions(-) -- 2.29.2