From patchwork Tue Jan 2 10:38:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eugen Hristev X-Patchwork-Id: 184310 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:6f82:b0:100:9c79:88ff with SMTP id tb2csp4368963dyb; Tue, 2 Jan 2024 02:38:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IHc3G2pbyJ0+vkKhjHMw48697WKFKEBLqu9Ac1owbjlSfnFIpra4euLfXAL1IM1gPMXr4eP X-Received: by 2002:a17:90b:3a87:b0:28b:3335:1489 with SMTP id om7-20020a17090b3a8700b0028b33351489mr4619263pjb.99.1704191925803; Tue, 02 Jan 2024 02:38:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704191925; cv=none; d=google.com; s=arc-20160816; b=hNALiYfG0mT9fhlU/Nw+I9BTtMHvgKU0RKmIPvipDqbMaooLUxPi8jz+2t8u10BOH2 L4u6sHGjL4o7pC8uWnUkdKHsXDGyaQLJ5pSU70IKAeNBYQzUseZvBH+h8O7QN2VU88R4 dVhQVAsWNjqxOKejNRd+/JOkYOgvAerXSXn4lhTIsTIjolLKGHn/RhDFqxlkyZ8C4wFk WPj6TA3FaiwcppZ0CBfJVJ1WrShkaeDQxbPyTm20YkZspjfeeA0ojm7jRHKTNbZumClt Qeb/bW198ELIrAllV87GaLW4A5CF6VE4jsuZsA2v9Q8aLRPdnt9Pxba7ShlKKXmaxlV8 dwuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=ci7nW5O76X1a58+iI4kZgrCVhPN75VjT3qyOK0pXYnw=; fh=4YI6TwX5O8ZcgLK1DnJJBVdjJ9FJjDAQQ6czY3EjhMQ=; b=OPVjLNJLQR8YmBhXim85jW7w/xAHUeB+wQQN3p/XL6j7ruueyo1GVm6Fi5IqLJdjtI 5G8wopGVHxbM7EX3Bw3kT6m4h+u04cZnYgVDeqHayzFxG0Z/tHacxBk8+0DsZ+GX+1Ok gmFcp6mpbY4FvNm2iObYn2aRqQ8WVGFMK6Gdk8C3/eWZCAmk/dIuEcj26AZNCF7jCvmu 7J30O/CnJXsnbQ6002aSeagb5PVQr3Qm1MrPJJ22CSnJby4i1R53HLura9lT5Q7DsQqx Qwur8onAaxzbkXvTMYe5jEQ7mBHvdfUQo2ojUvhl9PvB9Bt/4quHLbP0mTWT1rs6dEnO cJUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=M6FRHFMn; spf=pass (google.com: domain of linux-kernel+bounces-14254-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14254-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id v19-20020a17090a899300b0028cd4149d0asi2403385pjn.25.2024.01.02.02.38.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 02:38:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-14254-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=M6FRHFMn; spf=pass (google.com: domain of linux-kernel+bounces-14254-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14254-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id C3A63B20AA7 for ; Tue, 2 Jan 2024 10:38:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 78926E556; Tue, 2 Jan 2024 10:38:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="M6FRHFMn" X-Original-To: linux-kernel@vger.kernel.org Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4B716D507; Tue, 2 Jan 2024 10:38:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1704191886; bh=M7Xvx7dEYV5/Uj992gYqxQaLymoVlWi/PbPy7cgkjUQ=; h=From:To:Cc:Subject:Date:From; b=M6FRHFMnNf101tyVbQwluru0ACn738DHhwyLERK/KmF+dRrs3xYWo9tKuyPw82ufs hLrbXcwc6ZO6rSlEITpP1N7DgnlNSPTLjG4V15Hxsf8bvtwVvrzYPaZOvDDgdkIonl 3j8wFrj8yUD6dwdebN/gQU0zLXcD/7eQuI2cbEF7jvfbSYT1dw9hTPr7QD3wl7J0lI tySu70fkNZN/s0cTU6TjsuNAOd24aJmBSfpH6vGb82ImrZGVxIaQ+F432LnfhGz3jz y6GnyphNK7onHffNSkBT5ncqUVx0cMVgxsRfUM6it7WLur1Gu1NaM9lWAibZNII945 lD4i5HpdeyuOw== 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 BD17D3781FFA; Tue, 2 Jan 2024 10:38:05 +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 v2 1/2] dt-bindings: media: mediatek-jpeg-encoder: change max iommus count Date: Tue, 2 Jan 2024 12:38:00 +0200 Message-Id: <20240102103801.268647-1-eugen.hristev@collabora.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1786974753097174287 X-GMAIL-MSGID: 1786974753097174287 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 1 since iommus are mandatory, to avoid warning on the example. Signed-off-by: Eugen Hristev Reviewed-by: AngeloGioacchino Del Regno --- 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..60c75b9312e8 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: 1 + 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 Tue Jan 2 10:38:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eugen Hristev X-Patchwork-Id: 184311 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:6f82:b0:100:9c79:88ff with SMTP id tb2csp4368980dyb; Tue, 2 Jan 2024 02:38:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IHemn0LVOD2iORHlYIxled6EpauEJ2hQ7ymmPhJ/CDAw1eWNF9a6/A6tx4Mb7Bn4H5Qaz2M X-Received: by 2002:ae9:e919:0:b0:781:2794:7a9f with SMTP id x25-20020ae9e919000000b0078127947a9fmr21802408qkf.65.1704191927787; Tue, 02 Jan 2024 02:38:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704191927; cv=none; d=google.com; s=arc-20160816; b=LOsNr6voGsPVQE7wxumNbEgY68H0CGL5rjtGu9XkNSfOAl0ac+g/4GQXLaH8MLZyXh wPO+o0Kp6Vlt2nF1IiwAOnmJvo8190JSNgIoSf9I3R1viJPfm5rrifv5rM4/kwJirTox 3/IHo1gBaqvQja9gAfby8m2v9TntjCHX/CIxk8OjeNwIpTZKrmMODpQFz9y1oYpBJeDA xczGx++W5YzOH3lMsSFc5TrQKU7Ta6qzx53IRndIQMchQp+QJk4BqU2KxI4MEVaXAcd8 wMOCCIKR+1SCfnOpAVo3ETisxGeIQuHHhslDg2twJ+TV4jpUOLhoIf0jDmk+mlUmAHwp 2lgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=a0jpj54f52pmgKpAc4UCB5t8plZIfHuwCxRhApb+MaU=; fh=iJIk/WKezNOdelFt707WNFmKdI1cK+lCHZnnxcyDcpU=; b=dLPaOqEuaRovMS+mxHpkbHONIBjlCxxtmPBysBHExkY4jaUTp1OkBfRzWMHUweW1Pd ypp1DTe6BupVJ70hOMdxyWrAXBUi+22nPSIs4QeEen1NtMUv0Ks7/om6IjRsiUylcn03 NFVvBAMueApDYUhYjlIaXVgbWFiSQ/G3MmKpuLfyUIAKctGbTnNvyuVZf64w7TBZwj7V 4nVAOlNK26NfZ/dtsYE4RaWoIh932+aVYbKC2MLxLVxwHuBYJ3/bv6qQJwsVwnalJZrZ TnTfXpP+yisxAzqjASNOLcUOTAw7oxsjr7BFee+G3NxslcA1e3OVWCRbImJUqUx8xUhw S68A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=ZTKcvSZS; spf=pass (google.com: domain of linux-kernel+bounces-14255-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14255-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id m19-20020a05620a291300b007815a79ead9si16062648qkp.547.2024.01.02.02.38.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 02:38:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-14255-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=ZTKcvSZS; spf=pass (google.com: domain of linux-kernel+bounces-14255-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14255-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 8FA341C21230 for ; Tue, 2 Jan 2024 10:38:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3D406EAE0; Tue, 2 Jan 2024 10:38:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="ZTKcvSZS" X-Original-To: linux-kernel@vger.kernel.org Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 79D3BD298; Tue, 2 Jan 2024 10:38:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1704191887; bh=cm7tGZegvFx11DaYuyNUHAKQJUZbqThwfuueF4e2NcA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZTKcvSZSPhwE9At3kqI+V7j+jbxAhit57MypSrzuU18aebz35/DRLJSDNsZihDq8o xMwPz52VEjaPjvZP+8wyoQK0TAKilLm0LRRuz/heeCRpyburW0hWXtsqVeFpJczkeq QuPPi5wj8Bqyva+XW675cXItJ5/N/UpUC/if8gjgD4L86bFaoGjEaFWtM94iLVZ0oI GIqCTQqJO5F4p1f1nNyKoNBd0eeyb8J77tKtrE1V3nLFpTa4XA0lCB8lHgpndhaGhW RfWe7Exr0Zqae57XiMOiWFjGXzkBQ26nOlplwlDuVlQd6fzDAUxPMzkNEPDBC7al42 hII9I30piTpSw== 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 B25BE3780FC7; Tue, 2 Jan 2024 10:38:06 +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 v2 2/2] arm64: dts: mediatek: mt8186: Add jpgenc node Date: Tue, 2 Jan 2024 12:38:01 +0200 Message-Id: <20240102103801.268647-2-eugen.hristev@collabora.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240102103801.268647-1-eugen.hristev@collabora.com> References: <20240102103801.268647-1-eugen.hristev@collabora.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1786974754838037674 X-GMAIL-MSGID: 1786974754838037674 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 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 e451b6c8cd9e..8e57a7be67ad 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>;