From patchwork Thu Nov 19 14:38:19 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 11917603 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=-16.8 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 24B75C6369E for ; Thu, 19 Nov 2020 14:40:56 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 99D8B2468B for ; Thu, 19 Nov 2020 14:40:55 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="iTLQaSGH"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="FKdvNV3c" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 99D8B2468B Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=microchip.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: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:List-Owner; bh=PnAAeAErwwYwjvNjH9i6SmO6WRB501coQbuP/9znHuo=; b=iTLQaSGHCnTAlezM9b2itJR5K WEw6WyAIOpMp9guLK1Nr9DpaoIt7SDb/ZxJowFKmbIkfr4LW+UpOXyEE/DhsMnTQyqmrgEJBR64ly 8nW7ZwemVzUYmF12eqA491RfK5PWLSO9n1iIAoCIrjQOO5x1o6h74UTu3kwu2u4jSvM/XkXxwB1Zi uwB0C3HqZkJMUdQIUr+n2f6q3phjI4SE3p2EyFLE4e3Xey1I4xZ+y4WEyYZmaXMD2a8Oljkwp2IML s7iPbA4YDvSbGGHSHlz8JUKqpZ1mA0QMbWMZVl+PUWIUOVjLQaRwbwuqeVPKz/DJ6e2v6hv+NAAba pOfQdQTEA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kfl5d-0008Am-2w; Thu, 19 Nov 2020 14:39:13 +0000 Received: from esa3.microchip.iphmx.com ([68.232.153.233]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kfl5I-00083j-Gt for linux-arm-kernel@lists.infradead.org; Thu, 19 Nov 2020 14:38:53 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1605796732; x=1637332732; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=5kPPY8aoeoIt3eWzwt2rrqZVySb3GOzC6e0UsowoKcY=; b=FKdvNV3cmDnO37Ky1S+rwjv1EaDLXulxuRXnFWSfvq+RYYpNqh/TALXK 4ef9eJFtiS6Aur6xLxpsdMZG3Bne77oWxs0Gw1oHGS5DZML5Ip0mjq4D8 SG7gQIy5cMmE5/Kj8bxrv+7jWxWBiFzgrLAdeXf1K/cQNYTGFcNiceDOB 70zIyHikfNPCRyGCk4yi1zVZyf46qW1aNMxXZ0rL0JAiiawj2Xmkbt7l/ asfZdp7sck33YJXlqCW9I+8J3G3rONwMPHCvFVOlxmNsE9rYKdmDr/aDP 2R2alWKPUSW0WWgNekgGRQnJbLfEM3S6pbvcOE1lAx94RXk5K3kgEOBGD Q==; IronPort-SDR: 2z/KAlWBM888TBWpQ1EiryugNmKEtUxH57YhPg0h7l0WcKbP7/u2NIACPlS1uR0Pme3715ni7j urWat73OCIoQnh/34H2gry7c4hUOI+eDrJ1+FJLbWUtZATQ0BECzakHOKf6xCmy+Ykb0x41116 9lq4ArW7qIiQ4EjOY6IVdTRL1OxYfvLsX+CQTVqySr6im/8dIanynabH2vQVHijQGdqHzegzbN O6bHdhRoICp9q5MF6VcNNRN6Rk386/aKW++3VSeK0tL0DJ/gX9li9nFwxEYC7osTObSYYYuFtE rX0= X-IronPort-AV: E=Sophos;i="5.77,490,1596524400"; d="scan'208";a="99678033" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa3.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 19 Nov 2020 07:38:50 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) 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.1979.3; Thu, 19 Nov 2020 07:38:50 -0700 Received: from m18063-ThinkPad-T460p.microchip.com (10.10.115.15) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.1979.3 via Frontend Transport; Thu, 19 Nov 2020 07:38:46 -0700 From: Claudiu Beznea To: , , , , , Subject: [PATCH v5 03/11] clk: at91: sama7g5: allow SYS and CPU PLLs to be exported and referenced in DT Date: Thu, 19 Nov 2020 16:38:19 +0200 Message-ID: <1605796707-8378-4-git-send-email-claudiu.beznea@microchip.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1605796707-8378-1-git-send-email-claudiu.beznea@microchip.com> References: <1605796707-8378-1-git-send-email-claudiu.beznea@microchip.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201119_093852_750846_836EE547 X-CRM114-Status: GOOD ( 11.73 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, Eugen Hristev , Claudiu Beznea , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Eugen Hristev Allow SYSPLL and CPUPLL to be referenced as a PMC_TYPE_CORE clock from phandle in DT. Suggested-by: Claudiu Beznea Signed-off-by: Eugen Hristev [claudiu.beznea@microchip.com: adapt commit message, add CPU PLL] Signed-off-by: Claudiu Beznea --- drivers/clk/at91/sama7g5.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/clk/at91/sama7g5.c b/drivers/clk/at91/sama7g5.c index 7ef7963126b6..d3c3469d47d9 100644 --- a/drivers/clk/at91/sama7g5.c +++ b/drivers/clk/at91/sama7g5.c @@ -117,7 +117,8 @@ static const struct { .p = "cpupll_fracck", .l = &pll_layout_divpmc, .t = PLL_TYPE_DIV, - .c = 1, }, + .c = 1, + .eid = PMC_CPUPLL, }, }, [PLL_ID_SYS] = { @@ -131,7 +132,8 @@ static const struct { .p = "syspll_fracck", .l = &pll_layout_divpmc, .t = PLL_TYPE_DIV, - .c = 1, }, + .c = 1, + .eid = PMC_SYSPLL, }, }, [PLL_ID_DDR] = {