From patchwork Wed Nov 4 09:39:57 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 11880047 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=-12.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,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 278D0C4741F for ; Wed, 4 Nov 2020 09:41:15 +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 9E819221F8 for ; Wed, 4 Nov 2020 09:41:14 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="XKzGtvTi"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="H9xGtKwK" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9E819221F8 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=XKzGtvTiWQELTj0vlOXADDDXm j+VrhGijdh80p0tNjlCDZ5vBsQhAhEqndFCUmrg+u5gHpw0ySYxdEvG9iUFSWyOELF4vxyp2g77PQ SlL5zWe/MxtrX8wrKerPTrqkDK8CRrxspt9AatPZ08OdBaxyNGlFYapvEfU9hD3JvMeL1GlxfaMx1 4NcZd64bAE9vHSzhg8e7fI6lawD9sTxkXnYuoLIM6tx9uiG5edUPx0TPQbxvR7Rm/2hrVjfOSGw/z +bcL8PRm+oCn5NWbIyIzWilyzhBluWb3uRqDjSl2/kG4g6bQNBRxhcHOy1ZwIwfJ41nma4pbNX0aO MWkMgWF3Q==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kaFHN-0002NA-Bd; Wed, 04 Nov 2020 09:40:36 +0000 Received: from esa6.microchip.iphmx.com ([216.71.154.253]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kaFHJ-0002M3-Dd for linux-arm-kernel@lists.infradead.org; Wed, 04 Nov 2020 09:40:31 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1604482829; x=1636018829; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=5kPPY8aoeoIt3eWzwt2rrqZVySb3GOzC6e0UsowoKcY=; b=H9xGtKwKtjK8OEVM8sFF/Fi3xXGW8sRi+xxYgmDZ4zmN+QA804wWSr52 I1QAXLCgOh4H59R8JLU3iNQn9ozDestftsXaw8NEX9fb9pqRCXPgIYVbo MFhR/ykJ9lcaLDqpWYEmtNvp4DYPJs2e5mbLwmXqnuYCaIGmP9UdtnXhY o54uzK/LlguLVnGlpb5syaxA1SKWyMiNT+aumDolOotr4cvRZ+cMVemet mg2J6lBmURmZu2ZqFMGn75UkC/+jMXpuZi7gCuj1/hw2iCUcbTFdMt7jN Pao7QuSFUkJJlJiNvL97D2ltdJye9DUT/53fF1VZXVEvX49SF/xus0A1C w==; IronPort-SDR: 5CJdxmzde2U9ZpOWghYmAcBvYOUxJPrhmbBtdpREsK7rEDpO2gafgLLIFpqDjCXEo7zR12h8Mr rv16GMPBfaN0YBhM38jJBZsb/HrMgTaQpNzfx6ffEJPBwAW8gqH3a3Klcmh07fRC6KLy0s1YzQ VX7s3sxH1WmQpOXe28Ed351gZIDCz/hMGoxLXed0qtgbScBenxWJtrWiOeJjIrhEH3v8BUaoC0 9Dl7YEcxA5cbO1RxmJ+dHQZAbo7j7EyjW1u7RUkjmNZVbXsUFBNUEUmhO5dii2TNuqICOLWY6g s3c= X-IronPort-AV: E=Sophos;i="5.77,450,1596524400"; d="scan'208";a="32375260" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa6.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 04 Nov 2020 02:40:28 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) 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.1979.3; Wed, 4 Nov 2020 02:40:27 -0700 Received: from m18063-ThinkPad-T460p.microchip.com (10.10.115.15) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.1979.3 via Frontend Transport; Wed, 4 Nov 2020 02:40:22 -0700 From: Claudiu Beznea To: , , , , , Subject: [PATCH 3/8] clk: at91: sama7g5: allow SYS and CPU PLLs to be exported and referenced in DT Date: Wed, 4 Nov 2020 11:39:57 +0200 Message-ID: <1604482802-1647-4-git-send-email-claudiu.beznea@microchip.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1604482802-1647-1-git-send-email-claudiu.beznea@microchip.com> References: <1604482802-1647-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-20201104_044030_573189_A15B19B7 X-CRM114-Status: GOOD ( 12.24 ) 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] = {