From patchwork Tue Jan 9 08:51:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hugues Fruchet X-Patchwork-Id: 186281 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:37c1:b0:101:2151:f287 with SMTP id y1csp1522044dyq; Tue, 9 Jan 2024 00:53:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IHVh4u572MOzEZlH2VId1CclfDVvNY/mWYduQ5ehtfk0QbzpFIZNiSfTNLGgFB0Nr2SpyL9 X-Received: by 2002:a2e:be89:0:b0:2cd:6615:83a8 with SMTP id a9-20020a2ebe89000000b002cd661583a8mr258844ljr.104.1704790438911; Tue, 09 Jan 2024 00:53:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704790438; cv=none; d=google.com; s=arc-20160816; b=BU0tsbvZlkbi50SgbCZ1lFLjbMdFKJQRAmu/UU9QGML4hnq65twwzi8z2llhK3LcBv Gvke6pDViEGBM2hE41tq7nfi7uSRrIwdgvQg1dI2X9ZUWdNw56kAPFIBB+hfc53HQgqK /HP5YGwHUbeJUrZMlKah2i/+PrQXqWOpOW9feZ5HDmTsE1/W0d2ZQZlHkN7QNd6sZ99s 6MHiU8LMsmI/bioT2lPikT90V5J1chvis1omLYbUce6vKYGIgBhoAChzll0re+MurYa7 /0TZTU1g8xr9CWudwhZUpAZAqI2QZ/SDTNG7kqZnqxkbD0E6Hx9GiWAVpjtVBNleCWPL 9wLg== 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=iSjyXXBlLU8CmpUXVSZCKnI2Y7L6CFxxoTsOMTlPK98=; fh=d3+8QaZL5Q12BYNNjvgOop8BJQqBBykIHDvrQ47QtiM=; b=Tf5gJDX0hqJAQ6ko3wzbycOa722EQz1IY8xfp/p1d5kboF/veb50joijiDTmdpO8M+ x3hPyEqqU1ZNpO9kyMMZTfb0uk4dXchCpBeE47ZAQ43skVKj8QXOtxjaQNmyad3yqXhK BNFSh3RV/yZba3DlMmLtp3xVqXVERhTieaNxgjI7tBVWAdLYwMkXfIGkcx0jeID9h9nJ VdO7k7WL3HI9cZAUr1YwFVC62c5+U7g8B/Rt08C08A+pOU349ARpaA77Ji7NxAzgfC+S Hjr32mLAZhr+Ws0NVRSaay5ZXRjQVa1yEhTYjMSkCh2miPAWqv2B9V7zFUAISnZ/BIYy NhbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=MC2Elf6V; spf=pass (google.com: domain of linux-kernel+bounces-20620-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20620-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id y44-20020a50bb2f000000b00557dd132c56si577349ede.322.2024.01.09.00.53.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 00:53:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-20620-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=MC2Elf6V; spf=pass (google.com: domain of linux-kernel+bounces-20620-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20620-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 7E3281F25E70 for ; Tue, 9 Jan 2024 08:53:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4B6F3364CA; Tue, 9 Jan 2024 08:52:45 +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="MC2Elf6V" Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) (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 DEEF629427; Tue, 9 Jan 2024 08:52:40 +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 (m0046661.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 40924Sn5006375; Tue, 9 Jan 2024 09:52:03 +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=iSjyXXBlLU8CmpUXVSZCKnI2Y7L6CFxxoTsOMTlPK98=; b=MC 2Elf6V9cwoMlVlIcT7Ks2GnvDP9ugzsDh22nsD2vI7LTWTbS94Zz8lwCWc1lszRT qgmMaTcwEiyXrO1prgLJEwxnp7lUsTeX50m43pgiv00bJ0kJL3EbAtLDHRpVUVoH IaoKog5Qzody/PMlkBEDXG/uTvWxynEmQr0r21WYKct6Cny/sMabRlletkhe43Rr jQdvCqVZoQnHWsOPOKiDL8GYN6T2M79aldlExoKHd5Q9KCqBFTAmL3c1HcTR2QJR qOYxM5hdSCjX8U4aXqeqPha550wgzGHhOzin7DhS4D5BDwjjsbUJQmBbA1OwGbUY f/b0qRIQnJg5RyVjAeTg== 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 3vexmfaetv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 09 Jan 2024 09:52:03 +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 3B85610004A; Tue, 9 Jan 2024 09:52:03 +0100 (CET) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 2F9B322FA2D; Tue, 9 Jan 2024 09:52:03 +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; Tue, 9 Jan 2024 09:52:02 +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 , , , , CC: Hugues Fruchet , Marco Felsch , Adam Ford Subject: [PATCH v6 4/5] arm64: dts: st: add video decoder support to stm32mp255 Date: Tue, 9 Jan 2024 09:51:54 +0100 Message-ID: <20240109085155.252358-5-hugues.fruchet@foss.st.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240109085155.252358-1-hugues.fruchet@foss.st.com> References: <20240109085155.252358-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: SHFCAS1NODE1.st.com (10.75.129.72) 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=2024-01-05_08,2024-01-05_01,2023-05-22_02 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787602339184640147 X-GMAIL-MSGID: 1787602339184640147 Add VDEC hardware video decoder support to STM32MP255. Signed-off-by: Hugues Fruchet --- arch/arm64/boot/dts/st/stm32mp251.dtsi | 6 ++++++ arch/arm64/boot/dts/st/stm32mp255.dtsi | 10 ++++++++++ 2 files changed, 16 insertions(+) diff --git a/arch/arm64/boot/dts/st/stm32mp251.dtsi b/arch/arm64/boot/dts/st/stm32mp251.dtsi index 96859d098ef8..8fc7e9199499 100644 --- a/arch/arm64/boot/dts/st/stm32mp251.dtsi +++ b/arch/arm64/boot/dts/st/stm32mp251.dtsi @@ -52,6 +52,12 @@ ck_icn_ls_mcu: ck-icn-ls-mcu { compatible = "fixed-clock"; clock-frequency = <200000000>; }; + + ck_icn_p_vdec: ck-icn-p-vdec { + #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 e6fa596211f5..aea5096dac3c 100644 --- a/arch/arm64/boot/dts/st/stm32mp255.dtsi +++ b/arch/arm64/boot/dts/st/stm32mp255.dtsi @@ -6,4 +6,14 @@ #include "stm32mp253.dtsi" / { + soc@0 { + rifsc: rifsc-bus@42080000 { + vdec: vdec@480d0000 { + compatible = "st,stm32mp25-vdec"; + reg = <0x480d0000 0x3c8>; + interrupts = ; + clocks = <&ck_icn_p_vdec>; + }; + }; + }; };