Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp10687695rwl; Thu, 12 Jan 2023 00:57:07 -0800 (PST) X-Google-Smtp-Source: AMrXdXv4c2FR2NiiQecefPLm0D/raVzDmEMHXWS5qWWRO7QztOFX6z3UVKMpF8jXgBw0nq96XIMv X-Received: by 2002:a17:902:ab96:b0:192:8d52:45e6 with SMTP id f22-20020a170902ab9600b001928d5245e6mr5755778plr.11.1673513826950; Thu, 12 Jan 2023 00:57:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673513826; cv=none; d=google.com; s=arc-20160816; b=MB4tugSgS1etggD+L+Nd7+LYHeIOplD5aQF1Jm45rnug4fm3RixUU8uOxKaZ8AHU3I lsiWJWJ0bg1qVEv3CUZmFyFdwC17eBixGrTUWhhkhsLWDq8+xVlHYcyTPDITyW0KbAD1 YCwLQHAHFIuj9nSKEUx54YFBJBzcA3zCJJg+M27HOMpUAKiGjLXwC3IBUPvjXXUNhWj+ OUQzM3cEEq/Pbbr8pszqT6lUWa4bxZbI6ndo8O2gELoJm4QYQoDrz7vzemvmNIa5p8bn +oFJKB5xmz/Xzdu898Dvo35oWXtq2iEXG8uhAFBv/ICpIIHocySWl11PH1TTJiVmX8Qp tS8A== 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=Wxi9Qy3WCX4lZPEMGHKiUq/2jxBrcJqTGD7hJUEmIKM=; b=t0mr8LEYCX++uexQhfviD23zJNskoUNSvSOpApD3xZ7G8SOttNV0tYqJCBkKO5SqHF c8+UPV3/jjf5juNeUCuRHWoS+haZq+jLIiCj/fQRiwmtYEGVg0Avl6dTRQRdCrYyE77b Ghpi357SZxMyuGjSuhse1e62u8DJF5nJ6l1uWT9aovcQJwfNL3dModfaPD5YcQHEFvpl oS5BJ2FzwC2XyGqra+p102fF6Umg5MPjn2EV9WuhcwX3VaEj3j2dPSwMNNVi2KeHxzuh dHO+6QPzYJrrOAZN2ue7WJSF7HY/QoNsreihMsl0qSySVHdVroKI3iWyoBn4b/O5KApo yuUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=IOgilVKv; 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=mediatek.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k9-20020a170902d58900b001943e4426a2si7222419plh.431.2023.01.12.00.57.00; Thu, 12 Jan 2023 00:57:06 -0800 (PST) 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=@mediatek.com header.s=dk header.b=IOgilVKv; 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=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239903AbjALIq6 (ORCPT + 50 others); Thu, 12 Jan 2023 03:46:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230136AbjALIqO (ORCPT ); Thu, 12 Jan 2023 03:46:14 -0500 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 25EE72F7BD; Thu, 12 Jan 2023 00:45:16 -0800 (PST) X-UUID: 6b47c2fe925511eda06fc9ecc4dadd91-20230112 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=Wxi9Qy3WCX4lZPEMGHKiUq/2jxBrcJqTGD7hJUEmIKM=; b=IOgilVKvgl/W0FWZXFD/9ozXr0u8kRejx3mamiakCo1XMf5xGr+VvQIOnDaXPQobewOxvpgbFlg0EAzeLYHxu+prFGvTWn+kyWgebACw9KOuih99koVzny8FGHFRI39F4c+9Kru4dbhqve1ty02GTO5QWzNJJnWr8oM/27ZtG9Q=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.17,REQID:20405a3e-7f59-4a7b-a7ed-4d36ca9bd6ba,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION: release,TS:0 X-CID-META: VersionHash:543e81c,CLOUDID:dc697354-dd49-462e-a4be-2143a3ddc739,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:11|1,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0 X-CID-BVR: 0,NGT X-UUID: 6b47c2fe925511eda06fc9ecc4dadd91-20230112 Received: from mtkmbs11n2.mediatek.inc [(172.21.101.187)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 545303540; Thu, 12 Jan 2023 16:45:08 +0800 Received: from mtkmbs11n1.mediatek.inc (172.21.101.186) by mtkmbs10n1.mediatek.inc (172.21.101.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.15; Thu, 12 Jan 2023 16:45:08 +0800 Received: from mhfsdcap04.gcn.mediatek.inc (10.17.3.154) by mtkmbs11n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.792.15 via Frontend Transport; Thu, 12 Jan 2023 16:45:06 +0800 From: Irui Wang To: Hans Verkuil , Rob Herring , Krzysztof Kozlowski , "Mauro Carvalho Chehab" , Matthias Brugger , , , kyrie wu CC: , , , , , , Tomasz Figa , , , Irui Wang Subject: [V1,2/2] arm64: dts: mt8195: add jpeg decode device node Date: Thu, 12 Jan 2023 16:45:03 +0800 Message-ID: <20230112084503.4277-3-irui.wang@mediatek.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230112084503.4277-1-irui.wang@mediatek.com> References: <20230112084503.4277-1-irui.wang@mediatek.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-MTK: N X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_PASS,UNPARSEABLE_RELAY 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: kyrie wu add mt8195 jpegdec device node Signed-off-by: kyrie wu Signed-off-by: irui wang --- arch/arm64/boot/dts/mediatek/mt8195.dtsi | 60 ++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8195.dtsi b/arch/arm64/boot/dts/mediatek/mt8195.dtsi index af49ec352bfe..d5d0aeac57e4 100644 --- a/arch/arm64/boot/dts/mediatek/mt8195.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8195.dtsi @@ -2192,6 +2192,66 @@ }; }; + jpgdec-master { + compatible = "mediatek,mt8195-jpgdec"; + power-domains = <&spm MT8195_POWER_DOMAIN_VDEC1>; + iommus = <&iommu_vdo M4U_PORT_L19_JPGDEC_WDMA0>, + <&iommu_vdo M4U_PORT_L19_JPGDEC_BSDMA0>, + <&iommu_vdo M4U_PORT_L19_JPGDEC_WDMA1>, + <&iommu_vdo M4U_PORT_L19_JPGDEC_BSDMA1>, + <&iommu_vdo M4U_PORT_L19_JPGDEC_BUFF_OFFSET1>, + <&iommu_vdo M4U_PORT_L19_JPGDEC_BUFF_OFFSET0>; + dma-ranges = <0x1 0x0 0x0 0x40000000 0x0 0xfff00000>; + #address-cells = <2>; + #size-cells = <2>; + ranges; + + jpgdec@1a040000 { + compatible = "mediatek,mt8195-jpgdec-hw"; + reg = <0 0x1a040000 0 0x10000>;/* JPGDEC_C0 */ + iommus = <&iommu_vdo M4U_PORT_L19_JPGDEC_WDMA0>, + <&iommu_vdo M4U_PORT_L19_JPGDEC_BSDMA0>, + <&iommu_vdo M4U_PORT_L19_JPGDEC_WDMA1>, + <&iommu_vdo M4U_PORT_L19_JPGDEC_BSDMA1>, + <&iommu_vdo M4U_PORT_L19_JPGDEC_BUFF_OFFSET1>, + <&iommu_vdo M4U_PORT_L19_JPGDEC_BUFF_OFFSET0>; + interrupts = ; + clocks = <&vencsys CLK_VENC_JPGDEC>; + clock-names = "jpgdec"; + power-domains = <&spm MT8195_POWER_DOMAIN_VDEC0>; + }; + + jpgdec@1a050000 { + compatible = "mediatek,mt8195-jpgdec-hw"; + reg = <0 0x1a050000 0 0x10000>;/* JPGDEC_C1 */ + iommus = <&iommu_vdo M4U_PORT_L19_JPGDEC_WDMA0>, + <&iommu_vdo M4U_PORT_L19_JPGDEC_BSDMA0>, + <&iommu_vdo M4U_PORT_L19_JPGDEC_WDMA1>, + <&iommu_vdo M4U_PORT_L19_JPGDEC_BSDMA1>, + <&iommu_vdo M4U_PORT_L19_JPGDEC_BUFF_OFFSET1>, + <&iommu_vdo M4U_PORT_L19_JPGDEC_BUFF_OFFSET0>; + interrupts = ; + clocks = <&vencsys CLK_VENC_JPGDEC_C1>; + clock-names = "jpgdec"; + power-domains = <&spm MT8195_POWER_DOMAIN_VDEC1>; + }; + + jpgdec@1b040000 { + compatible = "mediatek,mt8195-jpgdec-hw"; + reg = <0 0x1b040000 0 0x10000>;/* JPGDEC_C2 */ + iommus = <&iommu_vpp M4U_PORT_L20_JPGDEC_WDMA0>, + <&iommu_vpp M4U_PORT_L20_JPGDEC_BSDMA0>, + <&iommu_vpp M4U_PORT_L20_JPGDEC_WDMA1>, + <&iommu_vpp M4U_PORT_L20_JPGDEC_BSDMA1>, + <&iommu_vpp M4U_PORT_L20_JPGDEC_BUFF_OFFSET1>, + <&iommu_vpp M4U_PORT_L20_JPGDEC_BUFF_OFFSET0>; + interrupts = ; + clocks = <&vencsys_core1 CLK_VENC_CORE1_JPGDEC>; + clock-names = "jpgdec"; + power-domains = <&spm MT8195_POWER_DOMAIN_VDEC2>; + }; + }; + larb20: larb@1b010000 { compatible = "mediatek,mt8195-smi-larb"; reg = <0 0x1b010000 0 0x1000>; -- 2.18.0