From patchwork Thu Jan 13 14:48:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 12712828 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 0E271C433F5 for ; Thu, 13 Jan 2022 14:49:33 +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=rFy6PwRUCWn62hygjmSh5Jruxz9C2GKz85+4uF9ta0M=; b=Orrxp+QZfyNpYx n5wGue66PP59aoDg96dAN6QGtrqR9YkMi3ikA3PlcZK7X5+6dnVd1je4ZL8cLzW7w9NKsECWJmw6b 4FqnHLR92BqvorRYS2+JmvVAWZdN83XFmzHzaq2fj6lzbXWRlR+GHZppXl9Us9gTZqSSKhw6v7Ym+ tzfSL4kUF+a4jIuPar+kOxuhcX7rQ4gkCMCOk9N6FVtL7jY3h5cOn0CjJnHNkgaR9tSITR7noMJsY 6jqSG3Rml3BL4xzuwKGkqbaVM3IttZLcl0uKnj4J/DFmb3PuyqU+inFyFTnw8zcdeazeBzGDdANIa Um1D230TDjg8lgJXv2pA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n81Og-006GqO-4H; Thu, 13 Jan 2022 14:48:14 +0000 Received: from esa.microchip.iphmx.com ([68.232.153.233]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n81OT-006GjS-Dg for linux-arm-kernel@lists.infradead.org; Thu, 13 Jan 2022 14:48:02 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1642085281; x=1673621281; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Cn32FVsFXj7kfAuzJ2kdL23yH/APr88N4Syy5Ekn8OM=; b=zZRlmmwYzMH00kshQxD9Tb5uPnMV3qN92552dOqPr4ehw/mCzdg6I4j2 rFgyCyE4o2T/HH2orVEARIdO33m4Bdb+wuE/XZvenDkpeBkBMZoSPAsI5 g95Oj6Wbw3oLzU2qgAUMl2euCJgmJRvq/CcSRDNr1Nz8iCSlzBGKfwo72 27wUehWQPTRKQgSJ2Rj4TGFQ5xP+QeRF/0Cg1zY8ZKQEKYHn3QvAZ1PQV kaZxxIHFFjxIR7yAzJrVaE44x+8ppKPY551Z78ojbQUC+0OIDRAZ0uW+9 el6Av4neyJluM8ltvEaoz+BtO/dnmw2GyxNtRn5qVj/cc/nJ4Je08Mvo7 w==; IronPort-SDR: fhquOLUgqGAvIcJkV2498oPQ6QQ7zP3v7mekOLklhyq1LekwwggcAVs0+xjrfgZ6mukC52xtSf vSLQ5bY0A6mJnx7mcyHhrSTUllwlY1EYJJZ6FjHLyNEJCT1EBcv2/uSgX8RVBGO/dgdGeDXX96 nHws1Rz7K0Ysj32+GLRHD7HkFOt08poGmDqCct+cmnyf+CcHaqL33a9jzcykTAiNm7uPsumKCQ EVplH+y2VqRHIWP8I0LsGMorosP3wJbF/FasQZ306vOxfG0EfYnMrJ7OXpNdSmC+5uVGNBxnsJ bJZhRVV61vMUFPcucJ2E8tPq X-IronPort-AV: E=Sophos;i="5.88,286,1635231600"; d="scan'208";a="150108166" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa3.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 13 Jan 2022 07:47:59 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Thu, 13 Jan 2022 07:47:58 -0700 Received: from localhost.localdomain (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Thu, 13 Jan 2022 07:47:55 -0700 From: Claudiu Beznea To: , , , , , , CC: , , , , Claudiu Beznea Subject: [PATCH v2 01/10] ARM: at91: ddr: remove CONFIG_SOC_SAMA7 dependency Date: Thu, 13 Jan 2022 16:48:51 +0200 Message-ID: <20220113144900.906370-2-claudiu.beznea@microchip.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20220113144900.906370-1-claudiu.beznea@microchip.com> References: <20220113144900.906370-1-claudiu.beznea@microchip.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220113_064801_494994_D2E50B25 X-CRM114-Status: UNSURE ( 9.44 ) X-CRM114-Notice: Please train this message. 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 Remove CONFIG_SOC_SAMA7 dependency to avoid having #ifdef preprocessor directives in driver code (arch/arm/mach-at91/pm.c). This prepares the code for next commits. Signed-off-by: Claudiu Beznea --- include/soc/at91/sama7-ddr.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/include/soc/at91/sama7-ddr.h b/include/soc/at91/sama7-ddr.h index f6542584ca13..13b47e26cdbe 100644 --- a/include/soc/at91/sama7-ddr.h +++ b/include/soc/at91/sama7-ddr.h @@ -11,8 +11,6 @@ #ifndef __SAMA7_DDR_H__ #define __SAMA7_DDR_H__ -#ifdef CONFIG_SOC_SAMA7 - /* DDR3PHY */ #define DDR3PHY_PIR (0x04) /* DDR3PHY PHY Initialization Register */ #define DDR3PHY_PIR_DLLBYP (1 << 17) /* DLL Bypass */ @@ -75,6 +73,4 @@ #define UDDRC_PCTRL_3 (0x6A0) /* UDDRC Port 3 Control Register */ #define UDDRC_PCTRL_4 (0x750) /* UDDRC Port 4 Control Register */ -#endif /* CONFIG_SOC_SAMA7 */ - #endif /* __SAMA7_DDR_H__ */ From patchwork Thu Jan 13 14:48:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 12712830 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 C2EF9C433F5 for ; Thu, 13 Jan 2022 14:49:45 +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=y7VJxwcvoyl7WTSv3uxku7DfPfgiAhUKTfbucYD7W6U=; b=i5Y5Xfe0BsS8pz jr3oQHzc6SQpH6dIH29SA9Nq9yORDf+/LM768i3aXvObxf2jk+ewU19pzhNAPfQmWeQdsgOCZU0df CTi8hhPV6FoXVsltXMJHmu1RIKSzS+0ZVx0qz2dBT0Y9PH72dhxaP1pHEIN3CwiQ92+Tw6gILE4JH rIcsH7iD8ydD1IJ1cnT0+wYH+hDR96fDDjwYkh1URTEoGG/ecWYYdjjQiMDvTghd0u7i1CegwSUSL hoJx2pQ4IL2Ww7Kh9KF98C8KpmCTJbm3g+QNlTTB1u1oWTmKZbM17XtXbj1W8wx7D/eZERa9vwpAa 28YA+mb+ZqD7zzH+++ZQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n81Os-006GvX-0o; Thu, 13 Jan 2022 14:48:26 +0000 Received: from esa.microchip.iphmx.com ([68.232.153.233]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n81OU-006Gmv-PN for linux-arm-kernel@lists.infradead.org; Thu, 13 Jan 2022 14:48:04 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1642085282; x=1673621282; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=DSaF+rce8x7D+Hdysx6zQcXry3snwSGAnsCyiWnFVNw=; b=HqFKY67xUV+laPC/39dsTeoSlOp/t/WIJDHkmaV27sfqEa7eWHoh+9+2 HXhcCeihomJaT7DToSKhzfGEFhiKqscxhLrRJ2aDQZhIvaHmiDtMoGkfR KJIeXGkP188sNzLwABlGkq1hkUSDF3y0Zem1LA4FMMtWpkWLOf6kR797Z 0iAmDrtkwn1Gdpj+nBfZqYbaSITZS+p55QFIQSlr4iZxZE77driD4EzJm C08vlsKBx4j0vOwaEfdFU/cjkNEUHwzMdmtJrGTZL2t//67CrXgVcwvpq kf/2Eq7ZCHpiy1jJ2oKWv+FZXgo3GRlUtFP8fBpF6GDMwa0uLebp66py3 w==; IronPort-SDR: /kdMeHcO7FdvdUxY8sX5s/Ek+BSN30m/Tvr3/0D4DnmjldLEVxpVbU9uI8XTqYvDfxZ83mpnF/ cSrHIoJfzsgWAh+bY2yecOfDJ4LrOzIMp59zNRIpU3sPSElrlKOsr+EhKtfUb5bjFj6WR2fCto +4oZJ8dBqmG5KuChvh+6BeVTpBPgCNngnzrqxVQZtcP243rQa43MDDyNRCr42z65YSB+Z03oR/ cCS7sD/Z77SDQxeEatAqLiw8fr6mHd1t7pCiCqSpIC4k7/Rvt2B4vZ+vV/h5QTB3BxEWIlqzEW UwscTB8lGikMIJvdo4GN/gVL X-IronPort-AV: E=Sophos;i="5.88,286,1635231600"; d="scan'208";a="158557502" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa1.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 13 Jan 2022 07:48:01 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Thu, 13 Jan 2022 07:48:01 -0700 Received: from localhost.localdomain (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Thu, 13 Jan 2022 07:47:58 -0700 From: Claudiu Beznea To: , , , , , , CC: , , , , Claudiu Beznea Subject: [PATCH v2 02/10] ARM: at91: ddr: align macro definitions Date: Thu, 13 Jan 2022 16:48:52 +0200 Message-ID: <20220113144900.906370-3-claudiu.beznea@microchip.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20220113144900.906370-1-claudiu.beznea@microchip.com> References: <20220113144900.906370-1-claudiu.beznea@microchip.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220113_064802_863261_EFC047BD X-CRM114-Status: UNSURE ( 9.08 ) X-CRM114-Notice: Please train this message. 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 Align all macro definitions. Signed-off-by: Claudiu Beznea --- include/soc/at91/sama7-ddr.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/soc/at91/sama7-ddr.h b/include/soc/at91/sama7-ddr.h index 13b47e26cdbe..817b360efbb8 100644 --- a/include/soc/at91/sama7-ddr.h +++ b/include/soc/at91/sama7-ddr.h @@ -13,11 +13,11 @@ /* DDR3PHY */ #define DDR3PHY_PIR (0x04) /* DDR3PHY PHY Initialization Register */ -#define DDR3PHY_PIR_DLLBYP (1 << 17) /* DLL Bypass */ +#define DDR3PHY_PIR_DLLBYP (1 << 17) /* DLL Bypass */ #define DDR3PHY_PIR_ITMSRST (1 << 4) /* Interface Timing Module Soft Reset */ -#define DDR3PHY_PIR_DLLLOCK (1 << 2) /* DLL Lock */ +#define DDR3PHY_PIR_DLLLOCK (1 << 2) /* DLL Lock */ #define DDR3PHY_PIR_DLLSRST (1 << 1) /* DLL Soft Rest */ -#define DDR3PHY_PIR_INIT (1 << 0) /* Initialization Trigger */ +#define DDR3PHY_PIR_INIT (1 << 0) /* Initialization Trigger */ #define DDR3PHY_PGCR (0x08) /* DDR3PHY PHY General Configuration Register */ #define DDR3PHY_PGCR_CKDV1 (1 << 13) /* CK# Disable Value */ @@ -65,7 +65,7 @@ #define UDDRC_SWSTAT_SW_DONE_ACK (1 << 0) /* Register programming done */ #define UDDRC_PSTAT (0x3FC) /* UDDRC Port Status Register */ -#define UDDRC_PSTAT_ALL_PORTS (0x1F001F) /* Read + writes outstanding transactions on all ports */ +#define UDDRC_PSTAT_ALL_PORTS (0x1F001F) /* Read + writes outstanding transactions on all ports */ #define UDDRC_PCTRL_0 (0x490) /* UDDRC Port 0 Control Register */ #define UDDRC_PCTRL_1 (0x540) /* UDDRC Port 1 Control Register */ From patchwork Thu Jan 13 14:48:53 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 12712831 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 45087C433F5 for ; Thu, 13 Jan 2022 14:50:01 +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=3cqMUyb60rMtw1EVLfDusxpq8uxVWctJlAJN8oSzoXs=; b=21uopSy65jkimN u+lRn1Q/OsQFZe26DxVRSe05Xm5WfgGjZoCko69N2IaPwvsZ68HgIqFpEISGcVLZ52k71BNxRiDmL 2Kx/XPn/5G8v6N+QZqJXnA9wWBlIKKdNmwscwQa5ClX0TBcfSaCT1bj4T8rHCoXvowQi4G3U+ijqY jfzg4jXZxV5l4VizQX2q76LblVMNr3FxvU9mxoxqus/P16G8MjvJxFBvVqW4RxEuodaLPK2zC8p1i L2QilQ+c4xFmXo6NGK01fd3T++imdFIGMFXNUsaiobCvV+TToMGZL9pmpmT0ms1LokW6s3oyQZOaG Q58X8rLG43V0TdgaczWA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n81P3-006H04-LO; Thu, 13 Jan 2022 14:48:37 +0000 Received: from esa.microchip.iphmx.com ([68.232.153.233]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n81OX-006Gmv-MM for linux-arm-kernel@lists.infradead.org; Thu, 13 Jan 2022 14:48:07 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1642085285; x=1673621285; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=8B+mjGEHiWRvOo09WcjQMA43OD+N7/Tq2fPJzC7/86M=; b=QVs41uZG8auz1+IFt1uF+8xoERLZB51H3OmjBXfdmQvxTyoquz4Uwy8p A2HlxetBt3eDfkpynPLoUNtG2iFBUNBJGWtY1QdZvTi4YgMmuUge+3L6Q +dOaFf1AeRjNB0JN+H2WEcnPpLD8QUsKaO6MbcxvziqvMu+zuv5zdHxsO FLOqCTcl7uldpvX+1wm2NuUddU2uF9FBHtVqz3B0ESLp9YbixD8TdOTx3 sUuJ/DazXScOh5YrFr55ZoiSBftZzNwJUn1p1p+qhncid6Vu1GlcbIl3t d2kyQzGVuQBSaDPCEQm7TD4w1XyqMT340GhDItBXDvCUviOf8+CKwJF3Y A==; IronPort-SDR: x5fH9fXkDlx/sXNG4ZpdDTYwDS6Je59q4Tu3bZITHBYf86MfWCalZcTv97QA90DW9pSdw0ctPV 0ZHmWspbloYi6m9cGbAub9oQz8OYCpcy1YNhMykZSm/noZuu2P8r5vqeMY5/VqFxp4sAOCojBP YHfQe54NS24//kf7r+ykoDTzdjHaPAFwgyoVEmUAFTTohDzFoI4q6Ag4OAmjzzInw8ld0jBFym 32Lp7AB1v36lyP4CVkAxtfWV02AA/DOYylpP1MDjdw+czk9F5EDDyRcFO06pryfIjYQ+JwPa7e 0uwQPYAeCVVf7Npt6DF6VVGl X-IronPort-AV: E=Sophos;i="5.88,286,1635231600"; d="scan'208";a="158557508" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa1.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 13 Jan 2022 07:48:04 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Thu, 13 Jan 2022 07:48:04 -0700 Received: from localhost.localdomain (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Thu, 13 Jan 2022 07:48:02 -0700 From: Claudiu Beznea To: , , , , , , CC: , , , , Claudiu Beznea Subject: [PATCH v2 03/10] ARM: at91: ddr: fix typo to align with datasheet naming Date: Thu, 13 Jan 2022 16:48:53 +0200 Message-ID: <20220113144900.906370-4-claudiu.beznea@microchip.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20220113144900.906370-1-claudiu.beznea@microchip.com> References: <20220113144900.906370-1-claudiu.beznea@microchip.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220113_064805_761587_45B18DE1 X-CRM114-Status: GOOD ( 10.12 ) 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 Fix typo on UDDRC_PWRCTL.SELFREF_SW bitmask to align with datasheet naming. Signed-off-by: Claudiu Beznea --- arch/arm/mach-at91/pm_suspend.S | 4 ++-- include/soc/at91/sama7-ddr.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-at91/pm_suspend.S b/arch/arm/mach-at91/pm_suspend.S index fdb4f63ecde4..abe4ced33eda 100644 --- a/arch/arm/mach-at91/pm_suspend.S +++ b/arch/arm/mach-at91/pm_suspend.S @@ -159,7 +159,7 @@ sr_ena_1: /* Switch to self-refresh. */ ldr tmp1, [r2, #UDDRC_PWRCTL] - orr tmp1, tmp1, #UDDRC_PWRCTRL_SELFREF_SW + orr tmp1, tmp1, #UDDRC_PWRCTL_SELFREF_SW str tmp1, [r2, #UDDRC_PWRCTL] sr_ena_2: @@ -276,7 +276,7 @@ sr_dis_5: /* Trigger self-refresh exit. */ ldr tmp1, [r2, #UDDRC_PWRCTL] - bic tmp1, tmp1, #UDDRC_PWRCTRL_SELFREF_SW + bic tmp1, tmp1, #UDDRC_PWRCTL_SELFREF_SW str tmp1, [r2, #UDDRC_PWRCTL] sr_dis_6: diff --git a/include/soc/at91/sama7-ddr.h b/include/soc/at91/sama7-ddr.h index 817b360efbb8..fee1b11bddca 100644 --- a/include/soc/at91/sama7-ddr.h +++ b/include/soc/at91/sama7-ddr.h @@ -53,7 +53,7 @@ #define UDDRC_STAT_OPMODE_MSK (0x7 << 0) /* Operating mode mask */ #define UDDRC_PWRCTL (0x30) /* UDDRC Low Power Control Register */ -#define UDDRC_PWRCTRL_SELFREF_SW (1 << 5) /* Software self-refresh */ +#define UDDRC_PWRCTL_SELFREF_SW (1 << 5) /* Software self-refresh */ #define UDDRC_DFIMISC (0x1B0) /* UDDRC DFI Miscellaneous Control Register */ #define UDDRC_DFIMISC_DFI_INIT_COMPLETE_EN (1 << 0) /* PHY initialization complete enable signal */ From patchwork Thu Jan 13 14:48:54 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 12712832 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 E3FF8C433F5 for ; Thu, 13 Jan 2022 14:50:11 +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=nnGv9kvPiVAYBnMKKaIfW+dklVVCpaXb77sTjy5bA0M=; b=mko0hwQLG1jWXv UNwYjopED3gme+H9OPxnuf3Zn1I1/lIInVCgei5uOxnY3M/1R5qknfrBtR59CG+/bpCvZooDSGG93 m3s1nWGpW0u1s8TkpTOqG6E2hM/Jz7IX66B8/DpnQJJNGxl/QveXw28hsZYvSUKKZSI2JSDKQTZ0X 1hvDTm4oopeAYya+ZbqcFqgWnOcUsDXWOFUjLcbkduAteCvRW6g3QIE8JLNixYCk3RNrFnkAuJa8L A5v1P5lp5HZIcQJcY3U5M/Iz5fYQyhC6ySMbNNHPbjMQUH7IK5TOC8PRB4bvhoEqfK4fL20pHLXUc pU4IV1WLhIyc0F3cZ+CQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n81PF-006H4c-G4; Thu, 13 Jan 2022 14:48:49 +0000 Received: from esa.microchip.iphmx.com ([68.232.153.233]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n81Oa-006Gmv-Ee for linux-arm-kernel@lists.infradead.org; Thu, 13 Jan 2022 14:48:10 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1642085288; x=1673621288; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=cpKxdtwy7Ox5Jspj12nGljBMXStsy5iD5Lt1+j43mkI=; b=M2XdIhHByRrPM9DLlgfgGH3FpCAcKqYNmZSAeanB0+ZAWkjxhqAJSjgD 7fuiRCKh51T7QxNVh8NGIPUqhQf+LmEl/c5UFpqYq7xu/w3tEOotDUB6w O5l7wYu4k2L9UOkmESE3Wse3tpRnp/6czx4EppxMZVKCkRDTVDEUcxFk0 Nn9VX8N3gZsUqDE09Do/CgDErehgNo+cPPnzIHyJXEefLiQlaPD9uV7Fm RAFa+ojCXnFq5yTEnkaY+PWO0VhLzGquiRd3Za6xP5IqdWOoJ/40ENJeq zSQ2kbTBtAiUnjxwJroXeQDUzzgFd90E6onm42+gGA4hkaibg/XVQLQwH g==; IronPort-SDR: l25eMLLmgkkG50NGqSakJ+63kGv8LZzXzzZ5yAaC9psEOjUcqRV8asD51bVC2J/cZlbPxL076U N7yz6ifnfauTQGaXkD1Zz5li6ybwQR0PPWnhHdnlgrmiM1/N7zmo1agrwFW2hJ5g45yjolVVJ1 9Mv1BxMGXJZvdVYfsrf9/stGM0DvJFBvzf9K2BLLS4Vffs4YrQHWZ6O9ecFILAklFEOPQfK00O 9fW5IeksDKMBDTGDY2o/U1mSuw5usuEB+zQpFesEeoYKz0t4rzA/LJlnwKHVYHF7atGnUwLl5D OfUV6z/Nwp+DZdZoLecV308A X-IronPort-AV: E=Sophos;i="5.88,286,1635231600"; d="scan'208";a="158557517" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa1.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 13 Jan 2022 07:48:07 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Thu, 13 Jan 2022 07:48:07 -0700 Received: from localhost.localdomain (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Thu, 13 Jan 2022 07:48:05 -0700 From: Claudiu Beznea To: , , , , , , CC: , , , , Claudiu Beznea Subject: [PATCH v2 04/10] ARM: at91: PM: add cpu idle support for sama7g5 Date: Thu, 13 Jan 2022 16:48:54 +0200 Message-ID: <20220113144900.906370-5-claudiu.beznea@microchip.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20220113144900.906370-1-claudiu.beznea@microchip.com> References: <20220113144900.906370-1-claudiu.beznea@microchip.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220113_064808_537332_C4E61725 X-CRM114-Status: GOOD ( 14.62 ) 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 Add CPU idle support for SAMA7G5. Support will make use of PMC_CPU_RATIO register to divide the CPU clock by 16 before switching it to idle and use automatic self-refresh option of DDR controller. Signed-off-by: Claudiu Beznea Acked-by: Stephen Boyd --- arch/arm/mach-at91/pm.c | 27 ++++++++++++++++++++++++++- include/linux/clk/at91_pmc.h | 4 ++++ include/soc/at91/sama7-ddr.h | 1 + 3 files changed, 31 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-at91/pm.c b/arch/arm/mach-at91/pm.c index dd6f4ce3f766..0fd609e26615 100644 --- a/arch/arm/mach-at91/pm.c +++ b/arch/arm/mach-at91/pm.c @@ -605,6 +605,30 @@ static void at91sam9_sdram_standby(void) at91_ramc_write(1, AT91_SDRAMC_LPR, saved_lpr1); } +static void sama7g5_standby(void) +{ + int pwrtmg, ratio; + + pwrtmg = readl(soc_pm.data.ramc[0] + UDDRC_PWRCTL); + ratio = readl(soc_pm.data.pmc + AT91_PMC_RATIO); + + /* + * Place RAM into self-refresh after a maximum idle clocks. The maximum + * idle clocks is configured by bootloader in + * UDDRC_PWRMGT.SELFREF_TO_X32. + */ + writel(pwrtmg | UDDRC_PWRCTL_SELFREF_EN, + soc_pm.data.ramc[0] + UDDRC_PWRCTL); + /* Divide CPU clock by 16. */ + writel(ratio & ~AT91_PMC_RATIO_RATIO, soc_pm.data.pmc + AT91_PMC_RATIO); + + cpu_do_idle(); + + /* Restore previous configuration. */ + writel(ratio, soc_pm.data.pmc + AT91_PMC_RATIO); + writel(pwrtmg, soc_pm.data.ramc[0] + UDDRC_PWRCTL); +} + struct ramc_info { void (*idle)(void); unsigned int memctrl; @@ -615,6 +639,7 @@ static const struct ramc_info ramc_infos[] __initconst = { { .idle = at91sam9_sdram_standby, .memctrl = AT91_MEMCTRL_SDRAMC}, { .idle = at91_ddr_standby, .memctrl = AT91_MEMCTRL_DDRSDR}, { .idle = sama5d3_ddr_standby, .memctrl = AT91_MEMCTRL_DDRSDR}, + { .idle = sama7g5_standby, }, }; static const struct of_device_id ramc_ids[] __initconst = { @@ -622,7 +647,7 @@ static const struct of_device_id ramc_ids[] __initconst = { { .compatible = "atmel,at91sam9260-sdramc", .data = &ramc_infos[1] }, { .compatible = "atmel,at91sam9g45-ddramc", .data = &ramc_infos[2] }, { .compatible = "atmel,sama5d3-ddramc", .data = &ramc_infos[3] }, - { .compatible = "microchip,sama7g5-uddrc", }, + { .compatible = "microchip,sama7g5-uddrc", .data = &ramc_infos[4], }, { /*sentinel*/ } }; diff --git a/include/linux/clk/at91_pmc.h b/include/linux/clk/at91_pmc.h index ccb3f034bfa9..3484309b59bf 100644 --- a/include/linux/clk/at91_pmc.h +++ b/include/linux/clk/at91_pmc.h @@ -78,6 +78,10 @@ #define AT91_PMC_MAINRDY (1 << 16) /* Main Clock Ready */ #define AT91_CKGR_PLLAR 0x28 /* PLL A Register */ + +#define AT91_PMC_RATIO 0x2c /* Processor clock ratio register [SAMA7G5 only] */ +#define AT91_PMC_RATIO_RATIO (0xf) /* CPU clock ratio. */ + #define AT91_CKGR_PLLBR 0x2c /* PLL B Register */ #define AT91_PMC_DIV (0xff << 0) /* Divider */ #define AT91_PMC_PLLCOUNT (0x3f << 8) /* PLL Counter */ diff --git a/include/soc/at91/sama7-ddr.h b/include/soc/at91/sama7-ddr.h index fee1b11bddca..9e17247474fa 100644 --- a/include/soc/at91/sama7-ddr.h +++ b/include/soc/at91/sama7-ddr.h @@ -53,6 +53,7 @@ #define UDDRC_STAT_OPMODE_MSK (0x7 << 0) /* Operating mode mask */ #define UDDRC_PWRCTL (0x30) /* UDDRC Low Power Control Register */ +#define UDDRC_PWRCTL_SELFREF_EN (1 << 0) /* Automatic self-refresh */ #define UDDRC_PWRCTL_SELFREF_SW (1 << 5) /* Software self-refresh */ #define UDDRC_DFIMISC (0x1B0) /* UDDRC DFI Miscellaneous Control Register */ From patchwork Thu Jan 13 14:48:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 12712833 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 712EAC433EF for ; Thu, 13 Jan 2022 14:50:24 +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=Sqayf/LmFv0g27BcJ3/ws7j3HDZ+dl5oRmGYDqwcgaw=; b=NJCV/8hROtoXGV tCyCwqj+NFwqXYlD4QBDdGvc8PcIAh2f4fttHOmlK2W54Ljz9yr2v9sP5l0aHl/IeapFwu9wh+NQK 7W9O7woA4xk3SgZiOy4ZRfQhGjcphF+kMfr211+lSY0WpsKQqJH4EXK6PQFLTgLyo2HX4MvzPBeTJ TIei6dVCAF1/osOIrXiDGjurH/F7Z2ZIAxDE0cQuMS7UzUSgIEZMwRR4IRVVedL8y49KG+5GAw/Ux XHBTPyg4r7tF/CmMNwTaTOvHGL7TqBS+YLvckgR3TbDPAR3IBphvrSiFIc+GLq6H1uJwI0p95O0mT xp7+SUp26qBjSUOIztzQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n81PX-006HDB-IH; Thu, 13 Jan 2022 14:49:07 +0000 Received: from esa.microchip.iphmx.com ([68.232.153.233]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n81Og-006Gqq-D3 for linux-arm-kernel@lists.infradead.org; Thu, 13 Jan 2022 14:48:15 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1642085294; x=1673621294; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ETLnfefiwEYOdcgZaQpwwBczz13QcWsMBfwE7C7NDns=; b=hfEgh/GC0yoAdvGqyfM34eAugfLdu9rQ6LAN8K1aKQBoAPeQagDcTwq4 X3kFD6NopdCnV5RY772/QpJmM23LgZlYW3SdRI8gpPHn1VHDfWmeg/wQP f3JPQsT1GUTi09UHd1lcg1vaG30A4aVzu3elL4tXAiNhDPdkCwim1nFjW SbLFdPIuoD88NxwHkSWX8sTMeVWcUcDHS8HZOmG2qfZC7jU7tMEZw+7PA x+Yp29Xh7DGR/D3zBRqGSocukNKsaYj2qkUmHCaHVToLKcl64Q4/aRRND 8dJrB/kH0kqxP+Agd442j4HNPoK8YSoM+1Sal8uX8kwZJpKTkIGyDCgn3 g==; IronPort-SDR: Mg7DNJx4adEtCFggnFGvM+9W9ev5zIVUBoV9cxUPHIUiarrw/vAM7BfCJsg9Ze9bojFhqxyJq+ YmIBflWMehGz9rZy9JXqxoxQVExkCzKhCPdY9cyZtUlB1N280lSo3NTr8ZDJJJVAGg/cvcyrUI FdroKqPRo2vgP3bkMEANIYDWsm+dkT5s4QHxBbd9h4Spd7rtCbUTnJqT4wrNspbBqaCnA3oOdN +Btuy4slUxG77EZWTSiX5Jb/qtE+FI8T2O4hO0gc4NlV2sBofuHAMo/0VilQqRWX4DMV1I5xgB tOExXO55u0fl06HdCW9ukuid X-IronPort-AV: E=Sophos;i="5.88,286,1635231600"; d="scan'208";a="149553977" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa5.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 13 Jan 2022 07:48:12 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Thu, 13 Jan 2022 07:48:10 -0700 Received: from localhost.localdomain (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Thu, 13 Jan 2022 07:48:08 -0700 From: Claudiu Beznea To: , , , , , , CC: , , , , Claudiu Beznea Subject: [PATCH v2 05/10] ARM: at91: Kconfig: select PM_OPP Date: Thu, 13 Jan 2022 16:48:55 +0200 Message-ID: <20220113144900.906370-6-claudiu.beznea@microchip.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20220113144900.906370-1-claudiu.beznea@microchip.com> References: <20220113144900.906370-1-claudiu.beznea@microchip.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220113_064814_489097_DFCA5D6F X-CRM114-Status: UNSURE ( 7.95 ) X-CRM114-Notice: Please train this message. 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 Select PM_OPP. This is requested for CPUFreq driver. Signed-off-by: Claudiu Beznea --- arch/arm/mach-at91/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-at91/Kconfig b/arch/arm/mach-at91/Kconfig index 02f6b108fd5d..279810381256 100644 --- a/arch/arm/mach-at91/Kconfig +++ b/arch/arm/mach-at91/Kconfig @@ -63,6 +63,7 @@ config SOC_SAMA7G5 select HAVE_AT91_GENERATED_CLK select HAVE_AT91_SAM9X60_PLL select HAVE_AT91_UTMI + select PM_OPP select SOC_SAMA7 help Select this if you are using one of Microchip's SAMA7G5 family SoC. From patchwork Thu Jan 13 14:48:56 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 12712834 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 8D981C433EF for ; Thu, 13 Jan 2022 14:50:49 +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=sqlI6BnlJmBIsdnO61GFt6LpvLxyU0ACFmBNyPaJSOg=; b=yHopPlV8Y27eCz Y4R/Eb/iQz0tghZo1ZBA5xN++C//TUcxPNLk78DrfT80vXmXMq49aIUwWmTnu+h/yo4X9RQ+1BaKj uMY7/vr+AXYMBkUTFXR1jov8hnMgN5ol68M5qT/TH0GwPBKQgrnFPyZ9BdkmjU3l7wNIZiHBbKxkH hDrMnWSNr9VmISTabjSsOBTm85HsQQccvhygWKIio5ozQJ6alTf1EtUd5PEch6mIk6ABxylN97IwV FCXKFFxZdtYBpvQ+/EXKLUmv7Wd4/OwuOk9/0hPtcVLwwBiqA/WZrUW+RZBheUSKyNRSEuXApnJQ5 moXV9KkWrGIeEzsQVBww==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n81Pv-006HPh-1z; Thu, 13 Jan 2022 14:49:31 +0000 Received: from esa.microchip.iphmx.com ([68.232.153.233]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n81Og-006Gr6-Rx for linux-arm-kernel@lists.infradead.org; Thu, 13 Jan 2022 14:48:16 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1642085294; x=1673621294; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=qzxL53+xCwUlzzE+c5h3xp0iY0GwHksZEGL+kIYmI/c=; b=tlJt+YYE5Nto4VakTfacNyrIfIR1bZMpO9bEG11al8bShyEOMY/YL2IJ Kb6P94o4Jwsx4Vjqylbk0Ngpt/hn92age4Xzr6g3kooYc7953lRgDYr5b 1EKFeLhTqzEPvWP1iKo/a7/oAXaFfp7V1pdeVBClOKK05iK81167APFz6 JYoL3tY5n4QljfAuSWE1+uSDlLELD0O7aRegqd5svqYiwUi2+WuLCHFgn BnIlSYVyQGC2cLM8kP3g3YB/TEPBhbNzEffzT8DYS1FcwxOTIn8NFund4 KWUV5/ZwaXC0o8leE8ZA8D5YEidt7KruTzwUtYhbYjXwVz7ZKnA/NnUi5 A==; IronPort-SDR: BPtLW3vol1O10wBtDTdU/osMfjW67K7iAB5k1pKez50+5jPucwUS0EZrWSckGbBNjqy/jFfq2N 2j5GaDyRCRyD9xRGlOvi+B4s1AHd3vERmEq+eS0mcZLGO+9SfkS6z5cKlAqwOGTjEDvsFAZ+AG P6d6gaoG9thkSHQXVo/NSWpvtiVEhoYt/CAC5xAKkwbvuZtFYK7szGF36s+AHrfOXu2C8IXgnc XUS5bnGaasttb+DJb+JMqoCnmupYmd94ZUDW8ufY1xW2d1WSX6Zp3wLGmmL/SrIpuxju90tKPk vrpC7eLj1FSanHBjxIuvEtV2 X-IronPort-AV: E=Sophos;i="5.88,286,1635231600"; d="scan'208";a="150108218" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa3.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 13 Jan 2022 07:48:14 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Thu, 13 Jan 2022 07:48:14 -0700 Received: from localhost.localdomain (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Thu, 13 Jan 2022 07:48:11 -0700 From: Claudiu Beznea To: , , , , , , CC: , , , , Claudiu Beznea Subject: [PATCH v2 06/10] ARM: dts: at91: fix low limit for CPU regulator Date: Thu, 13 Jan 2022 16:48:56 +0200 Message-ID: <20220113144900.906370-7-claudiu.beznea@microchip.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20220113144900.906370-1-claudiu.beznea@microchip.com> References: <20220113144900.906370-1-claudiu.beznea@microchip.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220113_064814_942682_666E319D X-CRM114-Status: GOOD ( 10.04 ) 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 Fix low limit for CPU regulator. Otherwise setting voltages lower than 1.125V will not be allowed (CPUFreq will not be allowed to set proper voltages on proper frequencies). Signed-off-by: Claudiu Beznea --- arch/arm/boot/dts/at91-sama7g5ek.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/at91-sama7g5ek.dts b/arch/arm/boot/dts/at91-sama7g5ek.dts index 0e1975c6812e..50f0fc3064cc 100644 --- a/arch/arm/boot/dts/at91-sama7g5ek.dts +++ b/arch/arm/boot/dts/at91-sama7g5ek.dts @@ -236,7 +236,7 @@ regulator-state-mem { vddcpu: VDD_OTHER { regulator-name = "VDD_OTHER"; - regulator-min-microvolt = <1125000>; + regulator-min-microvolt = <1050000>; regulator-max-microvolt = <1850000>; regulator-initial-mode = <2>; regulator-allowed-modes = <2>, <4>; From patchwork Thu Jan 13 14:48:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 12712835 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 B1015C433F5 for ; Thu, 13 Jan 2022 14:51:26 +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=DV56CWrW2i/pQlXTWlFlefm3Z+qMFHi9+kq2BRbRbLA=; b=e3Zb/UiZkLiQtk Tgsup1HbMM8FI/LzRMc7Eg9FjpWK7vk+P47QUBiICJIsEcDrNtCdUzCimgmqPKhTjTg5pIMJzIpBo MCVP48LJxDwWG8S1yzdD8Tq8C4aDaBeCfRyHSqw6dAOePJYCxI6h+HhrqZL4suWPyzVl66DC5IoGW +qb1y1hj+81B5IMvq1OJtYbWUpIsKvGGmE1jrOo/QDScFAAQMaiWe0WVGGRjBvs1W90fTRoPLAXVC 8Vb/EWpLpysNY6089k16yQ9PoC/D/G7iIQ0MB0jG2Mem0gnApEnNO5vVUD1ZAjv81sA/NUaNwnCC8 /R+d/YYqu2I920h6Pdfw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n81QQ-006HhI-Sh; Thu, 13 Jan 2022 14:50:04 +0000 Received: from esa.microchip.iphmx.com ([68.232.153.233]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n81Ok-006Gsc-7T for linux-arm-kernel@lists.infradead.org; Thu, 13 Jan 2022 14:48:19 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1642085297; x=1673621297; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=e/cwdosIfY/Ui806k1VNdWFJdNXS6zlz9aSSIH3faKE=; b=knktlAcqcC+SIwuiyOKPbw6Z02JC3FisNgCxwBOeqqEBKzwAHQcXE6Jl QmzjHsnxRQuqMFEybAQ1pcGty9xohj0U2ZH+jgegFxiilZpGUMPI9WknJ I22HQt9R9sN5hdIwFlkoZK776px4KfuEL1uzIGkusdf1QxMZtpY0rHMII YVZLu8oveDRs1HiXzbTQ26sPnPGBo//l2KcYTvJj+DmDGnttx2xPl8UW8 sCltAMMhn4VLEpqkqZAdpwrT1aJOL2U2rLOjgfTFjWG8a8NKWK1okkCpr F+AOlE2IApSZybbT5F54hTHj7abpYMq92d7yZBcatGgLL6OuYwo9R2eOw g==; IronPort-SDR: 47nOygoVvRVtF5FQl/YUZhdAz+JeUn+1Tlh7BvNuUto9F4AOlwiUM+KrJQaoBfqa4+77IyFnyC /t4vuFslxy25BY0cLcxlyln5wiCXwZWNahaIIKr0eFLjKsSNfim+tlSda4BdsZIwI/a7BJg+C7 Va4CorZvCgUgu/ziugvXJJJW4C7/siVs6DUMjVlcexUAxq3oQH6gYSnWPWiT0GnzYqnxvtWMqX psjIe8qUN+lAsH9vN1QsCfrFXEBwM/07PPFhBuw9C9bmGAPgE/LLG+VnwFiYojOmL5bpQ+v96h FRXGKPoG97pl7EbpDm565hWb X-IronPort-AV: E=Sophos;i="5.88,286,1635231600"; d="scan'208";a="158557547" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa1.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 13 Jan 2022 07:48:17 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Thu, 13 Jan 2022 07:48:17 -0700 Received: from localhost.localdomain (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Thu, 13 Jan 2022 07:48:14 -0700 From: Claudiu Beznea To: , , , , , , CC: , , , , Claudiu Beznea Subject: [PATCH v2 07/10] ARM: dts: at91: sama7g5ek: set regulator voltages for standby state Date: Thu, 13 Jan 2022 16:48:57 +0200 Message-ID: <20220113144900.906370-8-claudiu.beznea@microchip.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20220113144900.906370-1-claudiu.beznea@microchip.com> References: <20220113144900.906370-1-claudiu.beznea@microchip.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220113_064818_323291_94708F37 X-CRM114-Status: UNSURE ( 9.08 ) X-CRM114-Notice: Please train this message. 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 Set regulator voltages for standby state to avoid wrong behavior of system while in standby. The CPU voltage has been chosen as being the one corresponding to OPP=600MHz. Next commit will set the 600MHz OPP as the suspend OPP. Signed-off-by: Claudiu Beznea --- arch/arm/boot/dts/at91-sama7g5ek.dts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/at91-sama7g5ek.dts b/arch/arm/boot/dts/at91-sama7g5ek.dts index 50f0fc3064cc..e48da0a053ec 100644 --- a/arch/arm/boot/dts/at91-sama7g5ek.dts +++ b/arch/arm/boot/dts/at91-sama7g5ek.dts @@ -185,6 +185,7 @@ vdd_3v3: VDD_IO { regulator-state-standby { regulator-on-in-suspend; + regulator-suspend-microvolt = <3300000>; regulator-mode = <4>; }; @@ -225,6 +226,7 @@ vddcore: VDD_CORE { regulator-state-standby { regulator-on-in-suspend; + regulator-suspend-voltage = <1150000>; regulator-mode = <4>; }; @@ -245,6 +247,7 @@ vddcpu: VDD_OTHER { regulator-state-standby { regulator-on-in-suspend; + regulator-suspend-voltage = <1050000>; regulator-mode = <4>; }; @@ -261,6 +264,7 @@ vldo1: LDO1 { regulator-always-on; regulator-state-standby { + regulator-suspend-voltage = <1800000>; regulator-on-in-suspend; }; @@ -275,6 +279,7 @@ vldo2: LDO2 { regulator-max-microvolt = <3700000>; regulator-state-standby { + regulator-suspend-voltage = <1800000>; regulator-on-in-suspend; }; From patchwork Thu Jan 13 14:48:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 12712836 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 961A4C433EF for ; Thu, 13 Jan 2022 14:52:01 +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=oewWyL7cXp9gI3baU1jC7E0Gl46/nai21rDjkQER4z4=; b=dtDN47EuuiNiHu ShJFcKMB6dRzdE1wYrItjX3XPg+5bz2siy6uBqF9+2Tns0cJAzTTro+OTwsPKGyBdRPgcPNr2eVlT BTC1jRrgAOQ/qQpaGyqY9cNviYfg74qHjcoiGC6XqzgaLIEqFYM/YVSkksii+U48bZKFFds1Js49K D99lujsCEYfjNI+jwi+frtCuxCLK4uCBrByNdCLaQpI5P0ndVHF+jHdsua6mcD1zfjzdCa9uFOQQS lIobxGr4cc3nj2amTvMrtKON3KHaSt6iTw6rcRgwkEHmUZcPhwKe8WJ06kOSEDsYAve4Y9Cz01kng 6IsBaMMy4H7FMxk28lGg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n81Qw-006IFh-OH; Thu, 13 Jan 2022 14:50:35 +0000 Received: from esa.microchip.iphmx.com ([68.232.153.233]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n81On-006Gta-5X for linux-arm-kernel@lists.infradead.org; Thu, 13 Jan 2022 14:48:22 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1642085301; x=1673621301; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=wmrtV7L4VuwJz3LYKvfoOqzB/oLK+AvKPspo/IXOTRg=; b=tVAZxe1RJCudlrkQPTNp98/rpiFJDp2/0/IOdCm6eoxMKjsab95pQ3dc smKk66+56XpaMiVBCkebcZ254iwzuCigjlUcUMsWrBcr5TBpbkcrlF5x0 MO/hz0r4GcZBYyysYJ/ntLgiVCP5m0TnTBHGkVSDKi+cmz1YJqQ2R2UFw f2/DJ3ZE47lXmQ8Bqb5f/zMyqToYFT7qOH2VYoTvfo174PKsvqPW7co12 mvnt7s11dVBLVftxBjYm6wiIgBsMD+cjBjV4w9rg8DTXDRgtlRPR4e9TH exMiqt+NEedCD41BLvUb4x3vEH1iILsCbXbqyP9MTWf1yEg+fRFLecaBo g==; IronPort-SDR: Y01vov0CloqVmI6zO3T7KbNSL5Hl3HF4+oSWEEjMWgG0z6GDUTn+CBefmhWH5dyYToI4g12tfT HsJvZcicu4/8cwgzf25hCd3gyXJYUgfnQHj9RLb5i5iwHI62Xd2e3ucLGYJCnutqOmt3AMCmcX 8qXr0bMVsElenA70OpY6I0pbBaT8Hj3XvgfGVv+y6xJrdRNZPxi4gP7hYOkCP9Jm67Xk/vzVgC HLrBptyFgn+sNLafXl61SLpKl8XXsjciHqgTJotXLAGUy5rIz6YJOAgbwh2R+jNLVupXhPWrVB HSDW+pV7/b/pe8n69MYavpOC X-IronPort-AV: E=Sophos;i="5.88,286,1635231600"; d="scan'208";a="149554008" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa5.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 13 Jan 2022 07:48:20 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Thu, 13 Jan 2022 07:48:20 -0700 Received: from localhost.localdomain (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Thu, 13 Jan 2022 07:48:17 -0700 From: Claudiu Beznea To: , , , , , , CC: , , , , Claudiu Beznea Subject: [PATCH v2 08/10] ARM: dts: at91: sama7g5: add opps Date: Thu, 13 Jan 2022 16:48:58 +0200 Message-ID: <20220113144900.906370-9-claudiu.beznea@microchip.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20220113144900.906370-1-claudiu.beznea@microchip.com> References: <20220113144900.906370-1-claudiu.beznea@microchip.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220113_064821_246790_56A37E88 X-CRM114-Status: UNSURE ( 7.70 ) X-CRM114-Notice: Please train this message. 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 Add OPPs for SAMA7G5 along with clock for CPU. Signed-off-by: Claudiu Beznea --- arch/arm/boot/dts/sama7g5.dtsi | 38 ++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/arch/arm/boot/dts/sama7g5.dtsi b/arch/arm/boot/dts/sama7g5.dtsi index 7039311bf678..21694519155e 100644 --- a/arch/arm/boot/dts/sama7g5.dtsi +++ b/arch/arm/boot/dts/sama7g5.dtsi @@ -30,6 +30,44 @@ cpu0: cpu@0 { device_type = "cpu"; compatible = "arm,cortex-a7"; reg = <0x0>; + clocks = <&pmc PMC_TYPE_CORE PMC_CPUPLL>; + clock-names = "cpu"; + operating-points-v2 = <&cpu_opp_table>; + }; + }; + + cpu_opp_table: opp-table { + compatible = "operating-points-v2"; + + opp-90000000 { + opp-hz = /bits/ 64 <90000000>; + opp-microvolt = <1050000 1050000 1225000>; + clock-latency-ns = <320000>; + }; + + opp-250000000 { + opp-hz = /bits/ 64 <250000000>; + opp-microvolt = <1050000 1050000 1225000>; + clock-latency-ns = <320000>; + }; + + opp-600000000 { + opp-hz = /bits/ 64 <600000000>; + opp-microvolt = <1050000 1050000 1225000>; + clock-latency-ns = <320000>; + opp-suspend; + }; + + opp-800000000 { + opp-hz = /bits/ 64 <800000000>; + opp-microvolt = <1150000 1125000 1225000>; + clock-latency-ns = <320000>; + }; + + opp-1000000002 { + opp-hz = /bits/ 64 <1000000002>; + opp-microvolt = <1250000 1225000 1300000>; + clock-latency-ns = <320000>; }; }; From patchwork Thu Jan 13 14:48:59 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 12712837 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 D7644C433F5 for ; Thu, 13 Jan 2022 14:52:33 +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=Boe3oVi8sAa+IR4M4zT85m6L4Dum27MvO5iNq75qxYQ=; b=CigL5KrgtxaHXr jsYjDGQ4CE148EjCEXbQg24NOqsqRAK2KFxCKeolsNaBsdiqBA0GtaUL9Bl3Awe98CfQ/i/CqSCfv zeA7a9QALEPGJmv7l4z6ZsKTf5SUmUyZezusfJuat0OZhY0Za8sLKtkap/m1dwOTmo8gwlxX6R3JK pY5NtYU1XmXNqy5Wl1ZU13XhWaGo87G3l0lrT0tlJCTT8V0Yo4qKBsFdmb+O1XXenQQ2bkY/mKSPk Yg754E/woTP6V+rBZE5SXyrkEXwjurnNvdKNp5uaSC5lfxUcK1MuDRvNz2Y3V2yc3X7eM4urkkgrJ tNsdfqfZ1KqqnA152eng==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n81RS-006IZP-Jq; Thu, 13 Jan 2022 14:51:06 +0000 Received: from esa.microchip.iphmx.com ([68.232.153.233]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n81Oq-006Gur-L0 for linux-arm-kernel@lists.infradead.org; Thu, 13 Jan 2022 14:48:25 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1642085304; x=1673621304; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=bDlilDU1skIyaD7A5u8m29rcVwAwQx5M9HD/l01CDFo=; b=2h3Xvd3rWyUy7KoezCN/kRBWE9Y624W7UwktKK6xRPoTCEHc+xJ4jjdJ Jf7bXDwcEkCP4X4xzf38XaxLXDNFtqd+drUpt0nKmRKu87PBaOMuApomJ su5dBTciHS0fTxjA3ZuB2rynQTksMpxrcYRyibd6/9JlDSoimFtaWJGiK AuTHSFTvBPhS9U9hKRfbO9A7gLQ1UZKmg2lF71exUEdEEYmzcAzi5VCyz dqiPYy+15IVvKbtsaS/NrYEU+1KTy8uZ0p480dWl/lL5aRw4d03h2mEcN ClQ90i5dihvgFOAWyh4/1ywJierodsEOQ26nGXZnAwzGdSsnx7jKdvBmz A==; IronPort-SDR: fn1VzKeICIFExi/unB8UW687rfNdm9rrvris/JE4fKrGQ2h79X/rMTiQhD5mb8FBs48oEBs98T M9SAuHTha5uErxTLyMeASAoIeGbsaVL3KbUtVsxtpvNGqNpivXcVn4X5+EcYidSBeC6IlMOh5W SkJKNeVnQlw0ACTJygmVYKBlV8Nh/yD86pcI/xfq0sNflKfUcIqYo71sZIDFnikdOsbkFVKy7m cm80LfhbUEVldqTzHCPBjkMuTK4A5+RsR/1BNUFnIq6ndl/sMNt4wb/egR6R2VUpMqskxMAxM0 Wv4Xc5VUf3qgsSff9P7fp8J5 X-IronPort-AV: E=Sophos;i="5.88,286,1635231600"; d="scan'208";a="150108244" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa3.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 13 Jan 2022 07:48:24 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Thu, 13 Jan 2022 07:48:23 -0700 Received: from localhost.localdomain (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Thu, 13 Jan 2022 07:48:20 -0700 From: Claudiu Beznea To: , , , , , , CC: , , , , Claudiu Beznea Subject: [PATCH v2 09/10] ARM: configs: at91: sama7: enable cpu idle Date: Thu, 13 Jan 2022 16:48:59 +0200 Message-ID: <20220113144900.906370-10-claudiu.beznea@microchip.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20220113144900.906370-1-claudiu.beznea@microchip.com> References: <20220113144900.906370-1-claudiu.beznea@microchip.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220113_064824_736596_F6A60861 X-CRM114-Status: UNSURE ( 9.19 ) X-CRM114-Notice: Please train this message. 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 Enable CPU idle support for SAMA7 config. Signed-off-by: Claudiu Beznea --- arch/arm/configs/sama7_defconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/configs/sama7_defconfig b/arch/arm/configs/sama7_defconfig index 938aae4bd80b..95c2a7ed4816 100644 --- a/arch/arm/configs/sama7_defconfig +++ b/arch/arm/configs/sama7_defconfig @@ -26,6 +26,7 @@ CONFIG_FORCE_MAX_ZONEORDER=15 CONFIG_UACCESS_WITH_MEMCPY=y # CONFIG_ATAGS is not set CONFIG_CMDLINE="console=ttyS0,115200 earlyprintk ignore_loglevel" +CONFIG_CPU_IDLE=y CONFIG_VFP=y CONFIG_NEON=y CONFIG_KERNEL_MODE_NEON=y @@ -33,7 +34,6 @@ CONFIG_MODULES=y CONFIG_MODULE_FORCE_LOAD=y CONFIG_MODULE_UNLOAD=y CONFIG_MODULE_FORCE_UNLOAD=y -# CONFIG_BLK_DEV_BSG is not set CONFIG_PARTITION_ADVANCED=y # CONFIG_EFI_PARTITION is not set # CONFIG_COREDUMP is not set @@ -90,6 +90,7 @@ CONFIG_BLK_DEV_RAM_SIZE=8192 CONFIG_EEPROM_AT24=y CONFIG_SCSI=y CONFIG_BLK_DEV_SD=y +# CONFIG_BLK_DEV_BSG is not set CONFIG_NETDEVICES=y CONFIG_MACB=y CONFIG_MICREL_PHY=y From patchwork Thu Jan 13 14:49:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 12712843 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 94099C433EF for ; Thu, 13 Jan 2022 14:54:09 +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=mP65ukh4ap5i7uv3ZphR8qZRLCPYt2V0DVo2i6p5lxA=; b=vw1K3C9VK5r1mX deOdLmpmwVNbFP++bHL5P+idnUoU2Iz0PGLPvMfROd3FZgLkXfAQLrZ1WGUtutTRqfegACHYJB5sP tBt28LrvJgowxyTVGrmz+/2kauVBmg4HL+nnjxaMoyDnZXftyo2jANcdcAX0+oxD7iNQwdMZbW3GV x6hBJ8sKcb0KxcyG9eZjpvXW21OzBO3CplxhDByGDVxMkKq0f1fRYdkZa3owu4unPLadwaKgppIdS pKceu8G5dttHMoH3QqS87Nu/XOUfbkQL2E8dc4JYpuVS3aTbjXkBabTav8id9n2ZTHfvSG88FAh8Q ijlvH85PUCdFW81wio1Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n81S7-006Iwe-3p; Thu, 13 Jan 2022 14:51:47 +0000 Received: from esa.microchip.iphmx.com ([68.232.153.233]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n81Ot-006Gta-As for linux-arm-kernel@lists.infradead.org; Thu, 13 Jan 2022 14:48:28 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1642085307; x=1673621307; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=lEArm4L3rzKNYcbWHVsHPV1Ug//Fk01TwtXeWoxZlLg=; b=FF6Pnt6+wsEPhuGxHBukvVkYhiRMDDHV9pl8mpsz1g/oTkAV35yqhiK4 9SaUdu7aByQeQgRm9SdLA5ekoRsXITpHr2Imv8Uhxbdexl5Q4EmOWDF2T eCcOf0HGjFBAnfn9K4uxl+nKXsZRA0Yga0fwPDyyG+bKh7D48iyhRb3ld FYvqrcHSdJX8s9NT955l6mwkf3mg0YX9KigM8KWoSnEKhlJm2xAofZW5z ziJDncXFeiVz4FB6w97RgCNTyoEgYRft1oh2dAbCgKFwjS408Qvypkjrj plNBA2yoPgurQ1BpfWi4hN2rocp/DilxOvtPa/X47bT+JdhdkWIFSBSyJ Q==; IronPort-SDR: YGM0nHaHAI2bAtgvwl598GXQEWbb0V/t6ql6Z3K500t0G2iBrkapz6toIuhG+cjg1sycrPDeQV vmo5XpNUfwNJZSW6qvn6aoYvO7Teujk3G+3rOVCBmZAd2N2HYkCGSo9wmHBbbfaoxB3OurRgZU KwCM2hMyRwi3J7BotMHLOgS6t+BPrMwoNbyS8gtPibbdVRqWFp9pe73uBld207toyxk6Q3VsO/ hp4YFDfGsTFqOwxXydzW9nLYzGSVBvDqWGveKjnMgAaHG/o1PjYfP9z6QPxr3FAIQvwuDkrOsT LnON+71vVuRFPAOiGVyihvOv X-IronPort-AV: E=Sophos;i="5.88,286,1635231600"; d="scan'208";a="149554035" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa5.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 13 Jan 2022 07:48:26 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Thu, 13 Jan 2022 07:48:26 -0700 Received: from localhost.localdomain (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Thu, 13 Jan 2022 07:48:23 -0700 From: Claudiu Beznea To: , , , , , , CC: , , , , Claudiu Beznea Subject: [PATCH v2 10/10] ARM: configs: at91: sama7: add config for cpufreq Date: Thu, 13 Jan 2022 16:49:00 +0200 Message-ID: <20220113144900.906370-11-claudiu.beznea@microchip.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20220113144900.906370-1-claudiu.beznea@microchip.com> References: <20220113144900.906370-1-claudiu.beznea@microchip.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220113_064827_438280_6E0083C6 X-CRM114-Status: UNSURE ( 7.77 ) X-CRM114-Notice: Please train this message. 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 Add config flags for CPUFreq. This includes enabling CPUFreq support, CPUFreq DT driver and governors, default one being the conservative governor. Signed-off-by: Claudiu Beznea --- arch/arm/configs/sama7_defconfig | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/configs/sama7_defconfig b/arch/arm/configs/sama7_defconfig index 95c2a7ed4816..689e9afcb5b2 100644 --- a/arch/arm/configs/sama7_defconfig +++ b/arch/arm/configs/sama7_defconfig @@ -26,6 +26,12 @@ CONFIG_FORCE_MAX_ZONEORDER=15 CONFIG_UACCESS_WITH_MEMCPY=y # CONFIG_ATAGS is not set CONFIG_CMDLINE="console=ttyS0,115200 earlyprintk ignore_loglevel" +CONFIG_CPU_FREQ=y +CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE=y +CONFIG_CPU_FREQ_GOV_POWERSAVE=y +CONFIG_CPU_FREQ_GOV_USERSPACE=y +CONFIG_CPU_FREQ_GOV_ONDEMAND=y +CONFIG_CPUFREQ_DT=y CONFIG_CPU_IDLE=y CONFIG_VFP=y CONFIG_NEON=y