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

Commit d701b452 authored by Ajay Agarwal's avatar Ajay Agarwal
Browse files

ARM: dts: msm: Add support for USB HS AC/DC coupling on SA8155



Enable USB_HS_AC_POLARITY(Active Low) and USB_HS_AC_EN bits in
USB2PHY_USB_PHY_AC_EN register of the USB2 PHYs on SA8155.
Also add pinctrl changes to configure GPIOs 113 and 123 in
USB2PHY AC ENABLE function mode.
This is required to enable USB HS AC/DC coupling feature.

Change-Id: Id29c40698096a9561a448a4798d01675eca5e751
Signed-off-by: default avatarAjay Agarwal <ajaya@codeaurora.org>
parent cdbe2d3e
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -33,6 +33,8 @@ Optional properties:
        "phy_rcal_reg": register address for efuse used for rext calibration
 - qcom,no-rext-present: Set only if external REXT is not present. Default value
   is present.
 - pinctrl-names/pinctrl-0: The GPIO configured as usb2phy_ac function. Name represents
   "active" state.

Example:
	hsphy@f9200000 {
+14 −0
Original line number Diff line number Diff line
@@ -185,8 +185,22 @@
	qcom,host-poweroff-in-pm-suspend;
};

&usb2_phy0 {
	qcom,param-override-seq =
		<0x43 0x70
		 0x01 0xb0>;
	pinctrl-names = "default";
	pinctrl-0 = <&usb2phy_ac_en1_default>;
};

&usb1 {
	status = "ok";
	qcom,default-mode-host;
	qcom,host-poweroff-in-pm-suspend;
};

&usb2_phy1 {
	qcom,param-override-seq = <0x01 0xb0>;
	pinctrl-names = "default";
	pinctrl-0 = <&usb2phy_ac_en2_default>;
};
+26 −0
Original line number Diff line number Diff line
@@ -4468,5 +4468,31 @@
				bias-pull-up;
			};
		};

		usb2phy_ac_en1_default: usb2phy_ac_en1_default {
			mux {
				pins = "gpio113";
				function = "usb2phy_ac";
			};

			config {
				pins = "gpio113";
				drive-strength = <2>;
				bias-disable;
			};
		};

		usb2phy_ac_en2_default: usb2phy_ac_en2_default {
			mux {
				pins = "gpio123";
				function = "usb2phy_ac";
			};

			config {
				pins = "gpio123";
				drive-strength = <2>;
				bias-disable;
			};
		};
	};
};