This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM5728: OTG is not working

Part Number: AM5728
Other Parts Discussed in Thread: TUSB8041

I have a AM5728 custom board.

I use ti-processor-sdk-linux-am57xx-evm-06.03.00.106-Linux-x86-Install.bin

This is USB logs

root@am57xx-evm:/# cat sys/kernel/debug/488d0000.usb/mode
otg
root@am57xx-evm:/# ls sys/kernel/debug/488d0000.usb/
link_state mode regdump testmode

root@am57xx-evm:/#
root@am57xx-evm:/# lsusb
Bus 001 Device 003: ID 0bda:b720 Realtek Semiconductor Corp.
Bus 001 Device 004: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 001 Device 002: ID 0451:8142 Texas Instruments, Inc. TUSB8041 4-Port Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 002: ID 0451:8140 Texas Instruments, Inc. TUSB8041 4-Port Hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
root@am57xx-evm:/#

root@am57xx-evm:/# dmesg |grep "usb"
[ 4.969166] usbcore: registered new interface driver usbfs
[ 4.974746] usbcore: registered new interface driver hub
[ 4.980188] usbcore: registered new device driver usb
[ 4.992293] usbcore: registered new interface driver ftdi_sio
[ 4.999623] usbserial: USB Serial support registered for FTDI USB Serial Device
[ 6.809048] Modules linked in: omap_remoteproc(+) virtio_rpmsg_bus remoteproc sch_fq_codel uio_module_drv(O) uio ftdi_sio usbserial usbcor)
[ 7.297848] Modules linked in: omap_remoteproc virtio_rpmsg_bus remoteproc sch_fq_codel uio_module_drv(O) uio ftdi_sio usbserial usbcore u)
[ 8.063676] palmas-usb 48070000.i2c:tps659038@58:tps659038_usb: GPIO lookup for consumer id
[ 8.122928] palmas-usb 48070000.i2c:tps659038@58:tps659038_usb: using device tree for GPIO lookup
[ 8.149375] of_get_named_gpiod_flags: can't parse 'id-gpios' property of node '/ocp/i2c@48070000/tps659038@58/tps659038_usb[0]'
[ 8.187439] of_get_named_gpiod_flags: can't parse 'id-gpio' property of node '/ocp/i2c@48070000/tps659038@58/tps659038_usb[0]'
[ 8.257003] palmas-usb 48070000.i2c:tps659038@58:tps659038_usb: using lookup tables for GPIO lookup
[ 8.319898] palmas-usb 48070000.i2c:tps659038@58:tps659038_usb: No GPIO consumer id found
[ 8.396437] palmas-usb 48070000.i2c:tps659038@58:tps659038_usb: GPIO lookup for consumer vbus
[ 8.467417] palmas-usb 48070000.i2c:tps659038@58:tps659038_usb: using device tree for GPIO lookup
[ 8.533234] of_get_named_gpiod_flags: can't parse 'vbus-gpios' property of node '/ocp/i2c@48070000/tps659038@58/tps659038_usb[0]'
[ 8.568328] of_get_named_gpiod_flags: parsed 'vbus-gpio' property of node '/ocp/i2c@48070000/tps659038@58/tps659038_usb[0]' - status (0)
[ 10.616253] dwc3 48890000.usb: Failed to get clk 'ref': -2
[ 10.719013] dwc3 488d0000.usb: Failed to get clk 'ref': -2
[ 10.967998] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19
[ 10.987352] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 10.996588] usb usb1: Product: xHCI Host Controller
[ 11.002859] usb usb1: Manufacturer: Linux 4.19.94-gbe5389fd85 xhci-hcd
[ 11.010745] usb usb1: SerialNumber: xhci-hcd.1.auto
[ 11.049577] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[ 11.058724] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 4.19
[ 11.067480] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 11.075561] usb usb2: Product: xHCI Host Controller
[ 11.080877] usb usb2: Manufacturer: Linux 4.19.94-gbe5389fd85 xhci-hcd
[ 11.088144] usb usb2: SerialNumber: xhci-hcd.1.auto
[ 11.387437] usb 1-1: new high-speed USB device number 2 using xhci-hcd
[ 11.567796] usb 1-1: New USB device found, idVendor=0451, idProduct=8142, bcdDevice= 1.00
[ 11.576023] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=1
[ 11.584379] usb 1-1: SerialNumber: 6906006168BF
[ 11.717469] usb 2-1: new SuperSpeed Gen 1 USB device number 2 using xhci-hcd
[ 11.757690] usb 2-1: New USB device found, idVendor=0451, idProduct=8140, bcdDevice= 1.00
[ 11.766054] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 12.007512] usb 1-1.2: new high-speed USB device number 3 using xhci-hcd
[ 12.137706] usb 1-1.2: config 1 interface 1 altsetting 0 endpoint 0x3 has wMaxPacketSize 0, skipping
[ 12.146889] usb 1-1.2: config 1 interface 1 altsetting 0 endpoint 0x83 has wMaxPacketSize 0, skipping
[ 12.164360] usb 1-1.2: New USB device found, idVendor=0bda, idProduct=b720, bcdDevice= 2.00
[ 12.174000] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 12.182974] usb 1-1.2: Product: 802.11n WLAN Adapter
[ 12.192859] usb 1-1.2: Manufacturer: Realtek
[ 12.197154] usb 1-1.2: SerialNumber: 00e04c000001
[ 12.407446] usb 1-1.4: new high-speed USB device number 4 using xhci-hcd
[ 12.547640] usb 1-1.4: New USB device found, idVendor=1a40, idProduct=0101, bcdDevice= 1.11
[ 12.559972] usb 1-1.4: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[ 12.572659] usb 1-1.4: Product: USB 2.0 Hub
[ 17.696742] usbcore: registered new interface driver option
[ 17.702556] usbserial: USB Serial support registered for GSM modem (1-port)
[ 17.746797] usbcore: registered new interface driver GobiNet
[ 18.320795] usbcore: registered new interface driver rtl8723bu
root@am57xx-evm:/#

................................................................................................................................

I use am57xx-beagle-x15-common.dtsi,

/*
 * Copyright (C) 2014-2016 Texas Instruments Incorporated - http://www.ti.com/
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 */
/dts-v1/;

#include "dra74x.dtsi"
#include "am57xx-commercial-grade.dtsi"
#include "dra74x-mmc-iodelay.dtsi"
#include "dra74-ipu-dsp-common.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>

/ {
	compatible = "ti,am572x-beagle-x15", "ti,am5728", "ti,dra742", "ti,dra74", "ti,dra7";

	aliases {
		rtc0 = &mcp_rtc;
		rtc1 = &tps659038_rtc;
		rtc2 = &rtc;
		display0 = &hdmi0;
		display1 = &lcd0;


		sound0 = &sound0;
		sound1 = &hdmi;
	};

	chosen {
		stdout-path = &uart3;
	};

        rs485{
            compatible = "dj8mm-rs485";
        };

	memory@0 {
		device_type = "memory";
		reg = <0x0 0x80000000 0x0 0x80000000>;
	};

	reserved-memory {
		#address-cells = <2>;
		#size-cells = <2>;
		ranges;

		ipu2_memory_region: ipu2-memory@95800000 {
			compatible = "shared-dma-pool";
			reg = <0x0 0x95800000 0x0 0x3800000>;
			reusable;
			status = "okay";
		};

		dsp1_memory_region: dsp1-memory@99000000 {
			compatible = "shared-dma-pool";
			reg = <0x0 0x99000000 0x0 0x4000000>;
			reusable;
			status = "okay";
		};

		ipu1_memory_region: ipu1-memory@9d000000 {
			compatible = "shared-dma-pool";
			reg = <0x0 0x9d000000 0x0 0x2000000>;
			reusable;
			status = "okay";
		};

		dsp2_memory_region: dsp2-memory@9f000000 {
			compatible = "shared-dma-pool";
			reg = <0x0 0x9f000000 0x0 0x800000>;
			reusable;
			status = "okay";
		};
	};

	main_12v0: fixedregulator-main_12v0 {
		/* main supply */
		compatible = "regulator-fixed";
		regulator-name = "main_12v0";
		regulator-min-microvolt = <12000000>;
		regulator-max-microvolt = <12000000>;
		regulator-always-on;
		regulator-boot-on;
	};

	evm_5v0: fixedregulator-evm_5v0 {
		/* Output of TPS54531D */
		compatible = "regulator-fixed";
		regulator-name = "evm_5v0";
		regulator-min-microvolt = <5000000>;
		regulator-max-microvolt = <5000000>;
		vin-supply = <&main_12v0>;
		regulator-always-on;
		regulator-boot-on;
	};

	vdd_3v3: fixedregulator-vdd_3v3 {
		compatible = "regulator-fixed";
		regulator-name = "vdd_3v3";
		vin-supply = <&regen1>;
		regulator-min-microvolt = <3300000>;
		regulator-max-microvolt = <3300000>;
	};

	aic_dvdd: fixedregulator-aic_dvdd {
		compatible = "regulator-fixed";
		regulator-name = "aic_dvdd_fixed";
		vin-supply = <&vdd_3v3>;
		regulator-min-microvolt = <1800000>;
		regulator-max-microvolt = <1800000>;
	};

	vtt_fixed: fixedregulator-vtt {
		/* TPS51200 */
		compatible = "regulator-fixed";
		regulator-name = "vtt_fixed";
		vin-supply = <&smps3_reg>;
		regulator-min-microvolt = <3300000>;
		regulator-max-microvolt = <3300000>;
		regulator-always-on;
		regulator-boot-on;
		enable-active-high;
		gpio = <&gpio7 11 GPIO_ACTIVE_HIGH>;
	};

	leds {
		compatible = "gpio-leds";

		led0 {
			label = "beagle-x15:usr0";
			gpios = <&gpio7 9 GPIO_ACTIVE_HIGH>;
			linux,default-trigger = "heartbeat";
			default-state = "off";
		};

		led1 {
			label = "beagle-x15:usr1";
			gpios = <&gpio7 8 GPIO_ACTIVE_HIGH>;
			linux,default-trigger = "cpu0";
			default-state = "off";
		};

		led2 {
			label = "beagle-x15:usr2";
			gpios = <&gpio7 14 GPIO_ACTIVE_HIGH>;
			linux,default-trigger = "mmc0";
			default-state = "off";
		};

		led3 {
			label = "beagle-x15:usr3";
			gpios = <&gpio7 15 GPIO_ACTIVE_HIGH>;
			linux,default-trigger = "disk-activity";
			default-state = "off";
		};
	};

	gpio_fan: gpio_fan {
		/* Based on 5v 500mA AFB02505HHB */
		compatible = "gpio-fan";
		gpios =  <&tps659038_gpio 2 GPIO_ACTIVE_HIGH>;
		gpio-fan,speed-map = <0     0>,
				     <13000 1>;
		#cooling-cells = <2>;
	};


        lcd0: display {
			compatible = "osddisplays,osd070t1718-19ts", "panel-dpi";
			backlight = <&lcd_bl>;
			enable-gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>;
			label = "lcd";

			panel-timing {
				clock-frequency = <33000000>;
				de-active = <1>;
				hactive = <800>;
				hback-porch = <16>;
				hfront-porch = <210>;
				hsync-active = <0>;
				hsync-len = <30>;
				pixelclk-active = <1>;
				vactive = <480>;
				vback-porch = <10>;
				vfront-porch = <22>;
				vsync-active = <0>;
				vsync-len = <13>;
			};

			port {
				lcd_in: endpoint {
					remote-endpoint = <&dpi_out>;
				};
			};
		};

	lcd_bl: backlight {
			compatible = "pwm-backlight";
			brightness-levels = <0 243 245 247 249 251 252 253 255>;
			default-brightness-level = <8>;
			pwms = <&ehrpwm1 0 50000 0>;
		};


	hdmi0: connector {
		compatible = "hdmi-connector";
		label = "hdmi";

		type = "a";

		port {
			hdmi_connector_in: endpoint {
				remote-endpoint = <&tpd12s015_out>;
			};
		};
	};

	tpd12s015: encoder {
		compatible = "ti,tpd12s015";

		ports {
			#address-cells = <1>;
			#size-cells = <0>;

			port@0 {
				reg = <0>;

				tpd12s015_in: endpoint {
					remote-endpoint = <&hdmi_out>;
				};
			};

			port@1 {
				reg = <1>;

				tpd12s015_out: endpoint {
					remote-endpoint = <&hdmi_connector_in>;
				};
			};
		};
	};

	sound0: sound0 {
		compatible = "simple-audio-card";
		simple-audio-card,name = "BeagleBoard-X15";
		simple-audio-card,widgets =
			"Line", "Line Out",
			"Line", "Line In";
		simple-audio-card,routing =
			"Line Out",	"LLOUT",
			"Line Out",	"RLOUT",
			"MIC2L",	"Line In",
			"MIC2R",	"Line In";
		simple-audio-card,format = "dsp_b";
		simple-audio-card,bitclock-master = <&sound0_master>;
		simple-audio-card,frame-master = <&sound0_master>;
		simple-audio-card,bitclock-inversion;

		simple-audio-card,cpu {
			sound-dai = <&mcasp3>;
		};

		sound0_master: simple-audio-card,codec {
			sound-dai = <&tlv320aic3104>;
			clocks = <&clkout2_clk>;
		};
	};
};

&ehrpwm1 {
	status = "okay";
};

&epwmss1 {
	status = "okay";
};

&i2c1 {
	status = "okay";
	clock-frequency = <400000>;

	tps659038: tps659038@58 {
		compatible = "ti,tps659038";
		reg = <0x58>;
		interrupt-parent = <&gpio1>;
		interrupts = <0 IRQ_TYPE_LEVEL_LOW>;

		#interrupt-cells = <2>;
		interrupt-controller;

		ti,system-power-controller;
		ti,palmas-override-powerhold;

		tps659038_pmic {
			compatible = "ti,tps659038-pmic";

			regulators {
				smps12_reg: smps12 {
					/* VDD_MPU */
					regulator-name = "smps12";
					regulator-min-microvolt = < 850000>;
					regulator-max-microvolt = <1250000>;
					regulator-always-on;
					regulator-boot-on;
				};

				smps3_reg: smps3 {
					/* VDD_DDR */
					regulator-name = "smps3";
					regulator-min-microvolt = <1350000>;
					regulator-max-microvolt = <1350000>;
					regulator-always-on;
					regulator-boot-on;
				};

				smps45_reg: smps45 {
					/* VDD_DSPEVE, VDD_IVA, VDD_GPU */
					regulator-name = "smps45";
					regulator-min-microvolt = < 850000>;
					regulator-max-microvolt = <1250000>;
					regulator-always-on;
					regulator-boot-on;
				};

				smps6_reg: smps6 {
					/* VDD_CORE */
					regulator-name = "smps6";
					regulator-min-microvolt = <850000>;
					regulator-max-microvolt = <1150000>;
					regulator-always-on;
					regulator-boot-on;
				};

				/* SMPS7 unused */

				smps8_reg: smps8 {
					/* VDD_1V8 */
					regulator-name = "smps8";
					regulator-min-microvolt = <1800000>;
					regulator-max-microvolt = <1800000>;
					regulator-always-on;
					regulator-boot-on;
				};

				/* SMPS9 unused */

				ldo1_reg: ldo1 {
					/* VDD_SD / VDDSHV8  */
					regulator-name = "ldo1";
					regulator-min-microvolt = <1800000>;
					regulator-max-microvolt = <3300000>;
					regulator-boot-on;
					regulator-always-on;
				};

				ldo2_reg: ldo2 {
					/* VDD_SHV5 */
					regulator-name = "ldo2";
					regulator-min-microvolt = <3300000>;
					regulator-max-microvolt = <3300000>;
					regulator-always-on;
					regulator-boot-on;
				};

				ldo3_reg: ldo3 {
					/* VDDA_1V8_PHYA */
					regulator-name = "ldo3";
					regulator-min-microvolt = <1800000>;
					regulator-max-microvolt = <1800000>;
					regulator-always-on;
					regulator-boot-on;
				};

				ldo4_reg: ldo4 {
					/* VDDA_1V8_PHYB */
					regulator-name = "ldo4";
					regulator-min-microvolt = <1800000>;
					regulator-max-microvolt = <1800000>;
					regulator-always-on;
					regulator-boot-on;
				};

				ldo9_reg: ldo9 {
					/* VDD_RTC */
					regulator-name = "ldo9";
					regulator-min-microvolt = <1050000>;
					regulator-max-microvolt = <1050000>;
					regulator-always-on;
					regulator-boot-on;
				};

				ldoln_reg: ldoln {
					/* VDDA_1V8_PLL */
					regulator-name = "ldoln";
					regulator-min-microvolt = <1800000>;
					regulator-max-microvolt = <1800000>;
					regulator-always-on;
					regulator-boot-on;
				};

				ldousb_reg: ldousb {
					/* VDDA_3V_USB: VDDA_USBHS33 */
					regulator-name = "ldousb";
					regulator-min-microvolt = <3300000>;
					regulator-max-microvolt = <3300000>;
					regulator-boot-on;
				};

				regen1: regen1 {
					/* VDD_3V3_ON */
					regulator-name = "regen1";
					regulator-boot-on;
					regulator-always-on;
				};
			};
		};

		tps659038_rtc: tps659038_rtc {
			compatible = "ti,palmas-rtc";
			interrupt-parent = <&tps659038>;
			interrupts = <8 IRQ_TYPE_EDGE_FALLING>;
			wakeup-source;
		};

		tps659038_pwr_button: tps659038_pwr_button {
			compatible = "ti,palmas-pwrbutton";
			interrupt-parent = <&tps659038>;
			interrupts = <1 IRQ_TYPE_EDGE_FALLING>;
			wakeup-source;
			ti,palmas-long-press-seconds = <12>;
		};

		tps659038_gpio: tps659038_gpio {
			compatible = "ti,palmas-gpio";
			gpio-controller;
			#gpio-cells = <2>;
		};

		extcon_usb2: tps659038_usb {
			compatible = "ti,palmas-usb-vid";
			ti,enable-vbus-detection;
			vbus-gpio = <&gpio4 21 GPIO_ACTIVE_HIGH>;
		};

	};

	tmp102: tmp102@48 {
		compatible = "ti,tmp102";
		reg = <0x48>;
		interrupt-parent = <&gpio7>;
		interrupts = <16 IRQ_TYPE_LEVEL_LOW>;
		#thermal-sensor-cells = <1>;
	};

	tlv320aic3104: tlv320aic3104@18 {
		#sound-dai-cells = <0>;
		compatible = "ti,tlv320aic3104";
		reg = <0x18>;
		assigned-clocks = <&clkoutmux2_clk_mux>;
		assigned-clock-parents = <&sys_clk2_dclk_div>;

		status = "okay";
		adc-settle-ms = <40>;

		AVDD-supply = <&vdd_3v3>;
		IOVDD-supply = <&vdd_3v3>;
		DRVDD-supply = <&vdd_3v3>;
		DVDD-supply = <&aic_dvdd>;
	};

	eeprom: eeprom@50 {
		compatible = "atmel,24c32";
		reg = <0x50>;
	};
};

&i2c3 {
	status = "okay";
	clock-frequency = <400000>;

	mcp_rtc: rtc@6f {
		compatible = "microchip,mcp7941x";
		reg = <0x6f>;
		interrupts-extended = <&crossbar_mpu GIC_SPI 2 IRQ_TYPE_EDGE_RISING>,
				      <&dra7_pmx_core 0x424>;
		interrupt-names = "irq", "wakeup";

		vcc-supply = <&vdd_3v3>;
		wakeup-source;
	};
};

&gpio7 {
	ti,no-reset-on-init;
	ti,no-idle-on-init;
};

&cpu0 {
	vdd-supply = <&smps12_reg>;
	voltage-tolerance = <1>;
};



&dra7_pmx_core {
	uart4_pins_default: uart4_pins_default {
		pinctrl-single,pins = <
			0x33C ( PIN_INPUT_SLEW | MUX_MODE4)	/* uart4_rxd */
			0x340 ( PIN_INPUT_SLEW | MUX_MODE4)	/* uart4_txd */
		>;
	};
        uart5_pins_default: uart5_pins_default {
		pinctrl-single,pins = <
			0x040 (PIN_INPUT_SLEW | MUX_MODE8)	/* uart5_rxd */
			0x044 (PIN_INPUT_SLEW | MUX_MODE8)	/* uart5_txd */
		>;
	};
         uart6_pins_default: uart6_pins_default {
		pinctrl-single,pins = <
			0x050  ( PIN_INPUT_SLEW | MUX_MODE8)	/* uart6_rxd */
			0x054  ( PIN_INPUT_SLEW | MUX_MODE8)	/* uart6_txd */
		>;
	};
        uart7_pins_default: uart7_pins_default {
		pinctrl-single,pins = <
			0x048  ( PIN_INPUT_SLEW | MUX_MODE7)	/* uart7_rxd */
			0x04c  ( PIN_INPUT_SLEW | MUX_MODE7)	/* uart7_txd */
		>;
	};
        uart10_pins_default: uart10_pins_default {
		pinctrl-single,pins = <
			0x170  ( PIN_INPUT_SLEW | MUX_MODE8)	/* uart10_rxd */
			0x174  ( PIN_INPUT_SLEW | MUX_MODE8)	/* uart10_txd */
                        0x17C  ( PIN_INPUT_SLEW | MUX_MODE14)
		>;
	};
};

&uart1 {
	status = "okay";
        
};

&uart3 {
	status = "okay";
	interrupts-extended = <&crossbar_mpu GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>,
			      <&dra7_pmx_core 0x3f8>;
};

&uart4 {
	status = "okay"; 
        interrupts= <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>,
			      <&dra7_pmx_core 0x33C>;  
        pinctrl-names = "default";
	pinctrl-0 = <&uart4_pins_default>;   
};   
   
&uart5 {
	status = "okay";
        interrupts = < GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>,
			      <&dra7_pmx_core 0x040>;
        pinctrl-names = "default";
	pinctrl-0 = <&uart5_pins_default>;
};

&uart6 {
	status = "okay";
       interrupts = <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>,
		      <&dra7_pmx_core 0x050>;
       pinctrl-names = "default";
       pinctrl-0 = <&uart6_pins_default>;
};

&uart7 {
	status = "okay";
        interrupts = < GIC_SPI 218 IRQ_TYPE_LEVEL_HIGH>,
			      <&dra7_pmx_core 0x048>;
        pinctrl-names = "default";
        pinctrl-0 = <&uart7_pins_default>;
};
&uart8 {
	status = "okay";
};
&uart9 {
	status = "okay"; 
};

&uart10 {
	status = "okay"; 
        interrupts = <GIC_SPI 221 IRQ_TYPE_LEVEL_HIGH>,
        <&dra7_pmx_core 0x170>;
        pinctrl-names = "default";
        pinctrl-0 = <&uart10_pins_default>;        
};

&davinci_mdio {
	phy0: ethernet-phy@1 {
		reg = <1>;
	};

	phy1: ethernet-phy@2 {
		reg = <2>;
	};
};

&mac {
	status = "okay";
	dual_emac;
};

&cpsw_emac0 {
	phy-handle = <&phy0>;
	phy-mode = "rgmii";
	dual_emac_res_vlan = <1>;
};

&cpsw_emac1 {
	phy-handle = <&phy1>;
	phy-mode = "rgmii";
	dual_emac_res_vlan = <2>;
};

&mmc1 {
	status = "okay";

	pinctrl-names = "default";
	pinctrl-0 = <&mmc1_pins_default>;

	bus-width = <4>;
	cd-gpios = <&gpio6 27 GPIO_ACTIVE_LOW>; /* gpio 219 */
	no-1-8-v;
};

&mmc2 {
	status = "okay";

	pinctrl-names = "default";
	pinctrl-0 = <&mmc2_pins_default>;

	vmmc-supply = <&vdd_3v3>;
	vqmmc-supply = <&vdd_3v3>;
	bus-width = <8>;
	non-removable;
	no-1-8-v;
};

&sata {
	status = "okay";
};

&usb2_phy1 {
	phy-supply = <&ldousb_reg>;
};

&usb2_phy2 {
	phy-supply = <&ldousb_reg>;
};

&usb1 {
	dr_mode = "host";
};

&omap_dwc3_2 {
	extcon = <&extcon_usb2>;
};

&usb2 {
	/*
	 * Stand alone usage is peripheral only.
	 * However, with some resistor modifications
	 * this port can be used via expansion connectors
	 * as "host" or "dual-role". If so, provide
	 * the necessary dr_mode override in the expansion
	 * board's DT.
	 */
	dr_mode = "otg";
};

&cpu_trips {
	cpu_alert1: cpu_alert1 {
		temperature = <50000>; /* millicelsius */
		hysteresis = <2000>; /* millicelsius */
		type = "active";
	};
};

&cpu_cooling_maps {
	map1 {
		trip = <&cpu_alert1>;
		cooling-device = <&gpio_fan THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
	};
};

&thermal_zones {
	board_thermal: board_thermal {
		polling-delay-passive = <1250>; /* milliseconds */
		polling-delay = <1500>; /* milliseconds */

				/* sensor       ID */
		thermal-sensors = <&tmp102     0>;

		board_trips: trips {
			board_alert0: board_alert {
				temperature = <40000>; /* millicelsius */
				hysteresis = <2000>; /* millicelsius */
				type = "active";
			};

			board_crit: board_crit {
				temperature = <105000>; /* millicelsius */
				hysteresis = <0>; /* millicelsius */
				type = "critical";
			};
		};

		board_cooling_maps: cooling-maps {
			map0 {
				trip = <&board_alert0>;
				cooling-device =
				  <&gpio_fan THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
			};
		};
       };
};

&gpu {
	status = "ok";
};

&dss {
	status = "ok";

	vdda_video-supply = <&ldoln_reg>;

	 ports {
		#address-cells = <1>;
		#size-cells = <0>;

		port {
			reg = <0>;

			dpi_out: endpoint {
				data-lines = <24>;
				remote-endpoint = <&lcd_in>;
			};
		};
	};
};

&bb2d {
	status = "okay";
};





&hdmi {
	status = "ok";
	vdda-supply = <&ldo4_reg>;

	port {
		hdmi_out: endpoint {
			remote-endpoint = <&tpd12s015_in>;
		};
	};
};

&pcie1_rc {
	status = "ok";
	gpios = <&gpio2 8 GPIO_ACTIVE_LOW>;
};

&mcasp3 {
	#sound-dai-cells = <0>;
	assigned-clocks = <&l4per_clkctrl DRA7_MCASP3_CLKCTRL 24>;
	assigned-clock-parents = <&sys_clkin2>;
	status = "disabled";

	op-mode = <0>;	/* MCASP_IIS_MODE */
	tdm-slots = <2>;
	/* 4 serializers */
	serial-dir = <	/* 0: INACTIVE, 1: TX, 2: RX */
		1 2 0 0
	>;
	tx-num-evt = <32>;
	rx-num-evt = <32>;
};

&pruss_soc_bus1 {
	status = "okay";

	pruss1: pruss@4b200000 {
		status = "okay";
	};
};

&pruss_soc_bus2 {
	status = "okay";

	pruss2: pruss@4b280000 {
		status = "okay";
	};
};

&ipu2 {
	status = "okay";
	memory-region = <&ipu2_memory_region>;
};

&ipu1 {
	status = "okay";
	memory-region = <&ipu1_memory_region>;
};

&dsp1 {
	status = "okay";
	memory-region = <&dsp1_memory_region>;
};

&dsp2 {
	status = "okay";
	memory-region = <&dsp2_memory_region>;
};

#include "dra7-ipu-common-early-boot.dtsi"

This is my schematic,Now r325 resistor connected, r327 disconnected

DJ-OTG.pdf

Now insert OTG and no device is detected. What should I do?