Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp2875359pxy; Sun, 25 Apr 2021 07:00:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyHxczbat4syOa06sBM0PrukFEbcBHi7WaccjovkqHfuzlhYNmRyvMFFn6iZ2M/4QY1CNr9 X-Received: by 2002:a17:902:7847:b029:ea:c45a:29fc with SMTP id e7-20020a1709027847b02900eac45a29fcmr13448404pln.46.1619359248572; Sun, 25 Apr 2021 07:00:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619359248; cv=none; d=google.com; s=arc-20160816; b=dZhKIudEcm86gBk6olfS8Be1a4QTTNItu/NKPnRdy+zzh7E+rd26dK9cEwHXvulB5B mWWcKF9tGZdWRnQB7K+Rj23wk64X5llj2HRXRmKWDaYboe5Y6b0frKPo1P1WGazB8lso aRl66Vn/SU4meET3smQs1upsbZP3F+oW+604YWKzAqyUSe/pbB1oe9o42nGSgEHe4xcw OJX+7VXwMwPW08ubZbwY3II/+D4QSbUz20GoqfmaadaRyAXpeeLjnYUhKoAclYKsJFRP jBMCk/vy5Ane8OQUdfhKMemu5H2bmSh+sKXJgppWpv/z90x4+FFulcB7H8SjilW0sejp bp5A== 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=w/xAxSDEcvCEMbs7Tc2732nrZRKPequLtAygUgFkjxM=; b=tfb5orDtt3dPOYfmXbnlr9liM8ZcNeNXlkscJSrA++Qi6n/h8g5XaI9rNmwUiae7Sl d8xB6u12PoMGcvBY8mtWJV/flqaZzOKtBN4PKcRp2QDao4f07ceUIlzesBAMwfYvtJDL wWcn/kqmj8AnnrTj+aF8YtUwACCr7b2p6bqWPDhvQyj8QgTity4JaHbonKGZylsK/wNB zHeIbelV7RxR0cq7j65XvX/Z14di2wojgRmkVjyzQEPIpgX5Ay7ey/ImrMuP7cUsZinh f9s7OPQLLc5bSjoYUbJHEXNtuVS2AZLj0+69JdMlbRToPDOC7IHDl1iMMCiO0lCyRT/K uZtA== 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 n20si14533395plp.383.2021.04.25.07.00.35; Sun, 25 Apr 2021 07:00:48 -0700 (PDT) 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 S230249AbhDYOAj (ORCPT + 99 others); Sun, 25 Apr 2021 10:00:39 -0400 Received: from smtpout1.mo3004.mail-out.ovh.net ([79.137.123.219]:46841 "EHLO smtpout1.mo3004.mail-out.ovh.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229906AbhDYOAi (ORCPT ); Sun, 25 Apr 2021 10:00:38 -0400 Received: from pro2.mail.ovh.net (unknown [10.109.156.177]) by mo3004.mail-out.ovh.net (Postfix) with ESMTPS id 51F2F23D517; Sun, 25 Apr 2021 13:59:57 +0000 (UTC) Received: from arch.lan (89.70.221.198) by DAG2EX1.emp2.local (172.16.2.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.4; Sun, 25 Apr 2021 15:59:56 +0200 From: Tomasz Duszynski To: CC: , , , , , Tomasz Duszynski Subject: [PATCH 0/3] iio: sps30: add support for serial interface Date: Sun, 25 Apr 2021 15:55:43 +0200 Message-ID: <20210425135546.57343-1-tomasz.duszynski@octakon.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [89.70.221.198] X-ClientProxiedBy: DAG3EX2.emp2.local (172.16.2.22) To DAG2EX1.emp2.local (172.16.2.11) X-Ovh-Tracer-Id: 8492944473393421335 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduledrvdduiedgjeefucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucenucfjughrpefhvffufffkofgggfgtihesthekredtredttdenucfhrhhomhepvfhomhgrshiiucffuhhsiiihnhhskhhiuceothhomhgrshiirdguuhhsiiihnhhskhhisehotghtrghkohhnrdgtohhmqeenucggtffrrghtthgvrhhnpeehtdeggfekuddvkeehgeeggffhhfetkeeltedvkedvtdevuedtteeufeeuheeiteenucfkpheptddrtddrtddrtddpkeelrdejtddrvddvuddrudelkeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhhouggvpehsmhhtphdqohhuthdphhgvlhhopehprhhovddrmhgrihhlrdhovhhhrdhnvghtpdhinhgvtheptddrtddrtddrtddpmhgrihhlfhhrohhmpehtohhmrghsiidrughushiihihnshhkihesohgtthgrkhhonhdrtghomhdprhgtphhtthhopehrohgshhdoughtsehkvghrnhgvlhdrohhrgh Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org One can communicate with sensor either over i2c or serial interface. This series add support for the latter. And in order to do that existing codebase needs to be separated into core and interface specific components. Tomasz Duszynski (3): iio: sps30: separate core and interface specific code iio: sps30: add support for serial interface dt-bindings: iio: chemical: sps30: update binding with serial example .../iio/chemical/sensirion,sps30.yaml | 7 +- MAINTAINERS | 2 + drivers/iio/chemical/Kconfig | 23 +- drivers/iio/chemical/Makefile | 2 + drivers/iio/chemical/sps30.c | 270 ++--------- drivers/iio/chemical/sps30.h | 73 +++ drivers/iio/chemical/sps30_i2c.c | 256 +++++++++++ drivers/iio/chemical/sps30_serial.c | 420 ++++++++++++++++++ 8 files changed, 829 insertions(+), 224 deletions(-) create mode 100644 drivers/iio/chemical/sps30.h create mode 100644 drivers/iio/chemical/sps30_i2c.c create mode 100644 drivers/iio/chemical/sps30_serial.c -- 2.31.1