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: 13823399 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 EEB97CFB42B for ; Sat, 5 Oct 2024 18:15:11 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5375410E0FD; Sat, 5 Oct 2024 18:15:11 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=me.com header.i=@me.com header.b="jko0GRC7"; dkim-atps=neutral X-Greylist: delayed 370 seconds by postgrey-1.36 at gabe; Sat, 05 Oct 2024 18:15:09 UTC Received: from st43p00im-ztdg10063201.me.com (st43p00im-ztdg10063201.me.com [17.58.63.182]) by gabe.freedesktop.org (Postfix) with ESMTPS id CC60310E0FD for ; Sat, 5 Oct 2024 18:15:09 +0000 (UTC) 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-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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"; + }; }; };