From patchwork Tue Jan 9 08:51:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hugues Fruchet X-Patchwork-Id: 186282 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:37c1:b0:101:2151:f287 with SMTP id y1csp1522121dyq; Tue, 9 Jan 2024 00:54:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IFPIvf4i8GWLd3z5h8nESuUn/06bQycGfIr6P70ZbcmNxetiYX457vbiU6Fo1REjpn+KsZ7 X-Received: by 2002:a05:6a20:c51a:b0:199:e08c:f43f with SMTP id gm26-20020a056a20c51a00b00199e08cf43fmr1128965pzb.37.1704790453557; Tue, 09 Jan 2024 00:54:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704790453; cv=none; d=google.com; s=arc-20160816; b=tD0wvY80Zut9oIt1Fb/PTxa37RDt4gQB9mddl253ULTLrLciY7G/LGE5jpUZEdZRq2 QlOjzV3U5b3oJwRoRVFfMWqtKFJbxAfazl+75EVY7fPoHSecA+nuYpK15ywTQUxdOVJZ +7TaVv2bPT+5l7qhAjuNqUovRpCA3w4FvfkZBt4J1Sy2Lajqbb04Lzut/2l7rN/2h9+R CTIfrJw0Z0aeMEX6s3xMYAXBTb6uTJ6Ehyyp+w4E4c3pus5DoBmKJ0J2+uFeDs33JrTL yMT/E9N/VMGGNr9atOELYzQzeDkN1Y3MRFSCZgyoVNOXhjm/nkBhI4vIzIKgkB/rjf8f 9JKg== 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=d3+8QaZL5Q12BYNNjvgOop8BJQqBBykIHDvrQ47QtiM=; b=iMPBny5ID8apRVj3bzOdNx7j6qq25Fm7ba5UP9JrziXr34DFtF0WdI0rCQv1FNhgnG VUkkzzaST5f4I4n3EYv+VDmbrxiLNO0rEEc4IgYRlr9w2Nk/hcZjKLnXkGtmYAZAhwuP 8oWuueV5cqogaSrQovR9ZH7oyr3cJMrYCeN2IvgDhnD0tsUBo6O0tPvV/yhgejy+fadR tIlC6+aRV8vXaBTRI99kmhyNDVJrc7+g5fmabR+xH2kb1Zu9wR44Nres4ONDUBN2iiDP ++dD+ey7Oa6aerr4+uUEl0ECuPNyp4BUxtdHCTWIA3wSb3kcQA/USZHDW28HY5BRUNqJ G5/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=CYtU+7nI; spf=pass (google.com: domain of linux-kernel+bounces-20621-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20621-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id ie23-20020a17090b401700b0028cd4e6e480si1182731pjb.22.2024.01.09.00.54.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 00:54:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-20621-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=CYtU+7nI; spf=pass (google.com: domain of linux-kernel+bounces-20621-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20621-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 58941285E78 for ; Tue, 9 Jan 2024 08:54:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3AA502E636; Tue, 9 Jan 2024 08:53:29 +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="CYtU+7nI" 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 91A98364CC; Tue, 9 Jan 2024 08:53:24 +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.24/8.17.1.24) with ESMTP id 4091joSS022003; Tue, 9 Jan 2024 09:53:04 +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=CY tU+7nIKqTvdGSGCsJFxaidkzMCAuZ40odViR4qwIcQW5kqqoLHcPgr4fa5nemqEq pd1v2JPDtU4SPoYXjZ5aBOE5QGH/IctOmpXRuD34Qwrfs3d3joXbVKu6K2uCcFqH zVlqgZnGxIbVpV4dphD72AkU7RaPPxR3IgprhPe+PDyse5nBdsT5HGq/8DPH8+ru RXpRiitkuCqrG7DgxzHJOakgyPzAcKrMbugouH1jEGPWs5kg4FLz8PNrpUrU1dcF VSrYMV1Lvof90KgcBCfZEEqEC3JS4vTvWaoaeTSp9t+jRrZJobRZmGhaznebnLuZ yFccDQdSvbwgDwmmK9Uw== 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 3vfha4ghex-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 09 Jan 2024 09:53:04 +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 1431810002A; Tue, 9 Jan 2024 09:53:04 +0100 (CET) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 09FA322FA27; Tue, 9 Jan 2024 09:53:04 +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:53:03 +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 5/5] arm64: dts: st: add video encoder support to stm32mp255 Date: Tue, 9 Jan 2024 09:51:55 +0100 Message-ID: <20240109085155.252358-6-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: 1787602354705168726 X-GMAIL-MSGID: 1787602354705168726 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>; + }; }; }; };