From patchwork Thu Oct 21 12:22:48 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Nicolas Ferre X-Patchwork-Id: 12574873 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 133FBC433EF for ; Thu, 21 Oct 2021 12:24:38 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id D246E611CE for ; Thu, 21 Oct 2021 12:24:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org D246E611CE Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=microchip.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org 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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=Zknfux8q9y3OzLnFG5xuu05QTX1O2xZhgvhcKIVTvrY=; b=cxnZDGxWVP/4Lh BmM98RtiR6ug37BQjyE8cT5dOppu7yO87HVXOCakqLn/BDMoAR1nsJ7ZFNeU9PSIG3OCe3pKEagox 7E0wkVnsvVrpp6B7HcUMqacQApCBC7yvCexXe62p2IJDPN/6D/7dgsFvFQUGF4JFAAalzvzTTqe5X jXO1wgO7md+9IdVqLWR3ARQkVs9H1S1BNo2RxqbLHpf6jOrW56ZhlZy1jyXAzb0yx+1T+59dcwTKW 191egnRfMP9RCS5ZLuvCaUfV0CxpjejgC6nu2OP2L6EkcSmbFwam0E9jwVpmrg9yDPPYcc2UgnRDZ PfzNC3f+1SK/7H4RrXFw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mdX6E-007Sbv-QH; Thu, 21 Oct 2021 12:23:10 +0000 Received: from esa.microchip.iphmx.com ([68.232.154.123]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mdX6A-007SaF-5N for linux-arm-kernel@lists.infradead.org; Thu, 21 Oct 2021 12:23:08 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1634818985; x=1666354985; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=YtjyPXLkroGsz9agc6VrcGiYg7a86tG8R99+t7K0eFo=; b=vzL160mlTqfGn28m/mAKTBjwmi0ZGLLPJTDKJHDr1FsB8IODntixixhW G8umRzhP6OyjUf6XPN9wQivGqy8pc16K8uYBBveoAnn7c5E2fyXiMLyIs cXBiOQXqvMWSA14pvFkeJV2cFG+XxuaZhDRLwyJX2ru7lv8+iNFeDKSV5 ph1z1emi51VlIz2ecE6wfqSYJqhk4RHIG0wiByw8fBg9lk7gtZCyo+yfH 8/7OVVKfgHdXJLY7IQwiK9MW7ddvl3LwFCk6qLJBXNFwk3ZPw1ePWpcSQ cqGzryVKWhpSQR7DFsqeGFhBL9AptUv2D+a6/36kHpfD0y+rXlbmk3of0 Q==; IronPort-SDR: 5SjRX4WIFmH8a0fVc5piMgZLHkcdwsfOgArp/+Sa9QkmWSA0vb5SWWUMGKEaE23B1hB2mOyYAF 39K9n43lAupipxDUUW1u2CPoXwqEgEKFHfVU7XGHm7U3qPC+QHdZT6kOuk5nmTK6jJigu54QjJ WdFjSGjslmyzAChHzYkvZUp9x0R4lrR/KFLGDjSAc66KittI3jDRHEMTdvRLZ2Gazt2LDnxHcs 8eCw3V8VitFTw54X8DeTxD7pD/R4ahNG3HRg8eqgx7/4SX2z4R9FfSNqEj7xKkbWJibQbXxqB1 J13owTIfaSHlGBVEFWcuP7Uf X-IronPort-AV: E=Sophos;i="5.87,169,1631602800"; d="scan'208";a="133907797" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa4.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 21 Oct 2021 05:23:03 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Thu, 21 Oct 2021 05:23:03 -0700 Received: from ness.mchp-main.com (10.10.115.15) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Thu, 21 Oct 2021 05:23:01 -0700 From: To: , , Subject: [GIT PULL] clk: at91: clk changes for 5.16 Date: Thu, 21 Oct 2021 14:22:48 +0200 Message-ID: <20211021122248.33261-1-nicolas.ferre@microchip.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Organization: microchip X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211021_052306_305272_99F9B1F8 X-CRM114-Status: GOOD ( 12.29 ) 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: , Cc: Alexandre Belloni , Linux Kernel list , Ludovic Desroches , Claudiu Beznea , linux-arm-kernel Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Nicolas Ferre Stephen, Here are the clk changes for 5.16. I took the initiative to create a Pull-Request for it as it's surely more convenient, as I proposed in my reply to Claudiu's cover letter. I created it on top of your current clk-at91 branch that contains one patch by Clément already. Please pull. Thanks, best regards, Nicolas The following changes since commit c405f5c15e9f6094f2fa1658e73e56f3058e2122: clk: at91: check pmc node status before registering syscore ops (2021-10-07 20:47:47 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/at91/linux.git tags/clk-at91-5.16 for you to fetch changes up to 865aea519c06456c30846782be063dd9fcd3f99e: clk: use clk_core_get_rate_recalc() in clk_rate_get() (2021-10-21 14:00:59 +0200) ---------------------------------------------------------------- AT91 clk driver changes for 5.16: - Clock power management for new SAMA7G5 SoC; - Updates to the master clock driver and sam9x60-pll to be able to use cpufreq-dt driver and avoid overclocking of CPU and MCK0 domains while changing the frequency via DVFS; - Power management refinement with the use of save_context()/restore_context() on each clock driver to specify their use in case of Backup mode only. ---------------------------------------------------------------- Claudiu Beznea (15): clk: at91: re-factor clocks suspend/resume clk: at91: pmc: execute suspend/resume only for backup mode clk: at91: sama7g5: add securam's peripheral clock clk: at91: clk-master: add register definition for sama7g5's master clock clk: at91: clk-master: improve readability by using local variables clk: at91: pmc: add sama7g5 to the list of available pmcs clk: at91: sam9x60-pll: use DIV_ROUND_CLOSEST_ULL clk: at91: clk-master: check if div or pres is zero clk: at91: clk-master: mask mckr against layout->mask clk: at91: clk-master: fix prescaler logic clk: at91: clk-sam9x60-pll: add notifier for div part of PLL clk: at91: clk-master: add notifier for divider clk: at91: sama7g5: remove prescaler part of master clock clk: at91: sama7g5: set low limit for mck0 at 32KHz clk: use clk_core_get_rate_recalc() in clk_rate_get() drivers/clk/at91/at91rm9200.c | 2 +- drivers/clk/at91/at91sam9260.c | 2 +- drivers/clk/at91/at91sam9g45.c | 2 +- drivers/clk/at91/at91sam9n12.c | 2 +- drivers/clk/at91/at91sam9rl.c | 2 +- drivers/clk/at91/at91sam9x5.c | 2 +- drivers/clk/at91/clk-generated.c | 46 +++- drivers/clk/at91/clk-main.c | 66 +++++ drivers/clk/at91/clk-master.c | 463 ++++++++++++++++++++++++++++------- drivers/clk/at91/clk-peripheral.c | 40 ++- drivers/clk/at91/clk-pll.c | 39 +++ drivers/clk/at91/clk-programmable.c | 29 ++- drivers/clk/at91/clk-sam9x60-pll.c | 174 ++++++++++--- drivers/clk/at91/clk-system.c | 20 ++ drivers/clk/at91/clk-usb.c | 27 ++ drivers/clk/at91/clk-utmi.c | 39 +++ drivers/clk/at91/dt-compat.c | 2 +- drivers/clk/at91/pmc.c | 173 +++---------- drivers/clk/at91/pmc.h | 29 ++- drivers/clk/at91/sam9x60.c | 6 +- drivers/clk/at91/sama5d2.c | 2 +- drivers/clk/at91/sama5d3.c | 2 +- drivers/clk/at91/sama5d4.c | 2 +- drivers/clk/at91/sama7g5.c | 29 +-- drivers/clk/clk.c | 2 +- 25 files changed, 890 insertions(+), 312 deletions(-)