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

Commit e2ee5ffb authored by Mayank Rana's avatar Mayank Rana Committed by Devdutt Patnaik
Browse files

usb: phy: qmp: Add support to use different voltage with core supply



On newer platform USB QMP PHY needs different voltage supply as core
voltage. This change adds required support for the same.
Also Rename vdda18-supply as core-supply for USB QMP PHY for targets
based on 3.18 kernel.

CRs-Fixed: 1001463
Change-Id: If100d36bade241dedf28e3cea9e07be192bdfdc2
Signed-off-by: default avatarMayank Rana <mrana@codeaurora.org>
parent 6bee3417
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -104,7 +104,7 @@ Required properties:
 - <supply-name>-supply: phandle to the regulator device tree node
   Required "supply-name" examples are:
	"vdd" : vdd supply for SSPHY digital circuit operation
	"vdda18" : 1.8v high-voltage analog supply for SSPHY
	"core" : high-voltage analog supply for SSPHY
 - qcom,vdd-voltage-level: This property must be a list of three integer
   values (no, min, max) where each value represents either a voltage in
   microvolts or a value corresponding to voltage corner
@@ -121,6 +121,9 @@ Optional properties:
   value, single ended clk value, delay after register write.
 - qcom,qmp-phy-reg-offset: If present stores phy register offsets in an order
   defined in the phy driver.
 - qcom,core-voltage-level: This property must be a list of three integer
   values (no, min, max) where each value represents either a voltage in
   microvolts or a value corresponding to voltage corner.

Example:
	ssphy0: ssphy@f9b38000 {
+1 −1
Original line number Diff line number Diff line
@@ -1322,7 +1322,7 @@
		reg-names = "qmp_phy_base",
			    "vls_clamp_reg";
		vdd-supply = <&pmd9635_l4>;
		vdda18-supply = <&pmd9635_l8>;
		core-supply = <&pmd9635_l8>;
		qcom,vdd-voltage-level = <0 1000000 1000000>;
		qcom,vbus-valid-override;
		qcom,override-pll-calibration;
+1 −1
Original line number Diff line number Diff line
@@ -237,7 +237,7 @@
					0x974 0x8d8 0x8dc 0x804 0x800
					0x808>;
		vdd-supply = <&pmdcalifornium_l4>;
		vdda18-supply = <&pmdcalifornium_l5>;
		core-supply = <&pmdcalifornium_l5>;
		qcom,vdd-voltage-level = <0 928000 928000>;
		qcom,vbus-valid-override;

+1 −1
Original line number Diff line number Diff line
@@ -2242,7 +2242,7 @@
					0x974 0x8d8 0x8dc 0x804 0x800
					0x808>;
		vdd-supply = <&pm8953_l3>;
		vdda18-supply = <&pm8953_l7>;
		core-supply = <&pm8953_l7>;
		qcom,vdd-voltage-level = <0 925000 925000>;
		qcom,vbus-valid-override;

+1 −1
Original line number Diff line number Diff line
@@ -2170,7 +2170,7 @@
		reg-names = "qmp_phy_base",
			    "vls_clamp_reg";
		vdd-supply = <&pm8994_l28>;
		vdda18-supply = <&pm8994_l12>;
		core-supply = <&pm8994_l12>;
		qcom,vdd-voltage-level = <0 925000 925000>;
		qcom,vbus-valid-override;

Loading