From patchwork Thu Jan 24 19:58:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10779989 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 2B62813B4 for ; Thu, 24 Jan 2019 20:01:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1C60C32867 for ; Thu, 24 Jan 2019 20:01:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 10C583289C; Thu, 24 Jan 2019 20:01:35 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 B343C3288D for ; Thu, 24 Jan 2019 20:01:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732116AbfAXUAT (ORCPT ); Thu, 24 Jan 2019 15:00:19 -0500 Received: from mail-pf1-f195.google.com ([209.85.210.195]:41079 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732233AbfAXUAS (ORCPT ); Thu, 24 Jan 2019 15:00:18 -0500 Received: by mail-pf1-f195.google.com with SMTP id b7so3524510pfi.8 for ; Thu, 24 Jan 2019 12:00:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=MUFV3EbRWTylHEUKUIeOqSoI6gTTKiS0hGHS2pg+s1g=; b=kYXku2+URiPTdGUN0CnytsHS0hqAI82ylfs+dKmCWQEKJ+BdxgbLh8PPphfZPGNePq /96+rmiOaEGSTphtezeUvV1cBmZLCTvSe8ZnniWkfWch6nY6PK715P0JCMiHKchP0yFq XLJ8t7+p4LPR665DNVYy0yxzgsbmTfwwiQJkk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=MUFV3EbRWTylHEUKUIeOqSoI6gTTKiS0hGHS2pg+s1g=; b=nRAZWTjJ7cw5WJntZul5U3ErgqdTO9B0GYXYqRM4HwozWlOTUl3XEzPCOaIdQ/EFhn B8udhh9On3c1h7AJJKQ2Zv+h0XOFFZs5pZcFWJOiDJYTyGl31jinVbhGSZCR8BhpXOS/ DwUcWyAf56pij5qGHQte8NusyN2aMQDHfc41JkS/lydaD5EEoerld5PeOB2ddUg1WZ1s iqjUBVrA5HRD2FR7xWdZjKNf+7npPWkSzYxJZvs2Yu4w4W6xg2/rcJtzUulWDennGhGy GPD4F8gBoZJv3jJBBEFJSyJoTQ3QLuRO8+zUcBrSsrmA62JOiMC4wQ+8EIQLSQTWZJB9 m1Bw== X-Gm-Message-State: AJcUukfwQH9rf3oISXW1f8dmjkdIGff77cgd+pKhUBtgCP8KhRjvFqpU CBaQzJy3/UFHEwDXNGm5OIUeXQ== X-Google-Smtp-Source: ALg8bN5RmRe8ODy7m+XM46GYuK17hUEAO1Y4XOThFEHBmaFLnaGq3Qms+U0Xep8wBNGFIGPxjc1hGw== X-Received: by 2002:a63:e950:: with SMTP id q16mr7211887pgj.138.1548360017678; Thu, 24 Jan 2019 12:00:17 -0800 (PST) Received: from localhost.localdomain ([115.97.179.75]) by smtp.gmail.com with ESMTPSA id x11sm61637003pfe.72.2019.01.24.12.00.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 Jan 2019 12:00:17 -0800 (PST) From: Jagan Teki To: Maxime Ripard , David Airlie , Daniel Vetter , Chen-Yu Tsai , Michael Turquette , Rob Herring , Mark Rutland Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, Michael Trimarchi , linux-amarula@amarulasolutions.com, linux-sunxi@googlegroups.com, Jagan Teki Subject: [PATCH v6 11/22] clk: sunxi-ng: a64: Add minimum rate for PLL_MIPI Date: Fri, 25 Jan 2019 01:28:49 +0530 Message-Id: <20190124195900.22620-12-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190124195900.22620-1-jagan@amarulasolutions.com> References: <20190124195900.22620-1-jagan@amarulasolutions.com> MIME-Version: 1.0 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 Minimum PLL used for MIPI is 500MHz, as per manual, but lowering the min rate by 300MHz can result proper working nkms divider with the help of desired dclock rate from panel driver. Signed-off-by: Jagan Teki Acked-by: Stephen Boyd --- drivers/clk/sunxi-ng/ccu-sun50i-a64.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/sunxi-ng/ccu-sun50i-a64.c b/drivers/clk/sunxi-ng/ccu-sun50i-a64.c index 932836d26e2b..296d489aad6e 100644 --- a/drivers/clk/sunxi-ng/ccu-sun50i-a64.c +++ b/drivers/clk/sunxi-ng/ccu-sun50i-a64.c @@ -183,6 +183,7 @@ static struct ccu_nkm pll_mipi_clk = { .n = _SUNXI_CCU_MULT(8, 4), .k = _SUNXI_CCU_MULT_MIN(4, 2, 2), .m = _SUNXI_CCU_DIV(0, 4), + .min_rate = 300000000, .common = { .reg = 0x040, .hw.init = CLK_HW_INIT("pll-mipi", "pll-video0",