From patchwork Wed Oct 4 09:15:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hugues Fruchet X-Patchwork-Id: 148197 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:6359:6f87:b0:13f:353d:d1ed with SMTP id tl7csp2488660rwb; Wed, 4 Oct 2023 02:18:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE3SEV4cS3GzI/RvWFk1d6DyMmGDrAKI41K7tVp6zWZ0NrteCdWBd7lUzPi2+wdcJc6XqSZ X-Received: by 2002:a05:6808:f8f:b0:3a7:8e9a:e984 with SMTP id o15-20020a0568080f8f00b003a78e9ae984mr2054081oiw.57.1696411087189; Wed, 04 Oct 2023 02:18:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696411087; cv=none; d=google.com; s=arc-20160816; b=AvIzvmCuXiToY6ZMbcIwckMGeapwiulLJvp9F6EAhlXByVaOuBMEhUAQhOjZf3bsa9 Bdr+bWQx92eQr6NVaBkmyFtfbASpkM8jdSUCFeicFV4UeFj9wtwjoLd3qKm+WEXXDajt N/kN+Yh4tJDVH6rrQ5Y8TePurD7/H40M/9Xq1OECBGunKpxMReKKO4j/1YEUpWqvfgVY Y5Y/z/IM/+wNwng2bchShhyJw+ALBafxP8VERh5ag3xOJZ7iG7r3i8HLQ/qqdXX+zSRh B98KIsrGayPBQicMMnje11tK4f3J2EmZZ+58VbKdrqpTal1QrLFhQTlGuCcWo3hMtlj4 2yag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ea5OiJ9ON12vBbfkNy54tXC0IDhxfzZ9TFeWkUVfTzY=; fh=ItXiUQa06G5NtzfQ6MBP/cGHELTOauPzcHi5SmTT7Sw=; b=fi5D+YFJ65R1nPYEuI9oRiiFR8J/Cw9oxjjHIr4vMIO/Oqr6jNWFCBM6iUK79sqTWP mIhUlHaPz5pbnvSL22zdaauTlEmj5/Z8hh4SmeXkglWmSdldM6FAoCoD6G5gUIjXkxW8 zeR0sSb+Ek97pgIZEPYn7fFFYf5y7QIViTkSewKosn0NNvqayJPeu8yQeZ8YLGmA/YTz JHnvvuk/5cuDdrij1IzNtxlP10tjumbCzPH5Kaoya2dSXdx4sKv7Ft4UOS32Up/i5EZ8 NvgF+CvqU9PI7KA+bjMr1yYynOxnDxXPtB4pcwtRr8tRYKh0aveWxWFDkYS++3GwKi3f I4ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=BpCeNshx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id r27-20020a638f5b000000b005775a0cd009si3424527pgn.331.2023.10.04.02.18.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 02:18:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=BpCeNshx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 57FED81F3330; Wed, 4 Oct 2023 02:18:05 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241908AbjJDJRV (ORCPT + 18 others); Wed, 4 Oct 2023 05:17:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58726 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232862AbjJDJRU (ORCPT ); Wed, 4 Oct 2023 05:17:20 -0400 Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D24CEAF; Wed, 4 Oct 2023 02:17:16 -0700 (PDT) Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.22/8.17.1.22) with ESMTP id 3945iOOM022001; Wed, 4 Oct 2023 11:17:04 +0200 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=ea5OiJ9ON12vBbfkNy54tXC0IDhxfzZ9TFeWkUVfTzY=; b=Bp CeNshxTmQXJ+TECc/X+BSOla0/oT8MMmHcSQoDxxa41X1nMVukezWhetPHT1FyB3 ZGInwCsWdXgyMnBAqi2OaXOEImaHtDNYPeBzvyskwaf9v6Uo+BRnlNIruXbZQ1lH cLL0y6cAS++ETKoxA2LZBkDyeXnbTBeRs0e6PSe9w7F8HWc8oID00hDLAHIbZT+r ZkwiNK2HY+KEzp/4yF8jtPzwBURDEZvF81AXgfPOKCB2RpmsF9bdcKGF+XDRjo8d zn/Ri4z992i6xkcote6BUc16vS4x/ImPe0GTHs7ds1JR8HanSO6pCu+Jn7/CqTuf KrC444TxsVwUE9n3aUmw== 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 3teajd04xf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 04 Oct 2023 11:17:04 +0200 (MEST) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 9C2CC100057; Wed, 4 Oct 2023 11:17:03 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 945FF22A6DF; Wed, 4 Oct 2023 11:17:03 +0200 (CEST) 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, 4 Oct 2023 11:17:03 +0200 From: Hugues Fruchet To: Ezequiel Garcia , Philipp Zabel , Mauro Carvalho Chehab , Hans Verkuil , , Maxime Coquelin , Alexandre Torgue , , Rob Herring , Krzysztof Kozlowski , Conor Dooley , , , , CC: Hugues Fruchet , Andrzej Pietrasiewicz Subject: [PATCH 6/7] arm64: dts: st: add video decoder support to stm32mp255 Date: Wed, 4 Oct 2023 11:15:51 +0200 Message-ID: <20231004091552.3531659-7-hugues.fruchet@foss.st.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231004091552.3531659-1-hugues.fruchet@foss.st.com> References: <20231004091552.3531659-1-hugues.fruchet@foss.st.com> MIME-Version: 1.0 X-Originating-IP: [10.201.20.120] 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.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-04_01,2023-10-02_01,2023-05-22_02 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Wed, 04 Oct 2023 02:18:05 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778815951852679496 X-GMAIL-MSGID: 1778815951852679496 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 | 8 ++++++++ 2 files changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/st/stm32mp251.dtsi b/arch/arm64/boot/dts/st/stm32mp251.dtsi index 5268a4321841..0ca421ede0ae 100644 --- a/arch/arm64/boot/dts/st/stm32mp251.dtsi +++ b/arch/arm64/boot/dts/st/stm32mp251.dtsi @@ -46,6 +46,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 4f2b224fe077..105ef2d71c77 100644 --- a/arch/arm64/boot/dts/st/stm32mp255.dtsi +++ b/arch/arm64/boot/dts/st/stm32mp255.dtsi @@ -8,6 +8,14 @@ / { soc@0 { rifsc: rifsc-bus@42080000 { + vdec: vdec@480d0000 { + compatible = "st,stm32mp25-vdec"; + reg = <0x480d0000 0x3c8>; + interrupts = ; + interrupt-names = "vdec"; + clocks = <&ck_icn_p_vdec>; + clock-names = "vdec-clk"; + }; }; }; };