From patchwork Sun Feb 11 07:56:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petre Rodan X-Patchwork-Id: 20216 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp1820531dyd; Sat, 10 Feb 2024 23:58:45 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWkx7Fl1DNCSNRc+GnldPIKuzYOyPsY8w7+bpxMNST1LeNjh/5jB3ZxMK6fZfnRJoMzoe8vlHuXTsl5hGLE2GMJYuNpyg== X-Google-Smtp-Source: AGHT+IHmYLpRmUx15vKtSzj5Iecz2fHjSQJJKWqCDvH1ixfBGqtpMWetS8Q6/EqKqj5yM+g3yBL0 X-Received: by 2002:a05:6870:4414:b0:219:5a99:ead9 with SMTP id u20-20020a056870441400b002195a99ead9mr4785419oah.30.1707638325127; Sat, 10 Feb 2024 23:58:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707638325; cv=pass; d=google.com; s=arc-20160816; b=sVcx1gaikRseO2gcRetA+DeLL9O3ebfEYhKV0nrNSotCKMZ+auf2dI2fg1I9kLdjUJ nQdRx2yujoL7Mn048/UqoU4WrsNHQG0qbq7/yoRUs79/OJac8dwKm5mud2TdTyOYKQrg nYaV7RzGDrtuDsgiWEMg251jFDT6F7mAgO3P5bWdmS3TM8kf95hDTKNRGu4Rn5yHfLAD wU2JOhPjR7f9f61jzZY6mhEkmfnz8LKh+sOFnNCVHiL9ch9ndTxnEy9sWbwEqxGzHKkh WjBRQgcBodzvH5I1aPjPYCtVWVrxt9dshAFCQqtzvvRg7ZKY7dfNZQLpCT+8bUf5+O60 fsxQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=6WOpPjdN/fImMWsoNUO6PyZKyqyiSFwAsNcnbYlqCUE=; fh=AVsEsRxlZQk6FWAwNX5sSwy8FoemjL0K2gWuT6B32ZI=; b=U35ZlnI6VXBd9F4uHNcXqN5QjWMLSAF3vjf1aaQ5Bn+klRu7BMtflvoLBj0jNjXi1N SDTcHPzSaDftXyJc1+jUVonyIc/53zoCdna0lq56xcxJBM0Pw384rWYg5dyScvEW0Q5h 2XEVJfx7cPkByWTJ73y1J4HoUy1yX1eFFfbTDaCRfHBxbAtRllVvOF2HJnBLedq35aGs XpSlV3wI0Drxjtoal+XYlEjx6RquFiiu83i1JKTZed6MrIDAgNinZ3ATZJHhKOgbqyDp YMEDgrUwa3baGS8lKJF1B7ZDYdy9kvo+/QCfrEDJWuQxYxZGzmMtqm/qp9i0lOcDTznB dxrw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@subdimension.ro header.s=skycaves header.b=DpyzAk8s; arc=pass (i=1 spf=pass spfdomain=subdimension.ro dkim=pass dkdomain=subdimension.ro); spf=pass (google.com: domain of linux-kernel+bounces-60651-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60651-ouuuleilei=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCVb5S1dgbk5FBFW+Hbk0yLJdzJnYGCfp3tlX5Su+Tz+zdxZFmAc0ndeHP/QXRCY2T0SnE3sCD1CYU1jSWfTOYQUGCPR3Q== Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id o29-20020a63921d000000b005dc48e56188si4530070pgd.516.2024.02.10.23.58.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Feb 2024 23:58:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-60651-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@subdimension.ro header.s=skycaves header.b=DpyzAk8s; arc=pass (i=1 spf=pass spfdomain=subdimension.ro dkim=pass dkdomain=subdimension.ro); spf=pass (google.com: domain of linux-kernel+bounces-60651-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60651-ouuuleilei=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id D680BB22D07 for ; Sun, 11 Feb 2024 07:58:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0396247F72; Sun, 11 Feb 2024 07:57:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=subdimension.ro header.i=@subdimension.ro header.b="DpyzAk8s" Received: from mail.subdimension.ro (skycaves.subdimension.ro [172.104.132.142]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4482D405CF; Sun, 11 Feb 2024 07:56:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=172.104.132.142 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707638219; cv=none; b=Oj7M/T4adLvB8DKm60tdjvR0imR6nTAoaFxcsLj9PFGi1+qZj61aEDkrRIm1qSZtESxxOMOAypAqYwL768NyBOzQQ61k0M0vayKUoabMDGkId7NsxnGFyWcgffJgVI+QQyEw3FJTBskisKp3HmHN40ojdYPDbckS5ovVubD5adE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707638219; c=relaxed/simple; bh=d98B/1OhdbB3vkSkyG9Of1gi32FohGfyx7FMeoVF/ss=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=chB0R/5C95pqRk49SgwtfeiBneaZXzFYe78FU/azJUBL9OUSEiTAYCpx/yh6hKYs36L3iNvmLjDoW8+yxRKj4DmNY3rsDOhwL0qPBwU4OZEIo+6bji5AanMcC1LzIFadiwfr9KiwQVrxgdb9M3Cs1hpnQSdLZpAsIy95IuS2bd4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=subdimension.ro; spf=pass smtp.mailfrom=subdimension.ro; dkim=pass (1024-bit key) header.d=subdimension.ro header.i=@subdimension.ro header.b=DpyzAk8s; arc=none smtp.client-ip=172.104.132.142 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=subdimension.ro Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=subdimension.ro Received: from localhost.localdomain (unknown [188.24.101.32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mail.subdimension.ro (Postfix) with ESMTPSA id 6E8D2331874; Sun, 11 Feb 2024 07:56:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=subdimension.ro; s=skycaves; t=1707638208; bh=d98B/1OhdbB3vkSkyG9Of1gi32FohGfyx7FMeoVF/ss=; h=From:To:Cc:Subject:Date; b=DpyzAk8s/R3Y+QnsZm8Ks/ugedGi2ZxlhmyPA300szirop4vojN66QVE7VxnGongV 497AOmeQUUVApAPkprISbMRbU3K04LqJ8j8wQ9OyPifjYXPYqXukXC/W0XFXNo5b5U eqSeBRPPJXPTKwXrZ8a7Wz4myzCyiw1cOctereFw= From: Petre Rodan To: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Petre Rodan , Jonathan Cameron , Lars-Peter Clausen Subject: [PATCH v3 0/6] iio: pressure: hsc030pa: cleanup and triggered buffer Date: Sun, 11 Feb 2024 09:56:31 +0200 Message-ID: <20240211075645.28777-1-petre.rodan@subdimension.ro> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790588564014492114 X-GMAIL-MSGID: 1790588564014492114 This set of patches covers the following: - small cleanup - mandatory 2ms delay between readings - support for triggered buffer readings The support for devices that have "sleep mode" factory option that was present in v1 of this patchset was removed, for a few reasons: - a Honeywell employee told me that this chip variant is extremely unlikely to be found in the wild, which also makes testing the driver functionality impossible - I found no reliable way of generating i2c/spi bus traffic with no payload (toggle CS for SPI case, send i2c packet containing only the address byte) that are required for the wakeup sequence. Petre Rodan (6): dt-bindings: iio: pressure: honeywell,hsc030pa.yaml add spi props iio: pressure: hsc030pa: use signed type to hold div_64() result iio: pressure: hsc030pa: include cleanup iio: pressure: hsc030pa: update datasheet URLs iio: pressure: hsc030pa add mandatory delay iio: pressure: hsc030pa add triggered buffer .../iio/pressure/honeywell,hsc030pa.yaml | 3 ++ drivers/iio/pressure/Kconfig | 2 + drivers/iio/pressure/hsc030pa.c | 49 ++++++++++++++++++- drivers/iio/pressure/hsc030pa.h | 7 +++ drivers/iio/pressure/hsc030pa_i2c.c | 9 +++- drivers/iio/pressure/hsc030pa_spi.c | 7 ++- 6 files changed, 73 insertions(+), 4 deletions(-)