From patchwork Sat Jun 15 01:56:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Detlev Casanova X-Patchwork-Id: 13699220 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 39931C2BA12 for ; Sat, 15 Jun 2024 03:04: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:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=scWaqLYztAjS85HOrad/DQugydUjoVviVbe1YQvJXtk=; b=q8EBt55npya5RQyTzf7U+CODyW 3/ZoKnJst0f3XqPzVhcjsTWsG7kTbspJldURybJTzHRUQgyNsNL3shsNB2X9OMGizFBJzj5Ag2AcG n04cDGNIEIRcPMuEOBblz2nZOtK3bSwTtodp885RDtVR4wv7mYuf7DtUS+yRZ9nmHg5oJ2RrllHgC PWkKlkOsABtU8xVUuExhQWDooURSJXBOgrJ0oedtqrIisgrZvJwibimxA04CzDMNQ0xuBjTX9dYRw r9ZmBTMZR5/7KOXqKTC9DeaMaS4VoEw3ov5J3KQFo5A5ZDVoVpQNtHXqvvtoPQOvCCWq8HsOu6+tq MariirCQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sIJiA-00000004XMM-2yTg; Sat, 15 Jun 2024 03:04:14 +0000 Received: from madrid.collaboradmins.com ([46.235.227.194]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sIIgW-00000004RWo-1fms; Sat, 15 Jun 2024 01:58:30 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1718416707; bh=lk/SGaXH3eWpr32pis0Vh/iqYeLju2pSXUZws1AEuts=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=xX7O7lqlEpm3V8Y+fTQ0jjcCZVt3BsOgSg/Mpcpbtx2FBJ02E0eCC7ntl8vyKmJWv We6bEMBmijAKJxMQm5wa+rEbie3bWk969L9S3Ys888TCm9EMN/4QBWgQGvFrJ2FNwj 10fxgLq9RbQj+ijOquaYrw+ZOTZaObiI0gnm2N5asz45PssmvkokvTpHSncNCd226c bFx/RgDBQ8fow5a3SFv5eKleg5H7/4JWV4TquHryVFXEdNDv2P20lYk5j5yY2BU2zd aTXnNc25K6eKd0YD/Wtr0UiaTD3dADSVUiyu0MHvg8XgAjNu2uRTkJzTrrUanKM/Tt s+goGcga1ZXyg== Received: from arisu.hitronhub.home (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: detlev) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 5187E37821C7; Sat, 15 Jun 2024 01:58:24 +0000 (UTC) From: Detlev Casanova To: linux-kernel@vger.kernel.org Cc: Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , Greg Kroah-Hartman , Sebastian Reichel , Dragan Simic , Alexey Charkov , Cristian Ciocaltea , Diederik de Haas , Andy Yan , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-staging@lists.linux.dev, Detlev Casanova Subject: [PATCH 3/3] arm64: dts: rockchip: Add rkvdec2 Video Decoder on rk3588(s) Date: Fri, 14 Jun 2024 21:56:29 -0400 Message-ID: <20240615015734.1612108-4-detlev.casanova@collabora.com> X-Mailer: git-send-email 2.44.2 In-Reply-To: <20240615015734.1612108-1-detlev.casanova@collabora.com> References: <20240615015734.1612108-1-detlev.casanova@collabora.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240614_185828_603853_12F82B2E X-CRM114-Status: GOOD ( 10.39 ) 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 Add the rkvdec2 Video Decoder to the RK3588s devicetree. Signed-off-by: Detlev Casanova --- .../boot/dts/rockchip/rk3588-rock-5b.dts | 4 ++++ .../boot/dts/rockchip/rk3588s-orangepi-5.dts | 4 ++++ arch/arm64/boot/dts/rockchip/rk3588s.dtsi | 19 +++++++++++++++++++ 3 files changed, 27 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts b/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts index c551b676860c..965322c24a65 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts @@ -503,6 +503,10 @@ &pwm1 { status = "okay"; }; +&rkvdec0 { + status = "okay"; +}; + &saradc { vref-supply = <&avcc_1v8_s0>; status = "okay"; diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-orangepi-5.dts b/arch/arm64/boot/dts/rockchip/rk3588s-orangepi-5.dts index feea6b20a6bf..2828fb4c182a 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588s-orangepi-5.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588s-orangepi-5.dts @@ -321,6 +321,10 @@ typec5v_pwren: typec5v-pwren { }; }; +&rkvdec0 { + status = "okay"; +}; + &saradc { vref-supply = <&avcc_1v8_s0>; status = "okay"; diff --git a/arch/arm64/boot/dts/rockchip/rk3588s.dtsi b/arch/arm64/boot/dts/rockchip/rk3588s.dtsi index 0fecbf46e127..09672636dcea 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588s.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3588s.dtsi @@ -3034,6 +3034,9 @@ system_sram2: sram@ff001000 { ranges = <0x0 0x0 0xff001000 0xef000>; #address-cells = <1>; #size-cells = <1>; + rkvdec0_sram: rkvdec-sram@0 { + reg = <0x0 0x78000>; + }; }; pinctrl: pinctrl { @@ -3103,6 +3106,22 @@ gpio4: gpio@fec50000 { #interrupt-cells = <2>; }; }; + + rkvdec0: video-decoder@fdc38100 { + compatible = "rockchip,rk3588-vdec2"; + reg = <0x0 0xfdc38100 0x0 0x500>; + interrupts = ; + clocks = <&cru ACLK_RKVDEC0>, <&cru HCLK_RKVDEC0>, <&cru CLK_RKVDEC0_CORE>, + <&cru CLK_RKVDEC0_CA>, <&cru CLK_RKVDEC0_HEVC_CA>; + clock-names = "axi", "ahb", "core", + "cabac", "hevc_cabac"; + assigned-clocks = <&cru ACLK_RKVDEC0>, <&cru CLK_RKVDEC0_CORE>, + <&cru CLK_RKVDEC0_CA>, <&cru CLK_RKVDEC0_HEVC_CA>; + assigned-clock-rates = <800000000>, <600000000>, + <600000000>, <1000000000>; + power-domains = <&power RK3588_PD_RKVDEC0>; + status = "disabled"; + }; }; #include "rk3588s-pinctrl.dtsi"