From patchwork Fri Oct 26 14:43:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10657553 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 D1BAA5A4 for ; Fri, 26 Oct 2018 15:03:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C0AD72A504 for ; Fri, 26 Oct 2018 15:03:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B2E442AB4E; Fri, 26 Oct 2018 15:03:40 +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 3CE952A504 for ; Fri, 26 Oct 2018 15:03:40 +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=XOgOZr8+TPkORwCpuOn+ueLdOU27/AUVGhdB6kWbx0o=; b=pcLdq+xvoX5Ph5 lMeTIy1dUGx790QArcnPHG7eZHPW+TpZMn5U3YqVy024Ey0DN8PFzTFA11xkkxexbMVvJckPsKBgT uD47j13SlS3EdMvduj0ml7eUYX4eZzfCQNh65jbMdYv4vXQcBQZCw9oYfS2BdpuHigfhT25NdpiUL NHxqtE/VSK8cs7rP/8kVY+Du7+v6PXCh0HwLcjWsr2s0zal1z1jxkbs1fAwwtDar8XmglntMQej29 cNXj5E22OReZu+wasQfGWbJc6Bc7TI/mBZivEv1mLM9DyzwDQJSOPlThKxbisYJ1n4P/fI9F94CwB 1NWhMpx5S6MEomxJ/zIg==; 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 1gG3eC-0003MS-Ai; Fri, 26 Oct 2018 15:03:36 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gG3bf-0001uc-5O for linux-arm-kernel@bombadil.infradead.org; Fri, 26 Oct 2018 15:00:59 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=n0i8hVr1HP7XLYiUrhAKpcC+p7UJ+a7PvBsZMlOyWQg=; b=gXqh7Ji08Oea37tZyRiJgmnssn 5WwgSHoAnaAqUv077CxwuiIbEu1+f4hFK805PtiI45P9x70pLHIMiPjpPLPsIQNFkDfhTvmvrKYXI ellE4GoG5N2enMVNHkLfvhjDB3Dt38lZhd8aPGaHN3NJBamGx4fvlCUbf4BPBuki9CH6/645Ogl+N kx0AV3bvETPNgqfNrJRqevmPQ0hqIC/wvscOlwyOrWZXwikMGqru44kLItdog3pHf/rn1rYW9xsGH j6iRlwXe4CgcT0gSloHWPm02kNzBpU6RB6F3WHbKvDbbr0WvIioD+aF5cOkhNjz2C8Tt95Wjmp/Bn 0+MsB++w==; Received: from mail-pl1-x642.google.com ([2607:f8b0:4864:20::642]) by casper.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gG3NW-0008Nq-Nw for linux-arm-kernel@lists.infradead.org; Fri, 26 Oct 2018 14:46:25 +0000 Received: by mail-pl1-x642.google.com with SMTP id t6-v6so615840plo.9 for ; Fri, 26 Oct 2018 07:46:12 -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=n0i8hVr1HP7XLYiUrhAKpcC+p7UJ+a7PvBsZMlOyWQg=; b=Jyj6k50fMheXG0QrecuU6ptwpUp49kRk1iermMfawhZOURbTZPrMz0RSVUQN63lVky 0g3GYJ5kcVuv9Rth752gPEoF8TPJj8q0cJ/DwFIJ4S5OqZNgTAx9T85/LN4JhUTAuLfq U8vg4lBvc3uiUshTqaq5N34JlRMfC9O+GNwxY= 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=n0i8hVr1HP7XLYiUrhAKpcC+p7UJ+a7PvBsZMlOyWQg=; b=EC4ADT0E5adNn4KLSpXqGWecv+PU5G0V17bRwZscvMyCjuCIoT3ASekA70uopSfj2E Ibqrn1nCQP+2TZ3roRQJyfsPWwVaNbJlrJ/TxmttaI9WUwuup4NLVsF7mATvavghCHAD ntPIWQHjtuYl4n47TP8/kPKxfdQvg2NFdpIh1OfQMtWV8Oz+v/9EVo1y1DMqocTNsz9r B6WbX2F9/SrqwTuvHwGPMcybHuUu820QnYdFJgmkZMgGLrw1FdRsz7k1Zi/T9zxY4WHG uI7a+RDUr306f3NM7RbGKoB5ilINHXVsGjfeItTzXoJw9ha0H7qVRIVZbMwcjDdp4u3Z bgDg== X-Gm-Message-State: AGRZ1gIKSwaRqJ08j3TKu52lC8tN3qpCAHTDcUzESYaoQWkASMdnR1ug niJHyPHdvXqNQLqv7psUUI3gDg== X-Google-Smtp-Source: AJdET5dlKpiD4p4HlpJuoB3vwRCoSCL+d2k+aWjgIKETuEcEw3+TUhPBfyKp6hMumO9lOdckqFBJfw== X-Received: by 2002:a17:902:8342:: with SMTP id z2-v6mr3744544pln.147.1540565171026; Fri, 26 Oct 2018 07:46:11 -0700 (PDT) Received: from localhost.localdomain ([27.7.51.1]) by smtp.gmail.com with ESMTPSA id z22-v6sm12044467pgv.24.2018.10.26.07.46.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 Oct 2018 07:46:10 -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 v3 21/25] clk: sunxi-ng: a64: Add min and max rate for PLL_MIPI Date: Fri, 26 Oct 2018 20:13:40 +0530 Message-Id: <20181026144344.27778-22-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20181026144344.27778-1-jagan@amarulasolutions.com> References: <20181026144344.27778-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181026_154622_778600_4185AA5B X-CRM114-Status: GOOD ( 15.69 ) 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 Tested-by: Jagan Teki --- Changes for v3: - collect Stephen Ack - add tested credit Changes for v2: - none 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",