From patchwork Sun Oct 6 20:42:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alain Volmat X-Patchwork-Id: 13823863 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 E195ACFB43F for ; Sun, 6 Oct 2024 20:46:09 +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:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=osjS0aKc7wwnlQfLLzTAWdC8plQ2BpZU14HisP5sgHw=; b=3LozrPf7l9blIAjOTx0HE/12I+ G7gpp90tcwVZnfSKolDiZ+JSKmM28rJGbQP4ziTqpaoHiagmcTUrE87f4xG8H+ID7+48l35Xpqu3f cIaNMTMwn9NcBrPBOmRQsnr6X5Y0IciSlTYoBlhCJ6JvuyJiRI0Ev5TFjQW8WTfCEwxYu21b6onCe /8hAqWeQUrwLwGhdpvohFJ8/bV6n3KDU/pBJpwu/YmKThFHvojN08QMK9Aq0XbCDAFJ4J7zCkJFTJ k/D9ukCMYuKlM8ArTQR0gUvMr+WFUFzf7xs6GlMyR8TCAwWk8CcXTMsVselbcByZhg5aS5bwvyzsb MaI6cN/A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1sxY8c-00000000blG-2mya; Sun, 06 Oct 2024 20:45:58 +0000 Received: from st43p00im-ztdg10063201.me.com ([17.58.63.182]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1sxY69-00000000bIg-2sdD for linux-arm-kernel@lists.infradead.org; Sun, 06 Oct 2024 20:43:26 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1728247403; bh=osjS0aKc7wwnlQfLLzTAWdC8plQ2BpZU14HisP5sgHw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To; b=wxJ9gfMK1ApLOxEaGNiMe6M5v4BxcBsGt1H8n2mA0/3rTILo/WlrF7n0qwhGm445X UTIFWUTaJkY4p5oqJE/2dKorqsTRZBxLpIHoSj+snpPGM2mprRvTLKKqRgDh1oABCg V97uT4cyUa9sJFnAodamv023QDKkayBqE8qzPEXkN+rBVPyOzUeVq4ZN7zranZOM1n g8ZBl3jyN/ilRR4wNfR1T43mfkuRrTSy4IdXo8P5p+aTaI/uv8NhBEkHrIEhN1P3r3 KROUG/OXF0iF2U1XEWCSA11JkOdWBpD7fBS3KHN2gXEyp1G551IwqbpgSs6gXtlIh3 1aw3gWUGDFj5w== Received: from localhost (st43p00im-dlb-asmtp-mailmevip.me.com [17.42.251.41]) by st43p00im-ztdg10063201.me.com (Postfix) with ESMTPSA id CEE4B98013C; Sun, 6 Oct 2024 20:43:21 +0000 (UTC) From: Alain Volmat Date: Sun, 06 Oct 2024 20:42:49 +0000 Subject: [PATCH v2 1/3] dt-bindings: gpu: mali-utgard: Add st,stih410-mali compatible MIME-Version: 1.0 Message-Id: <20241006-sti-gpu-v2-1-c6bb408d6903@me.com> References: <20241006-sti-gpu-v2-0-c6bb408d6903@me.com> In-Reply-To: <20241006-sti-gpu-v2-0-c6bb408d6903@me.com> To: David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , Patrice Chotard Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Alain Volmat X-Mailer: b4 0.14.2 X-Proofpoint-ORIG-GUID: zF7jydl3KZFwRplK61WTEFAS_J9CCllf X-Proofpoint-GUID: zF7jydl3KZFwRplK61WTEFAS_J9CCllf X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1051,Hydra:6.0.680,FMLib:17.12.62.30 definitions=2024-10-06_19,2024-10-04_01,2024-09-30_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 mlxscore=0 clxscore=1015 malwarescore=0 phishscore=0 suspectscore=0 mlxlogscore=716 bulkscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2308100000 definitions=main-2410060149 X-Apple-Remote-Links: v=1;h=KCk=;charset=UTF-8 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241006_134325_828212_CE680224 X-CRM114-Status: UNSURE ( 8.74 ) 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 ST STiH410 SoC has a Mali400. Add a compatible for it. Signed-off-by: Alain Volmat Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/gpu/arm,mali-utgard.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/gpu/arm,mali-utgard.yaml b/Documentation/devicetree/bindings/gpu/arm,mali-utgard.yaml index abd4aa335fbcebafc9164bd4963f9db60f0450c4..9318817ea1357d4d66db951513d9bc033b222190 100644 --- a/Documentation/devicetree/bindings/gpu/arm,mali-utgard.yaml +++ b/Documentation/devicetree/bindings/gpu/arm,mali-utgard.yaml @@ -33,6 +33,7 @@ properties: - rockchip,rk3188-mali - rockchip,rk3228-mali - samsung,exynos4210-mali + - st,stih410-mali - stericsson,db8500-mali - xlnx,zynqmp-mali - const: arm,mali-400 From patchwork Sun Oct 6 20:42:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alain Volmat X-Patchwork-Id: 13823864 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 17201CFB424 for ; Sun, 6 Oct 2024 20:47:25 +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:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=xvq7xi7e69Ri9g5ozfmwagjAfSogeiQRw985VAu4la8=; b=GDINr03QjQ+kqoMA7QRSJ5LY30 3a/jhZ7fkm9s+TRvX9vVj5p9bIlDiGB/bI6cKcu3oku5B+IWl5y1NvgUWl1dup3r57x8JZFLA7j/I H/1lW/h3jE7RVVu+9V3hAMdDeRwCjUVA/dyDxrEIyHl01n6j9dGRmKwD0hwNFBBrLRCYptUvk4E53 rbu4vcjxNDV1mEe95iZqJbXtI61NX34hUQskurKaAcEIQaH7doIqaoF5IqMI24q64fy8m+/EUE7le 0n8uWgBsKFh2/Mm8eXgrSQjbSjmleKjLmnNScGX5iGWH+x64AH77/Wqix/Wposnohz7k4dBDZVpFZ X73mYkUg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1sxY9s-00000000by8-0u0G; Sun, 06 Oct 2024 20:47:16 +0000 Received: from st43p00im-ztbu10073701.me.com ([17.58.63.183]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1sxY6G-00000000bLU-0inh for linux-arm-kernel@lists.infradead.org; Sun, 06 Oct 2024 20:43:34 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1728247410; bh=xvq7xi7e69Ri9g5ozfmwagjAfSogeiQRw985VAu4la8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To; b=J1tEoALshDlqIHnbuzklg7BNWt/GurAKESHaED9kpND6j1W+u24PcpuTNnsa64C+8 KADL0cFQBiZoFM+ZHMQKNqkn+49M03WPgbfMBxNYt/CLdagT2cAfXw0VevRRtHEK5F moudiHk4nhEti6nR+Y0A8qM8KhBHhhYzgQrmpUqYmgdqP2rJ+5AHfRltz0Z+WwGIhD P/yAEg0uVZQMUdkQgJtKOaTm3IX3MeL2Vt+M/+7O9DCQmT0RpxuuC36YL4XSMU+dYc e9cN9ZSYWWJypikzsg48kKQZvzeYeJCSsLdoo4hN1sqODAN7FasN1cOGBaRWQxd6b5 1fA/Vwy9Wg5dQ== Received: from localhost (st43p00im-dlb-asmtp-mailmevip.me.com [17.42.251.41]) by st43p00im-ztbu10073701.me.com (Postfix) with ESMTPSA id 6D4541C021F; Sun, 6 Oct 2024 20:43:27 +0000 (UTC) From: Alain Volmat Date: Sun, 06 Oct 2024 20:42:50 +0000 Subject: [PATCH v2 2/3] ARM: dts: st: add node for the MALI gpu on stih410.dtsi MIME-Version: 1.0 Message-Id: <20241006-sti-gpu-v2-2-c6bb408d6903@me.com> References: <20241006-sti-gpu-v2-0-c6bb408d6903@me.com> In-Reply-To: <20241006-sti-gpu-v2-0-c6bb408d6903@me.com> To: David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , Patrice Chotard Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Alain Volmat X-Mailer: b4 0.14.2 X-Proofpoint-GUID: McR6wj_dioSVIM3FiabDJEyMI6kGf5og X-Proofpoint-ORIG-GUID: McR6wj_dioSVIM3FiabDJEyMI6kGf5og X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1051,Hydra:6.0.680,FMLib:17.12.62.30 definitions=2024-10-06_19,2024-10-04_01,2024-09-30_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 mlxscore=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 clxscore=1015 adultscore=0 mlxlogscore=588 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2308100000 definitions=main-2410060149 X-Apple-Remote-Links: v=1;h=KCk=;charset=UTF-8 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241006_134332_320829_9B501F82 X-CRM114-Status: GOOD ( 11.25 ) 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 the entry for the GPU (Mali400) on the stih410.dtsi Signed-off-by: Alain Volmat --- arch/arm/boot/dts/st/stih410.dtsi | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/arch/arm/boot/dts/st/stih410.dtsi b/arch/arm/boot/dts/st/stih410.dtsi index a69231854f783b1b9fd685ba2822eb406e0ffdf5..d56343f44fda4e9e1de2e5efc86e2d984bad14b4 100644 --- a/arch/arm/boot/dts/st/stih410.dtsi +++ b/arch/arm/boot/dts/st/stih410.dtsi @@ -285,5 +285,39 @@ cec@94a087c { resets = <&softreset STIH407_LPM_SOFTRESET>; hdmi-phandle = <&sti_hdmi>; }; + + gpu: gpu@9f00000 { + compatible = "st,stih410-mali", "arm,mali-400"; + reg = <0x9f00000 0x10000>; + /* LIMA driver needs 2 clocks, use the same for both */ + clocks = <&clk_s_c0_flexgen CLK_ICN_GPU>, + <&clk_s_c0_flexgen CLK_ICN_GPU>; + clock-names = "bus", "core"; + assigned-clocks = <&clk_s_c0_flexgen CLK_ICN_GPU>; + assigned-clock-rates = <400000000>; + resets = <&softreset STIH407_GPU_SOFTRESET>; + interrupts = , + , + , + , + , + , + , + , + , + ; + interrupt-names = "gp", + "gpmmu", + "pp0", + "ppmmu0", + "pp1", + "ppmmu1", + "pp2", + "ppmmu2", + "pp3", + "ppmmu3"; + + status = "disabled"; + }; }; }; From patchwork Sun Oct 6 20:42:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alain Volmat X-Patchwork-Id: 13823865 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 49CD3CFB424 for ; Sun, 6 Oct 2024 20:48:46 +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:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Rb4uSMd3WuIyW+3aNpC7juKYGvVxUYO7LHjTErftlXk=; b=UKTCTyGq7u3KVVLdcGdxd1QBWg dOwNp7QaLhlPsya0rPaUVgiTAOaGxbgcTy0pK1L0GJsxvAy9qqztAMw0FU2dGRgXs2MMse60sK5JJ Xneggyxf6BOaS9BMEh72X+0VpVCD1vrCAF5NgNQNtRHsWLs/2v7VmaHP5383N0gBxAJO8x2i4pbkK mnVnKvjMbj2qlbYQ4YC3znwXc1lS5ikiF7Y0Et7Wgy5yOFj+TzrMkP1HDhdJR2JjYyFNMMIm2bR3+ AP1dOuzyVh8EwOLcdJn5Xhlrkfls424OS4gnTbjG9PdZ2XcvWpCwaEAY03iAo8pYMKBrc6Fhi+Itt GRfuFFzw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1sxYB6-00000000c6a-2TZ3; Sun, 06 Oct 2024 20:48:35 +0000 Received: from st43p00im-ztdg10063201.me.com ([17.58.63.182]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1sxY6P-00000000bPM-1hjP for linux-arm-kernel@lists.infradead.org; Sun, 06 Oct 2024 20:43:42 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1728247419; bh=Rb4uSMd3WuIyW+3aNpC7juKYGvVxUYO7LHjTErftlXk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To; b=RxIU+WQj+kb7PoLYFhpjaoiWCFXY+FgvYHfJYwjKbThv4SzKNvqax31uAvxulFl7L G3E+cA0M5rRIB97Vww+84GE2hnJm5BUqVfBhb/+OOnAbNTsUJPKuaBxuIqcMyNEZpR frtl5wC7hO0WpEaffXf6J94l0Z3saVHgTxsPjSHvMMSmB8jwCJtOy9X1HDxYYThyTM G8zjrLqY1qPwHr1VsW5vBWD6BiM/i8kS3QT2csrx5SukifC3E+0ZCVUPR59GIlhe0j iRIFODcKbfgKo0VAQakbI+3qxmTHFsqqHATjrhIHG78WR16Y13MOs2LdsAbAnzPet9 qGXTyHX61BCeQ== Received: from localhost (st43p00im-dlb-asmtp-mailmevip.me.com [17.42.251.41]) by st43p00im-ztdg10063201.me.com (Postfix) with ESMTPSA id DFCD29803C1; Sun, 6 Oct 2024 20:43:36 +0000 (UTC) From: Alain Volmat Date: Sun, 06 Oct 2024 20:42:51 +0000 Subject: [PATCH v2 3/3] ARM: dts: st: enable the MALI gpu on the stih410-b2260 MIME-Version: 1.0 Message-Id: <20241006-sti-gpu-v2-3-c6bb408d6903@me.com> References: <20241006-sti-gpu-v2-0-c6bb408d6903@me.com> In-Reply-To: <20241006-sti-gpu-v2-0-c6bb408d6903@me.com> To: David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , Patrice Chotard Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Alain Volmat X-Mailer: b4 0.14.2 X-Proofpoint-ORIG-GUID: i_TaJ1qM4CeIyoTXli7CsWKMXexD7nFQ X-Proofpoint-GUID: i_TaJ1qM4CeIyoTXli7CsWKMXexD7nFQ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1051,Hydra:6.0.680,FMLib:17.12.62.30 definitions=2024-10-06_19,2024-10-04_01,2024-09-30_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 spamscore=0 malwarescore=0 adultscore=0 clxscore=1015 phishscore=0 suspectscore=0 mlxlogscore=438 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2308100000 definitions=main-2410060148 X-Apple-Remote-Links: v=1;h=KCk=;charset=UTF-8 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241006_134341_542395_E7FF7418 X-CRM114-Status: GOOD ( 10.11 ) 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 Enable the GPU on the stih410-b2260 board. Signed-off-by: Alain Volmat --- arch/arm/boot/dts/st/stih410-b2260.dts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/st/stih410-b2260.dts b/arch/arm/boot/dts/st/stih410-b2260.dts index 240b62040000b8c0357d39504d3475186958bf31..736b1e059b0a8f122d1b824e1f4e5db0a668ec2c 100644 --- a/arch/arm/boot/dts/st/stih410-b2260.dts +++ b/arch/arm/boot/dts/st/stih410-b2260.dts @@ -206,5 +206,9 @@ hdmiddc: i2c@9541000 { sata1: sata@9b28000 { status = "okay"; }; + + gpu: gpu@9f00000 { + status = "okay"; + }; }; };