Skip to content

Commit

Permalink
dt-bindings: cpufreq: Add interconnect bindings to cpufreq-hw
Browse files Browse the repository at this point in the history
Add interconnect properties path-specifier/name and operating-points-v2
bindings to scale DDR/L3 per freq-domain on SC7180 and SDM845 SoCs.

Signed-off-by: Sibi Sankar <sibis@codeaurora.org>
  • Loading branch information
Sibi Sankar committed Jan 9, 2020
1 parent e1635c6 commit 50b92bf
Showing 1 changed file with 40 additions and 2 deletions.
42 changes: 40 additions & 2 deletions Documentation/devicetree/bindings/cpufreq/cpufreq-qcom-hw.txt
Expand Up @@ -8,7 +8,10 @@ Properties:
- compatible
Usage: required
Value type: <string>
Definition: must be "qcom,cpufreq-hw".
Definition: must be one of:
"qcom,cpufreq-hw"
"qcom,sc7180-cpufreq-hw"
"qcom,sdm845-cpufreq-hw"

- clocks
Usage: required
Expand All @@ -35,6 +38,32 @@ Properties:
Usage: required.
Definition: Number of cells in a freqency domain specifier.

- operating-points-v2: phandle to the DDR/L3 OPP tables per freq-domain.
qcom,cpufreq-hw:
qcom,sc7180-cpufreq-hw:
phandles to "cpu0-ddr", "cpu6-ddr", "cpu0-l3", "cpu6-l3"
opp-tables.
qcom,sdm845-cpufreq-hw:
phandles to "cpu0-ddr", "cpu4-ddr", "cpu0-l3", "cpu4-l3"
opp-tables.

- interconnects : interconnect path specifier for scaling DDR and L3 paths
Documentation/devicetree/bindings/interconnect/interconnect.txt.
qcom,cpufreq-hw:
qcom,sc7180-cpufreq-hw:
path specifier for the following "cpu0-ddr", "cpu6-ddr",
"cpu0-l3", "cpu6-l3" interconnect paths.
qcom,sdm845-cpufreq-hw:
path specifier for the following "cpu0-ddr", "cpu4-ddr",
"cpu0-l3", "cpu4-l3" interconnect paths.

- interconnect-names : each cpufreq-domain will have 2 port names (ddr, l3).
qcom,cpufreq-hw:
qcom,sc7180-cpufreq-hw:
must be "cpu0-ddr", "cpu6-ddr", "cpu0-l3", "cpu6-l3"
qcom,sdm845-cpufreq-hw:
must be "cpu0-ddr", "cpu4-ddr", "cpu0-l3", "cpu4-l3"

* Property qcom,freq-domain
Devices supporting freq-domain must set their "qcom,freq-domain" property with
phandle to a cpufreq_hw followed by the Domain ID(0/1) in the CPU DT node.
Expand Down Expand Up @@ -160,13 +189,22 @@ DCVS state together.

soc {
cpufreq_hw: cpufreq@17d43000 {
compatible = "qcom,cpufreq-hw";
compatible = "qcom,sdm845-cpufreq-hw";
reg = <0x17d43000 0x1400>, <0x17d45800 0x1400>;
reg-names = "freq-domain0", "freq-domain1";

clocks = <&rpmhcc RPMH_CXO_CLK>, <&gcc GPLL0>;
clock-names = "xo", "alternate";

operating-points-v2 = <&cpu0_ddr_bw_opp_table>, <&cpu4_ddr_bw_opp_table>,
<&cpu0_l3_bw_opp_table>, <&cpu4_l3_bw_opp_table>;

interconnects = <&gladiator_noc MASTER_APPSS_PROC &mem_noc SLAVE_EBI1>,
<&gladiator_noc MASTER_APPSS_PROC &mem_noc SLAVE_EBI1>,
<&osm_l3 MASTER_OSM_L3_APPS &osm_l3 SLAVE_OSM_L3>,
<&osm_l3 MASTER_OSM_L3_APPS &osm_l3 SLAVE_OSM_L3>;
interconnect-names = "cpu0-ddr", "cpu4-ddr", "cpu0-l3", "cpu4-l3";

#freq-domain-cells = <1>;
};
}

0 comments on commit 50b92bf

Please sign in to comment.