summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLi Jun <jun.li@nxp.com>2018-08-14 08:05:12 +0800
committerJason Liu <jason.hui.liu@nxp.com>2019-02-12 10:33:27 +0800
commitcc1306e2f253f9c4aabc7d7cf92dfb8386028737 (patch)
treefaaa11f436af3cbd2289820eb8e9cd7f312ca1dd
parentad181f1e456bdd7427712ab6e94e811d03726350 (diff)
MLK-19098 ARM: dts: imx7ulp-evk: use OTG ID function instead of GPIO
Since IMX7ULP_PAD_PTC13 has OTG ID function, so change the iomux to be OTG ID instead of GPIO, with that we can use usb ID event directly for role switch, which is more quick than extcon driver. which also help on pass the type-C compliance test: "TD 4.5.6 DRP connect Try.SNK DRP Test" Acked-by: Peter Chen <peter.chen@nxp.com> Signed-off-by: Li Jun <jun.li@nxp.com>
-rw-r--r--arch/arm/boot/dts/imx7ulp-evk.dts21
1 files changed, 7 insertions, 14 deletions
diff --git a/arch/arm/boot/dts/imx7ulp-evk.dts b/arch/arm/boot/dts/imx7ulp-evk.dts
index 4af9fea3bee5..d7abcfb69db2 100644
--- a/arch/arm/boot/dts/imx7ulp-evk.dts
+++ b/arch/arm/boot/dts/imx7ulp-evk.dts
@@ -61,8 +61,8 @@
compatible = "regulator-fixed";
reg = <0>;
pinctrl-names = "default", "sleep";
- pinctrl-0 = <&pinctrl_usb_otg1>;
- pinctrl-1 = <&pinctrl_usb_otg1>;
+ pinctrl-0 = <&pinctrl_usbotg1_vbus>;
+ pinctrl-1 = <&pinctrl_usbotg1_vbus>;
regulator-name = "usb_otg1_vbus";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
@@ -92,14 +92,6 @@
};
};
- extcon_usb1: extcon_usb1 {
- compatible = "linux,extcon-usb-gpio";
- id-gpio = <&gpio_ptc 13 GPIO_ACTIVE_HIGH>;
- pinctrl-names = "default", "sleep";
- pinctrl-0 = <&pinctrl_extcon_usb1>;
- pinctrl-1 = <&pinctrl_extcon_usb1>;
- };
-
pf1550-rpmsg {
compatible = "fsl,pf1550-rpmsg";
sw1_reg: SW1 {
@@ -323,15 +315,15 @@
>;
};
- pinctrl_usb_otg1: usbotg1grp {
+ pinctrl_usbotg1_vbus: otg1vbusgrp {
fsl,pins = <
IMX7ULP_PAD_PTC0__PTC0 0x20000
>;
};
- pinctrl_extcon_usb1: extcon1grp {
+ pinctrl_usbotg1_id: otg1idgrp {
fsl,pins = <
- IMX7ULP_PAD_PTC13__PTC13 0x10003
+ IMX7ULP_PAD_PTC13__USB0_ID 0x10003
>;
};
@@ -531,7 +523,8 @@
&usbotg1 {
vbus-supply = <&reg_usb_otg1_vbus>;
- extcon = <0>, <&extcon_usb1>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_usbotg1_id>;
srp-disable;
hnp-disable;
adp-disable;