From patchwork Tue Nov 13 11:16:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10680339 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 5025E14E2 for ; Tue, 13 Nov 2018 11:23:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3E82D29A6E for ; Tue, 13 Nov 2018 11:23:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 32CFD2A42F; Tue, 13 Nov 2018 11:23:07 +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=-3.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW 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 9C8DC29A6E for ; Tue, 13 Nov 2018 11:23:06 +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=bRFHIhRN49C6VHU/1Xzdhfot4a2sR+qQ5L7wdeK1oYI=; b=ldJNw+LDa8Tuuo jXKlIjPfmXey4hJGmAtsvU/jvZg2lWk48bIEKH9IPWxL3GAs/46on9jrzMRxgGDnyk+MBYRaetjQE tDImGda2u8ZAISmFOw0duCgc+zS9T6a2brsUbn6j2fTJ2FcKhCAMajY3L4RwSGq/LVSjPyLi1ipkE gI/Eli256W85yrMHYu5RjbeO4sfwtpxIv6iVDbf2dSy3zjNFhpv5LwPxCnOSuTTqchhMK1+i+PID/ S4Jq+A7kWkwUuXDy0EbdDqTDerBi0PdE/RhVpKrgvtbxZS6P1Q+1s3eVz06ebGzgM/kcjQJWxW+mJ 0PWZm70YhXcbrOL15dkA==; 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 1gMWmX-0005LM-R8; Tue, 13 Nov 2018 11:22:57 +0000 Received: from mail-pg1-x542.google.com ([2607:f8b0:4864:20::542]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gMWj1-0000n8-GR for linux-arm-kernel@lists.infradead.org; Tue, 13 Nov 2018 11:19:21 +0000 Received: by mail-pg1-x542.google.com with SMTP id 17so5288549pgg.1 for ; Tue, 13 Nov 2018 03:19:09 -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=6bCnCXGvGb+WTYYXJyM90jNCA/shvWQ1MA/BQWovloI=; b=bxuNqRYpBAu9VCBSV2xKdby2vjCbZApxF6VWE7g3P467rZugpyPtHfEDsxU0jUeASu rs4BsJMNOfE/oqoBhzcE9jJwSUfu6iIJhC6PvIznSYG6+RFzecUfAGh2KpajM6waxJji XPAt7fUtRnuS5ZDB/EaLB7A8l2FAUaEgv9H7w= 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=6bCnCXGvGb+WTYYXJyM90jNCA/shvWQ1MA/BQWovloI=; b=pgTSZiw3ETmZfdiP6XHViXoes6vVFPlDDImTyP50utcIqp42TA9EdZsxl6z/ilvWUm j9DfDVvRuFSoamAecGWVqaZzCeYj20MSO03+GKotAONztMTlZWgdeAgedZRjEXft4xvB qdSnhiMx440a76/JRIKzZMXN0vlT0eniCAT6ipRZksDDvntwMzfi8OuVS4btQ7mcqfIZ hVCKYR/xMooZZwY0J/fXvBwXrA67C36LVpxfpGx8yrHekTFoO5smWQvqZOWXgBkeomp+ 6pCDczPHStDnUCnCQBtsv72p3CpBmKMxbXlrgfdQBA/JKZiwnugfp+dB9QN2o4g+GKUj P+MA== X-Gm-Message-State: AGRZ1gIjrlClBPUhRT9vXeMZ+QblXszqmjrGTr89sMeT7X/Urum3+LL3 dVlCw7LcVxeIIpP+QPvHpX+bKQ== X-Google-Smtp-Source: AJdET5eaF1s0sTZp6ao9W52tLpPWrw8U7gFiJUfLK07iH+OQgequAz4aORnm+trYbFgKmqBjhOmZFA== X-Received: by 2002:a62:7687:: with SMTP id r129mr2444437pfc.17.1542107948545; Tue, 13 Nov 2018 03:19:08 -0800 (PST) Received: from localhost.localdomain ([2401:4900:3670:3f11:bc71:2ef7:4a39:e260]) by smtp.gmail.com with ESMTPSA id 27-v6sm28531377pfm.36.2018.11.13.03.19.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Nov 2018 03:19:08 -0800 (PST) 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, linux-amarula@amarulasolutions.com Subject: [PATCH v4 22/26] clk: sunxi-ng: a64: Add min and max rate for PLL_MIPI Date: Tue, 13 Nov 2018 16:46:29 +0530 Message-Id: <20181113111633.20189-23-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20181113111633.20189-1-jagan@amarulasolutions.com> References: <20181113111633.20189-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181113_031919_563830_4C5DCA84 X-CRM114-Status: GOOD ( 13.52 ) 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 Manual noted to use PLL_MIPI rate 500MHz to 1.4GHz, 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 | 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",