From patchwork Wed Dec 5 19:47:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tali Perry X-Patchwork-Id: 10714771 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4EB7B157A for ; Wed, 5 Dec 2018 19:48:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3FF702E33E for ; Wed, 5 Dec 2018 19:48:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3413A2E367; Wed, 5 Dec 2018 19:48:14 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E30F52E33E for ; Wed, 5 Dec 2018 19:48:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728510AbeLETru (ORCPT ); Wed, 5 Dec 2018 14:47:50 -0500 Received: from 212.199.177.27.static.012.net.il ([212.199.177.27]:55910 "EHLO herzl.nuvoton.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728648AbeLETrt (ORCPT ); Wed, 5 Dec 2018 14:47:49 -0500 Received: from taln60.nuvoton.co.il (ntil-fw [212.199.177.25]) by herzl.nuvoton.co.il (8.13.8/8.13.8) with ESMTP id wB5JHHE7013007; Wed, 5 Dec 2018 21:17:17 +0200 Received: by taln60.nuvoton.co.il (Postfix, from userid 20088) id E89F362DA6; Wed, 5 Dec 2018 21:47:15 +0200 (IST) From: Tali Perry To: avifishman70@gmail.com, tmaimon77@gmail.com, venture@google.com, yuenn@google.com, brendanhiggins@google.com, mturquette@baylibre.com, sboyd@kernel.org Cc: openbmc@lists.ozlabs.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Tali Perry , Wei Yongjun Subject: [PATCH v1 0/1] clk: npcm7xx: get fixed clocks from DT Date: Wed, 5 Dec 2018 21:47:01 +0200 Message-Id: <20181205194702.257430-2-tali.perry1@gmail.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20181205194702.257430-1-tali.perry1@gmail.com> References: <20181205194702.257430-1-tali.perry1@gmail.com> Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Nuvoton NPCM7XX Clock Controller The npcm7xx clock module includes 4 PLLs and then a tree of muxes and dividers. All muxes and dividers are preset before Linux boots. The presetting can change according to the board. Linux drivers need to know what the frequencies are, but they cannot change it, so this whole driver is intended as read only mechanism for clocks. Before this change PLLs input clk value was defined inside the driver. With this fix clock will be on the DT. Signed-off-by: Tali Perry Signed-off-by: Wei Yongjun --- Tali Perry (1): clk: npcm: get fixed input clks from DT drivers/clk/clk-npcm7xx.c | 64 +++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 53 insertions(+), 11 deletions(-)