public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH 0/7] soc: sunxi: sram: Add H616 SRAM support
@ 2026-03-24 16:43 Chen-Yu Tsai
  2026-03-24 16:43 ` [PATCH 1/7] dt-bindings: sram: Document Allwinner H616 VE SRAM Chen-Yu Tsai
                   ` (6 more replies)
  0 siblings, 7 replies; 15+ messages in thread
From: Chen-Yu Tsai @ 2026-03-24 16:43 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Chen-Yu Tsai,
	Jernej Skrabec, Samuel Holland
  Cc: devicetree, linux-sunxi, linux-arm-kernel, linux-kernel

Hi,

The Allwinner H616 has two switchable peripheral SRAM regions:

- The VE SRAM is a 2 MB dedicated SRAM for the Video Engine. CPU access
  to this region is enabled by default. CPU access can be disabled,
  after which reads will show the same stale value for all addresses,
  while writes are ignored.

  The mux value for this region is different from previous generations.

- The SRAM C region is an alias of the first 128 KB of VE SRAM, plus 64
  KB of DE SRAM. The latter is otherwise unaccessible from the CPU. When
  CPU access is disabled, the whole region reads as zero, while writes
  are ignored.

  The mux value for this region is the same as on the A64 and H6.

The driver needs to allow both the Video Engine and Display Engine to
claim the SRAM C region at the same time.

At the same time, since the Video Engine needs to claim both SRAM
regions, the Allwinner SRAM consumer interface needs to support claiming
multiple regions for one consumer.


Patch 1 adds a compatible for the new H616 VE SRAM to the common SRAM
binding.

Patch 2 adds a compatible for the new H616 VE SRAM to the Allwinner SRAM
binding.

Patch 3 is a minor cleanup that const-ifies the SRAM related hardware
description data in the driver.

Patch 4 implements support for multiple hardware block drivers to claim
the same SRAM region.

Patch 5 implements support for one consumer to claim multiple SRAM
regions.

Patch 6 adds support for the H616 VE SRAM region to the SRAM driver.

Patch 7 adds the SRAM regions to the H616 dtsi file. This was picked
from Jernej's tree and split into one patch for SRAM and one patch for
the video engine.


I think all the changes can go through the sunxi tree, unless the device
tree maintainers want to take the first patch separately?

The new users of this, support for the H616 video engine, will be sent
separately.


Thanks
ChenYu


Chen-Yu Tsai (6):
  dt-bindings: sram: Document Allwinner H616 VE SRAM
  dt-bindings: sram: sunxi-sram: Add H616 SRAM regions
  soc: sunxi: sram: Const-ify sunxi_sram_func data and references
  soc: sunxi: sram: Allow SRAM to be claimed multiple times
  soc: sunxi: sram: Support claiming multiple regions per device
  soc: sunxi: sram: Add H616 SRAM regions

Jernej Skrabec (1):
  arm64: dts: allwinner: sun50i-h616: Add SRAM nodes

 .../allwinner,sun4i-a10-system-control.yaml   |   5 +-
 .../devicetree/bindings/sram/sram.yaml        |   1 +
 .../arm64/boot/dts/allwinner/sun50i-h616.dtsi |  28 ++-
 drivers/soc/sunxi/sunxi_sram.c                | 196 +++++++++++-------
 4 files changed, 151 insertions(+), 79 deletions(-)

-- 
2.47.3



^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2026-03-25  0:30 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-24 16:43 [PATCH 0/7] soc: sunxi: sram: Add H616 SRAM support Chen-Yu Tsai
2026-03-24 16:43 ` [PATCH 1/7] dt-bindings: sram: Document Allwinner H616 VE SRAM Chen-Yu Tsai
2026-03-25  0:22   ` Jernej Škrabec
2026-03-24 16:43 ` [PATCH 2/7] dt-bindings: sram: sunxi-sram: Add H616 SRAM regions Chen-Yu Tsai
2026-03-25  0:23   ` Jernej Škrabec
2026-03-24 16:43 ` [PATCH 3/7] soc: sunxi: sram: Const-ify sunxi_sram_func data and references Chen-Yu Tsai
2026-03-25  0:24   ` Jernej Škrabec
2026-03-24 16:43 ` [PATCH 4/7] soc: sunxi: sram: Allow SRAM to be claimed multiple times Chen-Yu Tsai
2026-03-25  0:25   ` Jernej Škrabec
2026-03-24 16:43 ` [PATCH 5/7] soc: sunxi: sram: Support claiming multiple regions per device Chen-Yu Tsai
2026-03-25  0:28   ` Jernej Škrabec
2026-03-24 16:43 ` [PATCH 6/7] soc: sunxi: sram: Add H616 SRAM regions Chen-Yu Tsai
2026-03-25  0:29   ` Jernej Škrabec
2026-03-24 16:43 ` [PATCH 7/7] arm64: dts: allwinner: sun50i-h616: Add SRAM nodes Chen-Yu Tsai
2026-03-25  0:30   ` Jernej Škrabec

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox