From patchwork Tue Oct 23 15:50:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10653355 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 573AB14DE for ; Tue, 23 Oct 2018 16:04:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 474E329DC1 for ; Tue, 23 Oct 2018 16:04:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3B6B629E78; Tue, 23 Oct 2018 16:04:24 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id EB3D629DC1 for ; Tue, 23 Oct 2018 16:04:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.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=jRwtqFcWhQ+vVOTUEpGZ+4RJJ2GY3Pfzng1yExCWbo0=; b=r9cPFqtiWNPu6L ON0I2Q8mPGqZu4qizQb6487A3+H7C6E196BC8dvM/neddmTjXoTgb5NLIi9GYvFbM4J7i3Iejq/dB iTJrvnphgvp4XhGo0OeBymmGBQeH+I/cVMkK2/kK/KXtAFwJC3fDfENePAPl0+7QEbw/tihRv1z1q YnqIhxJeIlsASwSl9Ok4g6zGvlHHdZz1MBNIdi6krq7vzt1JcTq4YvedutQ1Alsf+uZGbQO76uJ32 xnDs6YckuXmbTxdDa7ARDUEM+oU/RyRZxd6AhNe+vY6IoNfLh5UVGUy96cBItZNd3jn9RNUguK9cA T849gOBMf/MPKpH9YquQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gEzAI-00036U-1e; Tue, 23 Oct 2018 16:04:18 +0000 Received: from mail-pf1-x443.google.com ([2607:f8b0:4864:20::443]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gEyyf-0004ev-Hz for linux-arm-kernel@lists.infradead.org; Tue, 23 Oct 2018 15:54:17 +0000 Received: by mail-pf1-x443.google.com with SMTP id v11-v6so890259pfn.5 for ; Tue, 23 Oct 2018 08:52:07 -0700 (PDT) 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=blc8pa2mH8WA0kLLsJN5Bi8u1t4IIhc8DjF+yhou15g=; b=USfPeOIkp2ETkJWiArIhI83smWHBeA73W6HXY+EPSy8wwm0TGIxzNFIOa4eZonrfpC Z7naxMoFedsDNBaq8j2xuSC//P+vNc8pSETgglMDPp5/uXWivibCaGhhkfJVIqfsMR0s BVMuFCnocX19GDoCJx1Wn08jVrBF5S2bkYb/o= 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=blc8pa2mH8WA0kLLsJN5Bi8u1t4IIhc8DjF+yhou15g=; b=ONNgyrEacxwaQFRJrFEjwIZCnE6uSnd+rfUeNcNP2CzylgzEuE+6yRPts9W4vvRGxN xn869Xx2ypuUfR96HfP1Ot358j2i8Ie12vcS0joljM/93uThxrqP90iwAEdR0NbQfreI Wyz1aWCRuvzFohmCQ3zZSy+Xsm4gYEknYPwNwbt9VJa5eXhcGXThAyYq933Qt2f4Zk6x vyHuIinCue93IBUGZAua5PyHSG+JhEw9uvW0vD0afEoaC5BACDp6AvtWlM0qSm61+gLR vE4Li97756fCSNMBg/KR1gD9GIGJ2ELptgEJzv7dJRTPgxz7wZgDjJFtdWomEkX/XyM3 01pg== X-Gm-Message-State: ABuFfog3+69gIC8mhm0KvE9bsufWn0r7x02dL8cK+Q72fjYCBWFx9gXZ oW6fLkcyaYm6GDQjMXK7Dkvg8g== X-Google-Smtp-Source: ACcGV60AXjcwdPsoZe6YALxa5lDpJrnpWVk/hri+trnu15ok01soQwW7+2OBOxHDVg+435IWgolscw== X-Received: by 2002:a63:4343:: with SMTP id q64-v6mr48792747pga.276.1540309926729; Tue, 23 Oct 2018 08:52:06 -0700 (PDT) Received: from localhost.localdomain ([27.7.51.1]) by smtp.gmail.com with ESMTPSA id o75-v6sm7442829pfg.0.2018.10.23.08.52.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Oct 2018 08:52:06 -0700 (PDT) From: Jagan Teki To: Maxime Ripard , Chen-Yu Tsai , Icenowy Zheng , Jernej Skrabec , Vasily Khoruzhick , Rob Herring , Mark Rutland , Catalin Marinas , Will Deacon , David Airlie , dri-devel@lists.freedesktop.org, Michael Turquette , Stephen Boyd , linux-clk@vger.kernel.org, Michael Trimarchi , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com Subject: [PATCH v2 12/15] clk: sunxi-ng: a64: Add min and max rate for PLL_MIPI Date: Tue, 23 Oct 2018 21:20:32 +0530 Message-Id: <20181023155035.9101-13-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20181023155035.9101-1-jagan@amarulasolutions.com> References: <20181023155035.9101-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181023_085217_633570_FC44D405 X-CRM114-Status: GOOD ( 13.81 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jagan Teki Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP A64 manual say PLL_MIPI rates are 500MHz to 1.4GHz, but using minimum 500MHz can't release the clock and which is not working. So use working minimum rate as 300MHz which is tested on Bananapi DSI panel. Signed-off-by: Jagan Teki Acked-by: Stephen Boyd --- Changes for v2: - new patch drivers/clk/sunxi-ng/ccu-sun50i-a64.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/sunxi-ng/ccu-sun50i-a64.c b/drivers/clk/sunxi-ng/ccu-sun50i-a64.c index 019d67bf97c4..5a3a5b821f8b 100644 --- a/drivers/clk/sunxi-ng/ccu-sun50i-a64.c +++ b/drivers/clk/sunxi-ng/ccu-sun50i-a64.c @@ -167,6 +167,8 @@ 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, /* Actual rate is 500MHz */ + .max_rate = 1400000000UL, .common = { .reg = 0x040, .hw.init = CLK_HW_INIT("pll-mipi", "pll-video0",