From patchwork Mon Dec 10 16:17:27 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 87 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-wm1-f71.google.com (cartago.priv [10.11.12.1]) by cassiopea (Postfix) with ESMTPS id 33F5A2E54A3 for ; Mon, 10 Dec 2018 17:18:11 +0100 (CET) Received: by mail-wm1-f71.google.com with SMTP id t199sf4772580wmd.3 for ; Mon, 10 Dec 2018 08:18:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1544458691; cv=pass; d=google.com; s=arc-20160816; b=NQ5Z8Frb7N2QVOvHhQCgsLmT1bfFHnYJkN81W6DJ1y01XEybTFJMMmVfsPI2CpENCf AxoZSAzX37S5kZxHZ70Z+jyZ0KfZTzGCBjsFcymnap9dhgazLv3MzEbIfhDXBsMS4Nsb BNOERUE9tuTmAO2Djct8n414ch4NvdtTfTbx4iHUme+ZkbiWJpNMAMjVG+mdMFAgQRa7 iZADN1luFgZ3Ar1CI3BGt66gB5mTTxmRME/H0Ok7RlG5l2dvUO1X2yk4gbX2VbobRjQj ezQMs6l0r1BsXDF8slw9f3u+acVBmgcgRHUiqpTreWuF2PPdR2kLCTj6AfCAV8BFscJu g1VQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=SS22PqBK8tWsdyn/FHAwZUavV4dNBBIV2/QUJd77h4k=; b=g7wrZ7e3cHOSuoCfH5tFNvmUTfuMwnvB7ZAxfM0bMQvkCEbcYzgm9LcUMWFY7/yJza GmWG9JNghkwuI8Xe0gufNCylXDVedfeJ5sp7mBBIOj+z0UNbElUF2K9fl6dFveZZznpM dFsqZgP/e3ITvmiU3EH1qWmDetsK6K5ZGWow/e5AsiXlDr7pDphn670suXdLdl/21ygR b10SweNco7Spvo4pf7tAyqFfLbgk833fBmfLFTCks62hOpxQyArCLGa2mK4iReFL1VB+ lPXLkSUwnE6c3OW4F3qX6+r4qdgQM3Var9XiULyWJdOslFY7SeX4+Zp2AkZ215Ne7mTa /m4g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=oMpl0ALA; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com 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:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=SS22PqBK8tWsdyn/FHAwZUavV4dNBBIV2/QUJd77h4k=; b=hO5goWy7hk/q6wIh4uaz0iaNUFaWrwCl1j1o47gh65f44gWK93r1fHGp343CnbV4eg DgeP0WlB76POOmJm+yPu7Y0bl9c4NoLfc4fOgm0WeKw6v5j4DKGVdaRzBl4aLearoEBH UlHwxZCTCSQE/UDXsBcIIpamGKnQm5JheMAwU= 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:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=SS22PqBK8tWsdyn/FHAwZUavV4dNBBIV2/QUJd77h4k=; b=BtE7GFJr8P8T1MW6nNWMQ0aES3EpiNkOMew/2YFDcH4GwEi3Ol0u8F5diVt56xdnOh aEv7GsyeM2VIbKxZuIdpMNgCVVCybZu9eJGkQSc3QLjC0XsDYNdgQjqYbhtxai9KzM19 OSYcUDTK5Ujjo2rMcqaGzG1BYjWQ15bATizcbkE34jeRIrLOhkTY5wxVSjENwBvRfZum WrsiS/5DWPs7K0ST1XDe2wdNI4M4SoMPWhqHq/w5yiJh9K1rWYFVoMrDdauwPRj4ZGR+ DlgmAlL/kwRX26o1NMEO9FIy5mxxcUcmJSwO/wPfjxee7boZt3VMk8F5V9HeZhsq2YHx 4eHQ== X-Gm-Message-State: AA+aEWb4IJq1Ruj/dttfjdkxNTiuKC/1evuhN5mJAvMOfZ7hTTOPOqPD aFREXjexfXCEEuQ8kk+erWzV5YSY X-Google-Smtp-Source: AFSGD/XA4+rGSCfdSx0xnD1gkwhXP1qp9BHAL6RGtJBDV7PcncSRYYOIa1UZ0k+rDTV5r+upI4pRyQ== X-Received: by 2002:a1c:3ad3:: with SMTP id h202mr1383990wma.25.1544458690901; Mon, 10 Dec 2018 08:18:10 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a1c:788:: with SMTP id 130ls1886269wmh.6.canary-gmail; Mon, 10 Dec 2018 08:18:10 -0800 (PST) X-Received: by 2002:a1c:1593:: with SMTP id 141mr5010631wmv.85.1544458690558; Mon, 10 Dec 2018 08:18:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544458690; cv=none; d=google.com; s=arc-20160816; b=NzCTNvs/fZHwzRoEb6rEryZkU7sBbGMBKP1RXTP43CNnbkuxnxsyo6WfYuBJtjNjF/ nCkJOYuNeSBum7fc4HSzhdeYRrzsoav4cTKOZaUgbBfLE4jL22VGmSnu0D/UoJoVPaSq yOURP4zBX5brXvQH4m+WrZBbzl9ft7SiL12E4z8xZotogFMKJnqQzj1Y8A8kX8HjPLgI SXJd7pw5dq0aMnU3KTm3Io2qO0SQo3rzG3u9WLrKHH9abZ/Jt4h7zE/Uma8bg5t6+WyF SciXjyWxUz6wLEbWz1TiOFsUQdpn8ZdgHpWk5Gp4I9XF5QiOZT83YqEDo+uwPl4aIvqp hs3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=SS22PqBK8tWsdyn/FHAwZUavV4dNBBIV2/QUJd77h4k=; b=BASnU+XyXDkQKWeNgafGehoFVGN0C0ORch8J7culGxe458xWwG8y63+rlx7Fpzwkuo 21ouDo8WJrPT6cmmu6WkcCmsRRy20tyFDKgbQKgkkAv0gS0XAtzdmgm+l1yToA1jH0By HfpIA4EfGmuSbYjm9fPyyC6s8CEI7JapXV4TFtvPkzBVuOvnPmAK96gBf6b0rux+NB0e hgz2CutADkMV8uZ3Uvi4SkJ0Ox9fa2xnCdAdiy9Ya/n0cPvtqPfWGLkbmjD/Mhf0xW+N jmfj01Q8ZLT3n9NKjF+0TLWZHIG1GVRt106YnM2bannCOrd8D13FjFRgsDbuYeVoV7qD +C8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=oMpl0ALA; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id b125sor7765565wmd.19.2018.12.10.08.18.10 for (Google Transport Security); Mon, 10 Dec 2018 08:18:10 -0800 (PST) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a1c:990c:: with SMTP id b12mr11710901wme.106.1544458690275; Mon, 10 Dec 2018 08:18:10 -0800 (PST) Received: from localhost.localdomain (ip-162-59.sn-213-198.clouditalia.com. [213.198.162.59]) by smtp.gmail.com with ESMTPSA id b13sm8397503wrn.28.2018.12.10.08.18.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Dec 2018 08:18:09 -0800 (PST) From: Jagan Teki To: Maxime Ripard , Chen-Yu Tsai , Michael Turquette , Stephen Boyd Cc: linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Michael Trimarchi , linux-sunxi , linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH v5 15/17] clk: sunxi-ng: a64: Add minimum rate for PLL_MIPI Date: Mon, 10 Dec 2018 21:47:27 +0530 Message-Id: <20181210161729.29720-16-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20181210161729.29720-1-jagan@amarulasolutions.com> References: <20181210161729.29720-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=oMpl0ALA; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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 181b599dc163..b623c8150b4f 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, /* Actual rate is 500MHz */ .common = { .reg = 0x040, .hw.init = CLK_HW_INIT("pll-mipi", "pll-video0",