Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1986880rdb; Tue, 20 Feb 2024 13:15:14 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUkELWsgEQhH068cSS0FUXpxJvlo0dnGGa7I4pETd+3HSBNtKEMX/5Tyba3pEPw20uVQuJLsK11s5Nf350SWgZl0YF6ht/uwAgDSA8x8g== X-Google-Smtp-Source: AGHT+IGLcnE6hplYNxaI9bIyDp9Q1JUg0jZrxOezGDgH50JqvMGF7S8HE1dEmjK4KRizlIG1RZmc X-Received: by 2002:a05:6a00:2354:b0:6e4:84db:e30e with SMTP id j20-20020a056a00235400b006e484dbe30emr1995183pfj.32.1708463713856; Tue, 20 Feb 2024 13:15:13 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708463713; cv=pass; d=google.com; s=arc-20160816; b=SxLreOzXaE29V0Jrb8WT+9/q8S8OuJdQmU5oe6w3c7mgxjKEdzUJgeJiIJJ2BZpxLD rvEAWaI+PfL2mlwLN7kpYhPX2w1rmjDKiPFYwdVIZJSpkneMFnZ0FgPl3JkUUeTVNyJj HpqW5BKJMPLrv0F2bKOx2+YJ4UMhqN7AGfvlhoCo3AMMUHJUyrA6SBB2npXkGDQUZnL8 2/jOBDmwzLtfhiO1db0RO8Twiw5uP64Q4ABqLpivjiZLBz8tSy1WrrV+ekMXGFwgwLV+ FtP9PP6p3mV0TZdwZsdZ7AggSxBL/nsFq43O50DHliY24wp4Qgidi+iYNBgbmp8GQZFk 7OmA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:from :dkim-signature; bh=pS4KxtoWOPzkzcC9M2HY0NXw+lpEMhNeKnYkJuLKH58=; fh=JyVlMKpITlz761R6Ap+kNj8brBl+CGfRwUjPkMHQnGE=; b=WxcjJ3Ujvqrg63Sv33k8AUYAW5YFLeYtUsfD75GlhRjdhDHNMSgrTbeXB2pZCWG6OE +iJ2jFJFciCTFlm5paOnACq/oisloke2J+yWpPrtg20DARVmmy8ubOTQkPtGX1NNH2R8 oKn6ZD/Z+3bRs5yRXgDBuQjFklkXTqScnGAVVSi1gWKyMRJLcs0Wdt3MqwlcRTPQI5wW BreJ4TZAYhEedhwWQbRBd3kmjeZ0R97dISnmVT7A9vzmk71SCox6Haw1TPp2LNAso7e3 JpFt0hf3dN1d9fQM8p2TWDhNAtMgcurPNUTFfp0K90om0/2L95Vtjjf2ZUYbzXgD2rIZ 0cgw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=fGNiCvBQ; 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-73715-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73715-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. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id p22-20020a637f56000000b005dcd64fe5dbsi6619603pgn.431.2024.02.20.13.15.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 13:15:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-73715-linux.lists.archive=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=@gmail.com header.s=20230601 header.b=fGNiCvBQ; 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-73715-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73715-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 A84A8B214BD for ; Tue, 20 Feb 2024 21:15:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1C178151CF0; Tue, 20 Feb 2024 21:15:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="fGNiCvBQ" Received: from mail-lj1-f179.google.com (mail-lj1-f179.google.com [209.85.208.179]) (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 7229E76C9C; Tue, 20 Feb 2024 21:15:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708463702; cv=none; b=BeqBPp8fzd/IpjbksITNsSLrMa/5r28K3aqv25YDpKdeutf0iJHuUMta7zHejI3TQVrhO2Rp/jZ0ds93TuiUNTHkDCPDWBffMnhtgOWh1oZ7SD2dfI27rhGWWWFEX3YD7gbW2CWJaKRD+A0kXjcbw2VbSCZyLvt2/WgbQ1s0WH4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708463702; c=relaxed/simple; bh=DiomlbMoz3C6LjGZH4FFhHtNHPdnMrqXUhRAwWtZwBo=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=VrzDczts5h1hbsXVPWrFciHBT9ZVpAy/wW6CAuYIdhjFRJoqVg2GPuFgQLFvEwKqhtPik2rZgMjrV6HjaQYsS4knqLwbDfQLnYfaJVSp1skmQhK4jbRZHfQEN3d/sXYvC2R36XoLX4quOMfyfRMFzESUGIm4Uv0h6qh7j+dHJ+k= 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=fGNiCvBQ; arc=none smtp.client-ip=209.85.208.179 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-lj1-f179.google.com with SMTP id 38308e7fff4ca-2d204e102a9so76536181fa.0; Tue, 20 Feb 2024 13:15:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708463698; x=1709068498; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=pS4KxtoWOPzkzcC9M2HY0NXw+lpEMhNeKnYkJuLKH58=; b=fGNiCvBQDBsUcnZ059epNqcL7aa5K6+lVkZHexJQOEYFQu5u5A/SvN+6lpMunXZdqL hIlK7hAtviaUl/fH5vikMFxKjxvWbopHKQ9FD4w6mbrXnTvlhe6YQEhV1n4BwkONBoET 9wwUJ0gkyxbzY4ombTpJDQjAC61QqbBwhLoNzrUt82Xv1G8b94SprRrEk6Woskrb4pp6 Hvi6vKD7zgsgKIjG1KnwwttT4OSnskP88cDGC+a20K5ZAPNPfrWT7c3szY0CPPboMDb4 8r/1W/NY5EKy8uWvTqtLYXf+M35mRSUBmWMrXJmUlhYH+R7xb/U27gFpu66Gd5ELTBib kfxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708463698; x=1709068498; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=pS4KxtoWOPzkzcC9M2HY0NXw+lpEMhNeKnYkJuLKH58=; b=bMvdJ8HFFjQNwzfnK+xgt5jJpcm5EVUm26QOmrsc8E311s1nfy/ZsATTyaTUnbU5PX T3XC2pHnt8dpXGWgjcaJQfpRitVpHWnSSUWFB++aZpZQ2WfqeDhLE+OotcQbBGARQTiK tBEwLgy0yst1Jf15nsDrKegjce/XGPg70+JzWn5u9aE4vuiBL4EaO3rJaX2AZF29jk0y D3cJ4BWykYBp89z+N4Ss9ceDmjrT9BehNYpH98AS1rhvvAq3FlJbFOZHrMBARF1iv519 JWGM5Pp8ep/G+IeO1gFA5fPithdwH9JS9WXb8d4rIm7HDSQAtAOEsBEd8KWHte6gyTHo E5UA== X-Forwarded-Encrypted: i=1; AJvYcCU3TK2o9zcVYhKH40s4bBYTlc6+Ic/zKCipI00/Scc87UHL1utO/Ftew3XeZgzlA3MMGnev08pPjy2QuRY+uBRmqTnzbEc87IMFEQfadtQaRox90yu8dZxrtKNid9OOU82wiky/tpRlr690kTy1z9fkOnAdkRDOBYEEMis3Wrh8JHnvDw== X-Gm-Message-State: AOJu0Yz+iXltK4swHaM+b9VwLWIZht8O+9cBGko8zdGhrHx2kiJcu+Nu 8xc9iod58SaR9yvnWbTlmRq0Bll22USgHeeKKbKO1htrxEPQlvh8ST4up+yptSyNKw== X-Received: by 2002:a05:651c:548:b0:2d2:2cc0:34af with SMTP id q8-20020a05651c054800b002d22cc034afmr7769024ljp.32.1708463697742; Tue, 20 Feb 2024 13:14:57 -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.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 13:14:57 -0800 (PST) From: Javier Carrasco Subject: [PATCH 0/4] iio: humidity: hdc3020: add power and reset management Date: Tue, 20 Feb 2024 22:14:54 +0100 Message-Id: <20240220-hdc3020-pm-v1-0-d8e60dbe79e9@gmail.com> 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 X-B4-Tracking: v=1; b=H4sIAE4W1WUC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDIxMDI0Nz3YyUZGMDIwPdglxdQ3NzSwvjlFTj5MQkJaCGgqLUtMwKsGHRsbW 1AHHE8C1cAAAA 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=2127; i=javier.carrasco.cruz@gmail.com; s=20230509; h=from:subject:message-id; bh=DiomlbMoz3C6LjGZH4FFhHtNHPdnMrqXUhRAwWtZwBo=; b=fX2JLYzSPtRMilwqfz8C/EUlHWnAQWsTo9Qa6XKBO43Pkgc63IfrUaTRhGiBp9iRySOqUv4Wc MhSXWfYGzhbA2+Npm3XiAgN5IvhUdS5vX5QC4lztif79c9T2BHSphnt X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=tIGJV7M+tCizagNijF0eGMBGcOsPD+0cWGfKjl4h6K8= This series adds power management for the hdc3020 humidity and temperature sensor as well as control over the reset signal the device provides. The hdc3020 carries out measurements automatically, which is not necessary in low-power modes. Furthermore, if the low-power configuration turns off the device, proper initialization is required to account for the setup times and initial status register value. This device provides an active low reset signal that must be handled if connected. This signal can be used by the driver to keep the device under minimal power consumption during low-power modes if the power supply stays active. This series requires the last additions to the driver to handle events [1] as well as the fix to include the entries in the Makefile and Kconfig files [2]. There is still no branch where everything is included. Therefore, iio/testing has been used as basis and the fix has been added to the series as it has been applied to iio/fixes-togreg to make code testing and validation possible. [1] https://lore.kernel.org/linux-iio/20240214085350.19382-1-dima.fedrau@gmail.com/ [2] https://lore.kernel.org/linux-iio/20240121135123.71506-1-jic23@kernel.org/ Signed-off-by: Javier Carrasco --- Javier Carrasco (3): iio: humidity: hdc3020: add power management dt-bindings: iio: humidity: hdc3020: add reset-gpios iio: humidity: hdc3020: add reset management Jonathan Cameron (1): iio: humidity: hdc3020: Add Makefile, Kconfig and MAINTAINERS entry .../bindings/iio/humidity/ti,hdc3020.yaml | 5 ++ MAINTAINERS | 8 ++ drivers/iio/humidity/Kconfig | 12 +++ drivers/iio/humidity/Makefile | 1 + drivers/iio/humidity/hdc3020.c | 97 ++++++++++++++++++---- 5 files changed, 107 insertions(+), 16 deletions(-) --- base-commit: 3cc5ebd3a2d6247aeba81873d6b040d5d87f7db1 change-id: 20240217-hdc3020-pm-177983de3cab Best regards, -- Javier Carrasco