From patchwork Thu Mar 21 14:31:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 13598833 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 078A5C54E58 for ; Thu, 21 Mar 2024 14:31:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=ztrle9vaK4mJHb2scIfus9z2HZ7daD0vRXDn+lvt4bE=; b=NmSE5+Tr6I8xZc mEy54gXFqH55ipV5c2Eh8gsvihbzQI3U7hI+pscpd8KmwPsXazloe5RWxMBl7sO9kKFnyNsnTxYWA Yep27dwNxwlDWLhyw+FhvILeSvvyHMkZvg8slfwuxEqOBBqLvqX/CjQuhYJ53y2QJVlnYTqTgu3fn bP84GfM5PywmtVTjue8zaw0kVpfxoAoAIr0DKZTcyUSltaxVNSy8OPWGaLJCY0yAlwtciEcAD5PcH VrxOXoTeZUypB0ms8/Po6i82BiqK2RDC1WKJpMrixQC7XcKO41AqAVy/7wdwMi8IFYqlJZq1cduoX ch9j/9meDGcotvl5k6vg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rnJS3-00000003HoE-3XOi; Thu, 21 Mar 2024 14:31:27 +0000 Received: from mail-pf1-x42f.google.com ([2607:f8b0:4864:20::42f]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rnJS0-00000003Hmx-42m0 for linux-arm-kernel@lists.infradead.org; Thu, 21 Mar 2024 14:31:26 +0000 Received: by mail-pf1-x42f.google.com with SMTP id d2e1a72fcca58-6e6c38be762so83462b3a.1 for ; Thu, 21 Mar 2024 07:31:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711031482; x=1711636282; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=pslGCepk4NtFryixvUY4bxqanEkcUdR3AbV3Z2lXkmk=; b=NyY7rn/d6E41HOObL1SWG9jwE/looEdFhoZTmUUBI6hLqa3QdptMiGp8WDdvu8jpO+ DBmci3dd8NuRYroE2VyQDqOcDzrsRRsrG82QqhJpL4TotACVnUipMgFzCjeJZz4uLaRQ cO2MpzdtaAZgDKKzlGZ5efui4m7BDAAZ0LeA2Fwu+bVPPNzf4adpnWQCutT+RIaHTIWY wUoz/0z1xW84aUDc+C5LpFxcNvHuS39LclYm8U3K35dzEFziynk9BgsVQ5Vs8u8B67V/ 53rgNIJfy3vqGnczEb1B7f5hOz23O0dtCB1DosAwNRoVFOIGVEeHPK+Zt28pJI9WNpT+ hIDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711031482; x=1711636282; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=pslGCepk4NtFryixvUY4bxqanEkcUdR3AbV3Z2lXkmk=; b=LBnTtK9gkbeJRIT9bwPGTVfRqe+HDzO9tOBILq8R8OVFEXXKNfdJ15sRRtPqMnJum6 yxbLv/IdyrcahVMJfVgEHPhdn05YYS/cUGw6H0lr9W2VhKle8Elq4Wy+Ynoiwr+sMt/q Sh56mibBSRLTWiwo+rC2aGHZ/znx+3mg3A/kx/ycuFzrgoMjgAKRkZZKBOA2I43wPVgO 0+SSAUrBmctsiU/X3Ji9Z5G0cl7PIPGjj6VEjJY593ilz/dv/FNM+zwPy546D9G09cg6 K3FlzwVkvE8lOWSICl/ay7XBgaHJ6J55NuVykLngBNj1lIdg+Jk8NoYz5A7vbVf7SDyK UNRQ== X-Forwarded-Encrypted: i=1; AJvYcCWRj0pRyoM1LtvX5LKGzMnVJpXKJzW/VI6LgaDFxqn+5IGdVOhwns4KAGtfnpT/YJMpBL9aRtTrjJvHCLFPMnBnaQEkyII0RvBTwTBaM73IgY+YgL4= X-Gm-Message-State: AOJu0YyLHKIlj3veRdfESX6KVjTIElCWthyNwAKaTUiLdFSjAxbCZlL0 K6baI9CyHOQh+ht7FlFCcujKb7gNBYmKTYXTWcPi3w8imSYXnmae X-Google-Smtp-Source: AGHT+IGj0Tecj/iNfiLIpmyyep0EUC22JQAUChjnn1zh9GyduSpQFZf/2myVnplLO/TdzeaChBcdHQ== X-Received: by 2002:a17:903:18e:b0:1dd:b54c:df51 with SMTP id z14-20020a170903018e00b001ddb54cdf51mr9386846plg.4.1711031482290; Thu, 21 Mar 2024 07:31:22 -0700 (PDT) Received: from fabio-Precision-3551.. ([2804:14c:485:4b61:55b4:ac5e:ec4:1d57]) by smtp.gmail.com with ESMTPSA id ky6-20020a170902f98600b001dcfbbb1ddesm15893054plb.7.2024.03.21.07.31.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Mar 2024 07:31:21 -0700 (PDT) From: Fabio Estevam To: shawnguo@kernel.org Cc: imx@lists.linux.dev, kernel@pengutronix.de, linux-arm-kernel@lists.infradead.org, Fabio Estevam Subject: [PATCH] ARM: dts: imx7s: Add snvs-poweroff support Date: Thu, 21 Mar 2024 11:31:15 -0300 Message-Id: <20240321143115.1117060-1-festevam@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240321_073125_030907_AEF3E862 X-CRM114-Status: GOOD ( 10.30 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Fabio Estevam Just like other i.MX devices, i.MX7 also supports using the SNVS block to poweroff the chip. Add an entry for it. Signed-off-by: Fabio Estevam --- arch/arm/boot/dts/nxp/imx/imx7s.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/nxp/imx/imx7s.dtsi b/arch/arm/boot/dts/nxp/imx/imx7s.dtsi index 9c81c6baa2d3..22dd72499ef2 100644 --- a/arch/arm/boot/dts/nxp/imx/imx7s.dtsi +++ b/arch/arm/boot/dts/nxp/imx/imx7s.dtsi @@ -636,6 +636,15 @@ snvs_rtc: snvs-rtc-lp { clock-names = "snvs-rtc"; }; + snvs_poweroff: snvs-poweroff { + compatible = "syscon-poweroff"; + regmap = <&snvs>; + offset = <0x38>; + value = <0x60>; + mask = <0x60>; + status = "disabled"; + }; + snvs_pwrkey: snvs-powerkey { compatible = "fsl,sec-v4.0-pwrkey"; regmap = <&snvs>;