On Qualcomm Krait (APQ8064, MSM8960, MSM8974, APQ8084) platforms L2 cache frequency should follow CPU cache frequencies. It is logical to put the correponding OPP table into the L2 device node and then add simple devfreq driver that aggregates CPU votes and sets the clock accordingly. In [1] Rob suggested reusing existing cache devices for platform-specific cache drivers. This series implements that suggestion. This is posted as an RFC. If this implementation is found to be acceptable, corresponding L2 cache driver will be included in the next revision. [1] https://lore.kernel.org/linux-arm-msm/20231011154935.GA785564-robh@xxxxxxxxxx/ Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@xxxxxxxxxx> --- Dmitry Baryshkov (2): cpu: allow matching cpu_subsys devices against OF nodes cacheinfo: pass of_node to cpu_device_create() drivers/base/cacheinfo.c | 16 ++++++++++++++-- drivers/base/cpu.c | 15 ++++++++++++--- include/linux/cacheinfo.h | 2 ++ include/linux/cpu.h | 3 ++- 4 files changed, 30 insertions(+), 6 deletions(-) --- base-commit: 39676dfe52331dba909c617f213fdb21015c8d10 change-id: 20231231-cpu-cacheinfo-of-c4f14013bf31 Best regards, -- Dmitry Baryshkov <dmitry.baryshkov@xxxxxxxxxx>