From: Chen-Yu Tsai <wens@kernel.org>
To: Stephen Boyd <sboyd@kernel.org>, Chen-Yu Tsai <wens@csie.org>,
Jernej Skrabec <jernej@kernel.org>,
Samuel Holland <samuel@sholland.org>
Cc: Andre Przywara <andre.przywara@arm.com>,
linux-sunxi@lists.linux.dev, linux-clk@vger.kernel.org,
linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: [PATCH v2 0/7] arm64: allwinner: a523: Enable MCU PRCM and NPU
Date: Fri, 12 Sep 2025 01:47:03 +0800 [thread overview]
Message-ID: <20250911174710.3149589-1-wens@kernel.org> (raw)
From: Chen-Yu Tsai <wens@csie.org>
Hi folks,
This is v2 of my A523 MCU PRCM and NPU support series.
Changes since v1:
- Dropped dual divider clock rate read-back fix that is already merged
- DT binding
- Moved "r-ahb" clock to the end of the list and added "r-apb0" clock
- Add NPU clk
- Move .num to after list of clks
- MCU CCU clk driver
- Added comment for "fixed" dividers in audio PLL clock
- Corrected variable names for audio PLL divider clocks
- Added comment for the reversed order of some of the DSP clock's
parents when compared to the manual
- Added comments for clocks and resets only found in the BSP driver
- Corrected register offset for i2s3-asrc and bus-mcu-pwm0 clocks
- Made "r-ahb" and new "r-apb0" external bus clocks the parents of the
bus gate clocks, with comments if guessed which one applies
- Moved .num_clks to after the list of clocks, making it obvious that
the value needs to be added if more clocks are added to the list
- MCU CCU DT node
- Enlarged MCU PRCM register range to 0x200
- Moved "r-ahb" clock to the end of the list and added "r-apb0" clock
- Link to v1
https://lore.kernel.org/all/20250830170901.1996227-1-wens@kernel.org/
The MCU PRCM is a Power, Reset & Clock Management block that has some
clock and reset controls for the MCU, DSP and some peripherals that the
MCU could use.
The NPU is a Vivante IP block. It is clocked from the NPU PLL from the
main clock unit, but the bus clock and reset controls lie in the MCU
PRCM.
Patch 1 adds the missing NPU module clock to the main clock control
unit's binding.
Patch 2 adds the binding for the MCU PRCM clock control unit
Patch 3 adds the missing NPU module clock.
Patch 4 adds support for power-of-two dividers to the sunxi-ng clk
library.
Patch 5 adds a new driver for the A523 MCU PRCM CCU.
Patch 6 adds a device node for the MCU PRCM CCU.
Patch 7 adds a device node for the NPU.
The NPU was only lightly tested: the driver correctly probes and detects
a model GC9000, revision 9003.
Please have a look. All patches will be merged through the sunxi tree.
Thanks
ChenYu
Chen-Yu Tsai (7):
dt-bindings: clock: sun55i-a523-ccu: Add missing NPU module clock
dt-bindings: clock: sun55i-a523-ccu: Add A523 MCU CCU clock controller
clk: sunxi-ng: sun55i-a523-ccu: Add missing NPU module clock
clk: sunxi-ng: div: support power-of-two dividers
clk: sunxi-ng: add support for the A523/T527 MCU CCU
arm64: dts: allwinner: a523: Add MCU PRCM CCU node
arm64: dts: allwinner: a523: Add NPU device node
.../clock/allwinner,sun55i-a523-ccu.yaml | 37 +-
.../arm64/boot/dts/allwinner/sun55i-a523.dtsi | 39 ++
drivers/clk/sunxi-ng/Kconfig | 5 +
drivers/clk/sunxi-ng/Makefile | 2 +
drivers/clk/sunxi-ng/ccu-sun55i-a523-mcu.c | 469 ++++++++++++++++++
drivers/clk/sunxi-ng/ccu-sun55i-a523.c | 21 +-
drivers/clk/sunxi-ng/ccu-sun55i-a523.h | 14 -
drivers/clk/sunxi-ng/ccu_div.h | 18 +
include/dt-bindings/clock/sun55i-a523-ccu.h | 1 +
.../dt-bindings/clock/sun55i-a523-mcu-ccu.h | 54 ++
.../dt-bindings/reset/sun55i-a523-mcu-ccu.h | 30 ++
11 files changed, 671 insertions(+), 19 deletions(-)
create mode 100644 drivers/clk/sunxi-ng/ccu-sun55i-a523-mcu.c
delete mode 100644 drivers/clk/sunxi-ng/ccu-sun55i-a523.h
create mode 100644 include/dt-bindings/clock/sun55i-a523-mcu-ccu.h
create mode 100644 include/dt-bindings/reset/sun55i-a523-mcu-ccu.h
--
2.39.5
next reply other threads:[~2025-09-11 17:47 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-11 17:47 Chen-Yu Tsai [this message]
2025-09-11 17:47 ` [PATCH v2 1/7] dt-bindings: clock: sun55i-a523-ccu: Add missing NPU module clock Chen-Yu Tsai
2025-09-11 17:47 ` [PATCH v2 2/7] dt-bindings: clock: sun55i-a523-ccu: Add A523 MCU CCU clock controller Chen-Yu Tsai
2025-09-11 17:47 ` [PATCH v2 3/7] clk: sunxi-ng: sun55i-a523-ccu: Add missing NPU module clock Chen-Yu Tsai
2025-09-11 18:07 ` Jernej Škrabec
2025-09-12 10:19 ` Andre Przywara
2025-09-11 17:47 ` [PATCH v2 4/7] clk: sunxi-ng: div: support power-of-two dividers Chen-Yu Tsai
2025-09-11 18:08 ` Jernej Škrabec
2025-09-11 17:47 ` [PATCH v2 5/7] clk: sunxi-ng: add support for the A523/T527 MCU CCU Chen-Yu Tsai
2025-09-11 18:45 ` Jernej Škrabec
2025-09-11 17:47 ` [PATCH v2 6/7] arm64: dts: allwinner: a523: Add MCU PRCM CCU node Chen-Yu Tsai
2025-09-11 18:46 ` Jernej Škrabec
2025-09-11 17:47 ` [PATCH v2 7/7] arm64: dts: allwinner: a523: Add NPU device node Chen-Yu Tsai
2025-09-11 18:46 ` Jernej Škrabec
2025-09-13 5:55 ` [PATCH v2 0/7] arm64: allwinner: a523: Enable MCU PRCM and NPU Chen-Yu Tsai
2025-09-13 5:55 ` Chen-Yu Tsai
2025-09-13 6:16 ` (subset) " Chen-Yu Tsai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250911174710.3149589-1-wens@kernel.org \
--to=wens@kernel.org \
--cc=andre.przywara@arm.com \
--cc=devicetree@vger.kernel.org \
--cc=jernej@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sunxi@lists.linux.dev \
--cc=samuel@sholland.org \
--cc=sboyd@kernel.org \
--cc=wens@csie.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox