[PATCH v2] dt-bindings: soc: rockchip: Add RK3572 PMU and GRF
Jonas Karlman
jonas at kwiboo.se
Fri Nov 20 01:56:55 PST 2026
Hi Cunhao Lu,
On 11/19/2026 11:12 AM, Cunhao Lu via B4 Relay wrote:
> From: Cunhao Lu <1579567540 at qq.com>
>
> The RK3572 PMU and GRF blocks are system controllers shared with the
> clock, power-domain, and USB PHY drivers.
>
> Signed-off-by: Cunhao Lu <1579567540 at qq.com>
> Acked-by: Rob Herring (Arm) <robh at kernel.org>
> ---
> This is one of the subsystem submissions for RK3572 support.
>
> This patch documents the RK3572 power management unit (PMU) and general
> register files (GRFs) used by the clock, power-domain and PHY drivers.
> The GRF binding describes the USB2 PHY as a child of its GRF and
> requires clocks for the NVM0, PHP, PIPE PHY and USB2 PHY GRFs.
>
> The RK3572 SoC has eight CPU cores: two Cortex-A73 cores and six
> Cortex-A53 cores. It also integrates an Arm Mali-G310V2 MC1 GPU.
> The OK3572-C board provides two Gigabit Ethernet ports, three USB3 Type-A
> ports, a Type-C dual-role port, eMMC, microSD, and UART.
>
> Testing was performed with Debian 13 minimal and Linux 7.3 on the
> OK3572-C with the FET3572-C module.
>
> Passed functionality:
>
> - SD and eMMC complete the firmware, kernel, and root filesystem
> boot chain.
> - UART console works at 1500000 baud.
> - SD read/write and data persistence checks pass.
> - All eight CPUs start; CPU frequency scaling and hotplug checks pass.
> - Both Ethernet ports obtain IPv4 addresses and pass bidirectional file
> transfers.
> - All three Type-A ports pass USB2 and USB3 enumeration, data transfers,
> and reconnect persistence checks.
> - Type-C host and device modes pass in both plug orientations. Physical
> reconnects correctly select the expected device, host, and device roles
> in sequence.
>
> Some files in this series are derived from the Forlinx OK3572-C BSP
> Alpha1. Thanks to Forlinx for their support.
> Thanks also to Rockchip's David Wu, Elaine Zhang, Finley Xiao, Frank
> Wang, William Wu, and Ye Zhang for providing the driver source files.
>
> AI assistance:
>
> - Codex / DeepSeek V4.1 Flash were used for:
> - Reviewing and adjusting code style to follow community conventions
> - Automating tests
> - Collecting data
> ---
> Changes in v2:
> - Split the original RK3572 support series by subsystem.
> - Link to v1:
> https://patch.msgid.link/20261022-add-board-ok3572-c-v1-0-0b0fd85a31ee@qq.com
> ---
> Raw dmesg: see the v1 cover letter.
> ---
> Documentation/devicetree/bindings/arm/rockchip/pmu.yaml | 2 ++
> Documentation/devicetree/bindings/soc/rockchip/grf.yaml | 12 ++++++++++++
> 2 files changed, 14 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/arm/rockchip/pmu.yaml b/Documentation/devicetree/bindings/arm/rockchip/pmu.yaml
> index 1cff2328cd01..43dcaa77ffdb 100644
> --- a/Documentation/devicetree/bindings/arm/rockchip/pmu.yaml
> +++ b/Documentation/devicetree/bindings/arm/rockchip/pmu.yaml
> @@ -28,6 +28,7 @@ select:
> - rockchip,rk3528-pmu
> - rockchip,rk3562-pmu
> - rockchip,rk3568-pmu
> + - rockchip,rk3572-pmu
> - rockchip,rk3576-pmu
> - rockchip,rk3588-pmu
> - rockchip,rv1126-pmu
> @@ -48,6 +49,7 @@ properties:
> - rockchip,rk3528-pmu
> - rockchip,rk3562-pmu
> - rockchip,rk3568-pmu
> + - rockchip,rk3572-pmu
> - rockchip,rk3576-pmu
> - rockchip,rk3588-pmu
> - rockchip,rv1126-pmu
> diff --git a/Documentation/devicetree/bindings/soc/rockchip/grf.yaml b/Documentation/devicetree/bindings/soc/rockchip/grf.yaml
> index e94c83d7c138..0e0bf8e234c8 100644
> --- a/Documentation/devicetree/bindings/soc/rockchip/grf.yaml
> +++ b/Documentation/devicetree/bindings/soc/rockchip/grf.yaml
> @@ -30,6 +30,12 @@ properties:
> - rockchip,rk3568-pipe-grf
> - rockchip,rk3568-pipe-phy-grf
> - rockchip,rk3568-usb2phy-grf
> + - rockchip,rk3572-ioc-grf
> + - rockchip,rk3572-nvm0-grf
> + - rockchip,rk3572-php-grf
> + - rockchip,rk3572-pipe-phy-grf
> + - rockchip,rk3572-pmu0-grf
Are we missing rockchip,rk3572-pmu1-grf and possible other syscons?
> + - rockchip,rk3572-sys-grf
> - rockchip,rk3576-bigcore-grf
> - rockchip,rk3576-cci-grf
> - rockchip,rk3576-csidphy-grf
> @@ -96,6 +102,7 @@ properties:
> - rockchip,rk3562-pmu-grf
> - rockchip,rk3568-grf
> - rockchip,rk3568-pmugrf
> + - rockchip,rk3572-usb2phy-grf
Do we need a special rockchip,rk3572-usb2phy-grf? If rk3572 mimics
RK3576 there are two usb2phy GRF, each one identical and only covering
usb2phy functions.
With GRF compat I expect the DT so be something like following:
usb2phy0_grf: syscon at 26054000 {
compatible = "rockchip,rk3572-usb2phy-grf";
reg = <0x0 0x26054000 0x0 0x2000>;
usb2phy0: usb2phy {
compatible = "rockchip,rk3572-usb2phy";
};
};
usb2phy1_grf: syscon at 26056000 {
compatible = "rockchip,rk3572-usb2phy-grf";
reg = <0x0 0x26056000 0x0 0x2000>;
usb2phy1: usb2phy {
compatible = "rockchip,rk3572-usb2phy";
};
};
The usb2phy child node would be the sole child node of GRF and the child
node consume whole parent reg space. Should they instead be merged? That
is how I described the usb2phy nodes in U-Boot mainline work at [1].
[1] https://git.u-boot-project.org/u-boot/contributors/kwiboo/u-boot/-/blob/rk3562/arch/arm/dts/rk3572.dtsi#L357-403
Regards,
Jonas
> - rockchip,rk3576-ioc-grf
> - rockchip,rk3576-pmu0-grf
> - rockchip,rk3576-usb2phy-grf
> @@ -259,6 +266,7 @@ allOf:
> - rockchip,rk3308-usb2phy-grf
> - rockchip,rk3328-usb2phy-grf
> - rockchip,rk3399-grf
> + - rockchip,rk3572-usb2phy-grf
> - rockchip,rk3576-usb2phy-grf
> - rockchip,rk3588-usb2phy-grf
> - rockchip,rv1108-grf
> @@ -310,6 +318,10 @@ allOf:
> compatible:
> contains:
> enum:
> + - rockchip,rk3572-nvm0-grf
> + - rockchip,rk3572-php-grf
> + - rockchip,rk3572-pipe-phy-grf
> + - rockchip,rk3572-usb2phy-grf
> - rockchip,rk3576-dcphy-grf
> - rockchip,rk3576-vo1-grf
> - rockchip,rk3588-vo-grf
>
> ---
> base-commit: 4405c18c95d2d0f99f6c581ef0ee8591a1aa6ccd
> change-id: 20261119-add-board-ok3572-c-soc-0bf15aa6f56d
>
> Best regards,
> --
> Cunhao Lu <1579567540 at qq.com>
More information about the Linux-rockchip
mailing list