Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1933129imm; Thu, 2 Aug 2018 03:36:51 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcPwGCNxLbsFTKomFKWYzhP0+XW99QWYPrjGTAshlLw8ilCwiaJFoBaQr0Is0Gtlg7UlTEs X-Received: by 2002:a62:ec41:: with SMTP id k62-v6mr2352136pfh.206.1533206211638; Thu, 02 Aug 2018 03:36:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533206211; cv=none; d=google.com; s=arc-20160816; b=hUkhBFZY26jAFB6s4e6K9CZhBxZGvRm9Dos0S3VDBIIaJ+zoU7LCvNtYU49AfTfz6N ya1Z2cpM77bMUWQgHMIRzbyni7FCWdkNDAA3wDDCkNf2pB/XCd+vMvYDdf7GOsUEETqF QLotPjlmY5rKL7DyZ7rCeD/WYfj3hYhJvb3w9CPbunjy7bFIl113+v6x9u+MycpBR63l Qcj+y0ehC9iPv1sHZJ32m+TA34pjplqwzeNTpN8vSsojqVZw6d0Rv9FKrZJzriFjh3r3 Gfsx6tiguNz8FKpYjeYCCNwFKofMNwJprski3/niN6+hrePhSioAxZ/82avRm7oH2WOe tKtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=5gFZT+EoBSLrmz8HaMiQtQUNO6KVypkxblCkx7NXrFk=; b=JkCOZH1MfW5WilGBhmXJW9mlaZXjqWTSLevIIi6uT8DUaRPRBw3gkJsQjNRhKCNjWQ dRWOjSPYZ6Vsn+9c00gRhdrvRL/cXp+OBnASrdqXz7USxE1XQ2rQPjT6xFrb1vugJOMf 7kGPrmEjptZSWVcAD7c0WRA52Nn+Z9+WZZlHmN/DXse471djZUVUfThRV5VYAQ1ggM7j MrhGvC8WRbbIqfe5vQQKgcnWCx4TJXdNa5woTha42KLYi8X+ZK99mlaHqqp6JqlU8WgY 8wR4Tl9M6KEjOVkgiUbvIR+vLwZEhWjzEANxpk/1nM1YHIX/ZMzm1T2Oq00l/1NKKid0 XPOA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m10-v6si1338717pgv.374.2018.08.02.03.36.37; Thu, 02 Aug 2018 03:36:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732155AbeHBMZK (ORCPT + 99 others); Thu, 2 Aug 2018 08:25:10 -0400 Received: from metis.ext.pengutronix.de ([85.220.165.71]:53817 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730028AbeHBMZI (ORCPT ); Thu, 2 Aug 2018 08:25:08 -0400 Received: from dude.hi.pengutronix.de ([2001:67c:670:100:1d::7]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1flAw9-0004Zt-Mn; Thu, 02 Aug 2018 12:34:29 +0200 Received: from ore by dude.hi.pengutronix.de with local (Exim 4.91) (envelope-from ) id 1flAw6-0000oE-Ph; Thu, 02 Aug 2018 12:34:26 +0200 From: Oleksij Rempel To: Shawn Guo , Mark Brown , "Rafael J. Wysocki" Cc: Oleksij Rempel , kernel@pengutronix.de, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Andrew Morton , Liam Girdwood , Leonard Crestez , Rob Herring , Mark Rutland , Michael Turquette , Stephen Boyd , Fabio Estevam , Russell King , linux-imx@nxp.com, yibin.gong@nxp.com, "A.s. Dong" Subject: [PATCH v9 0/6] provide power off support for iMX6 with external PMIC Date: Thu, 2 Aug 2018 12:34:19 +0200 Message-Id: <20180802103425.3053-1-o.rempel@pengutronix.de> X-Mailer: git-send-email 2.18.0 X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::7 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2018.08.02 v9: - remove include - rebase against current regulator/for-next branch and test it. - as result of previous discussions: - there is no need to remove "syscon-poweroff" node, it is by default disabled. - supported PFUZE version is tested by pfuze_power_off_prepare_init() - advantages or disadvantages of using this power off method should be described in NXP SoC or PMIC documentation, not in change log or devicetree. 2018.07.26: v8 is a rebase against kernel v4.18-rc6. No other changes are made. Added: linux-imx@nxp.com and yibin.gong@nxp.com to the CC. 2018.05.17: update patches to version v7 This patch series is providing power off support for Freescale/NXP iMX6 based boards with external power management integrated circuit (PMIC). As a first step the PMIC is configured to turn off the system if the standby pin is asserted. On second step we assert the standby pin. For this reason we need to use pm_power_off_prepare. Usage of stnadby pin for power off is described in official iMX6 documentation. 2018.03.05: As this patch set touches multiple subsystems I think it would make sense for Shawn Guo to take the all patch set. The only part which didn't receive an ACK is regulator stuff. So I would hope that Mark Brown can ACK it. Kind regards, Oleksij Rempel 2017.12.06: Adding Linus. Probably there is no maintainer for this patch set. No changes are made, tested on v4.15-rc1. 2017.10.27: Last version of this patch set was send at 20 Jun 2017, this is a rebase against kernel v4.14-rc6. Probably this set got lost. If I forgot to address some comments, please point me. changes: v7: - use EXPORT_SYMBOL_GPL(pm_power_off_prepare) instead of EXPORT_SYMBOL - call imx6q_suspend_finish() directly without cpu_suspend() v6: - rename imx6_pm_poweroff to imx6_pm_stby_poweroff - fix "MPIC_STBY_REQ" typo in the comment. v5: - remove useless includes from pm-imx6.c patch - add Acked-by to "regulator: pfuze100: add fsl,pmic-stby-poweroff property" patch v4: - update comment in "regulator: pfuze100: add fsl,pmic-stby-poweroff ..." patch - add Acked-by to "ARM: imx6q: provide documentation for new ..." patch v3: - set pm_power_off_prepare = NULL on .remove. - documentation and spelling fixes. - use %pf instead of lookup_symbol_name. Oleksij Rempel (6): ARM: imx6q: provide documentation for new fsl,pmic-stby-poweroff property ARM: imx6: register pm_power_off handler if "fsl,pmic-stby-poweroff" is set kernel/reboot.c: export pm_power_off_prepare regulator: pfuze100: add fsl,pmic-stby-poweroff property regulator: pfuze100-regulator: provide pm_power_off_prepare handler ARM: dts: imx6: RIoTboard provide standby on power off option .../devicetree/bindings/clock/imx6q-clock.txt | 8 ++ .../bindings/regulator/pfuze100.txt | 5 + arch/arm/boot/dts/imx6dl-riotboard.dts | 5 + arch/arm/mach-imx/pm-imx6.c | 25 +++++ drivers/regulator/pfuze100-regulator.c | 91 +++++++++++++++++++ kernel/reboot.c | 1 + 6 files changed, 135 insertions(+) -- 2.18.0