[PATCH v2 00/24] ARM: zte: Add support for Sanechips ZX279128S and ZTE ZXHN H3600
Navid Ghahremani
ghahramani.navid at gmail.com
Thu Nov 12 16:35:23 PST 2026
Hi Stefan,
Stefan Dösinger wrote:
> I recommend to focus on the above patches first and wait with the rest until
> the basic board description and clock drivers are in. This reduces load on
> reviewers and keeps the patch series focused.
I will do that. The next version will only have MAINTAINERS, the ARM
binding, the platform code, the clock and reset bindings and drivers
and a basic SoC dtsi and board dts. It will be based on v7.4-rc1, which
now has your drivers/clk/zte code, and it will use that code, so the
regmap clocks, pll-zx.c and zx_clk_common_probe(), with an MFD parent
and a separate reset driver like in your zx297520v3 series. GPIO, PCIe
and USB will come later as one series per subsystem, and the networking
patches will go to netdev as Andrew asked. I am dropping the SPI driver
since you will submit it.
Agustin Santiago, who has the same board, has a clock and reset rework
for the zx279128s on top of your framework and is sending it to me. I
will test it on my board, and if it works the next version will use it
with Agustin as the author.
Before the MFD and reset parts are final, which way would you prefer?
a) new drivers/mfd/zte-zx279128s-crm.c and
drivers/reset/reset-zte-zx279128s.c with the same structure as
yours
b) adding zx279128s compatibles and data to your MFD and reset drivers
once they are merged
b) avoids duplicated code but has to wait for your patches. All reset
lines I have found on my SoC are active low like yours, so your reset
ops would work as they are.
I also still owe you answers to the hardware questions from your review
of RFC patch 7, about REFDIV, the 32 kHz source, the missing LSP clocks
and resets and the TOP_CLK_EN gaps. I want to measure them on the
router instead of taking them from ZTE's code, and I will reply here
with the results before I send the next version.
Two things I can already tell from the PLL registers on my board.
Bits 23:18 read 1 on all five PLLs I looked at, the A9, LSP, audio, DDR
and PON ones, so it looks like your REFDIV with its default value. I
have not changed it yet to prove that it really divides.
The audio PLL uses the fractional part. Its registers read 0x000409ec
and 0x15525460, and 25 MHz * (39 + 0x525460 / 2^24) / 5 / 4 gives
49.152 MHz, the usual audio rate, which only works out with the
fraction. So reading this PLL right needs fractional support in
pll-zx.c, and I can test that on my board.
> Out of curiosity, do you have a public git repository with your patches
> somewhere?
Yes, v2 as I sent it is here
https://github.com/ghahramani/linux/tree/zx279128s-v2
You also wrote that you want to give feedback to a human and not to a
Claude prompt, and that is fair. I use Claude, Antigravity and Codex to
read sources, learn about the parts, write code and fix my English in
these mails. I go through all the code they write and fix what I can,
but I am coming back to C after a long break and I still miss things.
The kernel sources are a lot to take in with all their code and
history, and on top of that this SoC is closed, with nothing public to
look up. So reverse engineering the original drivers is the only way
in, and that can bring along code that turns out not to be needed,
like the MDIO clear Andrew spotted. I can assure you that I test all
of it heavily on my router, and whenever I spot something wrong in the
code I revise it. I am also always open to suggestions on how to
improve my coding style and my approach. The next version will carry
the Assisted-by tag the kernel docs ask for.
Best regards,
Navid
More information about the linux-arm-kernel
mailing list