From patchwork Tue Sep 1 04:07:56 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hoegeun Kwon X-Patchwork-Id: 11747349 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9D665166C for ; Tue, 1 Sep 2020 04:09:26 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 74CB32087D for ; Tue, 1 Sep 2020 04:09:26 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="hwT7YReb"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="PoPI/6xm" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 74CB32087D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=samsung.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id: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=uB89Q70dJ+j2IdUTh2Kwm+R+vzGnaiTFheWNTZ2eJhY=; b=hwT7YReb7WSEU9/F3Ybc0P5D/N MXYDRJDeh68xQnJoQnCu20vTSbLs8xojIDukiLZ4oDY45e2bTwiykt7M5MkuCC0Rypbgi5xqg72Pz SrFpOP+sRrM6+I+vtFeAKGnTJALk/puVCjD8Zk3sAzIAEYckgz3RP7TUpptKRtI7ocYCJFdTCCts1 BMyUBjRT2hsk9IbakyWx32v+/Mcqeod+b1MMbHD9NAu73mqnGvQ1fFlqAlay9P2LDTr2mtcDvjE1E pMX7lcNB9dPM+/bQPsXnJchkV5aCWCHvU/NsBmfwEsNImXuH7xtXeYmHnXmRbOdQRpEmjzndc9uW3 kE0G9Vxg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kCxbZ-0006XA-4Y; Tue, 01 Sep 2020 04:09:09 +0000 Received: from mailout3.samsung.com ([203.254.224.33]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kCxbN-0006RM-Uq for linux-arm-kernel@lists.infradead.org; Tue, 01 Sep 2020 04:09:00 +0000 Received: from epcas1p3.samsung.com (unknown [182.195.41.47]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20200901040854epoutp0307e32a860e61d5ff8dcc194570d35a15~wjWV3wIVh0505205052epoutp03V for ; Tue, 1 Sep 2020 04:08:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20200901040854epoutp0307e32a860e61d5ff8dcc194570d35a15~wjWV3wIVh0505205052epoutp03V DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1598933334; bh=4HNiRPvHIxvIrfu+Vr7XKCEWbAFVY5lm4GOrgQszxFY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PoPI/6xm5dN8RhNtiHwT8Ol3tUIH/TFWZUywtf1s9drJSyxjFeedas6f8/bCaZ1YG 9js5a6K2ItUD0VqeQouzLdktxJiFgjYwJpjzygJu8NCsQKqlDYWrS/PpCnjOnQo+gr 2HCKvk62LvWIMBiPyT2WAzd7GE4aJ2wHlfRvqtNA= Received: from epsnrtp2.localdomain (unknown [182.195.42.163]) by epcas1p4.samsung.com (KnoxPortal) with ESMTP id 20200901040853epcas1p412aa2ed62c0564f8bcdc4f734528433d~wjWVOQd9_2818028180epcas1p4z; Tue, 1 Sep 2020 04:08:53 +0000 (GMT) Received: from epsmges1p1.samsung.com (unknown [182.195.40.157]) by epsnrtp2.localdomain (Postfix) with ESMTP id 4BgYTv3bmGzMqYkb; Tue, 1 Sep 2020 04:08:51 +0000 (GMT) Received: from epcas1p2.samsung.com ( [182.195.41.46]) by epsmges1p1.samsung.com (Symantec Messaging Gateway) with SMTP id 33.75.18978.359CD4F5; Tue, 1 Sep 2020 13:08:51 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas1p2.samsung.com (KnoxPortal) with ESMTPA id 20200901040851epcas1p28f443c0e819bea756ebf9296491b32da~wjWSf0De60064000640epcas1p2-; Tue, 1 Sep 2020 04:08:51 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20200901040851epsmtrp213eeca8988fba7dd2254108c7aa753ed~wjWSe0f6K1885018850epsmtrp2h; Tue, 1 Sep 2020 04:08:51 +0000 (GMT) X-AuditID: b6c32a35-603ff70000004a22-a7-5f4dc953d2cd Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id EA.03.08382.259CD4F5; Tue, 1 Sep 2020 13:08:50 +0900 (KST) Received: from localhost.localdomain (unknown [10.113.111.64]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200901040850epsmtip1818c6a833fa9c5d5fb87a78f54c27d6d~wjWSHNKlw0650806508epsmtip1F; Tue, 1 Sep 2020 04:08:50 +0000 (GMT) From: Hoegeun Kwon To: nsaenzjulienne@suse.de, eric@anholt.net, maxime@cerno.tech, stefan.wahren@i2se.com, dave.stevenson@raspberrypi.com Subject: [PATCH v2 1/4] clk: bcm: rpi: Add register to control pixel bvb clk Date: Tue, 1 Sep 2020 13:07:56 +0900 Message-Id: <20200901040759.29992-2-hoegeun.kwon@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200901040759.29992-1-hoegeun.kwon@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrDJsWRmVeSWpSXmKPExsWy7bCmnm7wSd94gwkTJCzW9h5lsXg7dzGL xfwj51gtrnx9z2ZxoPEyo8X75V1sFjuvrGWx2PT4GqvFx557rBaXd81hs5h4ewO7xYwf/xgt Lp5ytdg2azmbxbpbr9ksWvceYbf4d20jUMOKG2wWj6beZ3QQ9mh6f4zN4/2NVnaPWffPsnnc OXeezWPnrLvsHltvmXpsWtXJ5nG/+ziTx+Yl9R6tR3+xePRtWcXosfl0tcfnTXIBvFHZNhmp iSmpRQqpecn5KZl56bZK3sHxzvGmZgaGuoaWFuZKCnmJuam2Si4+AbpumTlAbyoplCXmlAKF AhKLi5X07WyK8ktLUhUy8otLbJVSC1JyCiwL9IoTc4tL89L1kvNzrQwNDIxMgQoTsjPe3ulg K1jIVrF02UumBsZ5rF2MnBwSAiYSk3+uYwGxhQR2MErcfMzRxcgFZH9ilLh+vIcZwvnGKLHt zDugDg6wjm9tsRDxvYwS78+tYYFwPjNKLG9dwQgyik1AV+Jrz3UmEFtEoEJi3/PrjCBFzAJT mSWezlkGlhAW8JH4/u4/G4jNIqAq8elwL9gdvAK2EsvOf2OEuE9eYvWGA8wgNqeAncT1JW/B tkkI3OCQ+LluERvESS4Sl4/KQtQLS7w6voUdwpaS+PxuLxuEXSxxZeYrqN4GRon+ibOhiowl 9i+dzAQyh1lAU2L9Ln2IsKLEzt9zwW5gFuCTePe1B+p7XomONiGIEjWJZw0HoMEoI3GqdzkT hO0hcWbBTmigTGSU2PzmGdMERrlZCBsWMDKuYhRLLSjOTU8tNiwwRI6xTYzgZKxluoNx4tsP eocYmTgYDzFKcDArifAe2OUdL8SbklhZlVqUH19Ump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V3e8UK8KYmVValF+fFFpTmpxYcYpTlYlMR5bxQujBMSSE8sSc1OTS1ILYLJ MnFwSjUwHbq2UEvRd81Z9Z5GyQddRV0nWmafZjuo+XXyroYHr6o7Et//Zzpy+rjGy+MerJs+ 7oz3/WC4zbKi41borwaJFIWXtXnLWSV9JI7f4mneY6tUq1Fg+NFlrderkKU7lsza4fgrYNJt wdfHZj6YP1NqwYn8K/c67nXUu0+5dSbWNU3KSGjZndOWuwIVVNMX3b1mo7uon/GDR/qW9DN3 N64Id/gxa5l4xfPzm6M7XkzU/vWv6GlZ3udKGd1toq/kX78PW8rPtu1nMEvF30+NvF02n/ft M7/Um7PEfHXUg6IfzqWe5iJfHk7anRL7S/KwUPTfsA2M2vPWX5kpz5j07daFkpauR7vNXKJS msxKWL5zzlFiKc5INNRiLipOBAB9W2lYCAMAAA== X-CMS-MailID: 20200901040851epcas1p28f443c0e819bea756ebf9296491b32da X-Msg-Generator: CA X-Sendblock-Type: SVC_REQ_APPROVE CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20200901040851epcas1p28f443c0e819bea756ebf9296491b32da References: <20200901040759.29992-1-hoegeun.kwon@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200901_000858_531497_157C0C12 X-CRM114-Status: GOOD ( 18.92 ) X-Spam-Score: -5.2 (-----) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-5.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [203.254.224.33 listed in wl.mailspike.net] -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at https://www.dnswl.org/, high trust [203.254.224.33 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders -0.0 DKIMWL_WL_HIGH DKIMwl.org - Whitelisted High sender X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, tim.gover@raspberrypi.com, kdasu.kdev@gmail.com, sboyd@kernel.org, mturquette@baylibre.com, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, phil@raspberrypi.com, robh+dt@kernel.org, bcm-kernel-feedback-list@broadcom.com, linux-rpi-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, hoegeun.kwon@samsung.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org To use QHD or higher, we need to modify the pixel_bvb_clk value. So add register to control this clock. Signed-off-by: Hoegeun Kwon Reviewed-by: Maxime Ripard Acked-by: Nicolas Saenz Julienne Tested-by: Nicolas Saenz Julienne --- drivers/clk/bcm/clk-raspberrypi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/bcm/clk-raspberrypi.c b/drivers/clk/bcm/clk-raspberrypi.c index 5cc82954e1ce..f89b9cfc4309 100644 --- a/drivers/clk/bcm/clk-raspberrypi.c +++ b/drivers/clk/bcm/clk-raspberrypi.c @@ -271,6 +271,7 @@ static int raspberrypi_discover_clocks(struct raspberrypi_clk *rpi, case RPI_FIRMWARE_CORE_CLK_ID: case RPI_FIRMWARE_M2MC_CLK_ID: case RPI_FIRMWARE_V3D_CLK_ID: + case RPI_FIRMWARE_PIXEL_BVB_CLK_ID: hw = raspberrypi_clk_register(rpi, clks->parent, clks->id); if (IS_ERR(hw)) From patchwork Tue Sep 1 04:07:57 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hoegeun Kwon X-Patchwork-Id: 11747353 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id EDA0A109B for ; Tue, 1 Sep 2020 04:10:46 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C644E20719 for ; Tue, 1 Sep 2020 04:10:46 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="zHim7mug"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="hf8DGWlH" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C644E20719 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=samsung.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id: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=WDacNqaqH3rEz2hRcIrqXW55g5QJ9gcw+2n+8z35CQs=; b=zHim7mugsdAD9X3hxS60M3haa/ g/3HHg5X0JHz/Yjdh1TsgnkziNsbhTnVfJYu2FNLnT2L00xX9rmA/rbjnBf2lNL6T62hudkssDQ5P CUi1kpyGBRePGbsaZBEwTsed891Hw2ImQeVXVpMtXyGvfzUmFVixp7K3Esf6Do9l9I8OXb1KdCrHr uEZhj1SK6fGTWnQMTNhPCaGSYpLngp2+j7JIks0zVf3qqbqnvf1cToU0n/0X9xDLnkeASY3IijSH0 OsYjkCfbTp7Q8FtU3xjzLxtP3PoIYnspIcz3rClbsjMrh+VqEVTHiI+HA+FC09lU2Fu0ozvfOtIhC BpNGY/xw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kCxbV-0006VH-0t; Tue, 01 Sep 2020 04:09:05 +0000 Received: from mailout4.samsung.com ([203.254.224.34]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kCxbN-0006RO-OZ for linux-arm-kernel@lists.infradead.org; Tue, 01 Sep 2020 04:08:59 +0000 Received: from epcas1p4.samsung.com (unknown [182.195.41.48]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20200901040855epoutp04878fb0fade5fe99764dfa40f9b412677~wjWWfrext2218722187epoutp04G for ; Tue, 1 Sep 2020 04:08:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20200901040855epoutp04878fb0fade5fe99764dfa40f9b412677~wjWWfrext2218722187epoutp04G DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1598933335; bh=aV0x4n6wQckii0JDBHb/o4LkoOEhIHxl7xns9Eg3VhU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hf8DGWlHDtIiMeG73eyxSzFBAYzmoxTvY394InsdbfmJjaJ5f0t7J+sHrE5L2sryZ TvpMQBjHNoj0o7RLAuSUfYZMn+gIPS5uRmc/juNazbFqunjeGc5bdjcHlTuvhLGbhN lfJlb0UK9+CmGXZzVPhiNPy6CVBSEf/K3cE8sgOk= Received: from epsnrtp2.localdomain (unknown [182.195.42.163]) by epcas1p4.samsung.com (KnoxPortal) with ESMTP id 20200901040854epcas1p443d27e0bcaca9af33ddbfd8cfc4dff5c~wjWWE9Ni-3231032310epcas1p4a; Tue, 1 Sep 2020 04:08:54 +0000 (GMT) Received: from epsmges1p3.samsung.com (unknown [182.195.40.154]) by epsnrtp2.localdomain (Postfix) with ESMTP id 4BgYTv4sNpzMqYkZ; Tue, 1 Sep 2020 04:08:51 +0000 (GMT) Received: from epcas1p3.samsung.com ( [182.195.41.47]) by epsmges1p3.samsung.com (Symantec Messaging Gateway) with SMTP id AB.E7.29173.359CD4F5; Tue, 1 Sep 2020 13:08:51 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas1p3.samsung.com (KnoxPortal) with ESMTPA id 20200901040851epcas1p3124094e38175758b2310bdae6d76793c~wjWSq0pmZ1717817178epcas1p3i; Tue, 1 Sep 2020 04:08:51 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200901040851epsmtrp1d08ddbf21bbdc2721eaaf5d97955ed9e~wjWSpx1NR3200332003epsmtrp18; Tue, 1 Sep 2020 04:08:51 +0000 (GMT) X-AuditID: b6c32a37-9b7ff700000071f5-92-5f4dc9532ba0 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 5C.03.08382.359CD4F5; Tue, 1 Sep 2020 13:08:51 +0900 (KST) Received: from localhost.localdomain (unknown [10.113.111.64]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200901040850epsmtip135477003d71b962546776499199b06ce~wjWSWXrx90868108681epsmtip1i; Tue, 1 Sep 2020 04:08:50 +0000 (GMT) From: Hoegeun Kwon To: nsaenzjulienne@suse.de, eric@anholt.net, maxime@cerno.tech, stefan.wahren@i2se.com, dave.stevenson@raspberrypi.com Subject: [PATCH v2 2/4] drm/vc4: hdmi: Add pixel bvb clock control Date: Tue, 1 Sep 2020 13:07:57 +0900 Message-Id: <20200901040759.29992-3-hoegeun.kwon@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200901040759.29992-1-hoegeun.kwon@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrLJsWRmVeSWpSXmKPExsWy7bCmvm7wSd94g3lz1CzW9h5lsXg7dzGL xfwj51gtrnx9z2ZxoPEyo8X75V1sFjuvrGWx2PT4GqvFx557rBaXd81hs5h4ewO7xYwf/xgt Lp5ytdg2azmbxbpbr9ksWvceYbf4d20jUMOKG2wWj6beZ3QQ9mh6f4zN4/2NVnaPWffPsnnc OXeezWPnrLvsHltvmXpsWtXJ5nG/+ziTx+Yl9R6tR3+xePRtWcXosfl0tcfnTXIBvFHZNhmp iSmpRQqpecn5KZl56bZK3sHxzvGmZgaGuoaWFuZKCnmJuam2Si4+AbpumTlAbyoplCXmlAKF AhKLi5X07WyK8ktLUhUy8otLbJVSC1JyCiwL9IoTc4tL89L1kvNzrQwNDIxMgQoTsjP+fVrN VLBFtOL4jE7WBsZuoS5GTg4JAROJgy/2sXUxcnEICexglPjQ/4MdwvnEKLH02QeozDdGiWPf pgE5HGAtO0/UQcT3MkpcmH6AFcL5zCgx5/55NpC5bAK6El97rjOB2CICFRL7nl9nBCliFpjK LPF0zjKwhLCAk8TOLa0sIDaLgKrEokP/GUFsXgFbiWdTO5ggDpSXWL3hADOIzSlgJ3F9yVsW kEESAlc4JLb/PM8McZKLxNOTXBD1whKvjm9hh7ClJF72t0HZxRJXZr6C6m1glOifOBsqYSyx f+lkJpA5zAKaEut36UOEFSV2/p4Ldg+zAJ/Eu689rBCreCU62qBhpybxrAHkeRBbRuJU73Ko kz0kbr47xwwJlImMEo8XX2WewCg3C2HDAkbGVYxiqQXFuempxYYFxshRtokRnI61zHcwTnv7 Qe8QIxMH4yFGCQ5mJRHeA7u844V4UxIrq1KL8uOLSnNSi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pTmpxYcYpTlYlMR5bxQujBMSSE8sSc1OTS1ILYLJ MnFwSjUwuYs5+qStMyot2FV2r/mZUueJnrfXWq+YuwZY9zYz5FyI0TV9WanTtH9jHvfS2Z/f sL0KjNC9/3rllQkb+/cXRZVuMzd+vNzDa6epmfJRCZfNMwW6GDcs6dsZnPPyy8M/q+pjua8a FoWZTVFseRfLrJQ696uHgemU2nml+TtYNm1dUG5v5c/qufrFGRNVmT2lksdeFXufZP925Zjz iRUKvAk/0jY/tlkZk7H+HX+0u77DmVv85068lX5+O/nyO9+VpU8CziqV7d6b/+lQzZ6sP7O+ tt64PmXpx5pgK5a1xlm7Zx2Ue3DActn+gONOW9+zVzwv+7/axTg9zfVLUeAfvgr/F9EMAX3r H7Rq7z+3VomlOCPRUIu5qDgRAIXJgroIAwAA X-CMS-MailID: 20200901040851epcas1p3124094e38175758b2310bdae6d76793c X-Msg-Generator: CA X-Sendblock-Type: SVC_REQ_APPROVE CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20200901040851epcas1p3124094e38175758b2310bdae6d76793c References: <20200901040759.29992-1-hoegeun.kwon@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200901_000858_201925_D9A24FB0 X-CRM114-Status: GOOD ( 22.12 ) X-Spam-Score: -5.2 (-----) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-5.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at https://www.dnswl.org/, high trust [203.254.224.34 listed in list.dnswl.org] 0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [203.254.224.34 listed in wl.mailspike.net] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders -0.0 DKIMWL_WL_HIGH DKIMwl.org - Whitelisted High sender X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, tim.gover@raspberrypi.com, kdasu.kdev@gmail.com, sboyd@kernel.org, mturquette@baylibre.com, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, phil@raspberrypi.com, robh+dt@kernel.org, bcm-kernel-feedback-list@broadcom.com, linux-rpi-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, hoegeun.kwon@samsung.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org There is a problem that the output does not work at a resolution exceeding FHD. To solve this, we need to adjust the bvb clock at a resolution exceeding FHD. Signed-off-by: Hoegeun Kwon --- drivers/gpu/drm/vc4/vc4_hdmi.c | 25 +++++++++++++++++++++++++ drivers/gpu/drm/vc4/vc4_hdmi.h | 1 + 2 files changed, 26 insertions(+) diff --git a/drivers/gpu/drm/vc4/vc4_hdmi.c b/drivers/gpu/drm/vc4/vc4_hdmi.c index 95ec5eedea39..eb3192d1fd86 100644 --- a/drivers/gpu/drm/vc4/vc4_hdmi.c +++ b/drivers/gpu/drm/vc4/vc4_hdmi.c @@ -80,6 +80,7 @@ # define VC4_HD_M_ENABLE BIT(0) #define CEC_CLOCK_FREQ 40000 +#define VC4_HSM_MID_CLOCK 149985000 static int vc4_hdmi_debugfs_regs(struct seq_file *m, void *unused) { @@ -380,6 +381,7 @@ static void vc4_hdmi_encoder_post_crtc_powerdown(struct drm_encoder *encoder) HDMI_WRITE(HDMI_VID_CTL, HDMI_READ(HDMI_VID_CTL) & ~VC4_HD_VID_CTL_ENABLE); + clk_disable_unprepare(vc4_hdmi->pixel_bvb_clock); clk_disable_unprepare(vc4_hdmi->hsm_clock); clk_disable_unprepare(vc4_hdmi->pixel_clock); @@ -638,6 +640,23 @@ static void vc4_hdmi_encoder_pre_crtc_configure(struct drm_encoder *encoder) return; } + ret = clk_set_rate(vc4_hdmi->pixel_bvb_clock, + (hsm_rate > VC4_HSM_MID_CLOCK ? 150000000 : 75000000)); + if (ret) { + DRM_ERROR("Failed to set pixel bvb clock rate: %d\n", ret); + clk_disable_unprepare(vc4_hdmi->hsm_clock); + clk_disable_unprepare(vc4_hdmi->pixel_clock); + return; + } + + ret = clk_prepare_enable(vc4_hdmi->pixel_bvb_clock); + if (ret) { + DRM_ERROR("Failed to turn on pixel bvb clock: %d\n", ret); + clk_disable_unprepare(vc4_hdmi->hsm_clock); + clk_disable_unprepare(vc4_hdmi->pixel_clock); + return; + } + if (vc4_hdmi->variant->reset) vc4_hdmi->variant->reset(vc4_hdmi); @@ -1593,6 +1612,12 @@ static int vc5_hdmi_init_resources(struct vc4_hdmi *vc4_hdmi) return PTR_ERR(vc4_hdmi->audio_clock); } + vc4_hdmi->pixel_bvb_clock = devm_clk_get(dev, "bvb"); + if (IS_ERR(vc4_hdmi->pixel_bvb_clock)) { + DRM_ERROR("Failed to get pixel bvb clock\n"); + return PTR_ERR(vc4_hdmi->pixel_bvb_clock); + } + vc4_hdmi->reset = devm_reset_control_get(dev, NULL); if (IS_ERR(vc4_hdmi->reset)) { DRM_ERROR("Failed to get HDMI reset line\n"); diff --git a/drivers/gpu/drm/vc4/vc4_hdmi.h b/drivers/gpu/drm/vc4/vc4_hdmi.h index 0806c6d9f24e..63c6f8bddf1d 100644 --- a/drivers/gpu/drm/vc4/vc4_hdmi.h +++ b/drivers/gpu/drm/vc4/vc4_hdmi.h @@ -147,6 +147,7 @@ struct vc4_hdmi { struct clk *pixel_clock; struct clk *hsm_clock; struct clk *audio_clock; + struct clk *pixel_bvb_clock; struct reset_control *reset; From patchwork Tue Sep 1 04:07:58 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hoegeun Kwon X-Patchwork-Id: 11747347 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5CE1A722 for ; Tue, 1 Sep 2020 04:09:26 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 336AB208A9 for ; Tue, 1 Sep 2020 04:09:26 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="JxeK2+N8"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="km9hurNk" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 336AB208A9 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=samsung.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id: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=KCt2EIgg6adIT1sWhJBXo+tnhdh/cP2KadISsUth3cE=; b=JxeK2+N8RRihltT161/Y+R5tWf eKmw7UZnAcIBDrVd3gweTbxQqazA9o0kmMMNvSmPXKbAVeipjiSwIpn+rfMmXWoYuG32KjVN71Yjw Wn0vgNRp6C//Ct74nO9py13Th00f7Haf75XCQYHW4uVUPXUwRBGrrEUzGrqTgMIvnz5IYkzFh8o/z nNDdw792yndLBOYom2QlN39sJQgB2uU0uMH981OYoH47dAmQggdPC/wZr0lO+CCyxsd1CnLTjqSd9 DjKn50o607CU/fnTP8eFo3wbYDU3gM5CedJM9wQimUa6rNowO+2iFHv0mANkWQ+4PSvJd4tjwTMW4 PUnTHSJQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kCxbd-0006ZH-25; Tue, 01 Sep 2020 04:09:13 +0000 Received: from mailout1.samsung.com ([203.254.224.24]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kCxbP-0006RU-RG for linux-arm-kernel@lists.infradead.org; Tue, 01 Sep 2020 04:09:01 +0000 Received: from epcas1p2.samsung.com (unknown [182.195.41.46]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20200901040856epoutp01fddf8d4eef9ff65abe7c62fb4adfc7c3~wjWXe7j2b0623306233epoutp01k for ; Tue, 1 Sep 2020 04:08:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20200901040856epoutp01fddf8d4eef9ff65abe7c62fb4adfc7c3~wjWXe7j2b0623306233epoutp01k DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1598933336; bh=2N0QNCg96aCPb/6zZVIxgmus5Y9FFsxp8i055e9pYFw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=km9hurNka1oOLLVRGIwWtzH0MzVw0LlreDQKHL9moekbSwePAYfw9fsb44h4ZpOLA rNeaBtRkHctIyuBT4NlN4oRaOm8FuYvbKPYf2rc/+2dmhhNczE4OSAsOVhQZojAtGp eQFKsWTm2o5ybxjhgeuhj0/Rnj461DfiQd/D2niw= Received: from epsnrtp1.localdomain (unknown [182.195.42.162]) by epcas1p3.samsung.com (KnoxPortal) with ESMTP id 20200901040855epcas1p3995571d0cff74022f0d9a54e30bbd6dd~wjWWfgl811751617516epcas1p3z; Tue, 1 Sep 2020 04:08:55 +0000 (GMT) Received: from epsmges1p2.samsung.com (unknown [182.195.40.157]) by epsnrtp1.localdomain (Postfix) with ESMTP id 4BgYTw0KkRzMqYm5; Tue, 1 Sep 2020 04:08:52 +0000 (GMT) Received: from epcas1p2.samsung.com ( [182.195.41.46]) by epsmges1p2.samsung.com (Symantec Messaging Gateway) with SMTP id 40.66.19033.359CD4F5; Tue, 1 Sep 2020 13:08:51 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas1p1.samsung.com (KnoxPortal) with ESMTPA id 20200901040851epcas1p1456e8561c7a332811ec7ddc941ded2bd~wjWS-9G_F0326203262epcas1p1Y; Tue, 1 Sep 2020 04:08:51 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20200901040851epsmtrp26c8892f0f76af1ab210ffa107291ab90~wjWS_lXCx1885018850epsmtrp2i; Tue, 1 Sep 2020 04:08:51 +0000 (GMT) X-AuditID: b6c32a36-159ff70000004a59-f1-5f4dc953bf14 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 9D.03.08382.359CD4F5; Tue, 1 Sep 2020 13:08:51 +0900 (KST) Received: from localhost.localdomain (unknown [10.113.111.64]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200901040851epsmtip17fb5c2606195ad4c2594584607623b84~wjWSkgwx70875308753epsmtip1n; Tue, 1 Sep 2020 04:08:51 +0000 (GMT) From: Hoegeun Kwon To: nsaenzjulienne@suse.de, eric@anholt.net, maxime@cerno.tech, stefan.wahren@i2se.com, dave.stevenson@raspberrypi.com Subject: [PATCH v2 3/4] dt-bindings: display: vc4: hdmi: Add bvb clock-names property Date: Tue, 1 Sep 2020 13:07:58 +0900 Message-Id: <20200901040759.29992-4-hoegeun.kwon@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200901040759.29992-1-hoegeun.kwon@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrLJsWRmVeSWpSXmKPExsWy7bCmnm7wSd94g2VbrS3W9h5lsXg7dzGL xfwj51gtrnx9z2ZxoPEyo8X75V1sFjuvrGWx2PT4GqvFx557rBaXd81hs5h4ewO7xYwf/xgt Lp5ytdg2azmbxbpbr9ksWvceYbf4d20jUMOKG2wWj6beZ3QQ9mh6f4zN4/2NVnaPWffPsnnc OXeezWPnrLvsHltvmXpsWtXJ5nG/+ziTx+Yl9R6tR3+xePRtWcXosfl0tcfnTXIBvFHZNhmp iSmpRQqpecn5KZl56bZK3sHxzvGmZgaGuoaWFuZKCnmJuam2Si4+AbpumTlAbyoplCXmlAKF AhKLi5X07WyK8ktLUhUy8otLbJVSC1JyCiwL9IoTc4tL89L1kvNzrQwNDIxMgQoTsjNezXnM WrCaq2LrnUtsDYxH2LsYOTkkBEwk/h05wdzFyMUhJLCDUeLV5LNsEM4nRomjzUdYQaqEBL4x SqzY5wDTMfHoHhaIor2MEpcnfGGEcD4zSjQcbWEGqWIT0JX42nOdCcQWEaiQ2Pf8OlgRs8BU Zomnc5aBJYQFwiX+H9zNCGKzCKhKPD7RCHQUBwevgK3EjmdQ2+QlVm84ADaTU8BO4vqSt2Cb JQSucEgc23iEDaLIRWLh5k9QtrDEq+NboJ6Tkvj8bi9UvFjiysxXUM0NjBL9E2dDFRlL7F86 mQlkMbOApsT6XfoQYUWJnb/ngt3GLMAn8e5rDytIiYQAr0RHmxBEiZrEs4YDrBC2jMSp3uVM ELaHxPLJE6EhNJFRYm7bHNYJjHKzEDYsYGRcxSiWWlCcm55abFhghBxlmxjB6VjLbA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zhmtDR3MG5f9UHvECMT B+MhRgkOZiUR3gO7vOOFeFMSK6tSi/Lji0pzUosPMUpzsCiJ894oXBgnJJCeWJKanZpakFoE k2Xi4JRqYHLb8efqPNe5Kro3Q5yaPtnuSA5KratSWXj2UuyF68xLfz753+7HyJUtwB70a/qP /ivbP/7XiUlrqt5tcPnnfUumbsvDm+7aFX/517NZ+Sjj92UqW6QeWGx6Ehh7intJtlSeyxLz b+/2sHNWWzsoJjY/yTfQOrnx7hcHn6/2jupfBFqnslo2Om/h/PjYW/uiopNSfZmdyq2vBZ6B ftU6bmu3r82bMffCA9/7ege7M4ybo4Oy7bMsmr0Wa9xwTj98cmnSLGkGYyNRj71sVW13jcyl TFke7RbIn9bwhuWaYzfjXIG3szcXPO2fI1FuydfFd2SjxH2nz3m3nZZWmN4+lvX1U3ry2lmr p+tkyBYsUGIpzkg01GIuKk4EAA0VUUEIAwAA X-CMS-MailID: 20200901040851epcas1p1456e8561c7a332811ec7ddc941ded2bd X-Msg-Generator: CA X-Sendblock-Type: SVC_REQ_APPROVE CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20200901040851epcas1p1456e8561c7a332811ec7ddc941ded2bd References: <20200901040759.29992-1-hoegeun.kwon@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200901_000900_405926_38F09CF0 X-CRM114-Status: GOOD ( 18.84 ) X-Spam-Score: -5.2 (-----) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-5.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at https://www.dnswl.org/, high trust [203.254.224.24 listed in list.dnswl.org] 0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [203.254.224.24 listed in wl.mailspike.net] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders -0.0 DKIMWL_WL_HIGH DKIMwl.org - Whitelisted High sender X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, tim.gover@raspberrypi.com, kdasu.kdev@gmail.com, sboyd@kernel.org, mturquette@baylibre.com, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, phil@raspberrypi.com, robh+dt@kernel.org, bcm-kernel-feedback-list@broadcom.com, linux-rpi-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, hoegeun.kwon@samsung.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org When using a resolution exceeding FHD, bvb clock is required. Add bvb clock-names property. Signed-off-by: Hoegeun Kwon --- .../bindings/display/brcm,bcm2711-hdmi.yaml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/display/brcm,bcm2711-hdmi.yaml b/Documentation/devicetree/bindings/display/brcm,bcm2711-hdmi.yaml index 6091fe3d315b..08cdcc579cf5 100644 --- a/Documentation/devicetree/bindings/display/brcm,bcm2711-hdmi.yaml +++ b/Documentation/devicetree/bindings/display/brcm,bcm2711-hdmi.yaml @@ -40,10 +40,14 @@ properties: - const: hd clocks: - description: The HDMI state machine clock + items: + - description: The HDMI state machine clock + - description: The bvb clock clock-names: - const: hdmi + items: + - const: hdmi + - const: bvb ddc: allOf: @@ -100,8 +104,8 @@ examples: "csc", "cec", "hd"; - clocks = <&firmware_clocks 13>; - clock-names = "hdmi"; + clocks = <&firmware_clocks 13>, <&firmware_clocks 14>; + clock-names = "hdmi", "bvb"; resets = <&dvp 0>; ddc = <&ddc0>; }; From patchwork Tue Sep 1 04:07:59 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hoegeun Kwon X-Patchwork-Id: 11747351 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 07307722 for ; Tue, 1 Sep 2020 04:09:31 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D25932087D for ; Tue, 1 Sep 2020 04:09:30 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="f4QhL/qz"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="YH9rI7+X" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D25932087D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=samsung.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id: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=BtoudCG9w2S4VCUb4Bvvx+X1x1bEVnrNSZZVC4imAhA=; b=f4QhL/qzBN4WFjliKKQGc2yU2H hNt5S09YESgbIRVCn9TwvXF/QUB4eWBarOM834no9B3xfECaskqQY+o5HJy7C3BErD8ZihHE2Wppw VejLBF6FrGGWoKG+wDe2N4Og0ZuOQ/bSpd+TZ9AOQgEGlCTXlpwIG2cbgfh7CmgDnxoWeUtpSWfsB IdaP7jKBjur17VAjkrBlFdbawoUblPsyIfvND3sLLGW/mkNbRuf1Fqbqs9ITg9laq7MVZswYDhxf4 waWq2+H8fXXvURvoN62QYlPf9i3vFKkHgRLprropa/KyZcjr1Qk/JNtBfNUEXAKd/K71sdNueIchT MJURXN/Q==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kCxbi-0006ao-Ea; Tue, 01 Sep 2020 04:09:18 +0000 Received: from mailout3.samsung.com ([203.254.224.33]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kCxbT-0006UM-Sw for linux-arm-kernel@lists.infradead.org; Tue, 01 Sep 2020 04:09:05 +0000 Received: from epcas1p1.samsung.com (unknown [182.195.41.45]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20200901040901epoutp03f63cf89dc110353ee0122dc69e658fbd~wjWcodji60597105971epoutp03p for ; Tue, 1 Sep 2020 04:09:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20200901040901epoutp03f63cf89dc110353ee0122dc69e658fbd~wjWcodji60597105971epoutp03p DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1598933341; bh=iHQfb3qtW7lSUWGtt4riwSXRHVNT71MHvCk8OlOASjI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YH9rI7+XgBCGsNYEAxst1eCmRUbgoy0S1tbfctWHsTusk3k9NwXW9E7snrvwyPKPG 09IAffJ8muBGJQdHhXUKqprfKSr1hPZZQad1vpMKPes8CsTwGyJj7sXfWuHPTbvEHp 8N98Mh5FTrDE+TpI+AdrkEjURhl8IbreQ4Upf7RI= Received: from epsnrtp2.localdomain (unknown [182.195.42.163]) by epcas1p3.samsung.com (KnoxPortal) with ESMTP id 20200901040901epcas1p3822797b9a8406a8e31fe85404521ee9c~wjWcIj8Ep1718217182epcas1p34; Tue, 1 Sep 2020 04:09:01 +0000 (GMT) Received: from epsmges1p5.samsung.com (unknown [182.195.40.155]) by epsnrtp2.localdomain (Postfix) with ESMTP id 4BgYTw1wxYzMqYkk; Tue, 1 Sep 2020 04:08:52 +0000 (GMT) Received: from epcas1p1.samsung.com ( [182.195.41.45]) by epsmges1p5.samsung.com (Symantec Messaging Gateway) with SMTP id 0E.E0.28578.459CD4F5; Tue, 1 Sep 2020 13:08:52 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas1p1.samsung.com (KnoxPortal) with ESMTPA id 20200901040851epcas1p18d6757ed06d19c7fd68cbcd439672183~wjWTLhEXz1138411384epcas1p1M; Tue, 1 Sep 2020 04:08:51 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200901040851epsmtrp1a6db328e3576dfcfbd5c9cb5e6fe4631~wjWTKtkJJ3200232002epsmtrp1A; Tue, 1 Sep 2020 04:08:51 +0000 (GMT) X-AuditID: b6c32a39-8dfff70000006fa2-02-5f4dc9546808 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id DE.03.08382.359CD4F5; Tue, 1 Sep 2020 13:08:51 +0900 (KST) Received: from localhost.localdomain (unknown [10.113.111.64]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200901040851epsmtip10befad98f02fa7a40afb06d9bf727306~wjWS0aXrp0442504425epsmtip16; Tue, 1 Sep 2020 04:08:51 +0000 (GMT) From: Hoegeun Kwon To: nsaenzjulienne@suse.de, eric@anholt.net, maxime@cerno.tech, stefan.wahren@i2se.com, dave.stevenson@raspberrypi.com Subject: [PATCH v2 4/4] ARM: dts: bcm2711: Add bvb clock for hdmi-pixel Date: Tue, 1 Sep 2020 13:07:59 +0900 Message-Id: <20200901040759.29992-5-hoegeun.kwon@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200901040759.29992-1-hoegeun.kwon@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA01Tf1CTZRzv2d69e9m57r2B8LjrEHflCXdDJmw9eG5kmr2FJll5V/2xXuBt cMC227t1CmXTGiEMdBmiICAngaFMfsU5TnOSaIJQyPhxSKHAKNFJghPPiBrbvPrv8/1+P5/v z+chuKJLuJjI1BoZg5bOluACrP3HaKn03es71HFVbj5qLO7CkKfyFIaqr/TxkMs7iyPn/gGA ZusLceRwNWKoZXKIhx5af+OhgY4TOLLdauKjY0+WAOrvfg21l9fjyD56D0eWi1f4aGmo2Sc4 PYKjidJx8EoodWD2Kk7Njlj4VPl4L06N9f2MU47yX/nU96NyqqXhIE6NF13jUK21n1OWrqcY VdLWAKjWnjxqviUyRfhB1qYMhk5nDFGMNk2XnqnVKCXJ76i3qOWKOJlUlohelkRp6RxGKdm6 PUW6LTPbN6Yk6hM62+RzpdAsK1mv2mTQmYxMVIaONSoljD49W5+oj2XpHNak1cSm6XI2yuLi Nsh9xI+yMqZOzvD1Zv6eCWs/MAM3rxCEEJBMgM2jZ7FCICBE5HkA/3AvgIAxB+DVwT48YDwG sOHMHPZM0vG3hx8IXATQ/tMFTsCYB3BgzAKWWTgphV7rMGcZh5F74A+/D/vzcslSLnSfqPMH QsnX4eDDIXwZY+RLsGDpPncZC0klXDw3Fiy3Gp5pcvr9IaQKDtd6/N1CcoSAx83TnABpK/zy YA03gEPhzLU2fgCL4d1D+UHMQtfxmaDYDOAhW0UwEA8vfXvEl4jwtRcNz3WsD7jXQMdflf5p uOTz8IHXylumQFIIC/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wIqOb4 mw1sExj5FjAyrGKUTC0ozk3PLTYsMMxLLdcrTswtLs1L10vOz93ECI4aLc0djNtXfdA7xMjE wXiIUYKDWUmE98Au73gh3pTEyqrUovz4otKc1OJDjNIcLErivDcKF8YJCaQnlqRmp6YWpBbB ZJk4OKUamKZ5nma82fcwe/bcnNmrlnxtTrwQcfvXRIfofsZT4otle/ULru+1FmjVWbTNOWKy /vb4w7Ifu5fN82uaLnVE+PTra9K1E89XX+m98pnT7dSqN5ddZduYDX2Wn+5l2WNy/vUi5hvl LT8WSqvO/JfscoDvc+2Kx9d4Lmbc2Ji88PWjH6lTObj1Q5sv7XlWlNP04yzbJOsmRtXeQwdm Pv/8QNkv65rJHyut2mqdTOND1yXUO36zawSkXrwUP9nvgaR4elSK/eGrs8v2fZrMuUb5oNGc t9Pu1U7e7Gwedpkt2tKy+UmS54o9NV3rq4+pvnWpK+a8Lvxlzmyl6wltsjP1D8nc+Pvsd7X1 +2zrd3FX418osRRnJBpqMRcVJwIAZSIZbQkDAAA= X-CMS-MailID: 20200901040851epcas1p18d6757ed06d19c7fd68cbcd439672183 X-Msg-Generator: CA X-Sendblock-Type: SVC_REQ_APPROVE CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20200901040851epcas1p18d6757ed06d19c7fd68cbcd439672183 References: <20200901040759.29992-1-hoegeun.kwon@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200901_000904_210019_02B287B7 X-CRM114-Status: GOOD ( 15.25 ) X-Spam-Score: -5.2 (-----) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-5.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [203.254.224.33 listed in wl.mailspike.net] -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at https://www.dnswl.org/, high trust [203.254.224.33 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders -0.0 DKIMWL_WL_HIGH DKIMwl.org - Whitelisted High sender X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, tim.gover@raspberrypi.com, kdasu.kdev@gmail.com, sboyd@kernel.org, mturquette@baylibre.com, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, phil@raspberrypi.com, robh+dt@kernel.org, bcm-kernel-feedback-list@broadcom.com, linux-rpi-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, hoegeun.kwon@samsung.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org It is necessary to control the hdmi pixel bvb clock. Add bvb clock. Signed-off-by: Hoegeun Kwon --- arch/arm/boot/dts/bcm2711-rpi-4-b.dts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/bcm2711-rpi-4-b.dts b/arch/arm/boot/dts/bcm2711-rpi-4-b.dts index b93eb30e1ddb..90dee4cb38bc 100644 --- a/arch/arm/boot/dts/bcm2711-rpi-4-b.dts +++ b/arch/arm/boot/dts/bcm2711-rpi-4-b.dts @@ -172,12 +172,14 @@ }; &hdmi0 { - clocks = <&firmware_clocks 13>, <&dvp 0>; + clocks = <&firmware_clocks 13>, <&dvp 0>, <&firmware_clocks 14>; + clock-names = "hdmi", "clk-108M", "bvb"; status = "okay"; }; &hdmi1 { - clocks = <&firmware_clocks 13>, <&dvp 1>; + clocks = <&firmware_clocks 13>, <&dvp 1>, <&firmware_clocks 14>; + clock-names = "hdmi", "clk-108M", "bvb"; status = "okay"; };