Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1036961lqp; Sun, 14 Apr 2024 10:53:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWPSXZN9YQFo5bQMcXRj6X3/9CtcyW2rTJp36lqw6Sq05PtWYesH1kVYMoKV4obV1NESYv8YvKRa7jnmQ136KTeUQ4s8VlyuAMkzmEq5A== X-Google-Smtp-Source: AGHT+IE1Kl2Z76MEU/KFzw45XUWlsLIijpycaddEkFYkgVbVLUuxyJIjJxDyUpq9Nx6iom5+eFb3 X-Received: by 2002:a50:8d56:0:b0:56d:f99f:a600 with SMTP id t22-20020a508d56000000b0056df99fa600mr4970575edt.17.1713117210322; Sun, 14 Apr 2024 10:53:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713117210; cv=pass; d=google.com; s=arc-20160816; b=d8n4+vfD3s+M6saqE6VtlUwl+csukiZ0ueoZC4OojLoReO73oPlnIGmleGYEA/Sv5P w8GLzgk3ZgQeI+0O95yA1pUIME0kC+e3UYfafweI6Iu65aJl/w6Gw1Vk2MFbO7Q8k3ak 3v7kKp0m+qmEURW54ICyYi3o+eU+FJKAssBTJqmm2nCQsPrY87Oa5lyhXmddKj+spcqH or5InIHp2bqHvfV9twyP5c6/73lcZgYQtjlQZTiJGOBQ6valbpAa621S14O3a+7hb970 3HEOM6Ohgv9aHNXxGhrgZzPCU4AfjV12ZBCIQSR+Vnuk0ZLzU347M9BjWAPLtiDheCnO 6KHA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=dkim-signature:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:message-id:date :subject:cc:to:from; bh=tZiJxZ2AuICTeWkRxY/t4eLoCK/lqF8coOe31qJB5uc=; fh=tE5n859cV0BjUJONcvWuvDBTrbwjawIl47goqTT+08o=; b=reaI0+SMkwRpDEgd/zDv5JwjwY1B3ukICwUSNQgPKb5+7OK91CZ63mvDbjnOnmbFRA JCwZMoWzKQF8Uv9/GYo528zbO5NWWNa33pLzJi9whfyymlFfxMGXwf9/Jwskq4FVJxO1 40qlMQDmX4jnsB33WAvkxD7hK85akb1O7zmpLiAtiO0HIppR12/6KHE9T4kc5ho6+HPg ebQzm80aab43c1Q7M/nz4o0qexde5c2A8aizcnXpq5SaGwx7o7uJW8HDcaojqb5Xoo8l 6SYwCdUeeDgVrwx52M/x2IusfUZgzMUYy9diY/VcxnfOatRamjReIhuGMKvmrRJbzpvR O0ZQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@peacevolution.org header.s=dkim header.b=AkPOpLs8; arc=pass (i=1 spf=pass spfdomain=peacevolution.org dkim=pass dkdomain=peacevolution.org dmarc=pass fromdomain=peacevolution.org); spf=pass (google.com: domain of linux-kernel+bounces-144314-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-144314-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=peacevolution.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id g26-20020a056402321a00b00570099f944fsi2167160eda.118.2024.04.14.10.53.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Apr 2024 10:53:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-144314-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@peacevolution.org header.s=dkim header.b=AkPOpLs8; arc=pass (i=1 spf=pass spfdomain=peacevolution.org dkim=pass dkdomain=peacevolution.org dmarc=pass fromdomain=peacevolution.org); spf=pass (google.com: domain of linux-kernel+bounces-144314-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-144314-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=peacevolution.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 116F21F2136D for ; Sun, 14 Apr 2024 17:53:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 67030136647; Sun, 14 Apr 2024 17:53:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=peacevolution.org header.i=@peacevolution.org header.b="AkPOpLs8" Received: from a.peacevolution.org (a.peacevolution.org [206.189.193.133]) (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 A1D2F1350CC; Sun, 14 Apr 2024 17:53:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=206.189.193.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713117201; cv=none; b=eml2OFtQIE2bXe/0yyV+BOxdVBn1x+2jaA1SHvXv1o7awo6vQ0C++f7sH691HVplQ0wND4BMcdiMBhZ/VNeATnP6uEEqg8takNJHIUtjksbYf4V9rSB1PInxF/e9d9iv1n3fX0mVVq+HfgUetMxik0NP/wT/VWZsfcXAHVRmOUc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713117201; c=relaxed/simple; bh=hNwjyUffC95XRThO4O6yfS+WZTIz/IwY5Q/AfIriQEI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Vjlt+RyYGCvQNLgUH5Bq1SCQkro//2ZOVEhG+0NJ8OsHTe00ogq3X/yZ9vPw1aA94xl9VrM4L0iEpcopcEf0n/ME+K9S0Nc+5+fs8OaQjoAaaUTsWgPrjvKWUhF7ju/N6ExiIF17zEw6cmAEmnM2IUdp7XwVgf+IEZlykry929g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=peacevolution.org; spf=pass smtp.mailfrom=peacevolution.org; dkim=pass (1024-bit key) header.d=peacevolution.org header.i=@peacevolution.org header.b=AkPOpLs8; arc=none smtp.client-ip=206.189.193.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=peacevolution.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=peacevolution.org Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by a.peacevolution.org (Postfix) with ESMTPA id 1627547919; Sun, 14 Apr 2024 17:53:17 +0000 (UTC) From: Aren Moynihan To: Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Liam Girdwood , Mark Brown Cc: Aren Moynihan , Andy Shevchenko , Ondrej Jirman , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , linux-iio@vger.kernel.org, phone-devel@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, Willow Barraco Subject: [PATCH 0/4] iio: light: stk3310: support powering off during suspend Date: Sun, 14 Apr 2024 13:53:00 -0400 Message-ID: <20240414175300.956243-1-aren@peacevolution.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Authentication-Results: auth=pass smtp.auth=aren@peacevolution.org smtp.mailfrom=aren@peacevolution.org X-Spam-Level: **** X-Spamd-Bar: ++++ DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=peacevolution.org; s=dkim; t=1713117198; h=from:subject:date:message-id:to:cc:mime-version:content-transfer-encoding; bh=tZiJxZ2AuICTeWkRxY/t4eLoCK/lqF8coOe31qJB5uc=; b=AkPOpLs808ZtiKcJa9pz2HuAjlVpX4g8KlIGfQAB66oclE2qRSEVXEAdPokvp0EFUtEP55 KJ7NxiYJzBhLrdswsvhwdog0bvpYittKiIaPsJv5Zvd/20+90uHj/tpykLItXKtliDkVHB FY4m2+3F3qGJbbymyr3VaXOlpVWO3b0= In the Pine64 PinePhone, the stk3310 chip is powered by a regulator that is disabled at system boot and can be shut off during suspend. To ensure that the chip properly initializes, both after boot and suspend, we need to manage this regulator. Additionally if the chip is shut off in suspend, we need to make sure that it gets reinitialized with the same parameters after resume. Aren Moynihan (2): dt-bindings: iio: light: stk33xx: add regulator for vdd supply iio: light: stk3310: log error if reading the chip id fails Ondrej Jirman (2): iio: light: stk3310: Implement vdd supply and power it off during suspend arm64: dts: allwinner: pinephone: Add power supply to stk3311 .../bindings/iio/light/stk33xx.yaml | 1 + .../dts/allwinner/sun50i-a64-pinephone.dtsi | 1 + drivers/iio/light/stk3310.c | 60 +++++++++++++++++-- 3 files changed, 58 insertions(+), 4 deletions(-) -- 2.44.0