Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp44261rdb; Sun, 28 Jan 2024 12:49:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IEfQ4ty7kKotaBEKpiGj2WWssJ3iEQ8e0095SNWc47MbCjF9sJCd8qqjM2JACBbaM1ckdQj X-Received: by 2002:a9d:66c7:0:b0:6db:b23f:ea99 with SMTP id t7-20020a9d66c7000000b006dbb23fea99mr5192961otm.71.1706474956267; Sun, 28 Jan 2024 12:49:16 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706474956; cv=pass; d=google.com; s=arc-20160816; b=nTiB6RQ9Bz2/xMhoQ1nnA/Q4suUbqIuEvytrJAx9qZPJdbBKqHRmUp2mkm2HpUecxj EMqrGcAYf3ytxnnax/eRwBsAP5KlyfoMxeHd2jSVEftJom4lUISDIs6TRcBECh/j19WF DAsCDbyT9B5Iadh9YT60eUzxZ326DMbPpAyGSskKLgLI8nDSbFmc2SI14hc4KRDvnpFO lU7q7yHUL1w3BkMebctg3Xq0PcLhaFyV7Ft3ID7ulhcwsGbp93JpVVHjTSOnzpLjgPwV q/IXQJ1+sTwAlMuyTTH34R59QvgOTMkrxGWTV6o6D9bR74VHnWs34Gf35Kjr+Qrt8Q2/ Gnkw== 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:references :in-reply-to:message-id:date:subject:cc:to:from; bh=7f8Pqy4UhROYbk09gyqrlaBXv9qrJ3dn1Gj623LQxSg=; fh=vogt2Ndq24/cMfcnX2+D+YjJWcEOQng4OQGQG6hZSjo=; b=Xpm/7wOoxEzMABJHcQqLMcbG3XDAnxu99/o6nvRV0IV5Z2sfSrYy8DtPHT39XtxgNm tYkiupmP71pUcK5x1xztSTNxWbiCPO7NvS8PRTHwtuuWgLmyAJThOxU0VmCWWV97U16C mLe9GiVIDWF8I6pa9EAZakSdjkhmwjFdHHMstUu30maYoOHKRg0/u0IVhEuRInz8WFHA tm+aC5dAuWY0fkrnJNT2E1cRXinMkmupOMi0xHVTX4J36iEjllFdTTbPiAMFN0c3M+pZ 1SgldIn26iQKsD01TrfWvEJIhUeTwEe+zhb3Ww0GYfT/E/tWhLr+WZFNS1iq7nYx7c5E spsg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@peacevolution.org header.s=dkim header.b=EJOMD3Ho; 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-41950-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-41950-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=peacevolution.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id l128-20020a632586000000b005d8bbd208e3si2338988pgl.162.2024.01.28.12.49.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Jan 2024 12:49:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-41950-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@peacevolution.org header.s=dkim header.b=EJOMD3Ho; 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-41950-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-41950-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id B6B782831C4 for ; Sun, 28 Jan 2024 20:49:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0E5BA3C49C; Sun, 28 Jan 2024 20:48:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=peacevolution.org header.i=@peacevolution.org header.b="EJOMD3Ho" 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 8F9812EB1C; Sun, 28 Jan 2024 20:48:46 +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=1706474928; cv=none; b=Vocekce3nilwPd4g0cROpcIBK4rE501ybCrroSe5oTFlB8kVIqLXDxQgHZ4hqMCGFPgJgBAmaqcQffbyfTVjfbViYOyQ4QO5VK0iiR6h32L65eXH8nHw52eIk6Dhbp80F82xs95i0lf3obu1+vV5R9m4HXyRt54btC3XCgVQ/EE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706474928; c=relaxed/simple; bh=sC4x0F7ocxCOiTa61zP6CfELEuBIay9GFpbnCJDfh/Y=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=MZCWfZzua3aHBrIEJxTGXQMg1h0R0S9jba7qbHwP19ClyGpchUmpDStJ5h8Hzw6EdcNro1j6+jnatjPPSUOWVYbMbzqG0K0Sp2qHP+6dOkXoFMbkrKaWO6iFVqny97iRveaOUjydpuXSdOdsvV2Ffa7xfUTXU/EWky7FGumzLc8= 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=EJOMD3Ho; 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 C738C4649A; Sun, 28 Jan 2024 20:48:39 +0000 (UTC) From: Aren Moynihan To: linux-kernel@vger.kernel.org Cc: Miles Alan , Ondrej Jirman , Aren Moynihan , Chen-Yu Tsai , Conor Dooley , Jernej Skrabec , Krzysztof Kozlowski , Rob Herring , Samuel Holland , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev Subject: [PATCH 2/4] arm64: dts: sun50i-a64-pinephone: Retain leds state in suspend Date: Sun, 28 Jan 2024 15:45:08 -0500 Message-ID: <20240128204740.2355092-2-aren@peacevolution.org> In-Reply-To: <20240128204740.2355092-1-aren@peacevolution.org> References: <20240128204740.2355092-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=1706474920; h=from:subject:date:message-id:to:cc:mime-version:content-transfer-encoding:in-reply-to:references; bh=7f8Pqy4UhROYbk09gyqrlaBXv9qrJ3dn1Gj623LQxSg=; b=EJOMD3HotjeLQcDFlPSxcFnoN3nW4WypH8d+tyrewLLGqsU46t6K1yLdx3qDx2od6hNEj3 BMaTuqsa8o9W0bD3JuUYBTNax2AflA0B+a69MUnW6kIL9uP8fgDXUz/lcW2PKB1ak5I6ie KujAkq7t9VoaDzzJ8fkALkziEg4/9Ss= From: Miles Alan Allows user to set a led before entering suspend to know that the phone is still on (or could be used for notifications etc.) Signed-off-by: Miles Alan Signed-off-by: Ondrej Jirman Signed-off-by: Aren Moynihan --- arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi index 87847116ab6d..ad2476ee01e4 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi @@ -43,18 +43,21 @@ led-0 { function = LED_FUNCTION_INDICATOR; color = ; gpios = <&pio 3 20 GPIO_ACTIVE_HIGH>; /* PD20 */ + retain-state-suspended; }; led-1 { function = LED_FUNCTION_INDICATOR; color = ; gpios = <&pio 3 18 GPIO_ACTIVE_HIGH>; /* PD18 */ + retain-state-suspended; }; led-2 { function = LED_FUNCTION_INDICATOR; color = ; gpios = <&pio 3 19 GPIO_ACTIVE_HIGH>; /* PD19 */ + retain-state-suspended; }; }; -- 2.43.0