From: Michael A. <all...@gm...> - 2015-09-03 11:14:06
|
That looks like a brown out, did you have a peripheral connected to the USB port? how much current does it use, is it perhaps forming a short circuit? I can't help you much beyond this point, other than to suggest looking at various signals with a scope and trying to figure out what is causing the board to go down... On 3 September 2015 at 13:05, Sergio Sanchez Vega < ser...@gm...> wrote: > Well...I compiled again .dts files with the suggestion you made in > omap3-overo-base.dtsi: > /* HS USB Port 2 Power */ > hsusb2_power: hsusb2_power_reg { > compatible = "regulator-fixed"; > regulator-name = "hsusb2_vbus"; > regulator-min-microvolt = <5000000>; > regulator-max-microvolt = <5000000>; > startup-delay-us = <70000>; > regulator-always-on; > }; > > > And It doesn't work properly, because when I set value to 1 in gpio, the > board restarts: > root@ssanchez-GT150-F1:~# cd /sys/class/gpio > root@ssanchez-GT150-F1:/sys/class/gpio# ls > export gpiochip128 gpiochip32 gpiochip64 unexport > gpiochip0 gpiochip160 gpiochip492 gpiochip96 > root@ssanchez-GT150-F1:/sys/class/gpio# echo 168 > export > #### NOW IT LETS ME CREATE gpio168!!!! > root@ssanchez-GT150-F1:/sys/class/gpio# cd gpio168 > root@ssanchez-GT150-F1:/sys/class/gpio/gpio168# ls > active_low device direction edge power subsystem uevent value > root@ssanchez-GT150-F1:/sys/class/gpio/gpio168# cd active_low > -bash: cd: active_low: Not a directory > root@ssanchez-GT150-F1:/sys/class/gpio/gpio168# cat active_low > 0 > root@ssanchez-GT150-F1:/sys/class/gpio/gpio168# echo out > direction > root@ssanchez-GT150-F1:/sys/class/gpio/gpio168# ls > active_low device direction edge power subsystem uevent value > root@ssanchez-GT150-F1:/sys/class/gpio/gpio168# echo 1 > value > #### THE BOARD RESTARTS > root@ssanchez-GT150-F1:/sys/class/gpio/gpio168# � t > U-Boot SPL 2014.10-g2775fbf (Sep 03 2015 - 12:10:31) > SPL: Please implement spl_start_uboot() for your board > SPL: Direct Linux boot not active! > reading u-boot.img > reading u-boot.img > ... > > > On 03/09/15 10:07, Michael Allwright wrote: > > and also probably remove the "enable-active-high" statement... > > On 3 September 2015 at 10:05, Michael Allwright <all...@gm...> <all...@gm...> wrote: > > Depending on the nature of the hardware involved, drivers can have > both optional/required attributes. Optional attributes are normally > used where the driver will enable a certain feature if the required > resources (irqs, dmas, gpio lines etc) are made available. > > On closer inspection of the dts snippet from above, this is just a > fixed regulator and the gpio control is indeed optional as opposed to > required: Documentation/devicetree/bindings/regulator/fixed-regulator.txt > > In the top level DTS I would remove the gpio control and add regulator-always-on > > /* HS USB Port 2 Power */ > hsusb2_power: hsusb2_power_reg { > compatible = "regulator-fixed"; > regulator-name = "hsusb2_vbus"; > regulator-min-microvolt = <5000000>; > regulator-max-microvolt = <5000000>; > startup-delay-us = <70000>; > regulator-always-on; > enable-active-high; > }; > > After doing this, I believe (I haven't personally tested this exact > configuration) that the overlaying mechanism will use this definition > instead, overriding what was in the DTSI. GPIO 168 should then be > available for export via sysfs... > > > On 2 September 2015 at 18:07, Scott Ellis <sc...@ju...> <sc...@ju...> wrote: > > 'required property' meaning what exactly? > > Is that something defined in the driver or in the dts? > > What would the override statement look like in the top level dts? > > > "Michael Allwright" <all...@gm...> <all...@gm...> said: > > > ------------------------------------------------------------------------------ > Monitor Your Dynamic Infrastructure at Any Scale With Datadog! > Get real-time metrics from all of your servers, apps and tools > in one place. > SourceForge users - Click here to start your Free Trial of Datadog now!http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140_______________________________________________ > gumstix-users mailing lis...@li...https://lists.sourceforge.net/lists/listinfo/gumstix-users > You could check if the gpio is a required property of that node. If it > isn't, you could override it in the top level DTS... > > Scott Ellis <sc...@ju...> <sc...@ju...> schrieb am Mi., 2. Sep. 2015 17:47: > > > I think you are prevented from gaining sysfs control of the gpio > because of this section in the omap3-overo-base.dtsi > > /* HS USB Port 2 Power */ > hsusb2_power: hsusb2_power_reg { > compatible = "regulator-fixed"; > regulator-name = "hsusb2_vbus"; > regulator-min-microvolt = <5000000>; > regulator-max-microvolt = <5000000>; > gpio = <&gpio6 8 0>; /* > gpio_168: vbus enable */ > startup-delay-us = <70000>; > enable-active-high; > }; > > > This claim of the gpio by the usb driver prevents any other use. > At least that's my theory. > > I have the same issue for another system, but the same basic problem. > > I know that doesn't really help. > > > "Sergio Sanchez Vega" <ser...@gm...> <ser...@gm...> said: > > > ------------------------------------------------------------------------------ > > Monitor Your Dynamic Infrastructure at Any Scale With Datadog! > Get real-time metrics from all of your servers, apps and tools > in one place. > SourceForge users - Click here to start your Free Trial of Datadog now! > > > http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140_______________________________________________ > > gumstix-users mailing lis...@li...https://lists.sourceforge.net/lists/listinfo/gumstix-users > Somebody can help me??? > I just wanna power off and power on the USB device plugged in my Overo > board. > > Thanks > > On 28/08/15 17:19, Sergio Sanchez Vega wrote: > > I am trying to use GPIO 168 in my Gumstix Overo AirSTORM-Y COM (I want > to be able to reset the usb device pluged) but I can't see it in > /sys/class/gpio > I try to create it but it doesn't allow me: > root@ssanchez-GT150-F1:/sys/class/gpio# echo 168 > export > -bash: echo: write error: Device or resource busy > root@ssanchez-GT150-F1:/sys/class/gpio# > > > I try to compile a new u-boot using the next commands but It has the > same result: > git clone git://github.com/gumstix/u-boot.git<http://github.com/gumstix/u-boot.git> <http://github.com/gumstix/u-boot.git> > cd u-boot > git checkout v2015.04 > make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- omap3_overo_config > # Now I edit the .config file and change > CONFIG_DEFAULT_DEVICE_TREE=""to > CONFIG_DEFAULT_DEVICE_TREE="omap3-overo-storm-tobi" > make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- all > > > Can you help me? > Thanks!!!! > > > > > ------------------------------------------------------------------------------ > Monitor Your Dynamic Infrastructure at Any Scale With Datadog! > Get real-time metrics from all of your servers, apps and tools > in one place. > SourceForge users - Click here to start your Free Trial of Datadog now!http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140 > _______________________________________________ > gumstix-users mailing lis...@li...https://lists.sourceforge.net/lists/listinfo/gumstix-users > > > > ------------------------------------------------------------------------------ > Monitor Your Dynamic Infrastructure at Any Scale With Datadog! > Get real-time metrics from all of your servers, apps and tools > in one place. > SourceForge users - Click here to start your Free Trial of Datadog now!http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140 > _______________________________________________ > gumstix-users mailing lis...@li...https://lists.sourceforge.net/lists/listinfo/gumstix-users > > ------------------------------------------------------------------------------ > Monitor Your Dynamic Infrastructure at Any Scale With Datadog! > Get real-time metrics from all of your servers, apps and tools > in one place. > SourceForge users - Click here to start your Free Trial of Datadog now!http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140 > _______________________________________________ > gumstix-users mailing lis...@li...https://lists.sourceforge.net/lists/listinfo/gumstix-users > > > > > ------------------------------------------------------------------------------ > Monitor Your Dynamic Infrastructure at Any Scale With Datadog! > Get real-time metrics from all of your servers, apps and tools > in one place. > SourceForge users - Click here to start your Free Trial of Datadog now! > http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140 > _______________________________________________ > gumstix-users mailing list > gum...@li... > https://lists.sourceforge.net/lists/listinfo/gumstix-users > > |