From patchwork Wed Oct 2 11:41:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fei Shao X-Patchwork-Id: 13819710 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 146D0CF31B7 for ; Wed, 2 Oct 2024 11:55:48 +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=M1kvp0VcH49Dd7pUdjrxa7BKtPwxncHiMFzmQPvOHBw=; b=h4znY6srgA5dc/O4MbGhWh1KAt Wi5KjbsottTyLLl1rwkcGOXoCpmcMp9nPt6l2NzUM/iZi+xXwrX6NL72FaR2RTkMliguW/REmS8tb iqI+vBUwKwVt4wiDQEraqpxJoH5iJcSyUTIfdRJE29WfbZfA26BcsmzKXUYtJtBmF0U/exBpuPn0g 6J4/gYa+nZ/sY3GTXBOo6H3nV62xvT33E24ULKBLGTC6LuNktEwZUmUkz/4RBsjF2t58wkcBtR8Ek GYvEWlOXCXMww8SGPOSXNPL9Wk+biX/2wqv5fwQRQ66jJUHc/MKItJivm3BbB9j7DA+eBoFsLEKb9 aCyauCDw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1svxxC-00000005k1R-1FMA; Wed, 02 Oct 2024 11:55:38 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1svxoy-00000005hww-0JeW for linux-arm-kernel@bombadil.infradead.org; Wed, 02 Oct 2024 11:47:08 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:MIME-Version :References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=M1kvp0VcH49Dd7pUdjrxa7BKtPwxncHiMFzmQPvOHBw=; b=ZcOqFzemXUvBIpZHYGommw+K5k m4YdNDCQYURpyhpYwIO6ouoII8zvV+8pUdD6D6O2X0kD3hYMYZ3CR/S3XhLk4gR9pq12j32uu5P9Y 58886i24Lim6WxhdYjeOrMC7yug9Q5aKnDkjuKYfRzDUCFM9ejMxTuWBDmNvi2uMA1v18JXblL68G IM/2UuoVAo/WFVzGhDLuJTPbA+2ffXysSCZao28/neRTANStKjsT6oHdOPDw3CMaQoaCtACjcPg8i g3rDOFg9B3WvGBe+6O6hSg/2p/TkkwBoZK5WAZJfHVXYZRgxQIUbJrRlJdqGygRT7x4maHbwW/vR9 QIhh8bjQ==; Received: from mail-pf1-x42e.google.com ([2607:f8b0:4864:20::42e]) by desiato.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1svxou-00000003TjU-2jRl for linux-arm-kernel@lists.infradead.org; Wed, 02 Oct 2024 11:47:06 +0000 Received: by mail-pf1-x42e.google.com with SMTP id d2e1a72fcca58-7179069d029so4737122b3a.2 for ; Wed, 02 Oct 2024 04:47:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1727869622; x=1728474422; 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=M1kvp0VcH49Dd7pUdjrxa7BKtPwxncHiMFzmQPvOHBw=; b=aKWw7wBqK5J/xgmvP28f3A/sYsZoYjzQUD9Ei9D5CTPsHpbyYPWERFCh8gKnjsbB7u 7KG9o0ZAMRv/zJ6Uqd6dH5iED7dmS3deVuLxvGFUv0UY5HE9sa5n24zWzrporJJA4Qqi FiXK4Ro9eA/SNjjzuGV19JJgrwK2DrSXgrnFA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727869622; x=1728474422; 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=M1kvp0VcH49Dd7pUdjrxa7BKtPwxncHiMFzmQPvOHBw=; b=Txl5wg6+Ob5ShCF4GVts/BgCxYlsl5VhVD3UYxyVHaS1M4OeOy3jicrTuy+cbfrb5X rBw4zYdseVzaSoZ/MqFJLvxvBPTVYgW+PiOFaNPXaHSf4/NvY6GbujwoO1e+le7al8g1 YKswPDaFvrihlKJHciCHXnwBpQv4WlRbJP6/Xu2BOw8OBGv4tfj4gQy7Inma+TAskV2q C2x/puQGC8iZ3yG7Iy3IjwCKhxjOWtpnIwipb0kd+jJZhIrSbNbmEJLDWJF+xynFYdHJ jAEembXz32AfyU6QKwr0keVE7Ihl2tS2hSGbZvdtot+AHUD/BREgGCwrYgsK9z/YD69P uQ9g== X-Forwarded-Encrypted: i=1; AJvYcCVmb9PMzLYAbf53b7dGmMeNtRSzJs/aNDdbzS/zb9jgUdjVnNmywB60OJ1XdW/zH761ppc0LuZ9DRIa5RmPGWxo@lists.infradead.org X-Gm-Message-State: AOJu0YxMf1tAkkVf75MmO/Zh2L1BGL8IockktpNdc2ztA6j21BITvreM Vkqib+3+d+XeXRpQLuzVd8Qm7rCjU7Tf+Nz+/wnsMX3hFXcwEq6tr02FjNNgxw== X-Google-Smtp-Source: AGHT+IF6Sqgx1tY88G1e9K/KXewRN0uZSr4m6+KJokFU2mORUavDZPLIjw+Q/puV3XntoKVReVaLgg== X-Received: by 2002:a05:6a00:2d88:b0:714:186a:ae0b with SMTP id d2e1a72fcca58-71dc5d6e144mr4961081b3a.24.1727869621952; Wed, 02 Oct 2024 04:47:01 -0700 (PDT) Received: from fshao-p620.tpe.corp.google.com ([2401:fa00:1:10:3bd0:d371:4a25:3576]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71b2652baefsm9639627b3a.180.2024.10.02.04.46.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Oct 2024 04:47:01 -0700 (PDT) From: Fei Shao To: AngeloGioacchino Del Regno Cc: Fei Shao , Conor Dooley , Krzysztof Kozlowski , Matthias Brugger , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: [PATCH 5/9] arm64: dts: mediatek: mt8188: Add JPEG decoder and encoder nodes Date: Wed, 2 Oct 2024 19:41:45 +0800 Message-ID: <20241002114614.847553-6-fshao@chromium.org> X-Mailer: git-send-email 2.46.1.824.gd892dcdcdd-goog In-Reply-To: <20241002114614.847553-1-fshao@chromium.org> References: <20241002114614.847553-1-fshao@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241002_124704_916064_77E651EA X-CRM114-Status: GOOD ( 10.62 ) 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 --- 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 dbea562ee8ba..c1b057166aa3 100644 --- a/arch/arm64/boot/dts/mediatek/mt8188.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8188.dtsi @@ -2315,6 +2315,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_dsi: dsi@1c008000 { compatible = "mediatek,mt8188-dsi"; reg = <0 0x1c008000 0 0x1000>;