Re: [PATCH v7 7/8] clk: sunxi-ng: a733: Add bus clock gates

From: Norman Herms

Date: Sat Nov 28 2026 - 13:41:05 EST


On Sat, Nov 28, 2026 at 02:42:06PM +0000, Daniel Golle wrote:
> Which masters other than GMAC0 sit behind MSI-Lite0 is not documented.

The A733 User Manual v1.00 groups them in its memory map (chapter 2):
under MSI_LITE0_SYS it lists GMAC0, DMAC0 and the crypto engine
(CE_NS, CE_S, CE_KEY_SRAM), together with the MSI_LITE0 registers and
SECURE_DEBUG_CFG.

I checked this on a Radxa Cubie A7S from userspace with devmem, clearing
one gate at a time and restoring it right after:

- ahb-msi-lite0 (0x5c0 bit 16) cleared: the GMAC0 MAC_Version register
(0x4500110) reads 0 instead of 0x2053, and a value written to
CE_TDA0_NS or to the descriptor address register of an idle DMAC0
channel reads back as 0. With the gate set again, all three read back
correctly.
- mbus-msi-lite0 (0x5e0 bit 29) or bus-msi-lite0 (0x594 bit 0) cleared:
register access to all three is unchanged.

So DMAC0 and CE need ahb-msi-lite0 for register access as well. If the
gates go into the consumer nodes, the DMAC0 and CE nodes would have to
list ahb-msi-lite0 too, not only GMAC0. Whether they also need
mbus-msi-lite0 for DMA is open; I did not test DMA with that gate
cleared.

The board ran a 6.18 kernel whose CCU driver does not touch these gates.

Measured and written up by AI agents (Claude) on my board.

Norman