Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp1165740lqs; Fri, 14 Jun 2024 19:00:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUDJ5kCbjSRfb935cdlGzQjR68/wTJyzGPxRsWtLHETpIBLMKEkxjUgR5U+tyioG3F4QEil/IJ3520HmEe5DJ48O0Lg32a8el4ViaEWIA== X-Google-Smtp-Source: AGHT+IFz++rNGcBirnJOSpzOzoXbJ/iaC/DONLoY74JDaXL+J4NlX1PImX4mYCAHfLDxO5BYguXn X-Received: by 2002:a05:6358:5390:b0:19f:4a60:e6fc with SMTP id e5c5f4694b2df-19fb4f5be9dmr521361555d.25.1718416822457; Fri, 14 Jun 2024 19:00:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718416822; cv=pass; d=google.com; s=arc-20160816; b=D8WnEOhblhVAm6LEtY6o26i8AdyboUPQPiep4Pjp1Vod5B8R+hJDX1GE/jceYkxVjC p38Dk4xuukyFz88ntKA52SUbUkH+97JSvU0z8d+a2LLSvm4YZenWUQ+xUjMGTxF/1iYL 5wHeIpLgJuXnb+KhfVbUV6/ny1zrq1Mg1+4K1DLebHw2WgkCjr54SgO/qWSad1TETvJs rkeLZRDw230OaSEZHLMN5T5aCvQw5pQlEL4IbZGswcUiXvS2P/bgFqgXjdKSnljcvhYC WcJ6/6hSrTwUEakgxASwSbwLcHI0nbhm4LcQDXqiYKikutpWmEp0OWjLHnCpk0StRNUn gmcA== ARC-Message-Signature: i=2; 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=scWaqLYztAjS85HOrad/DQugydUjoVviVbe1YQvJXtk=; fh=VwhB0hhak1SATeu0Vd4oZHcg4AC2OxnVeakGo/5WwMc=; b=s8OzFVjwgwHbg7tiD/VyGY9T+G30HrVusPzheJwfgumNzGSrjK6tzLhuXE8G6sMQIp 1fZZA2cWcZjzO0uWpPZARFFfBCeaaE3JXlLO5VFyGnn3O52kvgMvfCNfASk44upp0a1Y TnTKS9+XSfN4AU7TbfV9WaY1v8ZTSpuj+E8PymZHeLgZXvKvly4HU6M7fjm32SOg4GDM kF0aC4tE0lEICtYRnEumc2bgyjJGVGq5XE6f57bw+BM+mJmAnlfCYZxVQQkn70UwEVc1 UmYSimHgelQbzSD67EgIinBC0UGGwjvc8DbeTBANWfVhxTs8xQ3Uj0DRIN1wWAknK5KD TKyQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=xX7O7lql; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-215648-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215648-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d9443c01a7336-1f855ece8d6si44332625ad.202.2024.06.14.19.00.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 19:00:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-215648-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=xX7O7lql; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-215648-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215648-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.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 99E34B224E3 for ; Sat, 15 Jun 2024 01:59:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E898516415; Sat, 15 Jun 2024 01:58:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="xX7O7lql" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (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 9F9EF107A0; Sat, 15 Jun 2024 01:58:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718416710; cv=none; b=OIDkWjcCATH8yr0BiNn7WOh3x5tiN9Pl/7oZKZelDpnCyQU738FIKC21RasIbf4XbgbEEoTkSwCg8R/bV9A+xBCKVEUP2wIVs30egeTdgoi/7Cn1z/UmIbD0phXhqxOeBcT4dmnSA7QflpK1A0g+ZgJaLOxwtdE4jaqR8QxnkNs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718416710; c=relaxed/simple; bh=lk/SGaXH3eWpr32pis0Vh/iqYeLju2pSXUZws1AEuts=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=cpHcvLdGjTa864nrFhNfbIsc4oREdYzqeLbQMQjuyo1yltjUA5tQV0Zuy6IDt/YuMdfIZon/Az2Wz6I6HIMYzXYXzghhqQ9+EMnOJA9S1FbOkY5AXazweTkKkRMd4VLjfXv4JAGH/5ETqMkRwR7lEXtcw6q2Qg4W4+OE4+eaNok= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=xX7O7lql; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com 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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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" -- 2.44.2