From patchwork Wed Dec 20 08:46:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hugues Fruchet X-Patchwork-Id: 181544 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:24d3:b0:fb:cd0c:d3e with SMTP id r19csp2502293dyi; Wed, 20 Dec 2023 00:51:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IFALpMQhlBbeDwWILDd1nxiS42XVr/HKrIALltyeLVLR9XxUammI2tOMxkIbusVAYXUzaLb X-Received: by 2002:a17:903:244a:b0:1d0:ad0e:bef4 with SMTP id l10-20020a170903244a00b001d0ad0ebef4mr3638578pls.63.1703062265011; Wed, 20 Dec 2023 00:51:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703062264; cv=none; d=google.com; s=arc-20160816; b=kPhqfMvBqqJkm33Qn78Q2aC1p0hJcJGOGSwos9jw0hVxdNSEPoik4P84ZVJ+co6e52 DBMz4+NSp2OcLuDnuS5ulMZdUJhOc9i81zQFDudpJ/TbHjmXJOkCNRdezCe19+RkiVTJ AiDrqIEHKNxQUyMzFnWxQRznN74/1CokRd0U8XVjLRQgNO9WP5NJBn/u7FQt04jkUrHV c7Au5iFg5n0n3nZnmacBGEl+vxk7Bs+kB5akF/P2hB9GkZvZTKWMq40fZgWryKw05FuP T5UK24VFtB0FREdLcNmaEKFWAGhSbd5vrGEgdg8Y72NUpqQw9nDCVBHGO+U8WkG0dqj4 +Ulg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=gOTJOkgkUXjyDgxkghIjHED6KsoYJ6xYXo9usGGB+Xk=; fh=ErwLDw9+98Mb4Q3i5RoHr7UOS7Ns3CK5YbB+qheGbUs=; b=e3hWRdUk+/OiUyZ9G26YXowAdMhJoLgeI+uHWzkUqporuw9KIDL7t4MNFDIft5oRsK kzd9k/nxybuPrWLQM9hijA1kmMppfrgiZn5d65OTspzayeNwMYHebmvxmxA1u+J7/f9t VL48/pg5aMJZI3LkXUE+UCcVx4lkFjQLW1YJaG+CYxghIW+Wc5DRxbCUmdJikP6E71YA /i74Fmci3ZSqETmR1kCJuPAW/HJxqYhFXj3+w77hQQCIpjCT/xSJPdME7zKaD0ECBsHC 4RdKYd4p1HU6FhonHGWM5YRP9MamPMTae9/dEfyEd7As0G6oR5quogRagV7c4k3f7Hh5 V4sQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=pKWfcRA4; spf=pass (google.com: domain of linux-kernel+bounces-6602-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6602-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id m32-20020a635820000000b005bdbeb537bcsi20995004pgb.37.2023.12.20.00.51.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 00:51:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-6602-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=pKWfcRA4; spf=pass (google.com: domain of linux-kernel+bounces-6602-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6602-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 58AA4B2117D for ; Wed, 20 Dec 2023 08:49:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E42611D698; Wed, 20 Dec 2023 08:48:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=foss.st.com header.i=@foss.st.com header.b="pKWfcRA4" X-Original-To: linux-kernel@vger.kernel.org Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [185.132.182.106]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DA30C1CAA6; Wed, 20 Dec 2023 08:48:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=foss.st.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=foss.st.com Received: from pps.filterd (m0369458.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.22/8.17.1.22) with ESMTP id 3BK60V9b015096; Wed, 20 Dec 2023 09:47:53 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s= selector1; bh=gOTJOkgkUXjyDgxkghIjHED6KsoYJ6xYXo9usGGB+Xk=; b=pK WfcRA4k3TYYGTzstvSZGq3qzFqEcrKmVG1SRfSXZTldF/lnuwzDnSKnvHv3cw1WG WsgLp6AOAmfwTp5ctFalIYxQcom2K8Wu0bC4jl/aliJ2TGsa03gawPq3ciQjPXeB 6gegEpGN6xn/DtNL7q8TNHAKJQm2A3GxgU7Oe4bnI3AYfJi0otSqPoQ3ujpbqGf/ 3wjudhYSs/1gq02UbHLWABUKe2eL371k83aQHt1Gr1H+SlIFIcthrHicCIEHwTE4 oQES7SwoQ2EZ7hgNB0N0sJJppPxuA67ynDBPjMILfaFQXXaYTzL8Pxl+PcbJrI2Y o4/Gl3WCtmGo5bxKJ/yg== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3v1pb4p1h3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 20 Dec 2023 09:47:53 +0100 (CET) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 83015100057; Wed, 20 Dec 2023 09:47:52 +0100 (CET) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 88E5A20A77D; Wed, 20 Dec 2023 09:47:49 +0100 (CET) Received: from localhost (10.201.20.120) by SHFDAG1NODE1.st.com (10.75.129.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Wed, 20 Dec 2023 09:47:49 +0100 From: Hugues Fruchet To: Ezequiel Garcia , Philipp Zabel , Andrzej Pietrasiewicz , Nicolas Dufresne , Sakari Ailus , Benjamin Gaignard , Laurent Pinchart , Daniel Almeida , Benjamin Mugnier , Heiko Stuebner , Mauro Carvalho Chehab , Hans Verkuil , , Maxime Coquelin , Alexandre Torgue , , Rob Herring , Krzysztof Kozlowski , Conor Dooley , , , , CC: Hugues Fruchet , Marco Felsch , Adam Ford Subject: [PATCH v3 5/5] arm64: dts: st: add video encoder support to stm32mp255 Date: Wed, 20 Dec 2023 09:46:41 +0100 Message-ID: <20231220084641.2076428-6-hugues.fruchet@foss.st.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231220084641.2076428-1-hugues.fruchet@foss.st.com> References: <20231220084641.2076428-1-hugues.fruchet@foss.st.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-ClientProxiedBy: EQNCAS1NODE3.st.com (10.75.129.80) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-12-20_02,2023-12-14_01,2023-05-22_02 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785790217774569472 X-GMAIL-MSGID: 1785790217774569472 Add VENC hardware video encoder support to STM32MP255. Signed-off-by: Hugues Fruchet --- arch/arm64/boot/dts/st/stm32mp251.dtsi | 6 ++++++ arch/arm64/boot/dts/st/stm32mp255.dtsi | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/arch/arm64/boot/dts/st/stm32mp251.dtsi b/arch/arm64/boot/dts/st/stm32mp251.dtsi index 8fc7e9199499..5dd4f3580a60 100644 --- a/arch/arm64/boot/dts/st/stm32mp251.dtsi +++ b/arch/arm64/boot/dts/st/stm32mp251.dtsi @@ -58,6 +58,12 @@ ck_icn_p_vdec: ck-icn-p-vdec { compatible = "fixed-clock"; clock-frequency = <200000000>; }; + + ck_icn_p_venc: ck-icn-p-venc { + #clock-cells = <0>; + compatible = "fixed-clock"; + clock-frequency = <200000000>; + }; }; firmware { diff --git a/arch/arm64/boot/dts/st/stm32mp255.dtsi b/arch/arm64/boot/dts/st/stm32mp255.dtsi index aea5096dac3c..17f197c5b22b 100644 --- a/arch/arm64/boot/dts/st/stm32mp255.dtsi +++ b/arch/arm64/boot/dts/st/stm32mp255.dtsi @@ -14,6 +14,13 @@ vdec: vdec@480d0000 { interrupts = ; clocks = <&ck_icn_p_vdec>; }; + + venc: venc@480e0000 { + compatible = "st,stm32mp25-venc"; + reg = <0x480e0000 0x800>; + interrupts = ; + clocks = <&ck_icn_ls_mcu>; + }; }; }; };