Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1327434rwd; Wed, 7 Jun 2023 14:40:06 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6EljdgaJ5v6hbNhRTY1aUaIC1IT+DBjQJEdXp8Cs0H1afS+vzfqzuF/crNw6yQDY52e8op X-Received: by 2002:a05:6a21:6802:b0:ff:a017:2b07 with SMTP id wr2-20020a056a21680200b000ffa0172b07mr2935501pzb.20.1686174006632; Wed, 07 Jun 2023 14:40:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686174006; cv=none; d=google.com; s=arc-20160816; b=GN897BXdV64/ZSRWESPux1ZqbLmMKZYHc7OArh/U5fWIKRNXUjbxs/gwo4qwpFwyBN yz1IjSOr1WfK8LSAzoQDYh2ZWqU8WTS/Mg8ju8SnhW9lTYEGHw2wwp/TrtLC1CeizpN/ K4RyUbqK2cw0GssGZpUwDztqmvxyJPoyCTTC9AXHGFrgPpsk9mPojcat4K0DLAKNLy8F UIEHKJroVXbE7arxQmpTRnNtFalVIBiEn/GlPWKLvvVOnoPDZsGdzNbARzYFM0bVlFlw 3/1lP/9VF2aa1+DuwJrLfDDKlRMyUlxnjzOUOg4gjKwNF4tiaF+YUJ2qcwbtxH3kMwaQ ZzLQ== 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=F92N21JScWDdIS3rS3SR+s3gD+F90zMQJD3JfUfvLdw=; b=iVbNnLPgLhNNEWJtRzytauye4QMn0B5ET9tm0ygd1oYn2OdHXhKTd6s1LyK0GyFL0O UICxpoY1OWSOXzyfZaEFNo01XJjgiozFRXG5Yg39arjci+5o+xdJQolfCeNc/+O95Yld VVJlTiMIDvbtFRv30gGB4lszeYs4E2n/t5titiF+hrkJkrzMNJFAUOuF8R2nuMQsN+II CA4zVGu1UwWK600Ui7BY2xrZU35HOeGnbA6i+4BV1YPS7ogDLsn+ndESVsu5/0v4b/sr ETf7iyPRUaveAj+HYm9HZDgn06ZGsLgS5YoCf0MNsY15X2lrfVVsbr2kDE8vL2qci2ia uIQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=VDgVaqU8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s6-20020a625e06000000b0065300b42889si1923363pfb.363.2023.06.07.14.39.54; Wed, 07 Jun 2023 14:40:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=VDgVaqU8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235828AbjFGU6N (ORCPT + 99 others); Wed, 7 Jun 2023 16:58:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235671AbjFGU55 (ORCPT ); Wed, 7 Jun 2023 16:57:57 -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 6FCE42693; Wed, 7 Jun 2023 13:57:43 -0700 (PDT) Received: from notapiano.myfiosgateway.com (zone.collabora.co.uk [167.235.23.81]) (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: nfraprado) by madras.collabora.co.uk (Postfix) with ESMTPSA id 5C96A6606F00; Wed, 7 Jun 2023 21:57:40 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1686171462; bh=SX2kQXHH/m6V86MJ8NInkW8P4EQpUbbxEWsbsnTyfNw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VDgVaqU8ozr8487B8htKhaUh22RVmJT0IFTvQrjhRKNxbOWwZ1oM7q/pYHh+RLWPX eSF4Est21YuR+58D0gs+V5g9QtczhK0jSS4KrpdqhyVXDmQpGGxZY279D8wI1EEaIv TCYwOBiACJpEeJfdsVzuQ2ge03dip5+Wk2h6n39CN5IophZ9aQCvZ0mLQgBi5QzxVo 3JDCOHg6+b6y5B/Dzf7aPJEPqGVs+iPSpps2LmbM3LKeKbqVRETp+VCOTjwr0OlIbJ 9L6tZGNXDoEXMCw4orP36s5xjYuLtSXUKo1pxjTbp+x1b71lXKV6P6F0PLhT8HJu0k PLo/Br1QzZAkg== From: =?UTF-8?q?N=C3=ADcolas=20F=2E=20R=2E=20A=2E=20Prado?= To: Matthias Brugger , Hans Verkuil Cc: kernel@collabora.com, AngeloGioacchino Del Regno , Yunfei Dong , =?UTF-8?q?N=C3=ADcolas=20F=20=2E=20R=20=2E=20A=20=2E=20Prado?= , Conor Dooley , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: [PATCH v2 5/5] arm64: dts: mediatek: mt8183: Add decoder Date: Wed, 7 Jun 2023 16:53:42 -0400 Message-ID: <20230607205714.510012-6-nfraprado@collabora.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230607205714.510012-1-nfraprado@collabora.com> References: <20230607205714.510012-1-nfraprado@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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, T_SCC_BODY_TEXT_LINE,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 From: Yunfei Dong Add node for the hardware decoder present on the MT8183 SoC. Signed-off-by: Yunfei Dong Signed-off-by: Qianqian Yan Signed-off-by: Frederic Chen Signed-off-by: Alexandre Courbot Signed-off-by: NĂ­colas F. R. A. Prado --- Changes in v2: - Reformatted reg-names to fit in fewer lines arch/arm64/boot/dts/mediatek/mt8183.dtsi | 30 ++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8183.dtsi b/arch/arm64/boot/dts/mediatek/mt8183.dtsi index 5169779d01df..28ad6c480430 100644 --- a/arch/arm64/boot/dts/mediatek/mt8183.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8183.dtsi @@ -2019,6 +2019,36 @@ vdecsys: syscon@16000000 { #clock-cells = <1>; }; + vcodec_dec: video-codec@16020000 { + compatible = "mediatek,mt8183-vcodec-dec"; + reg = <0 0x16020000 0 0x1000>, /* VDEC_MISC */ + <0 0x16021000 0 0x800>, /* VDEC_VLD */ + <0 0x16021800 0 0x800>, /* VDEC_TOP */ + <0 0x16022000 0 0x1000>, /* VDEC_MC */ + <0 0x16023000 0 0x1000>, /* VDEC_AVCVLD */ + <0 0x16024000 0 0x1000>, /* VDEC_AVCMV */ + <0 0x16025000 0 0x1000>, /* VDEC_PP */ + <0 0x16026800 0 0x800>, /* VP8_VD */ + <0 0x16027000 0 0x800>, /* VP6_VD */ + <0 0x16027800 0 0x800>, /* VP8_VL */ + <0 0x16028400 0 0x400>; /* VP9_VD */ + reg-names = "misc", "ld", "top", "cm", "ad", "av", "pp", + "hwd", "hwq", "hwb", "hwg"; + interrupts = ; + iommus = <&iommu M4U_PORT_HW_VDEC_MC_EXT>, + <&iommu M4U_PORT_HW_VDEC_PP_EXT>, + <&iommu M4U_PORT_HW_VDEC_VLD_EXT>, + <&iommu M4U_PORT_HW_VDEC_AVC_MV_EXT>, + <&iommu M4U_PORT_HW_VDEC_PRED_RD_EXT>, + <&iommu M4U_PORT_HW_VDEC_PRED_WR_EXT>, + <&iommu M4U_PORT_HW_VDEC_PPWRAP_EXT>; + mediatek,scp = <&scp>; + power-domains = <&spm MT8183_POWER_DOMAIN_VDEC>; + clocks = <&vdecsys CLK_VDEC_VDEC>, + <&vdecsys CLK_VDEC_ACTIVE>; + clock-names = "vdec", "active"; + }; + larb1: larb@16010000 { compatible = "mediatek,mt8183-smi-larb"; reg = <0 0x16010000 0 0x1000>; -- 2.41.0