Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp10687615rwl; Thu, 12 Jan 2023 00:57:03 -0800 (PST) X-Google-Smtp-Source: AMrXdXupV7gbQib9OvmAKs34GDy05wFTutg/hfiAIPMCN2vsDimogJu/SPoXQiflqLeU1Ae2jIMC X-Received: by 2002:a17:902:b60e:b0:189:89a4:3954 with SMTP id b14-20020a170902b60e00b0018989a43954mr77534038pls.41.1673513823076; Thu, 12 Jan 2023 00:57:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673513823; cv=none; d=google.com; s=arc-20160816; b=biMEsTWeQiPw2xcrnrEE37nxAbWyK26p+VPH1dizLcYc/c0TspqOtyJO3D/kbacoYe EwUwwhqOHLYXjvgU3MLzn8DWHG6huJxt/7g8+ZGQzb1XZBS6GGnRb/JCHIjH/R6qXHfa 7twCd0SuBAepRJzlncn3Th7Rt9M32EIkQb+crijANy4um8nLAFvNzZNJc9qjzBPJkC1G KL5dyVPyLR11mQcLUReYzud8Snm9WZKNw+l8m6IakD3nF9GYLB0muYPtxvYvM/WQGmrI 9AgqMyj7zeQ2m5Hz1LAUDQZY5IKjj90we9aqUvI0euqUadmHqc9tQJAjFC/v7LZvrW5j oZUw== 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=11aNuTnXnc1zBHf/DOng+UuHFjCbI3B9XtmDQSCZXi0=; b=PpQLuVoWoGuTqiOakNCBIzK53lMaH6tzuu2FXRLTQi7aHqQ3cvHnOeVyIN3lea8E7o C3N81hWsyRMoTKcLPavnGcxDRiS2/RCDFkVFIt2VMR9BcjuN9+fGZQcLEIBntxi6RitS khiR5nUtj7Gjw4crvDbB7MqSJ3G16/QF2Dhza6+XF6pthFPKF9vAOWjUsKtUbZfqO9hF gx4+FPkc7mYUXd5U/75gAdHgjj3ihbev+URqzD0F0d/HVP3pgTy17HObH7EtORAhuqXW u2savHom89vOYMjvaoX7f+4+tUcosBP03yniGHH8dB18PuHe3wKMdU0hfxd8KAkIvWpR LtNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="T/oYtKrz"; 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 z9-20020a170902d54900b0019296d17782si16717047plf.121.2023.01.12.00.56.56; Thu, 12 Jan 2023 00:57:03 -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="T/oYtKrz"; 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 S239336AbjALIqx (ORCPT + 50 others); Thu, 12 Jan 2023 03:46:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239876AbjALIqO (ORCPT ); Thu, 12 Jan 2023 03:46:14 -0500 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EFDA01CB26; Thu, 12 Jan 2023 00:45:15 -0800 (PST) X-UUID: 6ae3f558925511ed945fc101203acc17-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=11aNuTnXnc1zBHf/DOng+UuHFjCbI3B9XtmDQSCZXi0=; b=T/oYtKrzSUMMz50t8hgsKIi4kVvByvmyG67UG8u+vBcfT/HN3APhTLSQ9EcHYAWEVXQz4qSAmkkQ0k0v5WzJTeyyFNh6x/D2Bah92P8ab89qWq06DoVT07gmiMBtrXJZU3HI/QMLt6rzWpguMfSXVy1SYuKGq/AhlYx5mZmGIwI=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.17,REQID:1d47a175-7a12-481d-92c7-b21f73eac2aa,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:95,FILE:0,BULK:0,RULE:Release_Ham,ACTION :release,TS:95 X-CID-INFO: VERSION:1.1.17,REQID:1d47a175-7a12-481d-92c7-b21f73eac2aa,IP:0,URL :0,TC:0,Content:0,EDM:0,RT:0,SF:95,FILE:0,BULK:0,RULE:Spam_GS981B3D,ACTION :quarantine,TS:95 X-CID-META: VersionHash:543e81c,CLOUDID:cd610e8c-8530-4eff-9f77-222cf6e2895b,B ulkID:230112164509NT883R14,BulkQuantity:0,Recheck:0,SF:38|28|17|19|48,TC:n il,Content:0,EDM:-3,IP:nil,URL:11|1,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0 ,OSI:0,OSA:0 X-CID-APTURL: Status:success,Category:nil,Trust:0,Unknown:0,Malicious:0 X-CID-BVR: 0,NGT X-UUID: 6ae3f558925511ed945fc101203acc17-20230112 Received: from mtkmbs10n1.mediatek.inc [(172.21.101.34)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 410630771; Thu, 12 Jan 2023 16:45:08 +0800 Received: from mtkmbs11n1.mediatek.inc (172.21.101.185) by mtkmbs11n1.mediatek.inc (172.21.101.185) 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:06 +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:05 +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,1/2] arm64: dts: mt8195: add jpeg encode device node Date: Thu, 12 Jan 2023 16:45:02 +0800 Message-ID: <20230112084503.4277-2-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, T_SPF_TEMPERROR,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 jpegenc device node Signed-off-by: kyrie wu Signed-off-by: irui wang --- arch/arm64/boot/dts/mediatek/mt8195.dtsi | 40 ++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8195.dtsi b/arch/arm64/boot/dts/mediatek/mt8195.dtsi index 5d31536f4c48..af49ec352bfe 100644 --- a/arch/arm64/boot/dts/mediatek/mt8195.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8195.dtsi @@ -2152,6 +2152,46 @@ #clock-cells = <1>; }; + + jpgenc-master { + compatible = "mediatek,mt8195-jpgenc"; + power-domains = <&spm MT8195_POWER_DOMAIN_VENC_CORE1>; + iommus = <&iommu_vpp M4U_PORT_L20_JPGENC_Y_RDMA>, + <&iommu_vpp M4U_PORT_L20_JPGENC_C_RDMA>, + <&iommu_vpp M4U_PORT_L20_JPGENC_Q_TABLE>, + <&iommu_vpp M4U_PORT_L20_JPGENC_BSDMA>; + dma-ranges = <0x1 0x0 0x0 0x40000000 0x0 0xfff00000>; + #address-cells = <2>; + #size-cells = <2>; + ranges; + + jpgenc@1a030000 { + compatible = "mediatek,mt8195-jpgenc-hw"; + reg = <0 0x1a030000 0 0x10000>; + iommus = <&iommu_vdo M4U_PORT_L19_JPGENC_Y_RDMA>, + <&iommu_vdo M4U_PORT_L19_JPGENC_C_RDMA>, + <&iommu_vdo M4U_PORT_L19_JPGENC_Q_TABLE>, + <&iommu_vdo M4U_PORT_L19_JPGENC_BSDMA>; + interrupts = ; + clocks = <&vencsys CLK_VENC_JPGENC>; + clock-names = "jpgenc"; + power-domains = <&spm MT8195_POWER_DOMAIN_VENC>; + }; + + jpgenc@1b030000 { + compatible = "mediatek,mt8195-jpgenc-hw"; + reg = <0 0x1b030000 0 0x10000>; + iommus = <&iommu_vpp M4U_PORT_L20_JPGENC_Y_RDMA>, + <&iommu_vpp M4U_PORT_L20_JPGENC_C_RDMA>, + <&iommu_vpp M4U_PORT_L20_JPGENC_Q_TABLE>, + <&iommu_vpp M4U_PORT_L20_JPGENC_BSDMA>; + interrupts = ; + clocks = <&vencsys_core1 CLK_VENC_CORE1_JPGENC>; + clock-names = "jpgenc"; + power-domains = <&spm MT8195_POWER_DOMAIN_VENC_CORE1>; + }; + }; + larb20: larb@1b010000 { compatible = "mediatek,mt8195-smi-larb"; reg = <0 0x1b010000 0 0x1000>; -- 2.18.0