From patchwork Sat Jan 27 08:42:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eugen Hristev X-Patchwork-Id: 13534021 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 2A5C0C47DDB for ; Sat, 27 Jan 2024 08:43:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=rtmz8OrNHbAikKr7Iv69yRFW7N6lUJGmDvv6QKbcOs4=; b=Sj0xVh293w7h9U woPvebF+0EFnFZgIOTwCK9sOlYaMsQMatMxvmI7bSm1hpf5VjgtvO6d/s+5pU5UwIATgwOkUXkdmL NWWBrx6y0Ip4N+pldtRQcoyvZRmuODgsZtK+jYyi6TNKHwIuNaP2Hi6skY/AukssnDPZiFETgxVka wtYDT4pFdRaaMoxjUuCtNcRovjRp8JccujAVm9lPUy118kQ7zzjAUBYRE3PenwcSrmG06rK/VCnrV mpLLQHPojDKn9yuRUBP1a5bMISl2Nb0bDTF27xTIhPZaXbGKwNMhT8upvcT2p1MJPzJzs80ARDfPt A60YXUId+NSKrJHmoKvQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rTeHZ-00000007AWx-1RzR; Sat, 27 Jan 2024 08:43:21 +0000 Received: from madrid.collaboradmins.com ([2a00:1098:ed:100::25]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rTeHW-00000007AW5-3L0B; Sat, 27 Jan 2024 08:43:20 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1706344991; bh=8dRsLzcjxuiEqHzBiXW/6CBdzTfn9KdLsULhFxOyGP8=; h=From:To:Cc:Subject:Date:From; b=p0X6hNJ0/FNbHA3OoNK9VWsNQk1wTfyIk7rVN5WxanigwvN3uMMNOy+NbhOFePM+Q f3oG0AhM7w4NI8jCaIJjZKVgeapnd4i2FDK0z+TUH1WpLYmV6bsAnm1h8HgiabB9qB YmUB7LAN/0ZfJWFcX9y4XAeBTue3leCepR5Z2/9frosmd+l1cqEu1r2zOQEPFhdt1r 4/Yq2e6rdDMZgG6xxC9XzAEDeHg+4fa/68DtBZkeCPk126eyb6qeIpbhCbQlI1hb/u rMi4WKI61iFLIM0poe6SqENgedUxqXHar+CMB3MuAGXkx0mIcTS+F/6TTVdDkSCG38 29WBSqkdpARVw== Received: from eugen-station.. (cola.collaboradmins.com [195.201.22.229]) (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: ehristev) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 21F1D37809D0; Sat, 27 Jan 2024 08:43:07 +0000 (UTC) From: Eugen Hristev To: linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, bin.liu@mediatek.com Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, angelogioacchino.delregno@collabora.com, kernel@collabora.com, eugen.hristev@collabora.com, matthias.bgg@gmail.com Subject: [PATCH v3 1/2] dt-bindings: media: mediatek-jpeg-encoder: change max iommus count Date: Sat, 27 Jan 2024 10:42:57 +0200 Message-Id: <20240127084258.68302-1-eugen.hristev@collabora.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240127_004319_022655_0A4BD45C X-CRM114-Status: UNSURE ( 8.63 ) 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 MT8186 has 4 iommus in the list, to cope with this situation, adjust the maxItems to 4 (instead of previous 2). Add also minItems as 2 to keep compatibility with current devices. Signed-off-by: Eugen Hristev Reviewed-by: AngeloGioacchino Del Regno --- Changes in v3: minItems changed to 2. Changes in v2: fixed typo in subject .../devicetree/bindings/media/mediatek-jpeg-encoder.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/media/mediatek-jpeg-encoder.yaml b/Documentation/devicetree/bindings/media/mediatek-jpeg-encoder.yaml index 37800e1908cc..83c020a673d6 100644 --- a/Documentation/devicetree/bindings/media/mediatek-jpeg-encoder.yaml +++ b/Documentation/devicetree/bindings/media/mediatek-jpeg-encoder.yaml @@ -38,7 +38,8 @@ properties: maxItems: 1 iommus: - maxItems: 2 + minItems: 2 + maxItems: 4 description: | Points to the respective IOMMU block with master port as argument, see Documentation/devicetree/bindings/iommu/mediatek,iommu.yaml for details. From patchwork Sat Jan 27 08:42:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eugen Hristev X-Patchwork-Id: 13534020 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 9B579C46CD2 for ; Sat, 27 Jan 2024 08:43:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=UjHHKA9uIQJGth+YYW/Q3gxCmojlFq1YQnGBCujLgx4=; b=apQ0YIHSGis2YS 6GE9RTfpscKDDcpuZHnjINwsxuqWNVv35kdlbHbexCHNxvD0LhxSaXLrp7xx2uM2LFUIyd205dp4+ RhTvcI31/5yxdrE5/rkav8GXStn83S2D5zMNn2XeuTRPjvwOUegLzL0RMwu38UjSYQDUJaYAyiKpq 3gFzEWtjslSYtft91kyV4hcdPCKk3uais1IXm92YQUbqDvaoEuP8uqyYkn9KqVtdqoda0jYnSiZb0 qsxzricilZg264PssIPd1Qgzzx7Zr7gaCqDa4+lKdzmUE5mFSVMD+O9uT1Lwj4F0WEHbgcZcy0aL/ F6nElD3FjLsI2P/RUV/A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rTeHa-00000007AXP-0na4; Sat, 27 Jan 2024 08:43:22 +0000 Received: from madrid.collaboradmins.com ([2a00:1098:ed:100::25]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rTeHW-00000007AWD-3PDV; Sat, 27 Jan 2024 08:43:20 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1706344996; bh=07xcUH8OHSW5OZIQWcfHGaB4HnUsF8P7eoz3RDNWnsw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jhdzCCB6dWkYf16x02RpByVo2pRxTLEDOCzwi5myjAdhAGpb8Hdx064xNB1xHCpAE qRcHRg0SIbFfJkSetykel64k1IMfuQOaRF/NyBhhFK9O/e10ALnA16gcrOuLB7aa3W KQ7t//hZKG3J+uTaBRkZpndTldWCDAujqhmReFzspa4vjblZzoU4cc0wVBDftvB1jo sV84XAFSrJjSH/QXqijL0MMF0z/kkahn1EcFs0rwDG3LooXpphWPuELwPYrW7mAZZH ueHN9badGgAp/h4ySefqCLf9F8vRvrGo8c1aQwud2iOy6Y0CPF7XZsTzrnv6RtwvSu Qlha2JgoLr5lQ== Received: from eugen-station.. (cola.collaboradmins.com [195.201.22.229]) (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: ehristev) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 526CD378107C; Sat, 27 Jan 2024 08:43:12 +0000 (UTC) From: Eugen Hristev To: linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, bin.liu@mediatek.com Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, angelogioacchino.delregno@collabora.com, kernel@collabora.com, eugen.hristev@collabora.com, matthias.bgg@gmail.com, Allen-KH Cheng , Hsin-Yi Wang , Max Staudt , Ricardo Ribalda Subject: [PATCH v3 2/2] arm64: dts: mediatek: mt8186: Add jpgenc node Date: Sat, 27 Jan 2024 10:42:58 +0200 Message-Id: <20240127084258.68302-2-eugen.hristev@collabora.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240127084258.68302-1-eugen.hristev@collabora.com> References: <20240127084258.68302-1-eugen.hristev@collabora.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240127_004319_022640_F776A79C X-CRM114-Status: UNSURE ( 8.34 ) 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 From: Allen-KH Cheng Add JPEG encoder node. Signed-off-by: Allen-KH Cheng Reviewed-by: Hsin-Yi Wang Reviewed-by: Max Staudt Tested-by: Max Staudt Reviewed-by: Ricardo Ribalda [eugen.hristev@collabora.com: minor cleanup] Signed-off-by: Eugen Hristev Reviewed-by: AngeloGioacchino Del Regno --- Changes in v3: -none Changes in v2: - renamed node - reordered props arch/arm64/boot/dts/mediatek/mt8186.dtsi | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8186.dtsi b/arch/arm64/boot/dts/mediatek/mt8186.dtsi index 37a84d88036a..c93a8b82db76 100644 --- a/arch/arm64/boot/dts/mediatek/mt8186.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8186.dtsi @@ -2054,6 +2054,19 @@ venc: video-encoder@17020000 { mediatek,scp = <&scp>; }; + jpgenc: jpeg-encoder@17030000 { + compatible = "mediatek,mt8186-jpgenc", "mediatek,mtk-jpgenc"; + reg = <0 0x17030000 0 0x10000>; + interrupts = ; + clocks = <&vencsys CLK_VENC_CKE2_JPGENC>; + clock-names = "jpgenc"; + iommus = <&iommu_mm IOMMU_PORT_L7_JPGENC_Y_RDMA>, + <&iommu_mm IOMMU_PORT_L7_JPGENC_C_RDMA>, + <&iommu_mm IOMMU_PORT_L7_JPGENC_Q_TABLE>, + <&iommu_mm IOMMU_PORT_L7_JPGENC_BSDMA>; + power-domains = <&spm MT8186_POWER_DOMAIN_VENC>; + }; + camsys: clock-controller@1a000000 { compatible = "mediatek,mt8186-camsys"; reg = <0 0x1a000000 0 0x1000>;