From patchwork Tue Apr 19 08:40:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ivan T . Ivanov" X-Patchwork-Id: 12817626 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B3212C433F5 for ; Tue, 19 Apr 2022 08:43:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=AnSMQ05sQ/M2UDDWmRFPb7fUDFwDN8gi3TmHaAjOX5Q=; b=PoYVWzWZQJt7oJ faOLbrTYcOn51J2he8J516hjgouwqwHCT2aV8sjmJfIsITr6z/1DF75+SEKoeupFYOQXQXrq8x3zm N9Q+8cTYn4CIzRjfldzk+i5d3YlQhk1yoQPViHFO33cKG/itAG8M0WjRyvuXyK1MdLwF3irTn1NjB w9cUVX90E6aRPiymuwqJx0xzYo/2BamQLmBCL8PtuFwGrxLz1SwFfahI9aeQfwR+VAtG6SE4mJUzh TTG/6WO9Mqtnf+BicZHvLzss1Obl7+Pu89zBAqiz7tPvDEBvS7eyEYeVYEsKr8vRPIftHdB9HeovU utKNNhkMa1dAV1HzSHSw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ngjRV-002N7r-BI; Tue, 19 Apr 2022 08:42:37 +0000 Received: from smtp-out1.suse.de ([195.135.220.28]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ngjR9-002N41-V6; Tue, 19 Apr 2022 08:42:18 +0000 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id C64102112B; Tue, 19 Apr 2022 08:42:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1650357733; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ptrAeXeHfHhMhWiRihLbsWQdqcONURLXN9p0YahQp4k=; b=bQZ6ysE4KkkI2muKQV7NZf+6kfESlmxhMfyz90hvI8jcjIwpC4ZeTKVWI46OriAiS3aqEL 1o52tNj8t4zkgEQnnT5fEkjAlAD2bRNUmdbvWYFcW8lUOmtG+IZwRxdwZIjtaXiIx9tzph pchMYJAd2Bwr6crzXUhKjTKXrIVq3aw= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1650357733; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ptrAeXeHfHhMhWiRihLbsWQdqcONURLXN9p0YahQp4k=; b=auyZhLCIA1L1zkgbWhq4ME9QEPX5oupifv6IgfYk1UDA3jZbrCGtaMUu94nI5fs3aWQds0 WoFPNmTFlSH+CNAA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id A3E9213AE0; Tue, 19 Apr 2022 08:42:13 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id CMG5J+V1XmKpdAAAMHmgww (envelope-from ); Tue, 19 Apr 2022 08:42:13 +0000 From: "Ivan T. Ivanov" To: Michael Turquette , Stephen Boyd , Nicolas Saenz Julienne Cc: Maxime Ripard , Dave Stevenson , bcm-kernel-feedback-list@broadcom.com, linux-clk@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, "Ivan T. Ivanov" , Dom Cobley Subject: [PATCH v3 1/2] clk: bcm: rpi: Add support HEVC clock Date: Tue, 19 Apr 2022 11:40:57 +0300 Message-Id: <20220419084058.146509-2-iivanov@suse.de> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220419084058.146509-1-iivanov@suse.de> References: <20220419084058.146509-1-iivanov@suse.de> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220419_014216_218617_37C1C1F3 X-CRM114-Status: UNSURE ( 9.19 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Export clock required for RPiVid video decoder hardware. Cc: Dom Cobley Acked-by: Maxime Ripard Signed-off-by: Ivan T. Ivanov --- drivers/clk/bcm/clk-raspberrypi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/clk/bcm/clk-raspberrypi.c b/drivers/clk/bcm/clk-raspberrypi.c index 9d09621549b9..2e2491d85835 100644 --- a/drivers/clk/bcm/clk-raspberrypi.c +++ b/drivers/clk/bcm/clk-raspberrypi.c @@ -129,6 +129,9 @@ raspberrypi_clk_variants[RPI_FIRMWARE_NUM_CLK_ID] = { [RPI_FIRMWARE_V3D_CLK_ID] = { .export = true, }, + [RPI_FIRMWARE_HEVC_CLK_ID] = { + .export = true, + }, [RPI_FIRMWARE_PIXEL_BVB_CLK_ID] = { .export = true, }, From patchwork Tue Apr 19 08:40:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ivan T . Ivanov" X-Patchwork-Id: 12817624 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BA0E4C433FE for ; Tue, 19 Apr 2022 08:43:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=sxvmslo0JbqJk+3v59LhI8CP62Lni16ERuq5crwiFxU=; b=L1cod5mTIHKrL/ 54o3R8fq1J2g92dE0PaWFVgay2d3J9usRyQ/buY5eXHRzq9DearcGv+6AkD1LaFc2V6uLUyqu/1g6 zdbgfte7jz309Fo7FzjUaJk+oAtxhkQowYRfjxmJhInP1i1wDaxGGFLnZaUCkFRPP7kKEG9A0ZnYI Z6OocTrMtso0acEtzet2x48NZK5zImtsE/qvlsYmLI0eGpR0O9CxzdU2Fn6QiEEC+Gy+XC7flzw4F pBSBdxTRY3BPRoep9IEJRKHTgVEcJ3pCL3+2H2KLoo3qTMJo1iM45MEoZcv2WMrcMdE81Qfl881jT 4KdxPLvNjKxmNekQSZmg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ngjRD-002N5U-Me; Tue, 19 Apr 2022 08:42:19 +0000 Received: from smtp-out1.suse.de ([195.135.220.28]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ngjR9-002N42-V3; Tue, 19 Apr 2022 08:42:17 +0000 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id D49DB212CA; Tue, 19 Apr 2022 08:42:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1650357733; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=CYfvMhwTj1duuSdq8AvpKgdxgg9tyg/I/6KROTUsPcI=; b=Pk3GDcz7P/fgVYN9GYb1/BXnZDoyuUxOk4f2ymmr2M6nCvSrtwl76IA3CblKH6tnMN+crw x7DePuWrevInbuVacXkmSG/m1C5QESLcD48HE/bCiirlW8HEEVU5yk3Il1pV62vSjWZ1o8 PNgEP3POZtDGI45HLNM95bROod0JX5A= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1650357733; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=CYfvMhwTj1duuSdq8AvpKgdxgg9tyg/I/6KROTUsPcI=; b=xx+gw7gHnObqDwN3khQhxz+u2+uw3F28sQoZFWXLa5H8XvA1lmM7lUF46M8QedTMSBWXV9 MObMXqqIU1OGHKDA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id C462C139BE; Tue, 19 Apr 2022 08:42:13 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id QG64L+V1XmKpdAAAMHmgww (envelope-from ); Tue, 19 Apr 2022 08:42:13 +0000 From: "Ivan T. Ivanov" To: Michael Turquette , Stephen Boyd , Nicolas Saenz Julienne Cc: Maxime Ripard , Dave Stevenson , bcm-kernel-feedback-list@broadcom.com, linux-clk@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, "Ivan T. Ivanov" Subject: [PATCH v3 2/2] clk: bcm: rpi: Handle pixel clock in firmware Date: Tue, 19 Apr 2022 11:40:58 +0300 Message-Id: <20220419084058.146509-3-iivanov@suse.de> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220419084058.146509-1-iivanov@suse.de> References: <20220419084058.146509-1-iivanov@suse.de> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220419_014216_206403_FF83676F X-CRM114-Status: GOOD ( 10.53 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The clk-bcm2835 handling of the pixel clock does not function correctly when the HDMI power domain is disabled. The firmware supports it correctly, so add it to the firmware clock driver. Acked-by: Maxime Ripard Acked-by: Dave Stevenson Signed-off-by: Ivan T. Ivanov --- drivers/clk/bcm/clk-raspberrypi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/clk/bcm/clk-raspberrypi.c b/drivers/clk/bcm/clk-raspberrypi.c index 2e2491d85835..530820d13104 100644 --- a/drivers/clk/bcm/clk-raspberrypi.c +++ b/drivers/clk/bcm/clk-raspberrypi.c @@ -129,6 +129,9 @@ raspberrypi_clk_variants[RPI_FIRMWARE_NUM_CLK_ID] = { [RPI_FIRMWARE_V3D_CLK_ID] = { .export = true, }, + [RPI_FIRMWARE_PIXEL_CLK_ID] = { + .export = true, + }, [RPI_FIRMWARE_HEVC_CLK_ID] = { .export = true, },