From patchwork Wed Jun 15 11:49:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Max Krummenacher X-Patchwork-Id: 12882227 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 C0E96C433EF for ; Wed, 15 Jun 2022 11:52: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:References:In-Reply-To: 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: List-Owner; bh=2kqgGPt/9TZwCgTyoSAYxDgWxzwrDrZHxCGlRSl0K/Y=; b=37Vmco3aCPAHKr kvW9cOSZjjM36CCwd+FtpbtAa49EVVUGVN6EODFIa91pKsaZPoxenL6MCZIDHvhGjJkswKrDIVnNJ 2nFYlMg5g8Nra9KQh+CFhRqhvrxuDgKWtjCU/yykkTjC1IYwmkuEamMMbT+QUSXFXkAZCyra74fFC NdHuxNTxkeUSs/HHCorBGbXpY5u32Gdr0cVVx0Iwh4znNjEeZZ0F1vCgLT9nKM33HLytnCMqfYuNs jQxfjqT97xweuvje173bSjDYvB4RQSbyUFd4XVN+ZeAuI9LIa2dPVTDq1oSO/Q33UVG5sfc2s9fNv AWn2KrRJhkzYWP7XS2Hg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o1RYa-00EH82-Mm; Wed, 15 Jun 2022 11:51:33 +0000 Received: from mail-ed1-x529.google.com ([2a00:1450:4864:20::529]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o1RXu-00EGim-Fv for linux-arm-kernel@lists.infradead.org; Wed, 15 Jun 2022 11:50:51 +0000 Received: by mail-ed1-x529.google.com with SMTP id eo8so7522391edb.0 for ; Wed, 15 Jun 2022 04:50:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=6suKy/7DRYloQtzVBGS1osgjJ67TW7jgZjipxxbY9yQ=; b=gke4V+Z/RKABnEbZgf/+QUsdUxDyB1a+O2y3AAyzhwRpc3IwxvK/LqOFuaTXfbuhLk I93XSx4kMV3F2d4GwupCUgbs9E2TYwdfIjwJUTCJkmA5idIaNomntclg+Q7AZyZ9K+Tk wtC7+kZRWkx2LeJ2lVoWjy4dEQ1ujlu/IPZYgdjf9H1IlwvCCboioTwOf2a1fiorEiNq QytHSMWCn4H87N213GbGchUfGYbKrFucjgLg3zLY9IZXIV11pHIOWMjugYPDW9xsbkKL xaRk1eNC64yU+SHmbcsoxM4Gza2P3BOWFGzfilXhXZ3Mcq/rSNycBrzzHzVDlvPY/2hL VcIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=6suKy/7DRYloQtzVBGS1osgjJ67TW7jgZjipxxbY9yQ=; b=coErzZmeujOmzrzgqI2IlYsGVyV+r8mu5c0RuBm60VGldds2kR5QjNKeHxutKUr/x3 5AXOHjz6SZuFfAa5SZtOjwa3o0k5N6tx+ej+KMfEKh4mh+ybv0a97h60DiCkYT6dYgQn +O3IYI4BiexZim9k8AFT7F7dOIEgP6/M6bezsIHlGE5k/Lj/X3tpCpV5aqdIaQQYxOpv swFcvZDS/sgI259IyyO1d6srVNYBZ0QBP/TYmuZHecfHaTsW5z0hLpUpJnGyknOL2xXC DNna9XhnSBQEXJnCDK+vBIgaCRyq1cVrifwhbjSCBwNiPyOHbm0z3JBEmGlikkz9FjUp booQ== X-Gm-Message-State: AJIora8GgHtXvAipWIHsTbqgnbJp0n8NNisvu2ecv2eZxqaTDTD2Gm0B Fe90X9fJcItaDOHBTBqyTyI= X-Google-Smtp-Source: AGRyM1tWZHi3+4csr+oJAFLiB79X8fyIX4WI46M+4gppDpcrY2ffamQSIlWSeLxNkanslCpNyHqwjA== X-Received: by 2002:a05:6402:380a:b0:435:2019:52ab with SMTP id es10-20020a056402380a00b00435201952abmr3191545edb.44.1655293848675; Wed, 15 Jun 2022 04:50:48 -0700 (PDT) Received: from linuxdev2.toradex.int (31-10-206-125.static.upc.ch. [31.10.206.125]) by smtp.gmail.com with ESMTPSA id t6-20020a17090616c600b00715a02874acsm4561158ejd.35.2022.06.15.04.50.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jun 2022 04:50:48 -0700 (PDT) From: Max Krummenacher To: max.krummenacher@toradex.com Cc: Fabio Estevam , Krzysztof Kozlowski , NXP Linux Team , Pengutronix Kernel Team , Rob Herring , Sascha Hauer , Shawn Guo , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 04/18] ARM: dts: imx6q-apalis: Command pmic to standby for poweroff Date: Wed, 15 Jun 2022 13:49:52 +0200 Message-Id: <20220615115006.45672-5-max.oss.09@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220615115006.45672-1-max.oss.09@gmail.com> References: <20220615115006.45672-1-max.oss.09@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220615_045050_577690_55FD8AA9 X-CRM114-Status: GOOD ( 12.16 ) 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: Max Krummenacher The Apalis iMX6 HW doesn't allow to use the PWR_ON_REQ signal for poweroff. Use the fsl,pmic-stby-poweroff property to command the PMIC into a low power mode in poweroff. Signed-off-by: Max Krummenacher --- (no changes since v1) arch/arm/boot/dts/imx6qdl-apalis.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl-apalis.dtsi b/arch/arm/boot/dts/imx6qdl-apalis.dtsi index e56451651a6d..668793356b46 100644 --- a/arch/arm/boot/dts/imx6qdl-apalis.dtsi +++ b/arch/arm/boot/dts/imx6qdl-apalis.dtsi @@ -125,6 +125,10 @@ status = "disabled"; }; +&clks { + fsl,pmic-stby-poweroff; +}; + /* Apalis SPI1 */ &ecspi1 { cs-gpios = <&gpio5 25 GPIO_ACTIVE_LOW>; @@ -387,6 +391,7 @@ pmic: pfuze100@8 { compatible = "fsl,pfuze100"; + fsl,pmic-stby-poweroff; reg = <0x08>; regulators {