From patchwork Fri Oct 4 08:11:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fei Shao X-Patchwork-Id: 13821897 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B9E15CFA74C for ; Fri, 4 Oct 2024 08:22:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=9DhL+yqm4JWemXjqVREhHsRQssA7CSfL5kIS59CVyeA=; b=d394YITO7L3+MoAZA7MWQbMx7w W0/ON6KJViGagIhbHpPfa8wtnPamLx7dHwfxmCeUaJLSgPu6r9YX5p3XdXIqMY4OOuFqyZ5pRVu2p hPPtdjz4KkqWQLkYWdnImHCo982p09DTAO1PXmhTMhvHPE0m78ZcXfG6eCgFU8JgZgQnZX8W3A5T9 Qot1bgr8KM0Sv+KGC7jpp4yQfJbg0H3wpTA8+dPlIRQKGlcP9vjx8wL+3EMgv1vx0874098/Ws6gh wI3zMhETtk32zX4smtgDTnuxCgVRTfWqn6dr7GmlUhGIdhl4AU5bJPc/5H6X5yjeK4YXTeFMXcAAc //ziYUXQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1swdZt-0000000BOIW-2eWP; Fri, 04 Oct 2024 08:22:21 +0000 Received: from mail-pl1-x631.google.com ([2607:f8b0:4864:20::631]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1swdQq-0000000BM30-2veL for linux-arm-kernel@lists.infradead.org; Fri, 04 Oct 2024 08:13:01 +0000 Received: by mail-pl1-x631.google.com with SMTP id d9443c01a7336-20b5fb2e89dso14233685ad.1 for ; Fri, 04 Oct 2024 01:13:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1728029580; x=1728634380; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=9DhL+yqm4JWemXjqVREhHsRQssA7CSfL5kIS59CVyeA=; b=aFWrrXhayPrJEO6g1zzGt7NNsDpHKjpouSYk0reHyIV2OHYob5BQxlwDh06+0QUF37 VMgj5tHlNTO4zdHKNUhB1//fOxKvuACKCnNeVCVL+cUM64JC+je9KT03vvWkos0XnbEq kS3phdfdjLXZZekR8GabiBweWxP3TsbpXhAd0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728029580; x=1728634380; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=9DhL+yqm4JWemXjqVREhHsRQssA7CSfL5kIS59CVyeA=; b=jnX7wUZvsiaxljWFoo7ZfKB3L+NY2qmYlNzaoNq3SVU9FUHcwxqfsWYKQDWtDWH1QA L7FFzVFvpORWUtBxAd/IER3VcKkGEHZPu3HnvmyIEzpLmMHDuymseKqjvVT9zSGrrWMt ZMXQwLBk33hjVhJTPw1u9eR0RQ0j2tZ3NPrjLHvxZRCmwnY1N64rMO10wamDDcBMGBj/ OdhvgVRucPu8xT+QgGyHtrPFOT9oh/EPhpv3e8/xlcOB5x0p8aA2B2nC8NcXFcNMM/Sa mKw2tPILaifETBC+r6j20jcdYO0Rai/HTdIRayMW076eebk6Rp4H1qYp//vrpe8ko6/B MULg== X-Forwarded-Encrypted: i=1; AJvYcCWaXzTprb9yjP61C2xGdGto2gC/K0QhY3jLNpCiTvMLP9lz/tBfMpdnbH5begpBs3lAArrgCvWHnHdFqfQNC+EL@lists.infradead.org X-Gm-Message-State: AOJu0YzTb+reqcHwphSu9rRCWTnU5JtX/lyeDef30nvKzhZz1GzuXsBs gDHJM0wsXr3lZpojRhzafi1EQNHEA2avXAsokBa0xBh9+pAyKarJiWVyOXWx2A== X-Google-Smtp-Source: AGHT+IH60gDoSksZRxBPYz8lE7yUsHBmH9SByFQjxJjyREMpraheTARQnyuSg3kqldf9evYR6R5/Lw== X-Received: by 2002:a17:903:32cd:b0:20b:af36:ead with SMTP id d9443c01a7336-20bff194fd0mr27908675ad.44.1728029579648; Fri, 04 Oct 2024 01:12:59 -0700 (PDT) Received: from fshao-p620.tpe.corp.google.com ([2401:fa00:1:10:73bb:cecf:e651:2ce6]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20beefad264sm19401305ad.205.2024.10.04.01.12.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Oct 2024 01:12:59 -0700 (PDT) From: Fei Shao To: AngeloGioacchino Del Regno , Matthias Brugger Cc: Fei Shao , 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 v3 5/9] arm64: dts: mediatek: mt8188: Add JPEG decoder and encoder nodes Date: Fri, 4 Oct 2024 16:11:57 +0800 Message-ID: <20241004081218.55962-6-fshao@chromium.org> X-Mailer: git-send-email 2.47.0.rc0.187.ge670bccf7e-goog In-Reply-To: <20241004081218.55962-1-fshao@chromium.org> References: <20241004081218.55962-1-fshao@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241004_011300_745204_4468C1BD X-CRM114-Status: UNSURE ( 9.92 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add JPEG encoder and decoder nodes for hardware-accelerated JPEG decoding and encoding support. Signed-off-by: Fei Shao --- (no changes since v1) arch/arm64/boot/dts/mediatek/mt8188.dtsi | 29 ++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8188.dtsi b/arch/arm64/boot/dts/mediatek/mt8188.dtsi index bb07d2629e08..a6a5d9cc875b 100644 --- a/arch/arm64/boot/dts/mediatek/mt8188.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8188.dtsi @@ -2332,6 +2332,35 @@ video_encoder: video-encoder@1a020000 { mediatek,scp = <&scp>; }; + jpeg_encoder: jpeg-encoder@1a030000 { + compatible = "mediatek,mt8188-jpgenc", "mediatek,mtk-jpgenc"; + reg = <0 0x1a030000 0 0x10000>; + clocks = <&vencsys CLK_VENC1_JPGENC>; + clock-names = "jpgenc"; + interrupts = ; + iommus = <&vdo_iommu M4U_PORT_L19_JPGENC_Y_RDMA>, + <&vdo_iommu M4U_PORT_L19_JPGENC_C_RDMA>, + <&vdo_iommu M4U_PORT_L19_JPGENC_Q_TABLE>, + <&vdo_iommu M4U_PORT_L19_JPGENC_BSDMA>; + power-domains = <&spm MT8188_POWER_DOMAIN_VENC>; + }; + + jpeg_decoder: jpeg-decoder@1a040000 { + compatible = "mediatek,mt8188-jpgdec", "mediatek,mt2701-jpgdec"; + reg = <0 0x1a040000 0 0x10000>; + clocks = <&vencsys CLK_VENC1_LARB>, + <&vencsys CLK_VENC1_JPGDEC>; + clock-names = "jpgdec-smi", "jpgdec"; + interrupts = ; + iommus = <&vdo_iommu M4U_PORT_L19_JPGDEC_WDMA_0>, + <&vdo_iommu M4U_PORT_L19_JPGDEC_BSDMA_0>, + <&vdo_iommu M4U_PORT_L19_JPGDEC_WDMA_1>, + <&vdo_iommu M4U_PORT_L19_JPGDEC_BSDMA_1>, + <&vdo_iommu M4U_PORT_L19_JPGDEC_HUFF_OFFSET_1>, + <&vdo_iommu M4U_PORT_L19_JPGDEC_HUFF_OFFSET_0>; + power-domains = <&spm MT8188_POWER_DOMAIN_VDEC0>; + }; + disp_dsi0: dsi@1c008000 { compatible = "mediatek,mt8188-dsi"; reg = <0 0x1c008000 0 0x1000>;