From patchwork Thu Oct 5 16:09:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Gaignard X-Patchwork-Id: 148899 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2016:b0:403:3b70:6f57 with SMTP id fe22csp417041vqb; Thu, 5 Oct 2023 09:27:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHrmxugJAAsMOLFIBcBfrAoGhXxon3xsfNihIJsXWGsuvaqtElZqPw948/azub5LCIy573H X-Received: by 2002:a05:6a20:1611:b0:15a:13f3:49ca with SMTP id l17-20020a056a20161100b0015a13f349camr7530324pzj.9.1696523259921; Thu, 05 Oct 2023 09:27:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696523259; cv=none; d=google.com; s=arc-20160816; b=g1CprMmDwqUkbBtbKnqU4z8aVzWJEHNqiyv9sfDsdcDAKt9hKAckN0iAqlU1815MAV ECQzQnZgC/jonpVOnTfHHr+OXX88JE34foi4vLN82C2vxYxRUIZAN+BxL/i2JZ53rxj8 hFuTRr4ujfvnV0tLjdVqKyBnwXk4DHh4UO9v/tN7lo7A1qAH2sxOwOTmKv2pG75fH6q0 HumgVbUOcBDG+BM0NbT3wtAMC4mb+ztWiBDIJyRjE5S3HSe2xSIi1N2BdkAlgkGqoOXA GrXoL4dm+Ndh6pVH8SVL9bkJGyK3YAQu3Y3gFsr+YrGOFXmaoap952SwIVLArg4vq2+f 6eXw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=RFGrG8byG2wTCLH5k6im8C/9su03KKhzXgdNJoUUNHM=; fh=3bR/W0Z79zJPME8cq6mN9pWZI43Ro2zUeitEIouTIZ0=; b=aZUTQ6Mk1y1UqXdO+oZ9IjAuHokSyf1aKEiPX8gB815DdmJVatauESByPDovmzcXYH +D0mRuJiDT+mx6lAu4Vl1npi1vJ4LW5q3oN6bwdS2eekcY/Q3jrr43JUeBoQTMemtF8z e2ZbvzGXghY8lnqA4/a7WwnESVP2od58O6rHB8BV1O0Tbf5YsAgARciWjkcOPVPcKZ5r mKFcVUwkGKnNMLsyC26Kmc+CDdKRT8FQLb01N8pF9jb5ySm2EtDxVMJFA2NJToJX/5K6 uNh7xXuGt8ZOQpOUbX0Of/cFMPqcV8+wNsGy5av9WPzrNRP2aIr21MoZC000Tw6pFCu7 qcog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=UvRfEuBr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id j6-20020a056a00234600b0068fcf6fe22csi1763765pfj.304.2023.10.05.09.27.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 09:27:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=UvRfEuBr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id D91EB80FD3BF; Thu, 5 Oct 2023 09:27:38 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242051AbjJEQXn (ORCPT + 19 others); Thu, 5 Oct 2023 12:23:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60152 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241473AbjJEQVH (ORCPT ); Thu, 5 Oct 2023 12:21:07 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F9E71FC19; Thu, 5 Oct 2023 09:10:05 -0700 (PDT) Received: from benjamin-XPS-13-9310.. (unknown [IPv6:2a01:e0a:120:3210:4c53:5fd0:f25b:b0dd]) (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: benjamin.gaignard) by madras.collabora.co.uk (Postfix) with ESMTPSA id E8665660733A; Thu, 5 Oct 2023 17:10:03 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1696522204; bh=MS3ouzfxPge6VQw34LqgJIvXVcUvybR31bUNy63VMFE=; h=From:To:Cc:Subject:Date:From; b=UvRfEuBrzq3bFekdh91Yo8rKZQeI9iC3Ym2AgINk2TWrzuYDtFjVoTWtNK6Eyh8ej xC7DoMMlRR2r15aYl8MLCaIdeIGECTQu9RneHGeY4A+8f8ZeCs3j4TALNxb3xwPHNu 66GJDJA6zFjp2LS3KaAERz+tIejMrLsqgcUKj/8Yt6t6COg4TdJOG7Mdp4bzRs8LCR uXe2HtJFr+qVUgNpjgVFngFyGy0kc+lx/Vq0AWc4Svp0gPGFfyceHbKdILR31zym1a VvRh5aPrUH/Q/K8bB28Ss+qLo8CKO8zHnaSL3zeBmQETcOxYRv/CjnAoD+SoyOROrT fe6IKSv4N0jSg== From: Benjamin Gaignard To: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, heiko@sntech.de Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@collabora.com, Benjamin Gaignard , Sebastian Reichel Subject: [PATCH v2] arm64: dts: rockchip: rk3588s: Add AV1 decoder node Date: Thu, 5 Oct 2023 18:09:57 +0200 Message-Id: <20231005160957.269202-1-benjamin.gaignard@collabora.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (howler.vger.email [0.0.0.0]); Thu, 05 Oct 2023 09:27:38 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778933573901105259 X-GMAIL-MSGID: 1778933573901105259 Add node for AV1 video decoder. Signed-off-by: Benjamin Gaignard Reviewed-by: Sebastian Reichel --- version 2: - change node name to video-codec - fix typo in commit header arch/arm64/boot/dts/rockchip/rk3588s.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588s.dtsi b/arch/arm64/boot/dts/rockchip/rk3588s.dtsi index 5544f66c6ff4..1a50da77c7c6 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588s.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3588s.dtsi @@ -2304,6 +2304,20 @@ gpio4: gpio@fec50000 { #interrupt-cells = <2>; }; }; + + av1d: video-codec@fdc70000 { + compatible = "rockchip,rk3588-av1-vpu"; + reg = <0x0 0xfdc70000 0x0 0x800>; + interrupts = ; + interrupt-names = "vdpu"; + clocks = <&cru ACLK_AV1>, <&cru PCLK_AV1>; + clock-names = "aclk", "hclk"; + assigned-clocks = <&cru ACLK_AV1>, <&cru PCLK_AV1>; + assigned-clock-rates = <400000000>, <400000000>; + resets = <&cru SRST_A_AV1>, <&cru SRST_P_AV1>, <&cru SRST_A_AV1_BIU>, <&cru SRST_P_AV1_BIU>; + power-domains = <&power RK3588_PD_AV1>; + status = "okay"; + }; }; #include "rk3588s-pinctrl.dtsi"