arm64: dts: rockchip: Add rk3528 QoS register node
Subsystems (3)
v2 cover arm64: dts: rockchip: Add rk3528 QoS register node
Changes in v2:
Improve commit message
Add missing QoS compatible in DT
Chukun Pan (2):
dt-bindings: mfd: syscon: Add rk3528 QoS register compatible
arm64: dts: rockchip: Add rk3528 QoS register node
.../devicetree/bindings/mfd/syscon.yaml | 2 + arch/arm64/boot/dts/rockchip/rk3528.dtsi | 160 ++++++++++++++++++ 2 files changed, 162 insertions(+)
Signature · 1 line
2.25.1
PATCH v2 1/2 dt-bindings: mfd: syscon: Add rk3528 QoS register compatible
Document rk3528 compatible for QoS registers.
--- Documentation/devicetree/bindings/mfd/syscon.yaml | 2 ++ 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/mfd/syscon.yaml +2 -0
@@ -103,6 +103,7 @@ select: - rockchip,rk3288-qos - rockchip,rk3368-qos - rockchip,rk3399-qos + - rockchip,rk3528-qos - rockchip,rk3562-qos - rockchip,rk3568-qos - rockchip,rk3576-qos
@@ -202,6 +203,7 @@ properties: - rockchip,rk3288-qos - rockchip,rk3368-qos - rockchip,rk3399-qos + - rockchip,rk3528-qos - rockchip,rk3562-qos - rockchip,rk3568-qos - rockchip,rk3576-qos
Signature · 1 line
2.25.1
Re: [PATCH v2 1/2] dt-bindings: mfd: syscon: Add rk3528 QoS register compatible
Quoted 3 lines · Chukun Pan
Document rk3528 compatible for QoS registers.
Signed-off-by Chukun Pan <[email protected]>
Quoted 27 lines
--- Documentation/devicetree/bindings/mfd/syscon.yaml | 2 ++ 1 file changed, 2 insertions(+)Documentation/devicetree/bindings/mfd/syscon.yaml +2
-0@@ -103,6 +103,7 @@ select: - rockchip,rk3288-qos - rockchip,rk3368-qos - rockchip,rk3399-qos + - rockchip,rk3528-qos - rockchip,rk3562-qos - rockchip,rk3568-qos - rockchip,rk3576-qos@@ -202,6 +203,7 @@ properties: - rockchip,rk3288-qos - rockchip,rk3368-qos - rockchip,rk3399-qos + - rockchip,rk3528-qos - rockchip,rk3562-qos - rockchip,rk3568-qos - rockchip,rk3576-qosSignature · 1 line
2.25.1
Re: (subset) [PATCH v2 1/2] dt-bindings: mfd: syscon: Add rk3528 QoS register compatible
In reply to Chukun PanQuoted 3 lines · Chukun Pan
Document rk3528 compatible for QoS registers.
Applied, thanks!
[1/2] dt-bindings: mfd: syscon: Add rk3528 QoS register compatible
commit: 1c313607416052414ce94bc9bb27b688741cb30d
--
Lee Jones [李琼斯]
PATCH v2 2/2 arm64: dts: rockchip: Add rk3528 QoS register node
In reply to Chukun PanThe Quality-of-Service (QsS) node stores/restores specific register contents when the power domains is turned off/on. Add QoS node so that they can connect to the power domain.
--- arch/arm64/boot/dts/rockchip/rk3528.dtsi | 160 +++++++++++++++++++++++ 1 file changed, 160 insertions(+)
arch/arm64/boot/dts/rockchip/rk3528.dtsi +160 -0
@@ -129,6 +129,166 @@ gic: interrupt-controller@fed01000 { #interrupt-cells = <3>; }; + qos_crypto_a: qos@ff200000 { + compatible = "rockchip,rk3528-qos", "syscon"; + reg = <0x0 0xff200000 0x0 0x20>; + }; + + qos_crypto_p: qos@ff200080 { + compatible = "rockchip,rk3528-qos", "syscon"; + reg = <0x0 0xff200080 0x0 0x20>; + }; + + qos_dcf: qos@ff200100 { + compatible = "rockchip,rk3528-qos", "syscon"; + reg = <0x0 0xff200100 0x0 0x20>; + }; + + qos_dft2apb: qos@ff200200 { + compatible = "rockchip,rk3528-qos", "syscon"; + reg = <0x0 0xff200200 0x0 0x20>; + }; + + qos_dma2ddr: qos@ff200280 { + compatible = "rockchip,rk3528-qos", "syscon"; + reg = <0x0 0xff200280 0x0 0x20>; + }; + + qos_dmac: qos@ff200300 { + compatible = "rockchip,rk3528-qos", "syscon"; + reg = <0x0 0xff200300 0x0 0x20>; + }; + + qos_keyreader: qos@ff200380 { + compatible = "rockchip,rk3528-qos", "syscon"; + reg = <0x0 0xff200380 0x0 0x20>; + }; + + qos_cpu: qos@ff210000 { + compatible = "rockchip,rk3528-qos", "syscon"; + reg = <0x0 0xff210000 0x0 0x20>; + }; + + qos_debug: qos@ff210080 { + compatible = "rockchip,rk3528-qos", "syscon"; + reg = <0x0 0xff210080 0x0 0x20>; + }; + + qos_gpu_m0: qos@ff220000 { + compatible = "rockchip,rk3528-qos", "syscon"; + reg = <0x0 0xff220000 0x0 0x20>; + }; + + qos_gpu_m1: qos@ff220080 { + compatible = "rockchip,rk3528-qos", "syscon"; + reg = <0x0 0xff220080 0x0 0x20>; + }; + + qos_pmu_mcu: qos@ff240000 { + compatible = "rockchip,rk3528-qos", "syscon"; + reg = <0x0 0xff240000 0x0 0x20>; + }; + + qos_rkvdec: qos@ff250000 { + compatible = "rockchip,rk3528-qos", "syscon"; + reg = <0x0 0xff250000 0x0 0x20>; + }; + + qos_rkvenc: qos@ff260000 { + compatible = "rockchip,rk3528-qos", "syscon"; + reg = <0x0 0xff260000 0x0 0x20>; + }; + + qos_gmac0: qos@ff270000 { + compatible = "rockchip,rk3528-qos", "syscon"; + reg = <0x0 0xff270000 0x0 0x20>; + }; + + qos_hdcp: qos@ff270080 { + compatible = "rockchip,rk3528-qos", "syscon"; + reg = <0x0 0xff270080 0x0 0x20>; + }; + + qos_jpegdec: qos@ff270100 { + compatible = "rockchip,rk3528-qos", "syscon"; + reg = <0x0 0xff270100 0x0 0x20>; + }; + + qos_rga2_m0ro: qos@ff270200 { + compatible = "rockchip,rk3528-qos", "syscon"; + reg = <0x0 0xff270200 0x0 0x20>; + }; + + qos_rga2_m0wo: qos@ff270280 { + compatible = "rockchip,rk3528-qos", "syscon"; + reg = <0x0 0xff270280 0x0 0x20>; + }; + + qos_sdmmc0: qos@ff270300 { + compatible = "rockchip,rk3528-qos", "syscon"; + reg = <0x0 0xff270300 0x0 0x20>; + }; + + qos_usb2host: qos@ff270380 { + compatible = "rockchip,rk3528-qos", "syscon"; + reg = <0x0 0xff270380 0x0 0x20>; + }; + + qos_vdpp: qos@ff270480 { + compatible = "rockchip,rk3528-qos", "syscon"; + reg = <0x0 0xff270480 0x0 0x20>; + }; + + qos_vop: qos@ff270500 { + compatible = "rockchip,rk3528-qos", "syscon"; + reg = <0x0 0xff270500 0x0 0x20>; + }; + + qos_emmc: qos@ff280000 { + compatible = "rockchip,rk3528-qos", "syscon"; + reg = <0x0 0xff280000 0x0 0x20>; + }; + + qos_fspi: qos@ff280080 { + compatible = "rockchip,rk3528-qos", "syscon"; + reg = <0x0 0xff280080 0x0 0x20>; + }; + + qos_gmac1: qos@ff280100 { + compatible = "rockchip,rk3528-qos", "syscon"; + reg = <0x0 0xff280100 0x0 0x20>; + }; + + qos_pcie: qos@ff280180 { + compatible = "rockchip,rk3528-qos", "syscon"; + reg = <0x0 0xff280180 0x0 0x20>; + }; + + qos_sdio0: qos@ff280200 { + compatible = "rockchip,rk3528-qos", "syscon"; + reg = <0x0 0xff280200 0x0 0x20>; + }; + + qos_sdio1: qos@ff280280 { + compatible = "rockchip,rk3528-qos", "syscon"; + reg = <0x0 0xff280280 0x0 0x20>; + }; + + qos_tsp: qos@ff280300 { + compatible = "rockchip,rk3528-qos", "syscon"; + reg = <0x0 0xff280300 0x0 0x20>; + }; + + qos_usb3otg: qos@ff280380 { + compatible = "rockchip,rk3528-qos", "syscon"; + reg = <0x0 0xff280380 0x0 0x20>; + }; + + qos_vpu: qos@ff280400 { + compatible = "rockchip,rk3528-qos", "syscon"; + reg = <0x0 0xff280400 0x0 0x20>; + }; + cru: clock-controller@ff4a0000 { compatible = "rockchip,rk3528-cru"; reg = <0x0 0xff4a0000 0x0 0x30000>;
Signature · 1 line
2.25.1
Hi Chukun,
Quoted 166 lines · Chukun Pan
The Quality-of-Service (QsS) node stores/restores specific register contents when the power domains is turned off/on. Add QoS node so that they can connect to the power domain.
Signed-off-by Chukun Pan <[email protected]>--- arch/arm64/boot/dts/rockchip/rk3528.dtsi | 160 +++++++++++++++++++++++ 1 file changed, 160 insertions(+)arch/arm64/boot/dts/rockchip/rk3528.dtsi +149
-0@@ -129,6 +129,166 @@ gic: interrupt-controller@fed01000 { #interrupt-cells = <3>; }; + qos_crypto_a: qos@ff200000 { + compatible = "rockchip,rk3528-qos", "syscon"; + reg = <0x0 0xff200000 0x0 0x20>; + }; + + qos_crypto_p: qos@ff200080 { + compatible = "rockchip,rk3528-qos", "syscon"; + reg = <0x0 0xff200080 0x0 0x20>; + }; + + qos_dcf: qos@ff200100 { + compatible = "rockchip,rk3528-qos", "syscon"; + reg = <0x0 0xff200100 0x0 0x20>; + }; + + qos_dft2apb: qos@ff200200 { + compatible = "rockchip,rk3528-qos", "syscon"; + reg = <0x0 0xff200200 0x0 0x20>; + }; + + qos_dma2ddr: qos@ff200280 { + compatible = "rockchip,rk3528-qos", "syscon"; + reg = <0x0 0xff200280 0x0 0x20>; + }; + + qos_dmac: qos@ff200300 { + compatible = "rockchip,rk3528-qos", "syscon"; + reg = <0x0 0xff200300 0x0 0x20>; + }; + + qos_keyreader: qos@ff200380 { + compatible = "rockchip,rk3528-qos", "syscon"; + reg = <0x0 0xff200380 0x0 0x20>; + }; + + qos_cpu: qos@ff210000 { + compatible = "rockchip,rk3528-qos", "syscon"; + reg = <0x0 0xff210000 0x0 0x20>; + }; + + qos_debug: qos@ff210080 { + compatible = "rockchip,rk3528-qos", "syscon"; + reg = <0x0 0xff210080 0x0 0x20>; + }; + + qos_gpu_m0: qos@ff220000 { + compatible = "rockchip,rk3528-qos", "syscon"; + reg = <0x0 0xff220000 0x0 0x20>; + }; + + qos_gpu_m1: qos@ff220080 { + compatible = "rockchip,rk3528-qos", "syscon"; + reg = <0x0 0xff220080 0x0 0x20>; + }; + + qos_pmu_mcu: qos@ff240000 { + compatible = "rockchip,rk3528-qos", "syscon"; + reg = <0x0 0xff240000 0x0 0x20>; + }; + + qos_rkvdec: qos@ff250000 { + compatible = "rockchip,rk3528-qos", "syscon"; + reg = <0x0 0xff250000 0x0 0x20>; + }; + + qos_rkvenc: qos@ff260000 { + compatible = "rockchip,rk3528-qos", "syscon"; + reg = <0x0 0xff260000 0x0 0x20>; + }; + + qos_gmac0: qos@ff270000 { + compatible = "rockchip,rk3528-qos", "syscon"; + reg = <0x0 0xff270000 0x0 0x20>; + }; + + qos_hdcp: qos@ff270080 { + compatible = "rockchip,rk3528-qos", "syscon"; + reg = <0x0 0xff270080 0x0 0x20>; + }; + + qos_jpegdec: qos@ff270100 { + compatible = "rockchip,rk3528-qos", "syscon"; + reg = <0x0 0xff270100 0x0 0x20>; + }; + + qos_rga2_m0ro: qos@ff270200 { + compatible = "rockchip,rk3528-qos", "syscon"; + reg = <0x0 0xff270200 0x0 0x20>; + }; + + qos_rga2_m0wo: qos@ff270280 { + compatible = "rockchip,rk3528-qos", "syscon"; + reg = <0x0 0xff270280 0x0 0x20>; + }; + + qos_sdmmc0: qos@ff270300 { + compatible = "rockchip,rk3528-qos", "syscon"; + reg = <0x0 0xff270300 0x0 0x20>; + }; + + qos_usb2host: qos@ff270380 { + compatible = "rockchip,rk3528-qos", "syscon"; + reg = <0x0 0xff270380 0x0 0x20>; + }; + + qos_vdpp: qos@ff270480 { + compatible = "rockchip,rk3528-qos", "syscon"; + reg = <0x0 0xff270480 0x0 0x20>; + }; + + qos_vop: qos@ff270500 { + compatible = "rockchip,rk3528-qos", "syscon"; + reg = <0x0 0xff270500 0x0 0x20>; + }; + + qos_emmc: qos@ff280000 { + compatible = "rockchip,rk3528-qos", "syscon"; + reg = <0x0 0xff280000 0x0 0x20>; + }; + + qos_fspi: qos@ff280080 { + compatible = "rockchip,rk3528-qos", "syscon"; + reg = <0x0 0xff280080 0x0 0x20>; + }; + + qos_gmac1: qos@ff280100 { + compatible = "rockchip,rk3528-qos", "syscon"; + reg = <0x0 0xff280100 0x0 0x20>; + }; + + qos_pcie: qos@ff280180 { + compatible = "rockchip,rk3528-qos", "syscon"; + reg = <0x0 0xff280180 0x0 0x20>; + }; + + qos_sdio0: qos@ff280200 { + compatible = "rockchip,rk3528-qos", "syscon"; + reg = <0x0 0xff280200 0x0 0x20>; + }; + + qos_sdio1: qos@ff280280 { + compatible = "rockchip,rk3528-qos", "syscon"; + reg = <0x0 0xff280280 0x0 0x20>; + }; + + qos_tsp: qos@ff280300 { + compatible = "rockchip,rk3528-qos", "syscon"; + reg = <0x0 0xff280300 0x0 0x20>; + };
arch/arm64/boot/dts/rockchip/rk3528.dtsi gic: interrupt-controller@fed01000 { · line 290
Quoted 10 lines
arch/arm64/boot/dts/rockchip/rk3528.dtsi +10
-0+ + qos_usb3otg: qos@ff280380 { + compatible = "rockchip,rk3528-qos", "syscon"; + reg = <0x0 0xff280380 0x0 0x20>; + }; + + qos_vpu: qos@ff280400 { + compatible = "rockchip,rk3528-qos", "syscon"; + reg = <0x0 0xff280400 0x0 0x20>; + };
These QoS node are typically referenced from power domains so that the PMU driver know what QoS to save/restore when a power domain is power cycled.
Vendor kernel only reference the two qos_gpu nodes in it's power domains, do you have any documentation or knowledge about what power domain the remaining QoS are related to?
It would have been helpful to include PMU support to help understand the QoS <-> PD relationship, on their own they do not tell us that much :-)
Regards,
Jonas
Quoted 4 lines
arch/arm64/boot/dts/rockchip/rk3528.dtsi +1
-0+ cru: clock-controller@ff4a0000 { compatible = "rockchip,rk3528-cru"; reg = <0x0 0xff4a0000 0x0 0x30000>;
Heiko Stübner
maintainerAm Donnerstag, 6. März 2025, 17:55:16 MEZ schrieb Jonas Karlman:
Quoted 14 lines
Hi Chukun,
Quoted 9 lines · Chukun Pan
The Quality-of-Service (QsS) node stores/restores specific register contents when the power domains is turned off/on. Add QoS node so that they can connect to the power domain.
Signed-off-by Chukun Pan <[email protected]>--- arch/arm64/boot/dts/rockchip/rk3528.dtsi | 160 +++++++++++++++++++++++ 1 file changed, 160 insertions(+)
Quoted 7 lines
These QoS node are typically referenced from power domains so that the PMU driver know what QoS to save/restore when a power domain is power cycled.
Vendor kernel only reference the two
qos_gpunodes in it's power domains, do you have any documentation or knowledge about what power domain the remaining QoS are related to?
I think the GPU actually is the _only_ fully switchable power-domain on the rk3528. The other powerdomains seem to be always on, but can do this idle-request thing.
At least that is what I'm reading from the pm-domain definitions in the vendor-kernel, combined with a look at the pmu section of the rk3528 TRM.
Heiko
Quoted 23 lines · Heiko Stübner
Am Donnerstag, 6. März 2025, 17:55:16 MEZ schrieb Jonas Karlman:
Quoted 14 lines
Hi Chukun,
Quoted 9 lines · Chukun Pan
The Quality-of-Service (QsS) node stores/restores specific register contents when the power domains is turned off/on. Add QoS node so that they can connect to the power domain.
Signed-off-by Chukun Pan <[email protected]>--- arch/arm64/boot/dts/rockchip/rk3528.dtsi | 160 +++++++++++++++++++++++ 1 file changed, 160 insertions(+)Quoted 7 lines
These QoS node are typically referenced from power domains so that the PMU driver know what QoS to save/restore when a power domain is power cycled.
Vendor kernel only reference the two
qos_gpunodes in it's power domains, do you have any documentation or knowledge about what power domain the remaining QoS are related to?
Quoted 6 lines
I think the GPU actually is the _only_ fully switchable power-domain on the rk3528. The other powerdomains seem to be always on, but can do this idle-request thing.
At least that is what I'm reading from the pm-domain definitions in the vendor-kernel, combined with a look at the pmu section of the rk3528 TRM.
Thanks for this information.
Regards,
Jonas
Quoted 5 lines
Heiko
Quoted 9 lines · Chukun Pan
Changes in v2:
Improve commit message
Add missing QoS compatible in DTChukun Pan (2):
dt-bindings: mfd: syscon: Add rk3528 QoS register compatible
arm64: dts: rockchip: Add rk3528 QoS register node[...]
Applied, thanks!
[1/2] dt-bindings: mfd: syscon: Add rk3528 QoS register compatible
commit: 19a634195c1abe498798b564cd6b81e6dd4533f7
[2/2] arm64: dts: rockchip: Add rk3528 QoS register node
commit: 61a05d8ca3030a544175671f5fab7a8f29c24085Best regards,
Signature · 1 line
Heiko Stuebner <[email protected]>