MLK-15013-5 DTS: imx8qm_arm2: update USBOH nodes
authorYe Li <ye.li@nxp.com>
Tue, 6 Jun 2017 08:12:32 +0000 (03:12 -0500)
committerJason Liu <jason.hui.liu@nxp.com>
Thu, 2 Nov 2017 18:36:53 +0000 (02:36 +0800)
Add the usb alias for OTG1 in QM dtsi.
Add OTG1 power control and its GPIO regulator node.

Signed-off-by: Ye Li <ye.li@nxp.com>
arch/arm/dts/fsl-imx8qm-lpddr4-arm2.dts
arch/arm/dts/fsl-imx8qm.dtsi

index 27030c0..960b202 100644 (file)
                        linux,default-trigger = "heartbeat";
                };
        };
+
+       regulators {
+               compatible = "simple-bus";
+               #address-cells = <1>;
+               #size-cells = <0>;
+
+               reg_usb_otg1_vbus: regulator@0 {
+                       compatible = "regulator-fixed";
+                       reg = <0>;
+                       regulator-name = "usb_otg1_vbus";
+                       regulator-min-microvolt = <5000000>;
+                       regulator-max-microvolt = <5000000>;
+                       gpio = <&gpio4 3 GPIO_ACTIVE_HIGH>;
+                       enable-active-high;
+               };
+       };
 };
 
 &iomuxc {
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_hog_1>;
+
        imx8qm-arm2 {
+               pinctrl_hog_1: hoggrp-1 {
+                       fsl,pins = <
+                               SC_P_USB_SS3_TC0_LSIO_GPIO4_IO03          0x06000048
+                       >;
+               };
+
                pinctrl_fec1: fec1grp {
                        fsl,pins = <
                                SC_P_ENET0_MDC_CONN_ENET0_MDC                   0x06000048
 };
 
 &usbotg1 {
+       vbus-supply = <&reg_usb_otg1_vbus>;
        srp-disable;
        hnp-disable;
        adp-disable;
index 24ff5e8..2101ad1 100644 (file)
@@ -49,6 +49,7 @@
                i2c8 = &i2c1_lvds1;
                mmc1 = &usdhc2;
                mmc2 = &usdhc3;
+               usb0 = &usbotg1;
                usbphy0 = &usbphy1;
                ethernet0 = &fec1;
                ethernet1 = &fec2;