Received: by 10.223.185.116 with SMTP id b49csp850241wrg; Fri, 23 Feb 2018 07:47:23 -0800 (PST) X-Google-Smtp-Source: AH8x224eZ23UjQPwf70XFx4h3d0HYTdJnOZICtRnLNCe2SPk/vmx0/it9/4Xjsn2fArU/gpVkyfv X-Received: by 10.101.90.10 with SMTP id y10mr1794346pgs.34.1519400843198; Fri, 23 Feb 2018 07:47:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519400843; cv=none; d=google.com; s=arc-20160816; b=Zi8sWpYwGQ4LC9PJJbbpnnTaK9ftHMZQThqWW7V7EekjhwQK2oIfVRbcVBEOdxAXG5 aWb10aNp4DFi8Lnt6/akuhtUMNmcSHqOsblhKAv11pIs7b1kF3nt09LSIh6/lS/m/c4W SnpoKcXWPHISDW4ZSYUlWQzoOB8ezIyZC9D38veWmnCXkeZFRvUmpt+V5sTDItJSZE3L vvcptNLDUTIXCpIan4X4BqZVyUsTOqnhLx4Is/V6rpEpsoEF7AtBpijBgaNWyXCpfkdE En4h0XznXqsXSsgmiaXtAHnLVUX7C44+F9+eUYDgwR9Lw3hrahsfwW7acBtptTWoebzY 7KPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:dkim-signature:arc-authentication-results; bh=/NS7zyPMQ6B4YezQju9tLCza0HeBdmsiSzwvjm1xFhI=; b=sSJomPa82l5AIvPDtnbAOXRkE7x6vWxd2BViBDAYPpwAzbe1Ek23xyYpBEOx8QM+Yp DlcgOBwxG6lG38f5oE1N70Lst6BbQT5kF+4GelOezAVVdY2RE06Xb67E4ruQzifHX+WB hsjMgyYnUvIlr93dTCXvOxcT2jWI6d57DTxW58twxYc9wDeDya7gE4xgUEjNz6dqC8U7 YVdADP/fvFqpUO+vRgrMHs3IXAeAqBwC5SsfzkigcwnP8Po41mNlB1pAOl6yzXSdfy9n 5UtDRg9YDyu1tO2oWD7byAwBjPyxlId7RpONciFzsAmK5gId/VqjwtUNTRzg6uUBsECf K4ZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Ho68gpEu; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k2si1663416pgo.133.2018.02.23.07.47.08; Fri, 23 Feb 2018 07:47:23 -0800 (PST) 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; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Ho68gpEu; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752108AbeBWPo2 (ORCPT + 99 others); Fri, 23 Feb 2018 10:44:28 -0500 Received: from fllnx210.ext.ti.com ([198.47.19.17]:24453 "EHLO fllnx210.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751351AbeBWPoZ (ORCPT ); Fri, 23 Feb 2018 10:44:25 -0500 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by fllnx210.ext.ti.com (8.15.1/8.15.1) with ESMTP id w1NFi45h006482; Fri, 23 Feb 2018 09:44:04 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1519400644; bh=rkDWdvAXT0JdtuGZZBGzPpCcivQGGhm5Cd/b7v6tb8Y=; h=From:To:CC:Subject:Date; b=Ho68gpEuRWSn9rnQly3sKvfBPN4gSNA0JaLWhwJCY/lKResWzT5rAj/IFLJORd2ou Yx23B7+EPcMTHjJf2fjBKEciLqhbdaFmlWQtS/FGa9VU3JDfvX+uu09M15CgxfWlLA i3FfEaQqCE9rcbtFBSyJmcgDBslm4HAGjjsrsXEA= Received: from DLEE105.ent.ti.com (dlee105.ent.ti.com [157.170.170.35]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w1NFi3mB013630; Fri, 23 Feb 2018 09:44:04 -0600 Received: from DLEE112.ent.ti.com (157.170.170.23) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.35; Fri, 23 Feb 2018 09:44:03 -0600 Received: from dlep33.itg.ti.com (157.170.170.75) by DLEE112.ent.ti.com (157.170.170.23) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1261.35 via Frontend Transport; Fri, 23 Feb 2018 09:44:03 -0600 Received: from legion.dal.design.ti.com (legion.dal.design.ti.com [128.247.22.53]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id w1NFi3xA022952; Fri, 23 Feb 2018 09:44:03 -0600 Received: from localhost (uda0274052.dhcp.ti.com [128.247.59.203]) by legion.dal.design.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id w1NFi3x17574; Fri, 23 Feb 2018 09:44:03 -0600 (CST) From: Dave Gerlach To: Tony Lindgren , Santosh Shilimkar CC: , , , Dave Gerlach , Keerthy J , Johan Hovold , Philippe Ombredanne Subject: [PATCH v5 0/4] ARM: OMAP2+: AM33XX/AM43XX: Add suspend-resume support Date: Fri, 23 Feb 2018 09:43:53 -0600 Message-ID: <20180223154357.23504-1-d-gerlach@ti.com> X-Mailer: git-send-email 2.16.1 MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, This is a minor update to previous series sent here [1] to switch to SPDX license headers. Because update is so minor I have included original cover letter below unmodified with the exception of updated links. This series contains the remaining code to enable suspend to mem and standby on am335x and am437x platforms. All dependencies have been merged and this is just a rebase on v4.16-rc1. For this to work on am437x-gp-evm this bug fix patch [2] is required but suspend works fine on am335x platforms without it. V3 of this series can be found here [3]. This code also depends on firmware for the wkup_m3 that is available here [4] that can either be placed in /lib/firmware or built in to the kernel. For testing the drivers required are: CONFIG_MAILBOX CONFIG_OMAP2PLUS_MBOX CONFIG_WKUP_M3_RPROC CONFIG_SOC_TI CONFIG_WKUP_M3_IPC CONFIG_TI_EMIF_SRAM CONFIG_AMX3_PM There is a device tree patch series to follow immediately after this that will completely enable suspend, all patches pushed here [5] for convenience including the aforementioned [2] regulator bug fix if anyone is testing. Regards, Dave [1] https://www.spinics.net/lists/linux-omap/msg141652.html [2] https://www.spinics.net/lists/linux-omap/msg141626.html [3] https://www.spinics.net/lists/arm-kernel/msg595931.html [4] https://git.ti.com/processor-firmware/ti-amx3-cm3-pm-firmware/blobs/7eb9c0856a9e8b3b42bf64f761da135852b8eea7/bin/am335x-pm-firmware.elf [5] https://github.com/dgerlach/linux-pm/tree/upstream/v4.16/amx3-suspend-v5 Dave Gerlach (4): ARM: OMAP2+: Introduce low-level suspend code for AM33XX ARM: OMAP2+: Introduce low-level suspend code for AM43XX ARM: OMAP2+: pm33xx-core: Add platform code needed for PM soc: ti: Add pm33xx driver for basic suspend support Documentation/devicetree/bindings/arm/omap/mpu.txt | 16 + arch/arm/mach-omap2/Kconfig | 1 + arch/arm/mach-omap2/Makefile | 16 + arch/arm/mach-omap2/common.h | 7 + arch/arm/mach-omap2/io.c | 2 + arch/arm/mach-omap2/pm-asm-offsets.c | 31 ++ arch/arm/mach-omap2/pm.h | 3 + arch/arm/mach-omap2/pm33xx-core.c | 189 ++++++++++ arch/arm/mach-omap2/sleep33xx.S | 214 ++++++++++++ arch/arm/mach-omap2/sleep43xx.S | 387 +++++++++++++++++++++ drivers/soc/ti/Kconfig | 9 + drivers/soc/ti/Makefile | 1 + drivers/soc/ti/pm33xx.c | 349 +++++++++++++++++++ include/linux/platform_data/pm33xx.h | 42 +++ 14 files changed, 1267 insertions(+) create mode 100644 arch/arm/mach-omap2/pm-asm-offsets.c create mode 100644 arch/arm/mach-omap2/pm33xx-core.c create mode 100644 arch/arm/mach-omap2/sleep33xx.S create mode 100644 arch/arm/mach-omap2/sleep43xx.S create mode 100644 drivers/soc/ti/pm33xx.c create mode 100644 include/linux/platform_data/pm33xx.h -- 2.16.1