From patchwork Sat Oct 5 18:07:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alain Volmat X-Patchwork-Id: 13823396 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 7368ACFB42B for ; Sat, 5 Oct 2024 18:12:04 +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=ZhPhTWXU0skZ/HI5SHs4S26BqfVlCdZwrR6/Jdzn/1o=; b=K94kfFolacYnqIaSEaM+Q+OKRd seH3Yd1pRmNQ2e8f2rOtgdS/XhnIWoeEJMUQ8c+em77F1g9XMjSczbgNGiImk34jrDjbe4jcUm3Mw Q8IkOevhugvAbQ37+YY3CdVto9QcttGUQEJRnFQNSLzp4ci2sdw3woZCHWe7VCiJOyibRdNEIKaJI kTxC8YV0wXDzWNkeWKSk+9rjBHN9FZDVYzxl7K47w7AOo0vggF5/tK6PhCkIKvVc8xi80hiDErZv2 O0nYqDubWXGESR2OhAvFz4hvUr8vQbAlya+2KM3ORnRtP1Yff2XScZrlRP+oE5W9ZGbpky0aKfLag 5rMy5YgQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1sx9Fv-0000000FiI1-3kAP; Sat, 05 Oct 2024 18:11:51 +0000 Received: from st43p00im-ztfb10073301.me.com ([17.58.63.186]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1sx9DQ-0000000FhnI-3O1S for linux-arm-kernel@lists.infradead.org; Sat, 05 Oct 2024 18:09:18 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1728151743; bh=ZhPhTWXU0skZ/HI5SHs4S26BqfVlCdZwrR6/Jdzn/1o=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To; b=UVzUTy9J125gWcUUi36KbsFcgE0jnAAuaMXuR6pQwANwxQIP+huBV4igvtfIOR6Jw ZuEsjx3yU4KL40ivjJV6ydON5CRJrGnq+/Y3H/GapenBTbLKD+jG+uTB1tdhxGsJbi sTETT1ZwXxEyydOxOdRMDdbcSi9gzEy0V60kT0RfReLLQfZsnbSPiWMoqU8frYCCC7 sOEF4/jYM/4pF4ZU4IVrB2vV343n7IQLbrbh9/jrEFRpviiJkMxFLMgFC+sSoU3ICL Ui9+QcONknIcbuRZXksNX3StH0YaoXtlu516iD0UbbgRwceLFLZSoMwPskmn9ro2FH bMGlFRveg4H1A== Received: from localhost (st43p00im-dlb-asmtp-mailmevip.me.com [17.42.251.41]) by st43p00im-ztfb10073301.me.com (Postfix) with ESMTPSA id 414A88001DC; Sat, 5 Oct 2024 18:09:01 +0000 (UTC) From: Alain Volmat Date: Sat, 05 Oct 2024 18:07:59 +0000 Subject: [PATCH 1/3] dt-bindings: gpu: mali-utgard: Add ST sti compatible MIME-Version: 1.0 Message-Id: <20241005-sti-gpu-v1-1-9bc11100b54b@me.com> References: <20241005-sti-gpu-v1-0-9bc11100b54b@me.com> In-Reply-To: <20241005-sti-gpu-v1-0-9bc11100b54b@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: lJDHjayoU8Hude1I6tz2rld_PMnry1X6 X-Proofpoint-GUID: lJDHjayoU8Hude1I6tz2rld_PMnry1X6 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-05_17,2024-10-04_01,2024-09-30_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 spamscore=0 phishscore=0 suspectscore=0 adultscore=0 clxscore=1015 malwarescore=0 bulkscore=0 mlxlogscore=726 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2308100000 definitions=main-2410050133 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-20241005_110916_945282_D9C0E2C7 X-CRM114-Status: UNSURE ( 8.73 ) 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 STi SoC family (stih410, stih418) has a Mali400. Add a compatible for it. Signed-off-by: Alain Volmat --- 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..97a7ef0fea1a10df0ff485b9eb4468f44c92da39 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,sti-mali - stericsson,db8500-mali - xlnx,zynqmp-mali - const: arm,mali-400 From patchwork Sat Oct 5 18:08:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alain Volmat X-Patchwork-Id: 13823397 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 0323ECFB420 for ; Sat, 5 Oct 2024 18:13:16 +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=7qNVpRk4hShjfI18Pwxsd9HJEZlZreJGT8LTSHQa0iQ=; b=UpCRdpNDNFNBmVRr6U0QfnvR6F IWy1dwRnMarYIKUiKkAM1yfqU2AXu9X003iJw3Cd68zAC8YeGc1GvYhyJxj5mAlMYxhWXNpqQnm6J xF8ycLvGGjhWFyTYLdgdjvOwbvi8JDU9+XdMsRExP5jawedPeDEO3SLQE3/YTrmmehlczxRrmAv91 5GlnBybs+CkhcSqijT2Qe35O5N+84xM44cNPgjDc1vx0VYI2YI9k28rCexzDQ5h/7qdy8YSnPQat2 pyHcFj/b0iml9DGkpZOXhRU3lBO6JBtgY6UGWqOHQRjvelACmCwOhBSNT2j52usV7FuQePY+zs8fl 7sErDWbA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1sx9HA-0000000FiP1-2aCd; Sat, 05 Oct 2024 18:13:08 +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 1sx9DR-0000000FhoN-0338 for linux-arm-kernel@lists.infradead.org; Sat, 05 Oct 2024 18:09:18 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1728151755; bh=7qNVpRk4hShjfI18Pwxsd9HJEZlZreJGT8LTSHQa0iQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To; b=jko0GRC7+2kWGDql7LJxnJYDkWLNnEXt+AwqLY//tHpqFO82oYVEHXEvWrq8HGqDY CrWb+TskoDr0jsZJHuwqsDWNEIUptkCCDhIosWU1D/Ie9HYuXL67JXWNuwvEV6dcvF 5lNXozVgC0c2iF489YxwG+Q+OsONy3cCuPTmTAiSpRLfV3lBC+WNXLUwgzdnfcYfdo Whhpm0BPaCSgKsfwTiGocHptIBDKpIqlsA6T9ZKgv+OxjJGBpJaliLMq9CLbHqHfSk PZfyjQxX4yQNppvNOpo/8sgMzOTB2x5/wTITD3/plPDJ02kNuIizgcj5eoVDR3mN1X OS63qywjG7blQ== Received: from localhost (st43p00im-dlb-asmtp-mailmevip.me.com [17.42.251.41]) by st43p00im-ztdg10063201.me.com (Postfix) with ESMTPSA id A0E179803CA; Sat, 5 Oct 2024 18:09:09 +0000 (UTC) From: Alain Volmat Date: Sat, 05 Oct 2024 18:08:00 +0000 Subject: [PATCH 2/3] ARM: dts: st: add node for the MALI gpu on stih410.dtsi MIME-Version: 1.0 Message-Id: <20241005-sti-gpu-v1-2-9bc11100b54b@me.com> References: <20241005-sti-gpu-v1-0-9bc11100b54b@me.com> In-Reply-To: <20241005-sti-gpu-v1-0-9bc11100b54b@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: ikPKVfJGHYnCfHiGGVwKwG-qG3Am1h7b X-Proofpoint-ORIG-GUID: ikPKVfJGHYnCfHiGGVwKwG-qG3Am1h7b 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-05_17,2024-10-04_01,2024-09-30_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 spamscore=0 mlxscore=0 phishscore=0 malwarescore=0 adultscore=0 mlxlogscore=587 suspectscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2308100000 definitions=main-2410050133 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-20241005_110917_153046_4317D03A X-CRM114-Status: GOOD ( 11.56 ) 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..be34de10bbcb0d1f2d527568878e3ed1ff297954 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,sti-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 Sat Oct 5 18:08:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alain Volmat X-Patchwork-Id: 13823398 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 6F7C1CFB420 for ; Sat, 5 Oct 2024 18:14:34 +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=GJQPLeuqjpbAJN7nT3Lyy51Tf5 navCjhLJliQBrVlPMOiKcFiCDN+BpCViW3oybaOG2m54Mh42Aj9HP6BbA+v30yn4OTx7lIAc5Srid 8dHMpSvixNVCt+3P7RafvdnU/kGwHQlXr/IMPgaP/k9XLa7NvZXSEacGF0j0MnTX92pzyiU//Pt7f ec4OCroHqLneQFnQqqtkIJB3R+jff0B1XoDcDD8MZk2gyh+S11k2Djf1nrGLjIRG1FWeVk2ZWTZxM SGB3us5jVRZpCmC6ojC8kd9iJmhksodYui6sBQHNUSJsnOH0o4cYFbly9LAN1rVfgvi/rC3UAnpWa dPnFEygA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1sx9IO-0000000FiXv-0uG9; Sat, 05 Oct 2024 18:14:24 +0000 Received: from st43p00im-zteg10071901.me.com ([17.58.63.169]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1sx9DY-0000000Fhqu-47Ug for linux-arm-kernel@lists.infradead.org; Sat, 05 Oct 2024 18:09:26 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1728151764; bh=Rb4uSMd3WuIyW+3aNpC7juKYGvVxUYO7LHjTErftlXk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To; b=Uo7kWnRk3NXcfY0YVggAkw/8WRmpojcs6yFEEk+/LM5e8ZW3eIUcO0nmoh6zfec2i EJNoIumdgLiJ75d9g+abtY4jQnFP0+VOI7YhpZj+52BX65urnULb5INLR2HqZN6zBv zNuarv5gLeYho3ABUmDGYvb20OIawtNIpj40iCt4/0m+v3BQj60QIrM5kJ8fB3jT+I QVot+Kz3p4zUtngQoIGCLzwgdi2YzTFfSvVGwj46VIFVHQTT18R7Kvcj1HXXaSipCR axEc4XNxywNUndw/l5ObihaTL34Ca4lNK4XRCwOiEHacRmEo5D3pJVVRM8jk4pAV3w 5VNNLBlX/vGWw== Received: from localhost (st43p00im-dlb-asmtp-mailmevip.me.com [17.42.251.41]) by st43p00im-zteg10071901.me.com (Postfix) with ESMTPSA id BE410AA0227; Sat, 5 Oct 2024 18:09:19 +0000 (UTC) From: Alain Volmat Date: Sat, 05 Oct 2024 18:08:01 +0000 Subject: [PATCH 3/3] ARM: dts: st: enable the MALI gpu on the stih410-b2260 MIME-Version: 1.0 Message-Id: <20241005-sti-gpu-v1-3-9bc11100b54b@me.com> References: <20241005-sti-gpu-v1-0-9bc11100b54b@me.com> In-Reply-To: <20241005-sti-gpu-v1-0-9bc11100b54b@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: e0gSJDYpB3fg5-jlGs0tgSltEINQFDQO X-Proofpoint-GUID: e0gSJDYpB3fg5-jlGs0tgSltEINQFDQO 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-05_17,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-2410050133 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-20241005_110925_132199_CD8E27F8 X-CRM114-Status: GOOD ( 10.01 ) 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"; + }; }; };