From patchwork Thu Sep 23 13:20:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 12512903 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F2AA8C433EF for ; Thu, 23 Sep 2021 13:24:44 +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 C731B6124E for ; Thu, 23 Sep 2021 13:24:44 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org C731B6124E 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: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=pOWC/d3CMyvT/nS5hIuFVomJFhRHxB/aF0bmCuLlyKA=; b=Jf01ETFPycXDIe qqmaLaycAhDumoH0r02WGVcHf7faOVsF7ejkMnHtRRxY9Scywcx1Id0aufkMnshDK61EcNGIXCjDX Tn4oqkYoWXbPExq4ipG1J1RBTHOwGy/2dD0V9/yA//+or0i4O41bzTJqI9iQ0XQ5rsWsi1kK09h+v zvyGw5shNC25dfisddruZK5w6JADBhtzo7K1Rvgnq0HcYh5Ga6Kv9qtC08CM/XTsU0o0InHg6cslb H3sc62z2hH2uGUqivWR5081OKJTb9ZsORG3dxs4VFltzHgLRFINrpP+PBJKunw6/yMYcGjQ3PikDB ms76fLYSyY2NDtMAYpFA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mTOgp-00Ba9f-4x; Thu, 23 Sep 2021 13:23:03 +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 1mTOf7-00BZVn-MN for linux-arm-kernel@lists.infradead.org; Thu, 23 Sep 2021 13:21:18 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1632403277; x=1663939277; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=PAlQz9ImFlO7qIwbUzAgmC9YSfeXGWfelq6OxBy//Dk=; b=DJhos12kOwh3BBz8J/d1kaK31SOacmkY4+4CV9Hr7I4jo81VO1ZTKQgs wVvSIb9KBoDtIu++c5sW0KddPAXDgJ2sLsUAgASsTLaLeE3Nu+Z7fcD1B tEKKdBs0Cd+vHZc/FZoLRDO1ELDkuUg47RFZAA1gBT2/tOojEziETXevQ PS07fTsnhpdoHR2tw0h8hfplrauBqrU9L36F5gphBiY5FbhI/KCtuHOhF Xg414nkqHjoubbyQULmwqiBJbCrLBafInRlAsap0pN9HW46frz9pJtsuj fbU2ItF6TWukDCvVZdSb0dR835O7R4QL1kcNGGLlYeWZlc9V8HEKwD/nd g==; IronPort-SDR: rm2OP2I2Lx90qkPM0vKcdrIxUO2QnHbPF+EpCo5yI7lEcC/dq051Pq57A57vkFWsBsT/K22Jx+ 7mz13tEJJNO1zCAwSCJP7K71z0azuQexDvbMp6+FdMHQvlpDB4vPq94kmQwMMbr6jcq63Vyk+p 89bqwz9TcLRsEd+E9H32gEy8wokeRfw42MnFYQWl+fyoIHXlr9E8KSv2GGohCn+IhDpRy0m2J/ 4ueFo5s0D+D/A5dx3qQHLlSTz7D3qi/w45jQEw6zTkhW+rL0sHJ5FwMwIU6E3/hBeCzraMISsW TmEZHT5a2jbli769VovjFiuI X-IronPort-AV: E=Sophos;i="5.85,316,1624345200"; d="scan'208";a="145305432" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa1.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 23 Sep 2021 06:21: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.2176.14; Thu, 23 Sep 2021 06:21:16 -0700 Received: from rob-dk-mpu01.microchip.com (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Thu, 23 Sep 2021 06:21:14 -0700 From: Claudiu Beznea To: , , , , CC: , , , Claudiu Beznea Subject: [PATCH v4 06/17] clk: at91: pmc: add sama7g5 to the list of available pmcs Date: Thu, 23 Sep 2021 16:20:35 +0300 Message-ID: <20210923132046.1860549-7-claudiu.beznea@microchip.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210923132046.1860549-1-claudiu.beznea@microchip.com> References: <20210923132046.1860549-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-20210923_062117_773052_66B4896D X-CRM114-Status: GOOD ( 12.23 ) 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 SAMA7G5 to the list of available PMCs such that the suspend/resume code for clocks to be used on backup mode. Signed-off-by: Claudiu Beznea --- drivers/clk/at91/pmc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/clk/at91/pmc.c b/drivers/clk/at91/pmc.c index 58e9c088cb22..2a9636edfe9d 100644 --- a/drivers/clk/at91/pmc.c +++ b/drivers/clk/at91/pmc.c @@ -149,8 +149,9 @@ static struct syscore_ops pmc_syscore_ops = { .resume = at91_pmc_resume, }; -static const struct of_device_id sama5d2_pmc_dt_ids[] = { +static const struct of_device_id pmc_dt_ids[] = { { .compatible = "atmel,sama5d2-pmc" }, + { .compatible = "microchip,sama7g5-pmc", }, { /* sentinel */ } }; @@ -159,7 +160,7 @@ static int __init pmc_register_ops(void) struct platform_device *pdev; struct device_node *np; - np = of_find_matching_node(NULL, sama5d2_pmc_dt_ids); + np = of_find_matching_node(NULL, pmc_dt_ids); if (!np) return -ENODEV;