Skip to content

Add Support for MediaTek MT8192 APU Power Domain

Flora Fu linux-arm-kernel linux-mediatek lkml 5 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest8 patches 0 repliesNew
  2. v37 patches 4 repliesSuperseded
  3. v2 posting 2/27 patches 4 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v2 posting 1/20 of 7 patches0 repliesSuperseded
v18 patches9 repliesSuperseded

Changes in v4 from the cover letter

1) Rebase to 5.16-rc1
2) Update mtk-apu-pm driver to be a module or a buildin driver.
3) Fix coding defects and typo in mtk-apu-pm.c and update copyright in dt-bindins.
4) Split the mt8192 EVB device tree "mt8192-evb.dts" to a new patch file in the series.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8dt-bindings: clock: Add MT8192 APU clock bindingsinclude/dt-bindings/clock/mt8192-clk.h+12 -20 replies
2/8clk: mediatek: mt8192: Add APU clocks supportdrivers/clk/mediatek/clk-mt8192.c+91 -00 replies
3/8dt-bindings: arm: mediatek: Add new document bindings for APUDocumentation/devicetree/bindings/arm/mediatek/mediatek,apusys.yaml+50 -00 replies
4/8dt-bindings: soc: mediatek: apusys: Add new document for APU power domainDocumentation/devicetree/bindings/soc/mediatek/mediatek,apu-pm.yaml+144 -00 replies
5/8soc: mediatek: apu: Add apusys and add apu power domain driverdrivers/soc/mediatek/Kconfig drivers/soc/mediatek/Makefile drivers/soc/mediatek/apusys/Kconfig +2 more+756 -00 replies
6/8arm64: dts: mt8192: Add APU nodearch/arm64/boot/dts/mediatek/mt8192.dtsi+12 -00 replies
7/8arm64: dts: mt8192: Add APU power domain nodearch/arm64/boot/dts/mediatek/mt8192.dtsi+27 -00 replies
8/8arm64: dts: mt8192: Set up apu power domain regulatorsarch/arm64/boot/dts/mediatek/mt8192-evb.dts+7 -00 replies

Reviews trailers per patch

4 of 8 patches have a Reviewed-by or Acked-by.

PatchRob HerringStephen Boyd
1/8A-b A-b
2/8A-b
3/8R-b
4/8R-b
5/8
6/8
7/8
8/8

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/8] Add Support for MediaTek MT8192 APU Power Domain

The MediaTek AI Processing Unit (APU) is a proprietary hardware in the SoC to support AI operations.
The series is to create apusys in the SoC folder for developing the related drivers. Add the apu clocks, basic apu nodes and the power domain to provide the power controller of APU subsystem.

This series is based on MT8192 power domain[1], PWRAP[2] and PMIC MT6359[3] patches.
[1] https://patchwork.kernel.org/patch/12456165
[2] https://patchwork.kernel.org/patch/12134935
[3] https://patchwork.kernel.org/patch/12140237

Change notes:
v3->v4:
1) Rebase to 5.16-rc1
2) Update mtk-apu-pm driver to be a module or a buildin driver.
3) Fix coding defects and typo in mtk-apu-pm.c and update copyright in dt-bindins.
4) Split the mt8192 EVB device tree "mt8192-evb.dts" to a new patch file in the series.

v2->v3:
1) Rebase to 5.15-rc1
2) remove the apu-mbox registers from syscon.
3) update mtk-apu-pm to fix clock flow and move power status bit into platform data to support different hardware settings.

v1->v2:
1) update expression "s/_/-/" in dt-bindings documents.
2) drop apu power domain header file for mt8192.

v1: https://patchwork.kernel.org/project/linux-mediatek/list/?series=461999

Flora Fu (8):
dt-bindings: clock: Add MT8192 APU clock bindings
clk: mediatek: mt8192: Add APU clocks support
dt-bindings: arm: mediatek: Add new document bindings for APU
dt-bindings: soc: mediatek: apusys: Add new document for APU power
domain
soc: mediatek: apu: Add apusys and add apu power domain driver
arm64: dts: mt8192: Add APU node
arm64: dts: mt8192: Add APU power domain node
arm64: dts: mt8192: Set up apu power domain regulators

 .../arm/mediatek/mediatek,apusys.yaml         |  50 ++
 .../soc/mediatek/mediatek,apu-pm.yaml         | 144 ++++
 arch/arm64/boot/dts/mediatek/mt8192-evb.dts   |   7 +
 arch/arm64/boot/dts/mediatek/mt8192.dtsi      |  39 +
 drivers/clk/mediatek/clk-mt8192.c             |  91 +++
 drivers/soc/mediatek/Kconfig                  |  12 +
 drivers/soc/mediatek/Makefile                 |   1 +
 drivers/soc/mediatek/apusys/Kconfig           |  14 +
 drivers/soc/mediatek/apusys/Makefile          |   2 +
 drivers/soc/mediatek/apusys/mtk-apu-pm.c      | 727 ++++++++++++++++++
 include/dt-bindings/clock/mt8192-clk.h        |  14 +-
 11 files changed, 1099 insertions(+), 2 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/arm/mediatek/mediatek,apusys.yaml
 create mode 100644 Documentation/devicetree/bindings/soc/mediatek/mediatek,apu-pm.yaml
 create mode 100644 drivers/soc/mediatek/apusys/Kconfig
 create mode 100644 drivers/soc/mediatek/apusys/Makefile
 create mode 100644 drivers/soc/mediatek/apusys/mtk-apu-pm.c
Signature · 1 line
2.18.0