diff options
author | Bjorn Andersson <andersson@kernel.org> | 2023-07-15 09:57:38 -0700 |
---|---|---|
committer | Bjorn Andersson <andersson@kernel.org> | 2023-07-15 10:03:15 -0700 |
commit | ad4e807f5f774ebf13d9cd5377126aa55bb68edf (patch) | |
tree | b121e2be34a648fc1c8c515f76cc2220c70f2f98 /include/dt-bindings | |
parent | db382dd55bcb8bc6319a14ad50689c19dba83b7b (diff) | |
parent | 17fc623e0f728c35b82a0e79cd4f3b8aab495663 (diff) | |
download | linux-stable-ad4e807f5f774ebf13d9cd5377126aa55bb68edf.tar.gz linux-stable-ad4e807f5f774ebf13d9cd5377126aa55bb68edf.tar.bz2 linux-stable-ad4e807f5f774ebf13d9cd5377126aa55bb68edf.zip |
Merge branch '20230526-topic-smd_icc-v7-0-09c78c175546@linaro.org' into clk-for-6.6
This series reshuffles things around, moving the management of SMD RPM
bus clocks to the interconnect framework where they belong. This helps
us solve a couple of issues:
1. We can work towards unused clk cleanup of RPMCC without worrying
about it killing some NoC bus, resulting in the SoC dying.
Deasserting actually unused RPM clocks (among other things) will
let us achieve "true SoC-wide power collapse states", also known as
VDD_LOW and VDD_MIN.
2. We no longer have to keep tons of quirky bus clock ifs in the icc
driver. You either have a RPM clock and call "rpm set rate" or you
have a single non-RPM clock (like AHB_CLK_SRC) or you don't have any.
3. There's less overhead - instead of going through layers and layers of
the CCF, ratesetting comes down to calling max() and sending a single
RPM message. ICC is very very dynamic so that's a big plus.
The clocks still need to be vaguely described in the clk-smd-rpm driver,
as it gives them an initial kickoff, before actually telling RPM to
enable DVFS scaling. After RPM receives that command, all clocks that
have not been assigned a rate are considered unused and are shut down
in hardware, leading to the same issue as described in point 1.
We can consider marking them __initconst in the future, but this series
is very fat even without that..
Apart from that, it squashes a couple of bugs that really need fixing..
The series is merged through a topic branch to manage the dependencies
between interconnect, Qualcomm clocks and Qualcomm SoC.
Diffstat (limited to 'include/dt-bindings')
-rw-r--r-- | include/dt-bindings/interconnect/qcom,rpm-icc.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/dt-bindings/interconnect/qcom,rpm-icc.h b/include/dt-bindings/interconnect/qcom,rpm-icc.h new file mode 100644 index 000000000000..2cd56f91e5c5 --- /dev/null +++ b/include/dt-bindings/interconnect/qcom,rpm-icc.h @@ -0,0 +1,13 @@ +/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ +/* + * Copyright (c) 2023, Linaro Limited + */ + +#ifndef __DT_BINDINGS_INTERCONNECT_QCOM_RPM_ICC_H +#define __DT_BINDINGS_INTERCONNECT_QCOM_RPM_ICC_H + +#define RPM_ACTIVE_TAG (1 << 0) +#define RPM_SLEEP_TAG (1 << 1) +#define RPM_ALWAYS_TAG (RPM_ACTIVE_TAG | RPM_SLEEP_TAG) + +#endif |