Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1986946rdb; Tue, 20 Feb 2024 13:15:21 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWKUohy0V33NhVJtOPYTcUmQwu71iPN+KaAbi+NNNsvvHlwA+PL8DMSnF02Z9OvNXtakJKGdfqKcn+icX5w51JJgq9kg4quKn8jtODNNA== X-Google-Smtp-Source: AGHT+IEj9xl1lhxVGvoqORBmNHcJea/I7R+YBIZeOe7BnWZx5U3QtG2Q8GIJxRNr28OkCAFl9+yZ X-Received: by 2002:a05:620a:290a:b0:787:7aa4:8156 with SMTP id m10-20020a05620a290a00b007877aa48156mr4495708qkp.0.1708463721495; Tue, 20 Feb 2024 13:15:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708463721; cv=pass; d=google.com; s=arc-20160816; b=VLYzqfoKhQskEh6WKDlB1BaqLlclvc6O4Hayjpo01PNLkkeOIdFmPX1FYEHeshjiZW zIjKNNI2BxQLtPLl7f4IeU/tH23gRItARuJ0EBKufv5hkUsCDlAk5Ijmun3R2DmnVOms xDQtNGBCDN2DVXpk1Fd1BA0WLtZ59ObUGqmUzYTX1zyQ9nZ8zBBcVm3jnIkuVeimF4NK DIVlgcOFsVqZxUOvbGutC3qjPTwOOQvCRSWdGOXWqjwUctiSRFOurpSOYOfGO3BAtx5K /t1WobRSEyIHdJ1vUD4h86I0/WhXoQWdutg1E7JcZfX2c2iy5Dc3PhtbKqTjVQq82I9s 3T3A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=bysFB8VOUQG0rzhFX0FiWlnp+/R7B0ro194OzpL/Ots=; fh=Pscrc1tJiXbw9YH2f7h0uhfJRND4naJgsFG9e2zQRC8=; b=Z26zxOT7v2iTvt8VvwMdkKp6BKdxo1yOw+GDl8zLQP4KHtpoCDJUluGbP2QgEldwt7 0zOYEeJ5yjR9NOfdEj1vc/THvrlKW7+FZhaaIQq/9ul5vydoA82CmQP6LZ9ZQa/M0tTG hSIpbKEpN8hB7I/mWS24PGaiYkbtE5BSHRBgF0Pc/v+yuW+2MFAmEzxoAeVz2njRGWeI 1UHdDXcM1U3+fUJr2hjXvMmttJOm3oAd4KRI3HYGgotAmwdVqjonghA4ZWkNzq0Shfl0 PyGmkkWTW66eHpMsxjvNLE7JHgH0mn7N1YFNQO24y0L8QJaii5zGL6cDvLbQnVklAIRM LLkw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=dFDIPs8k; 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-73716-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73716-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id w4-20020a05622a190400b0042dd5264d2bsi10539943qtc.139.2024.02.20.13.15.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 13:15:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-73716-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=dFDIPs8k; 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-73716-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73716-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 9638D1C21FB4 for ; Tue, 20 Feb 2024 21:15:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7DABF152DEE; Tue, 20 Feb 2024 21:15:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="dFDIPs8k" Received: from mail-ed1-f49.google.com (mail-ed1-f49.google.com [209.85.208.49]) (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 C16C2151CD8; Tue, 20 Feb 2024 21:15:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708463703; cv=none; b=s2JBotVfW7Sauyu2Tr5q90F3GKPkAmYgGCIZ1HxVdtYAwQT8EWpnPGgVx+khHS4ctKr6G8MXqwLC/btC+sM4qj17MmQi/49/7d2tlXvwOJqfhlsIcxu8pHvS8wxDcdHbh5WAjbm5Sr72Eg2d40ybVXrJz/m26K/HK6BrcI0YaR4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708463703; c=relaxed/simple; bh=YAdBiDoe8/IZ+rByvKGy+92HAzwV14CR2j87H09rlQs=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=rvFjk/r0rZK1Oh1Ahv2zK382LOhN2C0zE3ZMJ456M1SNLvQgoKPfQy+N5HCHOmvyR9+MtyS9uviCesk+eAprgjCAeJBz7/sFk6suXAzTkyib1AgFnur7vK0e7cx6KKET++a9kVku3qpkX8iNcLIqMaoGadCktPkA+pX977SEINk= 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=dFDIPs8k; arc=none smtp.client-ip=209.85.208.49 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-ed1-f49.google.com with SMTP id 4fb4d7f45d1cf-564f1876a2fso182468a12.3; Tue, 20 Feb 2024 13:15:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708463699; x=1709068499; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=bysFB8VOUQG0rzhFX0FiWlnp+/R7B0ro194OzpL/Ots=; b=dFDIPs8kMh7zW5TezWJD9/piGlTVWvbdCj+dXP4vA6O7byI2I6gUmbBlgPJ1J8L2qU cyJYbnQ3htxyw3Z7hepiMGZzRiF7uDZ3aGpqr8euY88QlLCsR4kWyFrO6fOFeFnMtJA/ LeOz0EE/YnE3cTS2G9gY8ux1B3w8ndqtqIaLdDSWIdfaxNd/NHUW2kB+akHkyg3Rp5Q5 3WVIduZsqGARjTV2hQXcqVi0PGYPFtdH4JIURb6kj2OvqWrlW7o+IiXvknOKuhGQO+Dt 8gBlN8fd4l3rNr+w6n7+jXVMXEso9EhEyjTZKVSDbARX7tEDq6DGjWZ5v4nNO8cRL4gW 0cHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708463699; x=1709068499; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=bysFB8VOUQG0rzhFX0FiWlnp+/R7B0ro194OzpL/Ots=; b=iYHKVKUMeJSyqiPoewVpzWOwA3OZZGYnjPrXlP5insjoazD6kqDvsEj6BC3ucOZF1s poNqG0Irja/0H+KwMzEPLWQ9IxQoV4i+GZxZ5mk9do7PlD9W8fOcq5R76f4K04JCKMgz dZFPbsbD2mHDyLnL7HWebGw2LTzysRQmq+jEAhDZtNLD/oqNK8QMMzSCErT6MbQftGro JNmSumvngCw25RQFI/7e/QrxxAm5HbVPK382S0D9rWv7apsuGsxc5I7FiIpBKUI4Cyo7 7VhxIE7ADRKUHcSTk92aqdjrDuUjj29tTMkdV12rGRrKSwuf9qCfGkwbi65o0ahErg0f U9nQ== X-Forwarded-Encrypted: i=1; AJvYcCXJl+cpd4+OtACrz2ctjrKSMn+26AYiIH4h2A8FHlmXNTkLvbUEgoOobWCEpT85tuCk7P3TNXRjTGsEVN/b9FrsQUAgyJQf3AZhEjlgtklM9yZzYCpr0RIWHnW7D++PaUY7+5IdRK1B1fHkyREckBh/B0znYkq/7OkaqgTAybZQ4QDxeA== X-Gm-Message-State: AOJu0Yy2k3BU1gCOh2tbJSdDDXM2S4K7iH3juiFNY+icUbaQ1r28aII6 ZpgOgljGWCZhhcOjkNsg0g/3+RzglTaHPuknrWrumuyjyM1jh7i0Dad5apeEEaTn4g== X-Received: by 2002:a05:6402:1b1a:b0:561:4460:6726 with SMTP id by26-20020a0564021b1a00b0056144606726mr11742594edb.26.1708463699172; Tue, 20 Feb 2024 13:14:59 -0800 (PST) Received: from [127.0.1.1] (2a02-8389-41cf-e200-d60d-797f-077b-a805.cable.dynamic.v6.surfer.at. [2a02:8389:41cf:e200:d60d:797f:77b:a805]) by smtp.gmail.com with ESMTPSA id fj21-20020a0564022b9500b00564da28dfe2sm538137edb.19.2024.02.20.13.14.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 13:14:58 -0800 (PST) From: Javier Carrasco Date: Tue, 20 Feb 2024 22:14:55 +0100 Subject: [PATCH 1/4] iio: humidity: hdc3020: Add Makefile, Kconfig and MAINTAINERS entry Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240220-hdc3020-pm-v1-1-d8e60dbe79e9@gmail.com> References: <20240220-hdc3020-pm-v1-0-d8e60dbe79e9@gmail.com> In-Reply-To: <20240220-hdc3020-pm-v1-0-d8e60dbe79e9@gmail.com> To: Jonathan Cameron , Lars-Peter Clausen , Li peiyu <579lpy@gmail.com>, Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Jonathan Cameron , linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, Javier Carrasco X-Mailer: b4 0.14-dev-8b532 X-Developer-Signature: v=1; a=ed25519-sha256; t=1708463696; l=2533; i=javier.carrasco.cruz@gmail.com; s=20230509; h=from:subject:message-id; bh=3a3IuUcHgpMvkEUVjsKil8/rhpG6FeILz6O7U1hUYAU=; b=gGUgj8fQzp3mrh6qVNaD4Mp8ODKE+0ZKjE/fJH6Je6P8LXHjsET6x4VCxYTdkNa05X76EBG4g By3Wp7P6h3XD0c9mAuxBq5ZhYf+S4UJtRlzvliB6DiaPGqvoy7NdxI2 X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=tIGJV7M+tCizagNijF0eGMBGcOsPD+0cWGfKjl4h6K8= From: Jonathan Cameron Something when wrong when applying the original patch and only the c file made it in. Here the rest of the changes are applied. Fixes: c9180b8e39be ("iio: humidity: Add driver for ti HDC302x humidity sensors") Reported-by: Lars-Peter Clausen Cc: Javier Carrasco Cc: Li peiyu <579lpy@gmail.com> Signed-off-by: Jonathan Cameron --- MAINTAINERS | 8 ++++++++ drivers/iio/humidity/Kconfig | 12 ++++++++++++ drivers/iio/humidity/Makefile | 1 + 3 files changed, 21 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 6add3fde252d..fde7456438b1 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -22023,6 +22023,14 @@ F: Documentation/devicetree/bindings/media/i2c/ti,ds90* F: drivers/media/i2c/ds90* F: include/media/i2c/ds90* +TI HDC302X HUMIDITY DRIVER +M: Javier Carrasco +M: Li peiyu <579lpy@gmail.com> +L: linux-iio@vger.kernel.org +S: Maintained +F: Documentation/devicetree/bindings/iio/humidity/ti,hdc3020.yaml +F: drivers/iio/humidity/hdc3020.c + TI ICSSG ETHERNET DRIVER (ICSSG) R: MD Danish Anwar R: Roger Quadros diff --git a/drivers/iio/humidity/Kconfig b/drivers/iio/humidity/Kconfig index 2de5494e7c22..b15b7a3b66d5 100644 --- a/drivers/iio/humidity/Kconfig +++ b/drivers/iio/humidity/Kconfig @@ -48,6 +48,18 @@ config HDC2010 To compile this driver as a module, choose M here: the module will be called hdc2010. +config HDC3020 + tristate "TI HDC3020 relative humidity and temperature sensor" + depends on I2C + select CRC8 + help + Say yes here to build support for the Texas Instruments + HDC3020, HDC3021 and HDC3022 relative humidity and temperature + sensors. + + To compile this driver as a module, choose M here: the module + will be called hdc3020. + config HID_SENSOR_HUMIDITY tristate "HID Environmental humidity sensor" depends on HID_SENSOR_HUB diff --git a/drivers/iio/humidity/Makefile b/drivers/iio/humidity/Makefile index f19ff3de97c5..5fbeef299f61 100644 --- a/drivers/iio/humidity/Makefile +++ b/drivers/iio/humidity/Makefile @@ -7,6 +7,7 @@ obj-$(CONFIG_AM2315) += am2315.o obj-$(CONFIG_DHT11) += dht11.o obj-$(CONFIG_HDC100X) += hdc100x.o obj-$(CONFIG_HDC2010) += hdc2010.o +obj-$(CONFIG_HDC3020) += hdc3020.o obj-$(CONFIG_HID_SENSOR_HUMIDITY) += hid-sensor-humidity.o hts221-y := hts221_core.o \ -- 2.40.1