From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7470B31352D for ; Sun, 19 Jul 2026 21:13:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784495635; cv=none; b=MMtCltwOsOfSgl4ITDxJoY9dD7VV9KfTUM+GHFZHKe693L8bZO0FOK1zsVLfi+4SxQgAoFzRmysssxPRp9d1atI6Xxm4CVaxNAZv9AhpU4x5d6fmEJC2bScFYkJveQJ6ZoLM+OtutIihYdXogLY9qXKBSJGyLkkm8kRJqcGiZLk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784495635; c=relaxed/simple; bh=uZZtbCVhOKhzC2tpXj5NKZbfR/sFeNe4FarJkD89skY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=aY2LZdnpyze+uLXDIBxQpAYpuLexf1ytkzFZl/Wnk45DKHjpMHXNdnDobcOZ416WmiopyD6AdIFCOmNPQcUC0FKAaF8in1wI6jsyYr3VHNdeRjiP+fEfQCAxB9ZiUSRsb8IgT336rwufCwx5aVDHmvh4nM8oS7pE0aC7Phh+n9w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=HHOMQ3E4; arc=none smtp.client-ip=209.85.128.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="HHOMQ3E4" Received: by mail-wm1-f52.google.com with SMTP id 5b1f17b1804b1-4955484387cso5289315e9.1 for ; Sun, 19 Jul 2026 14:13:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1784495632; x=1785100432; darn=vger.kernel.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=mSI4AxiakfLEoxCkbMXngSkCPIZ/Cb8g+GVzqOuksO8=; b=HHOMQ3E4s/WUkEluNM15tPgrFhQP51cmgDqqvt9kY4aoF7clbLQCDrgkcQ7blMfbYH f/itB+tACSl5q/h+FN9fV5by8AIdZqLm236IHMZ/GFdL5IbqCJgOzQWnb1BEIQv9y1+B PcPukeLfhkcQSEdIVn4Q7DEgRCBcuL33gwT2fj09JjXC2Ju1kxnDe7Z70c4bipKYAvPc 8MoyJ7rwjtDABDPyUCerWNWtI0kjo7jogTVUA9p82qKQB11e6q6mp3J6aQfdL3qQFMiU z5PNFcCdZB+fw/40DnBkzBIuJRbuDXMREguBpRuJnAFfaNFEymm0/6Q8zndZbFbca/DU ahCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784495632; x=1785100432; h=content-transfer-encoding:content-type: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 :content-type; bh=mSI4AxiakfLEoxCkbMXngSkCPIZ/Cb8g+GVzqOuksO8=; b=lxtJdWzQFnHjBkhV/ZwPPSz6Y5isl61K7FjmX+pGMqJLvLK4G41QFSxE3ZRmx4aDhd NDurXH/3iqyrcnnjTKGmgXp61rAusD1Vc0mge4D6tew2E6WYUm8+a43OAUpaVUQggb19 olexC6PKra9WelATbkjzbPvbMWqoGfGoMZr5h8l65Fe2HYnBSTPyUjLyji79LGxMdhFx CLSBsnLmVcOAkNXd1c6J8hE84tgLTTSLD08g3P3bC72UcnAQH5pwKS634nwrUkuMOr31 Mf8qsI6DUyRTiuM51PWYmK236WIdma3pkYzMH4z948ABoYoCzM1OfSz7d1DtdQgt6Obd Bldg== X-Forwarded-Encrypted: i=1; AHgh+Rr8jHqzc/dX66lrr4e8TrraY0AyWAw22CLUCIcrJEGW0Y56h/Z1gavlNWBSOpCzoMURI9CW1JysNtASfMc=@vger.kernel.org X-Gm-Message-State: AOJu0YyCsBNjdXpxpmxdfTRKajzdr25gU/bJW24zr9IkAVyEetxnRtwR tvSBWmvle8dn9wXyjYg7k9NGZHFk0a4eGvibcNGwIeSx4oHY4goGwDY14FbxMmyue6o= X-Gm-Gg: AfdE7cmCkkVQA87pMn7JKXS3prhWBRDTmPwjZiExp9bbHirm+qYa8BdK1k/ZVx3eNSn 2UvlqdfKxs4G47/N/WhgjUhv7Je8YaZm9PAl2ZnFz9xjuaY0wBUaBCAknOMVMvrfnI5QTQQ0wlk w7yx7Aa8t5TA324qeyPqVmwL3wY+9bjqz/OMXciRhi8MxokMNtHsdESgVW3i+yREQtUf6BHZyP+ Q+gNFDBz0Do55yZIOHudzYYT6hxrq82GvwP95EerFDc34sBvQtQLHJ1QNBsHGVDtlBPj0qsjk5H eP7obM+AyAA/ghx7xbbj3WCE6S8Hv7F7lCXt8WlbfyvCGJdI+/KO68TqI7+SPxGzVAEr830sc+4 XiuuAGJ08WmHftNv0x4Mjg1Qkxd5rf30FtED31jwpn4PEj8ihPAtRrqct0twEpLJclf1IveznlY 8hwihBXxLIlH5wXtuvp6XIdM2T1qTdldPKA2r6 X-Received: by 2002:a05:600d:8494:10b0:495:4056:2c6d with SMTP id 5b1f17b1804b1-4954a402f4fmr101550685e9.23.1784495631684; Sun, 19 Jul 2026 14:13:51 -0700 (PDT) Received: from localhost.localdomain ([2a0d:3344:2841:7708:a101:2b8a:f76:a00f]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-49549a3e2a9sm224108815e9.4.2026.07.19.14.13.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Jul 2026 14:13:51 -0700 (PDT) From: =?UTF-8?q?Juan=20Manuel=20L=C3=B3pez=20Carrillo?= To: Michael Turquette , Stephen Boyd , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland Cc: Brian Masney , Andre Przywara , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-clk@vger.kernel.org, linux-sunxi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, =?UTF-8?q?Juan=20Manuel=20L=C3=B3pez=20Carrillo?= Subject: [PATCH v1 4/4] arm64: dts: allwinner: t527-orangepi-4a: add GPU OPP table Date: Sun, 19 Jul 2026 23:13:19 +0200 Message-ID: <20260719211319.982285-5-juanmanuellopezcarrillo@gmail.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260719211319.982285-1-juanmanuellopezcarrillo@gmail.com> References: <20260719211319.982285-1-juanmanuellopezcarrillo@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add the Mali-G57 operating points from the vendor BSP universal table (150/200/300/400/600 MHz) so panfrost devfreq can scale the GPU instead of running at the boot clock. All operating points use 920 mV: the BSP table specifies 900 mV for every universal OPP, but on this board the GPU rail (AXP717 DCDC2, vdd-gpu-sys) is a fixed 920 mV supply, so the OPP voltage states the actual rail value and voltage transitions are no-ops. The higher speed-bin points of the BSP (648-792 MHz) are not included: they are gated by a SID efuse bin and need pll-gpu as a live parent. Depends on the sun55i-a523 GPU clock divider fix (the OPP rates are only produced correctly with the cycle-masking divider model); validated on hardware with the Mali cycle counter: 149/199/300/399/597 MHz measured under load, thermal-emulation throttling included. Signed-off-by: Juan Manuel López Carrillo --- .../dts/allwinner/sun55i-t527-orangepi-4a.dts | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun55i-t527-orangepi-4a.dts b/arch/arm64/boot/dts/allwinner/sun55i-t527-orangepi-4a.dts index 055be86e5..0fd73a1bb 100644 --- a/arch/arm64/boot/dts/allwinner/sun55i-t527-orangepi-4a.dts +++ b/arch/arm64/boot/dts/allwinner/sun55i-t527-orangepi-4a.dts @@ -30,6 +30,35 @@ ext_osc32k: ext-osc32k-clk { clock-output-names = "ext_osc32k"; }; + gpu_opp_table: opp-table-gpu { + compatible = "operating-points-v2"; + + opp-150000000 { + opp-hz = /bits/ 64 <150000000>; + opp-microvolt = <920000>; + }; + + opp-200000000 { + opp-hz = /bits/ 64 <200000000>; + opp-microvolt = <920000>; + }; + + opp-300000000 { + opp-hz = /bits/ 64 <300000000>; + opp-microvolt = <920000>; + }; + + opp-400000000 { + opp-hz = /bits/ 64 <400000000>; + opp-microvolt = <920000>; + }; + + opp-600000000 { + opp-hz = /bits/ 64 <600000000>; + opp-microvolt = <920000>; + }; + }; + leds { compatible = "gpio-leds"; @@ -116,6 +145,7 @@ &gmac1 { &gpu { mali-supply = <®_dcdc2>; + operating-points-v2 = <&gpu_opp_table>; status = "okay"; }; -- 2.47.3