From patchwork Fri Aug 21 07:10:43 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hoegeun Kwon X-Patchwork-Id: 11728299 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 0CCFB13B1 for ; Fri, 21 Aug 2020 07:16:57 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 DFA90207DA for ; Fri, 21 Aug 2020 07:16:56 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="hCPfZoEF" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DFA90207DA Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=samsung.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 807836EAB0; Fri, 21 Aug 2020 07:16:51 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout3.samsung.com (mailout3.samsung.com [203.254.224.33]) by gabe.freedesktop.org (Postfix) with ESMTPS id 11A2F6EAB0 for ; Fri, 21 Aug 2020 07:16:49 +0000 (UTC) Received: from epcas1p4.samsung.com (unknown [182.195.41.48]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20200821071129epoutp03a39effd84204eb5b9610b942f056e677~tNvnPvkiO2272422724epoutp03n for ; Fri, 21 Aug 2020 07:11:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20200821071129epoutp03a39effd84204eb5b9610b942f056e677~tNvnPvkiO2272422724epoutp03n DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1597993889; bh=4HNiRPvHIxvIrfu+Vr7XKCEWbAFVY5lm4GOrgQszxFY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hCPfZoEFRz8uShSvZXy2Qz5F7cmD5Az4R89yN6Hv+bwxjblLbqS/8nMYDDMUZMD3s i89WfT9aUIPzHelDyU3iYKF21Wa7/7zXj+Pj+05gLF38jC272QInAefus/7LT3unqQ PkXQyTibXIv2D1RzmarqJ6QAaYH9VUjlUT+E10Ow= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas1p1.samsung.com (KnoxPortal) with ESMTP id 20200821071128epcas1p11cbbdbdf37b64cc859f26b907fd48962~tNvmtPc081679816798epcas1p1A; Fri, 21 Aug 2020 07:11:28 +0000 (GMT) Received: from epsmges1p2.samsung.com (unknown [182.195.40.158]) by epsnrtp3.localdomain (Postfix) with ESMTP id 4BXt3f1y4ZzMqYkt; Fri, 21 Aug 2020 07:11:26 +0000 (GMT) Received: from epcas1p4.samsung.com ( [182.195.41.48]) by epsmges1p2.samsung.com (Symantec Messaging Gateway) with SMTP id 51.CB.19033.A937F3F5; Fri, 21 Aug 2020 16:11:22 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas1p2.samsung.com (KnoxPortal) with ESMTPA id 20200821071121epcas1p20c13a4116d56072293b1d81d8e253218~tNvgYHSLB1822418224epcas1p2v; Fri, 21 Aug 2020 07:11:21 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20200821071121epsmtrp21c8c40df7e678bc311786ad2fd7180df~tNvgXEHQr2521125211epsmtrp24; Fri, 21 Aug 2020 07:11:21 +0000 (GMT) X-AuditID: b6c32a36-159ff70000004a59-db-5f3f739aa989 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 5B.C1.08382.9937F3F5; Fri, 21 Aug 2020 16:11:21 +0900 (KST) Received: from localhost.localdomain (unknown [10.113.111.64]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20200821071121epsmtip25c56b59247250af5db5f4641cfcf7b17~tNvgABazm2482124821epsmtip2S; Fri, 21 Aug 2020 07:11:21 +0000 (GMT) From: Hoegeun Kwon To: nsaenzjulienne@suse.de, eric@anholt.net, maxime@cerno.tech Subject: [PATCH 1/3] clk: bcm: rpi: Add register to control pixel bvb clk Date: Fri, 21 Aug 2020 16:10:43 +0900 Message-Id: <20200821071045.24501-2-hoegeun.kwon@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200821071045.24501-1-hoegeun.kwon@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrCJsWRmVeSWpSXmKPExsWy7bCmge6sYvt4g8bTvBZre4+yWLydu5jF Yv6Rc6wWV76+Z7M40HiZ0eL98i42i51X1rJYbHp8jdXiY889VovLu+awWUy8vYHdYsaPf4wW F0+5WmybtZzNYt2t12wWrXuPsFv8u7aRxeLR1PuMDkIeTe+PsXm8v9HK7jHr/lk2jzvnzrN5 7Jx1l91j06pONo/73ceZPDYvqfdoPfqLxaNvyypGj82nqz0+b5IL4InKtslITUxJLVJIzUvO T8nMS7dV8g6Od443NTMw1DW0tDBXUshLzE21VXLxCdB1y8wB+k5JoSwxpxQoFJBYXKykb2dT lF9akqqQkV9cYquUWpCSU2BZoFecmFtcmpeul5yfa2VoYGBkClSYkJ3x9k4HW8FCtoqly14y NTDOY+1i5OSQEDCRONE2E8jm4hAS2MEo8W/xdiYI5xOjxIm9y9kgnG+MEuuvbGPsYuSAaPlS DRHfyyjx4/YFZgjnM6PEjSlzWUDmsgnoSnztuc4EYosI2Em09RxkBCliFtjOLHG9vZsdZJKw gKfE8S1WIDUsAqoSX3v3soPYvAK2Em/f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1MM5j7WLk4JAQMJE48aW6i5GTQ0hgN6PElz1GILaEgIzEqv4tUCXC EocPF0OUfGSU+LQ1AsRmE9CV+NpznQnEFhFwknjwdx9zFyMXB7PAcWaJ6f0HwHqFBTwljm+x AqlhEVCV+Nq7lx3E5hWwlXj7ZicLxCp5idUbDjCD2JwCdhKL7yxlgdhlK3Gq4yPzBEa+BYwM qxglUwuKc9Nziw0LDPNSy/WKE3OLS/PS9ZLzczcxgqNDS3MH4/ZVH/QOMTJxMB5ilOBgVhLh 7d1rHS/Em5JYWZValB9fVJqTWnyIUZqDRUmc90bhwjghgfTEktTs1NSC1CKYLBMHp1QDU+KK e7P+nJM+tUSru7dh7j6ByNb48wsuiJ1U2Nb2a8qGK+r617S/7/6r9NS1K2OdvUPKNIMWXY4j z7T2LN7p+vec2eKEgItK520r7i/0bGJed7Zvm1GM7KywQ/ZZSRVdlTlzbqY3x7WUr/jz8fim oGeHT4r6fDDyXpN9T2rDLUOF2JPFLNl5RRGFc6dXfhP5/fNY8iz1mTutxc5Pzd81u/UXk+yy M29XrfW3Fktm2370htiOuVtPZ2+Zu9x6AcOxSr6XVRf9X+2arLNqC+/X7N+Ldryc/376Wp3j p5kn6Ou0+yTW+fBMtzhj9W9j+/pPTzax/NxZk+QdM2vXlI9nRfouL/7Icbp13ufXv/kXZh5p UGIpzkg01GIuKk4EAApp4Qr9AgAA X-CMS-MailID: 20200821071121epcas1p20c13a4116d56072293b1d81d8e253218 X-Msg-Generator: CA X-Sendblock-Type: SVC_REQ_APPROVE CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20200821071121epcas1p20c13a4116d56072293b1d81d8e253218 References: <20200821071045.24501-1-hoegeun.kwon@samsung.com> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development 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, dave.stevenson@raspberrypi.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 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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 --- 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 Fri Aug 21 07:10:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hoegeun Kwon X-Patchwork-Id: 11728317 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 62D4616B1 for ; Fri, 21 Aug 2020 07:18:53 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 4178222B47 for ; Fri, 21 Aug 2020 07:18:53 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="G8rYXbYt" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4178222B47 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=samsung.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 86D446EAB2; Fri, 21 Aug 2020 07:18:52 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout2.samsung.com (mailout2.samsung.com [203.254.224.25]) by gabe.freedesktop.org (Postfix) with ESMTPS id 141A76EAB2 for ; Fri, 21 Aug 2020 07:18:51 +0000 (UTC) Received: from epcas1p3.samsung.com (unknown [182.195.41.47]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20200821071127epoutp02241132f3c64e80671980176aff2b3257~tNvlW8ztM0819308193epoutp02M for ; Fri, 21 Aug 2020 07:11:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20200821071127epoutp02241132f3c64e80671980176aff2b3257~tNvlW8ztM0819308193epoutp02M DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1597993887; bh=iHQfb3qtW7lSUWGtt4riwSXRHVNT71MHvCk8OlOASjI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=G8rYXbYtE4CWgnQloz6ZfiEkxseHgOfis4LTh0yCMeDbv+cjv2pUzFg2EJEUTseB/ U9DJE4lZsZvvTybZY6FyhSRbIGIXWLndprlD/07jty8jet5omcL3dXTqxmNbJVSuyb qwJz1jNJkbTddKNCFUQ2xmwHVfIMYvHOkOH2ob3g= Received: from epsnrtp2.localdomain (unknown [182.195.42.163]) by epcas1p2.samsung.com (KnoxPortal) with ESMTP id 20200821071126epcas1p26f66164557f6b3b1e472aaa003fb1eca~tNvknmX-M2805528055epcas1p2Q; Fri, 21 Aug 2020 07:11:26 +0000 (GMT) Received: from epsmges1p1.samsung.com (unknown [182.195.40.157]) by epsnrtp2.localdomain (Postfix) with ESMTP id 4BXt3Z4gGKzMqYkZ; Fri, 21 Aug 2020 07:11:22 +0000 (GMT) Received: from epcas1p1.samsung.com ( [182.195.41.45]) by epsmges1p1.samsung.com (Symantec Messaging Gateway) with SMTP id 66.8D.18978.A937F3F5; Fri, 21 Aug 2020 16:11:22 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas1p1.samsung.com (KnoxPortal) with ESMTPA id 20200821071122epcas1p1069b0f2dd06ddff3bd5474dbec227684~tNvgeHvCf1342713427epcas1p1S; Fri, 21 Aug 2020 07:11:22 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20200821071122epsmtrp2501dfcf38a3ec4ac5c6aef1cc1b1bad7~tNvgdPfsV2513725137epsmtrp2O; Fri, 21 Aug 2020 07:11:22 +0000 (GMT) X-AuditID: b6c32a35-5edff70000004a22-62-5f3f739a58d8 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 8C.C1.08382.9937F3F5; Fri, 21 Aug 2020 16:11:21 +0900 (KST) Received: from localhost.localdomain (unknown [10.113.111.64]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20200821071121epsmtip2af7047736c5b2832c065fb8aaa705105~tNvgLrnl82425024250epsmtip2g; Fri, 21 Aug 2020 07:11:21 +0000 (GMT) From: Hoegeun Kwon To: nsaenzjulienne@suse.de, eric@anholt.net, maxime@cerno.tech Subject: [PATCH 2/3] ARM: dts: bcm2711: Add bvb clock for hdmi-pixel Date: Fri, 21 Aug 2020 16:10:44 +0900 Message-Id: <20200821071045.24501-3-hoegeun.kwon@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200821071045.24501-1-hoegeun.kwon@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrGJsWRmVeSWpSXmKPExsWy7bCmru6sYvt4g+nnxC3W9h5lsXg7dzGL xfwj51gtrnx9z2ZxoPEyo8X75V1sFjuvrGWx2PT4GqvFx557rBaXd81hs5h4ewO7xYwf/xgt Lp5ytdg2azmbxbpbr9ksWvceYbf4d20ji8WjqfcZHYQ8mt4fY/N4f6OV3WPW/bNsHnfOnWfz 2DnrLrvHplWdbB73u48zeWxeUu/RevQXi0ffllWMHptPV3t83iQXwBOVbZORmpiSWqSQmpec n5KZl26r5B0c7xxvamZgqGtoaWGupJCXmJtqq+TiE6DrlpkD9J2SQlliTilQKCCxuFhJ386m KL+0JFUhI7+4xFYptSAlp8CyQK84Mbe4NC9dLzk/18rQwMDIFKgwITvjyYJX7AUN7BWPei4y NjA+Ze1i5OSQEDCR+PDiLnMXIxeHkMAORolvy2cyQTifGCXOTt3ECOF8Y5SY+vQ0E0zLjFsT oVr2MkrsurGNBcL5zCjx5vE2RpAqNgFdia8918E6RATsJNp6DoKNYhbYzixxvb2bHSQhLOAi 8XjTLrAiFgFViat9q8Gu4hWwlWhsuQW1Tl5i9YYDzCA2J9CgxXeWgm2TEDjDIbHpeTsbRJGL xO8jy5khbGGJV8e3sEPYUhKf3+2FqimWuDLzFVRzA6NE/8TZUEXGEvuXTgbaxgF0nqbE+l36 EGFFiZ2/54J9wyzAJ/Huaw8rSImEAK9ER5sQRImaxLOGA9CQlJE41bsc6mYPiRM/NkADciKj xMINT5gnMMrNQtiwgJFxFaNYakFxbnpqsWGBIXKkbWIEJ2At0x2ME99+0DvEyMTBeIhRgoNZ SYS3d691vBBvSmJlVWpRfnxRaU5q8SFGU2DoTWSWEk3OB+aAvJJ4Q1MjY2NjCxNDM1NDQyVx 3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+xLem96myedzeY5GBt35O5+gcrjTI9mFb/ZkysyvSFNmXu2benESQfbdI9cK3K59JZL31ii 4vgVG67Q5aWaR0t/H31alxg6b1ndZ4OZil+LeVn+Ll48++qzpcKHl8V1qtjf0S8zLrjRMdlh 232bQE3bf8Vz1Ksmq7w6d/P6zA/C3M58228uKnjZJae7v7pYe/6EhKOHf4V/8zp+VPnD7n15 DHbiPG/eyevFfLjAcyZ2+WuvSNnnyx+t8rnje3xizQ5lGcHjwXZ/b98rDbOMKv7nY/OnUKx/ 3p7dBv0T5kVNvK7Afn67sP0y6fSOkDvMwvH3W2L+H1y4rbHSY7nowo2HOws+T9DoXDm74JsS S3FGoqEWc1FxIgDJSD/3AQMAAA== X-CMS-MailID: 20200821071122epcas1p1069b0f2dd06ddff3bd5474dbec227684 X-Msg-Generator: CA X-Sendblock-Type: SVC_REQ_APPROVE CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20200821071122epcas1p1069b0f2dd06ddff3bd5474dbec227684 References: <20200821071045.24501-1-hoegeun.kwon@samsung.com> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development 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, dave.stevenson@raspberrypi.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 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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"; }; From patchwork Fri Aug 21 07:10:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hoegeun Kwon X-Patchwork-Id: 11728297 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 DCF7A618 for ; Fri, 21 Aug 2020 07:16:53 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 BBA8C21741 for ; Fri, 21 Aug 2020 07:16:53 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="UtVhY1IT" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BBA8C21741 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=samsung.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 548F46EAA4; Fri, 21 Aug 2020 07:16:51 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org X-Greylist: delayed 322 seconds by postgrey-1.36 at gabe; Fri, 21 Aug 2020 07:16:50 UTC Received: from mailout3.samsung.com (mailout3.samsung.com [203.254.224.33]) by gabe.freedesktop.org (Postfix) with ESMTPS id 105706EAA4 for ; Fri, 21 Aug 2020 07:16:49 +0000 (UTC) Received: from epcas1p3.samsung.com (unknown [182.195.41.47]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20200821071127epoutp03599c5e8999a6b3e04896152d357b9820~tNvlH5VdU2303823038epoutp03V for ; Fri, 21 Aug 2020 07:11:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20200821071127epoutp03599c5e8999a6b3e04896152d357b9820~tNvlH5VdU2303823038epoutp03V DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1597993887; bh=aV0x4n6wQckii0JDBHb/o4LkoOEhIHxl7xns9Eg3VhU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UtVhY1IT7h8a7RPeMP8EH0ah3Fz7mAeOoxmpmz9GefxUhZUfAZV5+NTsGFIePBtH6 aPsKL3regcqJ4GseeXzLFGQQe/M7xzxD+3BxUS9TQfFkM97Nh8XuvGfN5kq5wlCR2l 2P1j3Ks7W+N1c4X8KJRWDfmTj4YP7HFmako+vQhw= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas1p4.samsung.com (KnoxPortal) with ESMTP id 20200821071126epcas1p4d9ce4f46c18803992d1d7e22986ac3b3~tNvknpofv3245032450epcas1p4c; Fri, 21 Aug 2020 07:11:26 +0000 (GMT) Received: from epsmges1p1.samsung.com (unknown [182.195.40.156]) by epsnrtp3.localdomain (Postfix) with ESMTP id 4BXt3Z4g0JzMqYkr; Fri, 21 Aug 2020 07:11:22 +0000 (GMT) Received: from epcas1p4.samsung.com ( [182.195.41.48]) by epsmges1p1.samsung.com (Symantec Messaging Gateway) with SMTP id A7.8D.18978.A937F3F5; Fri, 21 Aug 2020 16:11:22 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas1p3.samsung.com (KnoxPortal) with ESMTPA id 20200821071122epcas1p3d00dda4665f94192ac5e9ee829d0557d~tNvgqLEzS1277912779epcas1p3n; Fri, 21 Aug 2020 07:11:22 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20200821071122epsmtrp2da61cd56d43dbcb30a9004682fdccc9e~tNvgpY4TN2521125211epsmtrp25; Fri, 21 Aug 2020 07:11:22 +0000 (GMT) X-AuditID: b6c32a35-603ff70000004a22-63-5f3f739ae0fc Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id BD.C1.08382.A937F3F5; Fri, 21 Aug 2020 16:11:22 +0900 (KST) Received: from localhost.localdomain (unknown [10.113.111.64]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20200821071121epsmtip2b93ad01672ed278eec482ed19b1d61e6~tNvgXmNBO2424724247epsmtip2y; Fri, 21 Aug 2020 07:11:21 +0000 (GMT) From: Hoegeun Kwon To: nsaenzjulienne@suse.de, eric@anholt.net, maxime@cerno.tech Subject: [PATCH 3/3] drm/vc4: hdmi: Add pixel bvb clock control Date: Fri, 21 Aug 2020 16:10:45 +0900 Message-Id: <20200821071045.24501-4-hoegeun.kwon@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200821071045.24501-1-hoegeun.kwon@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrCJsWRmVeSWpSXmKPExsWy7bCmge6sYvt4g7PP5SzW9h5lsXg7dzGL xfwj51gtr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YHPfhTvSK63mSJfNfG2a9bz3oVD0sX6W0KCpalP/b1HavfKz7sbGK8cZGv7O YOcJ/XNP+VincrKX+zbzhl/9LG7qX39ueislfdopU9Bx46Ro3cKJJ0ImZgud+Z+0LPTy3NNl h9YqsRRnJBpqMRcVJwIAetHsOwADAAA= X-CMS-MailID: 20200821071122epcas1p3d00dda4665f94192ac5e9ee829d0557d X-Msg-Generator: CA X-Sendblock-Type: SVC_REQ_APPROVE CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20200821071122epcas1p3d00dda4665f94192ac5e9ee829d0557d References: <20200821071045.24501-1-hoegeun.kwon@samsung.com> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development 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, dave.stevenson@raspberrypi.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 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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;