diff options
author | Peter Chen <peter.chen@nxp.com> | 2016-11-16 09:20:58 +0800 |
---|---|---|
committer | Jason Liu <jason.hui.liu@nxp.com> | 2019-02-12 10:25:24 +0800 |
commit | 3718510b839c4cef9aa725dca03037ab50f9d97e (patch) | |
tree | 4bbe2e1430351a8da6e950874b4b65ee1437e021 /arch/arm/boot/dts/imx7ulp-evk.dts | |
parent | f396ed864cb6062a4e9e59d8e9e87f0aad87c678 (diff) |
MLK-13570-1 ARM: dts: imx7ulp-evk: add USB support
Add USBOTG1 support, we use GPIO as ID function for dual-role switch.
Besides, #define <dt-bindings/gpio/gpio.h> to imx7ulp.dtsi since
lots of boards may need it.
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Diffstat (limited to 'arch/arm/boot/dts/imx7ulp-evk.dts')
-rw-r--r-- | arch/arm/boot/dts/imx7ulp-evk.dts | 41 |
1 files changed, 40 insertions, 1 deletions
diff --git a/arch/arm/boot/dts/imx7ulp-evk.dts b/arch/arm/boot/dts/imx7ulp-evk.dts index e7e6844a3e9a..81c6860acbf8 100644 --- a/arch/arm/boot/dts/imx7ulp-evk.dts +++ b/arch/arm/boot/dts/imx7ulp-evk.dts @@ -9,7 +9,6 @@ /dts-v1/; #include "imx7ulp.dtsi" -#include <dt-bindings/gpio/gpio.h> / { model = "NXP i.MX7ULP EVK"; @@ -46,6 +45,25 @@ startup-delay-us = <100>; enable-active-high; }; + + reg_usb_otg1_vbus: regulator@0 { + compatible = "regulator-fixed"; + reg = <0>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usb_otg1>; + regulator-name = "usb_otg1_vbus"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + gpio = <&gpio0 0 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + }; + + extcon_usb1: extcon_usb1 { + compatible = "linux,extcon-usb-gpio"; + id-gpio = <&gpio0 8 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_extcon_usb1>; }; pf1550-rpmsg { @@ -183,6 +201,18 @@ >; }; + pinctrl_usb_otg1: usbotg1grp { + fsl,pins = < + IMX7ULP_PAD_PTC0__PTC0 0x30100 + >; + }; + + pinctrl_extcon_usb1: extcon1grp { + fsl,pins = < + IMX7ULP_PAD_PTC8__PTC8 0x30103 + >; + }; + pinctrl_usdhc1: usdhc1grp { fsl,pins = < IMX7ULP_PAD_PTE3__SDHC1_CMD 0x843 @@ -284,6 +314,15 @@ status = "okay"; }; +&usbotg1 { + vbus-supply = <®_usb_otg1_vbus>; + extcon = <0>, <&extcon_usb1>; + srp-disable; + hnp-disable; + adp-disable; + status = "okay"; +}; + &usdhc0 { pinctrl-names = "default", "sleep"; pinctrl-0 = <&pinctrl_usdhc0>; |