]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
dt-bindings: clock: rk3568: Add SCMI clock ids
authorHeiko Stuebner <heiko@sntech.de>
Mon, 3 Nov 2025 23:49:24 +0000 (00:49 +0100)
committerHeiko Stuebner <heiko@sntech.de>
Wed, 5 Nov 2025 23:02:47 +0000 (00:02 +0100)
The Trusted Firmware on RK3568 exposes 3 clocks via the SCMI clock
interface. Add descriptive IDs for them.

The clock ids are used in both the older vendor-binary TF-A, as well
as the recently merged upstream SCMI clock implementation.

Link: https://review.trustedfirmware.org/c/TF-A/trusted-firmware-a/+/31265
Reviewed-by: Diederik de Haas <diederik@cknow-tech.com>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://patch.msgid.link/20251103234926.416137-2-heiko@sntech.de
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
include/dt-bindings/clock/rk3568-cru.h

index 5263085c5b23895388d24a7bfc4a9b4ab37cc64d..18bb8d41d74147f9f4ea269affbf328d6cc46fc3 100644 (file)
 
 #define CLK_NR_CLKS            (PCLK_CORE_PVTM + 1)
 
+/* scmi-clocks indices */
+
+#define SCMI_CLK_CPU           0
+#define SCMI_CLK_GPU           1
+#define SCMI_CLK_NPU           2
+
 /* pmu soft-reset indices */
 /* pmucru_softrst_con0 */
 #define SRST_P_PDPMU_NIU       0