Re: [PATCH 4/4] arm64: dts: allwinner: a133: Add KickPi K5C

From: Rajan Yadav

Date: Sat Nov 28 2026 - 23:03:21 EST


Hi Andre,

On Thu, Nov 26, 2026 at 01:05:26AM +0000, Andre Przywara wrote:
>> Mainline has no binding for the AXP707. Its chip ID register reads 0x51,
>> which U-Boot's AXP803 code accepts, it works with the AXP803 driver, and
>> the vendor device tree also describes it as an AXP803, so the PMIC node
>> uses the AXP803 compatible.
>
> ... as on every other A133 board, so please drop the lengthy explanation.

Agreed, dropped in v2.

>> Not described yet:
>> - Ethernet: the board has a Maxio MAE0621A PHY, which needs a driver
>> that is not in mainline yet
>
> Is that so? In the v1.3 schematic that I am looking at, it shows a
> Realtek RTL 8211F, and also the board pictures on the KickPi website
> clearly show a Realtek logo on the chip next to the magnetics and the
> Ethernet socket.
> So what is going on here?

My board's PHY at MDIO address 0 reads ID 0x7b744411;
a Maxio MAE0621A-Q2C. I even checked the V1.3 schematic
shows RTL8211F. I believe on my board the part was substituted;
other boards may have the Realtek.

> And besides, even if you have a Maxio PHY: how is this clocked? Does it
> have an external crystal oscillator? Or is it clocked via some PWM /
> clock fanout pin from the SoC? Only in the latter case you need the PHY
> driver, with a crystal it should work with the generic clause22
> compatible string. Once we get a driver, the code will auto-detect the
> PHY ID and use that driver, for a potentially improved feature set.

The schematic shows a 25 MHz crystal on the PHY's XTAL pins,
and the SoC doesn't clock the PHY (the EMAC-25M gate is off,
and PH13 is used for the RTC's I2C). With "ethernet-phy-ieee802.3-c22"
and the reset on the MDIO bus; auto-detection works.
With the generic PHY driver, the MAC failed to reset
("Failed to reset the dma") on 3 of 3 cold boots.
Debugging showed that after power-on, page 0xd92 register
2 reads 0x210a. Clearing bit 8 alone (0x200a, the value U-Boot's maxio.c
writes as "clock mode: crystal") fixes it, on 3 of 3 cold boots.
So even with a crystal, the generic driver is not enough on this -Q2C:
a driver has to clear this bit.

The updates are out with v2.

https://lore.kernel.org/all/20261128-k5c-dt-v1-v2-0-eac2647049cd@xxxxxxxxx/

Thanks,
Rajan