Files
android_kernel_motorola_sm6225/bindings/devfreq/devbw.txt
T
Rama Aparna Mallavarapu 7df4a9c57f devfreq: add support for different ddr types
Target can support different DDR HW versions supporting different
frequencies, add support in DT to update the devfreq nodes
with corresponding frequency mapping based on DDR type supported.

Change-Id: If998c5181c7f8569259f528f07c5975ccd5b2f29
2019-06-10 16:24:22 -07:00

76 lines
2.3 KiB
Plaintext

MSM device bandwidth device
devbw is a device that represents a MSM device's BW requirements from its
master port(s) to a different device's slave port(s) in a MSM SoC. This
device is typically used to vote for BW requirements from a device's (Eg:
CPU, GPU) master port(s) to the slave (Eg: DDR) port(s).
Required properties:
- compatible: Must be "qcom,devbw" or "qcom,devbw-ddr" or "qcom,devbw-llcc"
- qcom,src-dst-ports: A list of tuples where each tuple consists of a bus
master port number and a bus slave port number.
- operating-points-v2: A phandle to the OPP v2 table that holds meaningful
instantaneous bandwidth values (in MB/s) that can be
requested from the device master port to the slave port.
The list of values depend on the supported bus/slave
frequencies and the bus width.
Optional properties:
- qcom,active-only: Indicates that the bandwidth votes need to be
enforced only when the CPU subsystem is active.
- governor: Initial governor to use for the device.
Default: "performance"
- opp-supported-hw: For the devices that are compatible with "qcom, devbw-ddr",
the OPP node can have opp-supported-hw property. This is a
single 32 bit bitmap value, representing compatible DDR-Type in HW.
Example:
Value:
0x80: Frequency Compatible for LPDDR4X only
0x100: Frequency Compatible for LPDDR5 only
0x180: Frequency Compatible for both LPDDR4X and LPDDR5
Example:
bw_opp_table: bw-opp-table {
compatible = "operating-points-v2";
opp-75 {
opp-hz = /bits/ 64 < 572 >; /* 75 MHz */
opp-supported-hw = <0x80>;
};
opp-150 {
opp-hz = /bits/ 64 < 1144 >; /* 150 MHz */
opp-supported-hw = <0x80>;
};
opp-200 {
opp-hz = /bits/ 64 < 1525 >; /* 200 MHz */
opp-supported-hw = <0x180>;
};
opp-307 {
opp-hz = /bits/ 64 < 2342 >; /* 307 MHz */
opp-supported-hw = <0x80>;
};
opp-460 {
opp-hz = /bits/ 64 < 3509 >; /* 460 MHz */
opp-supported-hw = <0x80>;
};
opp-614 {
opp-hz = /bits/ 64 < 4684 >; /* 614 MHz */
opp-supported-hw = <0x80>;
};
opp-800 {
opp-hz = /bits/ 64 < 6103 >; /* 800 MHz */
opp-supported-hw = <0x80>;
};
opp-931 {
opp-hz = /bits/ 64 < 7102 >; /* 931 MHz */
opp-supported-hw = <0x80>;
};
};
qcom,cpubw {
compatible = "qcom,devbw-ddr";
qcom,src-dst-ports = <1 512>, <2 512>;
qcom,active-only;
operating-points-v2 = <&bw_opp_table>;
};