Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp1692567lqo; Sun, 12 May 2024 14:05:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUGGTvmA12UawmvG1GrDXGOqm1AQCm7T5jaiBxDJib3Bre3NnXjHFncFc346d7LUfjSGiRJjAOHpq1nzJVJMbGl5k+uwNWkbu96l06kFQ== X-Google-Smtp-Source: AGHT+IFS5fXd+aTOilQXgyjWLEkjzTwIdND8n3aTTKZyugkyJIuJIUw2oP6dQZpr0JhrNNdoHrNO X-Received: by 2002:a05:6a00:2ea1:b0:6ea:d004:33c9 with SMTP id d2e1a72fcca58-6f4e038a176mr8606769b3a.30.1715547910589; Sun, 12 May 2024 14:05:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715547910; cv=pass; d=google.com; s=arc-20160816; b=BkBsgKGukixqhEpBWTMnmZMkNKk/XgdLysb9WLbDq+9ns7TzW7ALk43cawVqYL3kDv NmYMK27KGARxxGsXbMuVuHN0Lds1VlgWdsUjX+0B3E5uQPFJkuWQUVpLfPZwP1MSS9O/ ew1e80KDMyMFPAqae0WTgNsIHyiP6PA+eF0JFko3apVP/PMJlzrFG9lK6O/JpdQP2gMG P6cvfxHQHW00lEhYkjfvI83DZhgKvfcJIAWqxO+fDF9odScXxPXFPfOhZgzcO1s5GgRG yX+LrHe6/ZbEMtlNSn++hxO6EZBCirjvJcjGHmac4I7xv1eqf46ynqiDEvfofWydkIpG +7zw== 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=49gp34vg08KM1Pui5A3dBoTwgYUqH7gz93G6LxNn9ds=; fh=CcHeHIKE47tMM/Hlhsu7enrGOi+6S+wGHk6EwrNjISs=; b=G9bIpPnjAJbk3fq/07udW0emjQO91AYfkhtDWktl9i/ytMmYPh47dJypMi7flbdPi/ Q17USvbwMxYQYMiw2ykguhorwTnGBCB+CEQNwLG6+zFBFs6QKnOQsBAgv7bzxfynDQTY mhbmGZGHjxfjQsIgnlojt23YqLROH2VX3K29X5BX3ZpNPn3DE5m4Tb8JWMkj1ckFiMpJ JE8F6+H0zbFTbMuqVBZSncOMoO9CcQBFs9TuTAVmps8lR24lt8suOr1rHsZWSKKzGQKh CMS1BlAwFcq12Ossy/BO92XUp99yZ9dQxNh5JMoStM5Pm4MagP7Lzri9Ng1s2Vn6o9g2 xJZQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=bqJRtDB7; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-177008-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-177008-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d2e1a72fcca58-6f4d2aef301si8020249b3a.145.2024.05.12.14.05.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 May 2024 14:05:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-177008-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=bqJRtDB7; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-177008-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-177008-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 604EAB21499 for ; Sun, 12 May 2024 21:05:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 28A25535A8; Sun, 12 May 2024 21:04:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="bqJRtDB7" Received: from mail-oo1-f45.google.com (mail-oo1-f45.google.com [209.85.161.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F1F4B1DFD0; Sun, 12 May 2024 21:04:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.161.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715547895; cv=none; b=dCLSURRcxP3Ym28a682zhNbZsGMrkTeaxUZ4xXuCXlBaSEBAvQaOeQETcgoR7O3Jm6XCCDy3as1odQbF8qZyPoMEXLQDKuBJxKiQ+T8ls7SqjgIgxw1/FwRYt+ct26qvXrbfdCQNNNrSmndYstMDFwOW4wqkfquVlH375KnPSco= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715547895; c=relaxed/simple; bh=uWMyoS64M6BvRn+3IiwkbrlGwagXWlrWOlikPtGavgg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Hsi7cz0PAe5EGYbT6nx8g9LhBkx/O8mA6+nXKIBc5VhTdT285xfyGHZg7Q6v24fth184CgbSMfJcMQfDlnA+sduZFN7yrssxUWuWxq3XL8oLaEUEuSnzZj0E2sjHXQmCf1H5TYJFqQViPziztRskTL1Dmcp16919kWBnEap0H6Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=bqJRtDB7; arc=none smtp.client-ip=209.85.161.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-oo1-f45.google.com with SMTP id 006d021491bc7-5ac61cf3fffso1822635eaf.3; Sun, 12 May 2024 14:04:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715547893; x=1716152693; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=49gp34vg08KM1Pui5A3dBoTwgYUqH7gz93G6LxNn9ds=; b=bqJRtDB7tT+8xynmaz6XRLTsuFh2j0ulC/YBe/YDrqwLZ/vC4AAUk5Dr1+NI++TSEy /+M/Xqff3vzzJR75uPjauam1YU/O82ILu8Wslb7Rvwj965fn3xMmxMbwX1JihffPCnWJ ogH4cXPxaY8mHL6K5WAwokzY/8bgbB6YvAMQ+PKdxV+v+o1nE/LFPlhTfGUOZ2v8yyt3 XFfwS3QBLdfKSyJkrKJ3rWqrY32hec6hYskipYUpo5ol9xp+yRe/G8bqNWmVDooG74Jg 9TuQWt/6ZzaZ7lyLISmETLafyRSzG6fQunSbgKz49XKJ77H1H3updDjRkVJhWbbcUXK2 hyGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715547893; x=1716152693; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=49gp34vg08KM1Pui5A3dBoTwgYUqH7gz93G6LxNn9ds=; b=RHQxFRCbizpDmrnglu0NSljNI7jR3DEla3RvNVnOxSZEktf3BYfe06EQ5t4HmrPDQs fT4BMr6D/3Dn0vEDXTQJ7z2PfQgl0iX5NWF1Wncm3Yl6fTJtPdAD9XWt/62uojCVuEWa ukvpWrjHi05UHFFypeXNQdLmleU53WmiI5T13jZxov+HJdavhgY7ptOFtqmrFd4K6w46 9KJyZJBFZlGUepkFDdxtq7IowdMWLgBGQxN5L5NVrm9o6VrEoodr2tYOkX6Caiwb8VQJ IJdIJCOE3gTvbEriFExPEE93nB/uEtPxe/9wmJYzukbgoceZAkMFlmYgbKdI+4+nfmdB qXiA== X-Forwarded-Encrypted: i=1; AJvYcCUUlpn+8tGF7mhRO+X59xhtZnav2/A5br8ORR4H14C5vxeoltd8MLcbPTAKRR2mWMT2x6vslBWN8pfn5Nl8LY+7Y+X+0IVNgjo+5NjW3gBU/gcMGcWlGH/Hn3vTs7QknXFk1NUMKiSf2/rrAQxpueTMadhPi5DR7EJLlmRTf2Ewl9RV5Q== X-Gm-Message-State: AOJu0YzgSTrc/aQjmv1C1hVLCbsFgbMg1oX95eKpEqIIyYwSp2GcCz7d 3I2r/i5q1d6Or2JKYR++f5p8lTpwlyY9U/uJ1UeKeXSr/LeB6WYX X-Received: by 2002:a05:6358:7f9b:b0:18d:daac:f411 with SMTP id e5c5f4694b2df-193bd0005b6mr749382655d.31.1715547892974; Sun, 12 May 2024 14:04:52 -0700 (PDT) Received: from localhost.localdomain ([189.101.162.253]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-6340a447391sm6534865a12.3.2024.05.12.14.04.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 May 2024 14:04:52 -0700 (PDT) From: Gustavo Silva To: jic23@kernel.org Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, lars@metafoo.de, christophe.jaillet@wanadoo.fr, gerald.loacker@wolfvision.net, devicetree@vger.kernel.org, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/6] Add driver for ENS160 sensor Date: Sun, 12 May 2024 18:04:36 -0300 Message-ID: <20240512210444.30824-1-gustavograzs@gmail.com> X-Mailer: git-send-email 2.45.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This series of patches adds a driver for ScioSense ENS160 multi-gas sensor, designed for indoor air quality monitoring. Gustavo Silva (6): dt-bindings: vendor-prefixes: add ScioSense dt-bindings: Add ENS160 as trivial device iio: chemical: add driver for ENS160 sensor iio: chemical: ens160: add triggered buffer support iio: chemical: ens160: add power management support MAINTAINERS: Add ScioSense ENS160 .../devicetree/bindings/trivial-devices.yaml | 2 + .../devicetree/bindings/vendor-prefixes.yaml | 2 + MAINTAINERS | 8 + drivers/iio/chemical/Kconfig | 22 + drivers/iio/chemical/Makefile | 3 + drivers/iio/chemical/ens160.h | 11 + drivers/iio/chemical/ens160_core.c | 401 ++++++++++++++++++ drivers/iio/chemical/ens160_i2c.c | 69 +++ drivers/iio/chemical/ens160_spi.c | 70 +++ 9 files changed, 588 insertions(+) create mode 100644 drivers/iio/chemical/ens160.h create mode 100644 drivers/iio/chemical/ens160_core.c create mode 100644 drivers/iio/chemical/ens160_i2c.c create mode 100644 drivers/iio/chemical/ens160_spi.c base-commit: 084eeee1d8da6b4712719264b01cb27b41307f54 -- 2.45.0