Re: [PATCH 0/6] sunxi: A133: Add CPU speed grade detection and OPP table
From: Rajan Yadav
Date: Thu Nov 05 2026 - 09:56:42 EST
Hi Andre,
Thanks a lot for the quick and detailed answers!
On 11/5/26 12:30, Andre Przywara wrote:
> So I read about the 1.6GHz somewhere, might just be a marketing claim
> about some max frequency. If the common speedbins do not support 1.6GHz,
> that's fine, but apparently some do, so I'd keep them in, for people who
> happen to have those SoC revisions.
OK, v2 will add 1608 MHz for b0 and b1. The SDK table stops at
1512 MHz; 1608 MHz is only in the table of the factory firmware on my
board (its kernel was built in January 2026, the SDK import is from
October 2024). I compared the two tables entry by entry: the factory
table is the SDK table plus five OPPs, all other values are the same:
1608 MHz: b0 1.18 V, b1 1.13 V (max 1.14 V)
1416 MHz: a0 1.18 V, a1 1.18 V, a2 1.13 V
Should I add the 1416 MHz OPPs for a0-a2 as well, so that the table
matches the factory one?
> I think if we can be sure that the current mainline OPPs still apply
> with this series, that's good enough.
They do. The series does not change the A100 code path (patch 2 only
moves the cell reading into a helper), and on the K5C the patched
kernel with today's A100 table gives the same OPPs and voltages as
before. A 6.18 kernel without the series and with the new A133 table
falls back to the A100 selection (with 1008 instead of 1080 MHz).
> Regarding 1008 MHz: This was just some frequency close to 1GHz picked by
> U-Boot, that should be low enough to not cause any trouble, even with
> the default voltage. How critical is this "unlisted initial frequency"
> message? If it causes trouble, we can add a made-up 1008MHz OPP with
> some safe voltage, otherwise I'd say we just leave it.
Not critical. It is a pr_info, and cpufreq switches right away to the
next higher OPP (1080 MHz). With the A133 table it does not appear,
since that table has 1008 MHz, as the BSP does. So I would leave the
A100 table as it is.
> So like for the H616, please just use the SoC ID call, that's a clean
> solution. Maybe just make sure that it can fail somewhat gracefully
> (read: not crash).
That is what the series does. Without SOC_ID the driver warns
"SMCCC SOC_ID not available, using speed grades a0-a2", falls back to
the A100 selection (plus the BSP's a0 rule for normal parts) and
continues. I tested this on the K5C with a test build that forces the
revision to unknown.
> I think some of those handheld gaming consoles use the A133P variant?
> Maybe there are some tables in "their" source code?
Good idea, I will look for those.
> Thanks, I will try to get those logs, I have the Liontron board and the
> Teclast tablet.
Thank you! I will wait for your logs and the other reviews before
sending v2.
> P.S. Since you mention the KickPi: can you please work with Paul (in
> CC:) to upstream the DT for this board?
Yes, happy to. Paul, I have a K5C DT that I run on mainline kernels
(6.18 and 7.4-rc1): eMMC, SD card, USB host and the PMIC work.
Ethernet needs a PHY driver (Maxio MAE0621A) that is not in mainline
yet, and the Wi-Fi/BT chip (Seekwave) has no mainline driver. The
"kickpi" vendor prefix is not in mainline either. How would you like to
do this: should I send the DT with you in Cc, or do you already have a
version I should build on?
Thanks,
Rajan