Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ca2905c6 authored by Tony Truong's avatar Tony Truong
Browse files

dt-bindings: arm: msm: add MX entries for PCIe

There are chipsets which require explicit votes for MX rails and
its corners based on PCIe Gen speed. Add a entries for MX in DT
so PCIe bus driver can properly vote and scale corners for MX.

Change-Id: Ib7891ab528594f4f8a81568daafbe6297fcb60be
parent 8f4c1d00
Loading
Loading
Loading
Loading
+24 −5
Original line number Diff line number Diff line
@@ -123,6 +123,7 @@ Main node
		- "vreg-1.8-supply"		power supply for PCIe PHY
		- "vreg-0.9-supply"		power supply for PCIe PHY
		- "vreg-cx-supply"		power supply for PCIe core
		- "vreg-mx-supply"		power supply for PCIe core/PHY
		- "vreg-3.3-supply" (opt)	power supply for PCIe endpoint

- qcom,<supply-name>-voltage-level:
@@ -134,8 +135,10 @@ Main node
- qcom,bw-scale:
	Usage: optional
	Value type: <prop-encoded-array>
	Definition: List of CX voltage corner and rate change clock frequency
		pair for each PCIe GEN speed
	Definition: Tuple consisting of CX and MX voltage corners, and rate
		change clock frequencies for each supported PCIe Gen speed.
		ex:
		<[min CX voltage] [min MX voltage] [Rate change clk frequency]>

interconnect-names:
	Usage: optional
@@ -461,14 +464,30 @@ Example
		vreg-1.8-supply = <&pm8150l_l3>;
		vreg-0.9-supply = <&pm8150_l5>;
		vreg-cx-supply = <&VDD_CX_LEVEL>;
		vreg-mx-supply = <&VDD_MXA_LEVEL>;
		vreg-3.3-supply = <&pm8150_l1>;
		qcom,vreg-1.8-voltage-level = <1800000 1800000 1000>;
		qcom,vreg-0.9-voltage-level = <950000 950000 24000>;
		qcom,vreg-cx-voltage-level = <RPMH_REGULATOR_LEVEL_MAX
						RPMH_REGULATOR_LEVEL_NOM 0>;
		qcom,bw-scale = <RPMH_REGULATOR_LEVEL_LOW_SVS 19200000 /* Gen1 */
				RPMH_REGULATOR_LEVEL_LOW_SVS 19200000 /* Gen2 */
				RPMH_REGULATOR_LEVEL_NOM 100000000>; /* Gen3 */
		qcom,vreg-mx-voltage-level = <RPMH_REGULATOR_LEVEL_MAX
						RPMH_REGULATOR_LEVEL_NOM 0>;
		qcom,bw-scale = /* Gen1 */
				<RPMH_REGULATOR_LEVEL_LOW_SVS
				RPMH_REGULATOR_LEVEL_LOW_SVS
				19200000
				/* Gen2 */
				RPMH_REGULATOR_LEVEL_LOW_SVS
				RPMH_REGULATOR_LEVEL_LOW_SVS
				19200000
				/* Gen3 */
				RPMH_REGULATOR_LEVEL_NOM
				RPMH_REGULATOR_LEVEL_LOW_SVS
				100000000
				/* Gen4 */
				RPMH_REGULATOR_LEVEL_NOM
				RPMH_REGULATOR_LEVEL_NOM
				100000000>;

		interconnect-names = "icc_path";
		interconnects = <&aggre2_noc MASTER_PCIE_0 &mc_virt SLAVE_EBI1>;