Received: by 10.223.185.116 with SMTP id b49csp1166499wrg; Fri, 16 Feb 2018 13:43:32 -0800 (PST) X-Google-Smtp-Source: AH8x226CI7asIlJ57FM9S/81RhwQNCEmKj0IsylXjMsqUcTlYoT14rSppohKWQ2XtGCVNLmc5pDi X-Received: by 10.98.72.204 with SMTP id q73mr6905411pfi.48.1518817412493; Fri, 16 Feb 2018 13:43:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518817412; cv=none; d=google.com; s=arc-20160816; b=U7Dq1tAfTiUa1Klb60sJq06L7NnJbPS6cT7hqtRfDUk48p+ZrRRoyB7EBzeXmCU6jc KW2gYuWdXJYmrFGCcFNs0vIpGqnPxVvqb5an/sPGSdxwyG2ZDWSjFjQsfgIs8u8Gvbga oY2ZErTG+acc/4u5KKb3S98Uvho3kyWZbw7qqLCfu1shNWy/rt9hrHNb8bDJ5ypUapsF 59AZb1wI0IUdcaNLSVIMP+gyXaJnGTzXDDksZjSkh9hUdBND0EQfiW3YTMrdPNViZeMF zhWhOYIUHRVVcOui+cWgfFrxRrh4ZQvHI6U1y2u72nvMvDMof3JaK7IXVvVq9kjECKhd eMLg== 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=3djC3U07E8KCQ6HTkw3wiCknplj0Cykk2G86j25JCno=; b=r4iD2Tbeb1M7EreL/5vIF71SDP1/Lg3N2AIqoGdqvGAY3061hZ1v67/QHT59YMIw7e mXD4uz3hKQTPpOERUT4lOTOb+MPHfhyGE3JRuxvoHgfWJlphGZRiXIYmXN5u2xZLoNvf oTUGkw//uqn97Qqim3X5MPiIugJwvSNYuFvpaY4OQtOWmKJcaX1zGlo5jZ+yxFy284Sn LNQVG5+i/IAD6TdYPE66/qo/PIG+S2aIuMazYm0BglwW1BfNjRnku3GZEilYiQhPBWE4 ePxaHNZiUzGJyh3n7sGQWj2qeKp2+8tdNAo3qiGHeDYbZm5ksZkYnz+ROOeUezShHNOu QHyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=QG8Sb6PZ; 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 p18-v6si1876364plo.388.2018.02.16.13.43.18; Fri, 16 Feb 2018 13:43:32 -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=QG8Sb6PZ; 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 S1750912AbeBPVl3 (ORCPT + 99 others); Fri, 16 Feb 2018 16:41:29 -0500 Received: from lelnx193.ext.ti.com ([198.47.27.77]:51661 "EHLO lelnx193.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750730AbeBPVlY (ORCPT ); Fri, 16 Feb 2018 16:41:24 -0500 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by lelnx193.ext.ti.com (8.15.1/8.15.1) with ESMTP id w1GLf56f018239; Fri, 16 Feb 2018 15:41:05 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1518817265; bh=Oh0z8yrygaDfCoOeZg4+j9EUyN1fidVbDgeseO4GKmc=; h=From:To:CC:Subject:Date; b=QG8Sb6PZQJQxma4O2wHDED4i0Xh9FrWhOqoQPNwhXlG1s6zOlXTc4GvjqaCEebUt/ wVRIRnX0wX3VSXMLFoiflRp0s5eT0oX+6o9lDbRFmOJEeGzN3q7kAf/nPfs4nVj50H ICu0TMMJLrVItocWwW1mFotv7lSy8FIBIeG9V//w= Received: from DLEE101.ent.ti.com (dlee101.ent.ti.com [157.170.170.31]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w1GLf4l2027953; Fri, 16 Feb 2018 15:41:05 -0600 Received: from DLEE109.ent.ti.com (157.170.170.41) by DLEE101.ent.ti.com (157.170.170.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.35; Fri, 16 Feb 2018 15:41:05 -0600 Received: from dlep32.itg.ti.com (157.170.170.100) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1261.35 via Frontend Transport; Fri, 16 Feb 2018 15:41:05 -0600 Received: from legion.dal.design.ti.com (legion.dal.design.ti.com [128.247.22.53]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w1GLf4D5009587; Fri, 16 Feb 2018 15:41:05 -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 w1GLf4x12280; Fri, 16 Feb 2018 15:41:04 -0600 (CST) From: Dave Gerlach To: Tony Lindgren , Santosh Shilimkar CC: , , , Dave Gerlach , Keerthy J , Johan Hovold Subject: [PATCH 0/4] ARM: OMAP2+: AM33XX/AM43XX: Add suspend-resume support Date: Fri, 16 Feb 2018 15:39:58 -0600 Message-ID: <20180216214002.6209-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 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 [1] is required but suspend works fine on am335x platforms without it. V3 of this series can be found here [2]. This code also depends on firmware for the wkup_m3 that is available here [3] 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 [4] for convenience including the aforementioned [1] regulator bug fix if anyone is testing. Regards, Dave [1] https://www.spinics.net/lists/linux-omap/msg141626.html [2] https://www.spinics.net/lists/arm-kernel/msg595931.html [3] https://git.ti.com/processor-firmware/ti-amx3-cm3-pm-firmware/blobs/7eb9c0856a9e8b3b42bf64f761da135852b8eea7/bin/am335x-pm-firmware.elf [4] https://github.com/dgerlach/linux-pm/tree/upstream/v4.16/amx3-suspend-v4 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 | 38 ++ arch/arm/mach-omap2/pm.h | 3 + arch/arm/mach-omap2/pm33xx-core.c | 197 ++++++++++ arch/arm/mach-omap2/sleep33xx.S | 222 ++++++++++++ arch/arm/mach-omap2/sleep43xx.S | 395 +++++++++++++++++++++ drivers/soc/ti/Kconfig | 9 + drivers/soc/ti/Makefile | 1 + drivers/soc/ti/pm33xx.c | 357 +++++++++++++++++++ include/linux/platform_data/pm33xx.h | 50 +++ 14 files changed, 1314 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