linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] Allwinner D1 power domain support
@ 2023-01-26  6:34 Samuel Holland
  2023-01-26  6:34 ` [PATCH v2 1/3] dt-bindings: power: Add Allwinner D1 PPU Samuel Holland
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Samuel Holland @ 2023-01-26  6:34 UTC (permalink / raw)
  To: Chen-Yu Tsai, Jernej Skrabec
  Cc: Rob Herring, Krzysztof Kozlowski, Samuel Holland, Andre Przywara,
	Conor Dooley, Heiko Stuebner, Palmer Dabbelt, Philipp Zabel,
	devicetree, linux-arm-kernel, linux-kernel, linux-riscv,
	linux-sunxi

This series adds support for the power controller found in D1 and other
recent Allwinner SoCs. There is no first-party documentation, but there
are a couple of vendor drivers for different hardware revisions[1][2],
and the register definitions were easy to verify empirically.

I have tested this driver on D1 with the video engine.

[1]: https://github.com/mangopi-sbc/tina-linux-5.4/blob/main/drivers/soc/sunxi/gpu_domain.c
[2]: https://github.com/mangopi-sbc/tina-linux-5.4/blob/main/drivers/soc/sunxi/pm_domains.c

Changes in v2:
 - Removed quotes from "PPU"
 - Fixed indentation in binding example
 - Removed possibly misleading comment from the Kconfig description
 - Include a patch adding the device tree node

Samuel Holland (3):
  dt-bindings: power: Add Allwinner D1 PPU
  soc: sunxi: Add Allwinner D1 PPU driver
  riscv: dts: allwinner: d1: Add power controller node

 .../power/allwinner,sun20i-d1-ppu.yaml        |  54 +++++
 .../boot/dts/allwinner/sunxi-d1s-t113.dtsi    |   8 +
 drivers/soc/sunxi/Kconfig                     |   8 +
 drivers/soc/sunxi/Makefile                    |   1 +
 drivers/soc/sunxi/sun20i-ppu.c                | 207 ++++++++++++++++++
 .../power/allwinner,sun20i-d1-ppu.h           |  10 +
 6 files changed, 288 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/power/allwinner,sun20i-d1-ppu.yaml
 create mode 100644 drivers/soc/sunxi/sun20i-ppu.c
 create mode 100644 include/dt-bindings/power/allwinner,sun20i-d1-ppu.h

-- 
2.37.4


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

end of thread, other threads:[~2023-01-27 22:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-26  6:34 [PATCH v2 0/3] Allwinner D1 power domain support Samuel Holland
2023-01-26  6:34 ` [PATCH v2 1/3] dt-bindings: power: Add Allwinner D1 PPU Samuel Holland
2023-01-26  6:34 ` [PATCH v2 2/3] soc: sunxi: Add Allwinner D1 PPU driver Samuel Holland
2023-01-26  6:34 ` [PATCH v2 3/3] riscv: dts: allwinner: d1: Add power controller node Samuel Holland
2023-01-27 22:17   ` Jernej Škrabec

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).