From mboxrd@z Thu Jan 1 00:00:00 1970 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 6AFBDD25021 for ; Sat, 10 Jan 2026 20:05:00 +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=+5KCrdSQAhQJQiKdRFfabWylnTyHN1z0V1xa+uu95XY=; b=LB6LI3oVVO3rFs iWrcv71AeMtQZ37DmV8UU/vZjrf43XKbBGUrunv7S+qC27+ldQLUZotkttEp9sbuJ4hud0iJO1M1c YBB3sHmTW2k77M1IAHuTeUv2rCF3Q67bYVqBsw/v3GU9hHRwbhLfnzmOBbjElmeECVr11z7udzQ6L E/10ZyGRjTzuJF2ZAaa7iiWXEQvroK87jwbO4YnR1fvHdkDjdY/Rh2D/Z2wMGigTqfTzoD/JxyGXT Xl1UCiu+qmDHTI+YOQeret2YKXEZ5GOeEMUTpqktGN93caK8rEuB6IO88k0zhPpfnsbag+REK+Ur/ VD68pr3OX40eBz8KKX7A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1vefCj-00000003ehC-08Kl; Sat, 10 Jan 2026 20:04:57 +0000 Received: from mail-ed1-x529.google.com ([2a00:1450:4864:20::529]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1vefCe-00000003ech-2F49 for linux-amlogic@lists.infradead.org; Sat, 10 Jan 2026 20:04:53 +0000 Received: by mail-ed1-x529.google.com with SMTP id 4fb4d7f45d1cf-64d4d8b3ad7so8600214a12.2 for ; Sat, 10 Jan 2026 12:04:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20230601; t=1768075490; x=1768680290; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=AZp/4UqxgVJEKQTMowPFSKPPKs3A6A+N3Xt0eLrI87c=; b=jRv9Q6EERZ+/hrJOBnN1HFaWoiuHoW586Q1RlsvH59z0cujWyOgqCA4aozOtNt5i4A Noz0re8FS6BDhGFD/qhxBktcqmkUvDkA8/qkaAK0u858REXjSM0QiMzBKcdTHZ+qbGeU yhpOKL28p+2lFNX4KhGsG3spklFOYujfnzLH/Y14+oLPdkI9/sJq+aEKYgefhUC1VumG ulj0bDQD6wz7z294LzS5EthWk5GERVU0gUgXoUXxyjCFfloYtn9eO+udMwDIh6O9plQu IiTB3ke3wAxQ6HRmLY6UePkgjFfO8hJBzUW2JKnVmzVam1HAVxtn+hBCp/TWhpj82eH5 6AMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768075490; x=1768680290; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=AZp/4UqxgVJEKQTMowPFSKPPKs3A6A+N3Xt0eLrI87c=; b=YVQVzulZYUfVTGREq5DWkgcA+wffx+LoZu4AbNJMNjazylWcyQAgZxXP0AA2fN/1iC ExtrkczB21fDAQmhuBP/lKFnT/DS+kCMmRs3pGkT/9Fl1uogDc2EjKbIcz5WwIRzMi7f mWcGiK4pIZgErqIdJBbFOiRrE1BURGTAtpizTOU66WWaoow7QmKCcxlxeR1N9JB/tVNK VqesQ17xC8UUcymjv0NO1H2lVBiUFHjT9zJw+WEGm+unp8Ij9QJ65mTgfs/3k4bu2qQp oxN62RXI++eTgr2ea8qbObqv4XrFX3NixrrZ/tGJlIyvmmEf1Kpr6iJWNvcAyLHJP9Nl V0OA== X-Gm-Message-State: AOJu0YwzlaSF1TBElwIddTlcI7Q2wpimL1JDS9qoBor9kmknoju+b+T6 wQ5UAYeRvu2kEV2rOj+jFWJRKqe5B7X3w5Dw1aJoOJ8EuA5C6jLVrW79McIsBw== X-Gm-Gg: AY/fxX5DaBe4A5GNho7nQayYh/aj3XHyjcUH9EaoL+LNpE9Ts7i6ZcqEtfDvSHFmbwY +N3FEtaNX9qMvUxBtrsP0+aYhzBr7mVE77hwL4MkekQ903t3jaRth0ts02+oFlz6jxPqbBS0E17 CX2pf2MVTzpc2aV5gdkK0EVnH5fj506ovYDfSRpKgqNXcJfVEdbmVTJF61L5vyk6RI/dvyhe34h QCScAiCIMOrLs01XWog/OqzZ4xWXMTYti2UD++69xfROK/uTyMjvBKlJqi0pzPWJm2IUT8VLV02 6DYrHeYmCu/TZue0Fy2+jN81b2e9LoieyyCD0a5jz71Lsl3DX8hQV3E0ORSkzSRhscGP3g+MGjy rrTwNsID9OT8IG9K8hoLBT3IyuvHpWy+UBcPC6gtdP1u4WrPdFMdw+cCEY6b3dbmb5XRU+W/LTX 3D2+lGtn4K0ugel3w2fyhdaxyRI0fBrm+p+bTN/YsZlDpu/EhamKuv+qKpp8VOv79f3AzK4te04 DRDFtTk/RILQBAIS/+wphhQghlpLAOATDlAc4cPg+s= X-Google-Smtp-Source: AGHT+IGvuE3mHQEPZbwg7WpapEXPLdH/efnHZhaaOVZWj4l0e/xQBTMgKbiWHc1unEZSi4FRGpH6qw== X-Received: by 2002:a17:907:7283:b0:b83:1327:5f88 with SMTP id a640c23a62f3a-b84451da312mr1328889366b.16.1768075489920; Sat, 10 Jan 2026 12:04:49 -0800 (PST) Received: from blackbox (dynamic-2a02-3100-af95-6f00-1e86-0bff-fe2f-57b7.310.pool.telefonica.de. [2a02:3100:af95:6f00:1e86:bff:fe2f:57b7]) by smtp.googlemail.com with ESMTPSA id a640c23a62f3a-b842a56c552sm1483591066b.68.2026.01.10.12.04.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Jan 2026 12:04:49 -0800 (PST) From: Martin Blumenstingl To: linux-amlogic@lists.infradead.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, adrian.larumbe@collabora.com, steven.price@arm.com, boris.brezillon@collabora.com, robh@kernel.org, Martin Blumenstingl Subject: [PATCH 3/3] arm64: dts: amlogic: S4: Add the Mali-G31 GPU Date: Sat, 10 Jan 2026 21:04:26 +0100 Message-ID: <20260110200426.1461575-4-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260110200426.1461575-1-martin.blumenstingl@googlemail.com> References: <20260110200426.1461575-1-martin.blumenstingl@googlemail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260110_120452_588904_F778E22B X-CRM114-Status: GOOD ( 12.02 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org The vendor BSP indicates that the Mali-G31 GPU on Meson S4 SoCs is similar to the setup on G12A SoCs. The OPP table and resets are the same, but the clocks (G12A only has one, S4 has two) and interrupt numbers are different. Describe the Mali-G31 GPU with it's resources and enable it by default since all frequencies are using the same voltage (as the GPU is supplied by VDDEE changes to the VDDEE voltage are not needed at runtime). Signed-off-by: Martin Blumenstingl --- arch/arm64/boot/dts/amlogic/meson-s4.dtsi | 49 +++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-s4.dtsi b/arch/arm64/boot/dts/amlogic/meson-s4.dtsi index 9d99ed2994df..efd3dda7d2c1 100644 --- a/arch/arm64/boot/dts/amlogic/meson-s4.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-s4.dtsi @@ -66,6 +66,39 @@ xtal: xtal-clk { #clock-cells = <0>; }; + gpu_opp_table: opp-table-gpu { + compatible = "operating-points-v2"; + + opp-124999998 { + opp-hz = /bits/ 64 <124999998>; + opp-microvolt = <800000>; + }; + opp-249999996 { + opp-hz = /bits/ 64 <249999996>; + opp-microvolt = <800000>; + }; + opp-285714281 { + opp-hz = /bits/ 64 <285714281>; + opp-microvolt = <800000>; + }; + opp-399999994 { + opp-hz = /bits/ 64 <399999994>; + opp-microvolt = <800000>; + }; + opp-499999992 { + opp-hz = /bits/ 64 <499999992>; + opp-microvolt = <800000>; + }; + opp-666666656 { + opp-hz = /bits/ 64 <666666656>; + opp-microvolt = <800000>; + }; + opp-799999988 { + opp-hz = /bits/ 64 <799999988>; + opp-microvolt = <800000>; + }; + }; + firmware { sm: secure-monitor { compatible = "amlogic,meson-gxbb-sm"; @@ -783,6 +816,22 @@ ir: ir@84040 { status = "disabled"; }; + gpu: gpu@400000 { + compatible = "amlogic,meson-s4-mali", "arm,mali-bifrost"; + reg = <0x00 0xfe400000 0x00 0x40000>; + interrupts = , + , + ; + interrupt-names = "job", "mmu", "gpu"; + clocks = <&clkc_periphs CLKID_MALI_SEL>, + <&clkc_periphs CLKID_MALI>; + clock-names = "gpu", "bus"; + resets = <&reset RESET_MALI>, + <&reset RESET_MALI_APB>; + operating-points-v2 = <&gpu_opp_table>; + #cooling-cells = <2>; + }; + hwrng: rng@440788 { compatible = "amlogic,meson-s4-rng"; reg = <0x0 0x440788 0x0 0x0c>; -- 2.52.0 _______________________________________________ linux-amlogic mailing list linux-amlogic@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-amlogic