[PATCH v2] dt-bindings: soc: rockchip: Add RK3572 PMU and GRF

Cunhao Lu 1579567540 at qq.com
Fri Nov 20 08:55:25 PST 2026


Hi Jonas,

> > 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?

I have limited time and can only take on so much myself. For this
first round, I'd like to get a basic system upstream with CPU, USB,
GMAC, UART, and so on. I've only documented the GRF instances I
actually use in the proposed device tree.

Once this round is done, I plan to port and test support for smaller
features such as reboot-mode, DDR frequency scaling, OTP, and TRNG,
as well as GPU, NPU, PCIe, CAN, and other hardware in a follow-up
series.

> 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

Sorry I missed this. I took the USB2 PHY layout directly from the
RK3572 device tree in Rockchip's kernel.

I checked both RK3572 and RK3576 in Rockchip's kernel. On RK3576, the
USB/DP PHY also references the USB2 PHY's parent GRF. On RK3572, I
didn't find anyone using the parent GRF other than its own USB2 PHY
children.

I'm leaning toward your approach as well, so I'll switch to one node
per PHY in v3.

P.S. I probably won't send SoC v3 right away. I'll wait until the other
related patches are accepted before posting it.

Best regards,
Cunhao Lu

pw-bot: cr


More information about the Linux-rockchip mailing list