All of lore.kernel.org
 help / color / mirror / Atom feed
From: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
To: Anand Moon <linux.amoon@gmail.com>
Cc: devicetree@vger.kernel.org, Kevin Hilman <khilman@baylibre.com>,
	Kishon Vijay Abraham I <kishon@ti.com>,
	Rob Herring <robh+dt@kernel.org>,
	linux-amlogic@lists.infradead.org,
	linux-arm-kernel@lists.infradead.org
Subject: Re: [RFCv1 0/3] Odroid c1+ usb fixs
Date: Mon, 4 Feb 2019 14:51:39 +0100	[thread overview]
Message-ID: <CAFBinCC1xjqogcLm94gu+iLS_b_zB8eNEXL+4bYhog==zN0S+A@mail.gmail.com> (raw)
In-Reply-To: <20190123151209.2080-1-linux.amoon@gmail.com>

Hi Anand,

On Wed, Jan 23, 2019 at 4:12 PM Anand Moon <linux.amoon@gmail.com> wrote:
>
> This is follow up on my previous patches.
>
> [0] https://lore.kernel.org/patchwork/patch/1031616/
> [1] https://lore.kernel.org/patchwork/patch/1031617/
>
> As per Martin's suggestion and input I have tried to fix below issue.
>
> Fixed the phy power issue on the usb port.
> # cat /sys/kernel/debug/regulator/regulator_summary
>     USB_VBUS                      4    2      0 unknown  5000mV     0mA  5000mV  5000mV
>        phy-c1108820.phy.1         2                                 0mA     0mV     0mV
>        phy-c1108800.phy.0         2                                 0mA     0mV     0mV
>
> Fixed the OTG phy warning and initilizaion of usb0_phy
> # lsusb -t
> /:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=dwc2/1p, 480M
>     |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
>         |__ Port 1: Dev 5, If 0, Class=Mass Storage, Driver=usb-storage, 480M
>         |__ Port 2: Dev 3, If 0, Class=Mass Storage, Driver=usb-storage, 480M
>         |__ Port 3: Dev 4, If 1, Class=Video, Driver=uvcvideo, 480M
>         |__ Port 3: Dev 4, If 2, Class=Audio, Driver=snd-usb-audio, 480M
>         |__ Port 3: Dev 4, If 0, Class=Video, Driver=uvcvideo, 480M
>         |__ Port 3: Dev 4, If 3, Class=Audio, Driver=snd-usb-audio, 480M
> /:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=dwc2/1p, 480M
>
> Now hotpluing of usb device is working on odroid c1+ boards.
unfortunately it's still not working for me :(

all following descriptions are seen when looking at the PCB with the
40-pin connector on the bottom, USB ports on the left, micro USB
connector on the top right.

my test-case is:
- power-cycle the board
- enter u-boot command prompt
- gset GPIOAO_5 out high (or replace high with low)
- measure

I checked the voltage at RT9715EGB (U19) with a volt meter:
GPIOAO_5 HIGH:
- EN pin (bottom, left): 3.3V
- VOUT pin (top right): 5V
GPIOAO_5 LOW:
- EN pin (bottom, left). 0V
- VOUT pin (top right): 5V (not sure why...)

I also checked the voltage at Q5 2N7002W with a volt meter:
- gate (bottom, right): 0V
- source (top, right): 3.3V
- drain (left): 0V
this is always the same, regardless of whether GPIOAO_5 is HIGH or LOW.
however, with Armbian booted (which uses some Amlogic 3.10 kernel
where USB works) I get:
- gate (bottom, right): 0V
- source (top, right): 0V
- drain (left): 3.3V

what do you get on your board?


Regards
Martin

WARNING: multiple messages have this Message-ID (diff)
From: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
To: Anand Moon <linux.amoon@gmail.com>
Cc: devicetree@vger.kernel.org, Kevin Hilman <khilman@baylibre.com>,
	Kishon Vijay Abraham I <kishon@ti.com>,
	Rob Herring <robh+dt@kernel.org>,
	linux-amlogic@lists.infradead.org,
	linux-arm-kernel@lists.infradead.org
Subject: Re: [RFCv1 0/3] Odroid c1+ usb fixs
Date: Mon, 4 Feb 2019 14:51:39 +0100	[thread overview]
Message-ID: <CAFBinCC1xjqogcLm94gu+iLS_b_zB8eNEXL+4bYhog==zN0S+A@mail.gmail.com> (raw)
In-Reply-To: <20190123151209.2080-1-linux.amoon@gmail.com>

Hi Anand,

On Wed, Jan 23, 2019 at 4:12 PM Anand Moon <linux.amoon@gmail.com> wrote:
>
> This is follow up on my previous patches.
>
> [0] https://lore.kernel.org/patchwork/patch/1031616/
> [1] https://lore.kernel.org/patchwork/patch/1031617/
>
> As per Martin's suggestion and input I have tried to fix below issue.
>
> Fixed the phy power issue on the usb port.
> # cat /sys/kernel/debug/regulator/regulator_summary
>     USB_VBUS                      4    2      0 unknown  5000mV     0mA  5000mV  5000mV
>        phy-c1108820.phy.1         2                                 0mA     0mV     0mV
>        phy-c1108800.phy.0         2                                 0mA     0mV     0mV
>
> Fixed the OTG phy warning and initilizaion of usb0_phy
> # lsusb -t
> /:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=dwc2/1p, 480M
>     |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
>         |__ Port 1: Dev 5, If 0, Class=Mass Storage, Driver=usb-storage, 480M
>         |__ Port 2: Dev 3, If 0, Class=Mass Storage, Driver=usb-storage, 480M
>         |__ Port 3: Dev 4, If 1, Class=Video, Driver=uvcvideo, 480M
>         |__ Port 3: Dev 4, If 2, Class=Audio, Driver=snd-usb-audio, 480M
>         |__ Port 3: Dev 4, If 0, Class=Video, Driver=uvcvideo, 480M
>         |__ Port 3: Dev 4, If 3, Class=Audio, Driver=snd-usb-audio, 480M
> /:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=dwc2/1p, 480M
>
> Now hotpluing of usb device is working on odroid c1+ boards.
unfortunately it's still not working for me :(

all following descriptions are seen when looking at the PCB with the
40-pin connector on the bottom, USB ports on the left, micro USB
connector on the top right.

my test-case is:
- power-cycle the board
- enter u-boot command prompt
- gset GPIOAO_5 out high (or replace high with low)
- measure

I checked the voltage at RT9715EGB (U19) with a volt meter:
GPIOAO_5 HIGH:
- EN pin (bottom, left): 3.3V
- VOUT pin (top right): 5V
GPIOAO_5 LOW:
- EN pin (bottom, left). 0V
- VOUT pin (top right): 5V (not sure why...)

I also checked the voltage at Q5 2N7002W with a volt meter:
- gate (bottom, right): 0V
- source (top, right): 3.3V
- drain (left): 0V
this is always the same, regardless of whether GPIOAO_5 is HIGH or LOW.
however, with Armbian booted (which uses some Amlogic 3.10 kernel
where USB works) I get:
- gate (bottom, right): 0V
- source (top, right): 0V
- drain (left): 3.3V

what do you get on your board?


Regards
Martin

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

WARNING: multiple messages have this Message-ID (diff)
From: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
To: Anand Moon <linux.amoon@gmail.com>
Cc: devicetree@vger.kernel.org, Kevin Hilman <khilman@baylibre.com>,
	Kishon Vijay Abraham I <kishon@ti.com>,
	Rob Herring <robh+dt@kernel.org>,
	linux-amlogic@lists.infradead.org,
	linux-arm-kernel@lists.infradead.org
Subject: Re: [RFCv1 0/3] Odroid c1+ usb fixs
Date: Mon, 4 Feb 2019 14:51:39 +0100	[thread overview]
Message-ID: <CAFBinCC1xjqogcLm94gu+iLS_b_zB8eNEXL+4bYhog==zN0S+A@mail.gmail.com> (raw)
In-Reply-To: <20190123151209.2080-1-linux.amoon@gmail.com>

Hi Anand,

On Wed, Jan 23, 2019 at 4:12 PM Anand Moon <linux.amoon@gmail.com> wrote:
>
> This is follow up on my previous patches.
>
> [0] https://lore.kernel.org/patchwork/patch/1031616/
> [1] https://lore.kernel.org/patchwork/patch/1031617/
>
> As per Martin's suggestion and input I have tried to fix below issue.
>
> Fixed the phy power issue on the usb port.
> # cat /sys/kernel/debug/regulator/regulator_summary
>     USB_VBUS                      4    2      0 unknown  5000mV     0mA  5000mV  5000mV
>        phy-c1108820.phy.1         2                                 0mA     0mV     0mV
>        phy-c1108800.phy.0         2                                 0mA     0mV     0mV
>
> Fixed the OTG phy warning and initilizaion of usb0_phy
> # lsusb -t
> /:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=dwc2/1p, 480M
>     |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
>         |__ Port 1: Dev 5, If 0, Class=Mass Storage, Driver=usb-storage, 480M
>         |__ Port 2: Dev 3, If 0, Class=Mass Storage, Driver=usb-storage, 480M
>         |__ Port 3: Dev 4, If 1, Class=Video, Driver=uvcvideo, 480M
>         |__ Port 3: Dev 4, If 2, Class=Audio, Driver=snd-usb-audio, 480M
>         |__ Port 3: Dev 4, If 0, Class=Video, Driver=uvcvideo, 480M
>         |__ Port 3: Dev 4, If 3, Class=Audio, Driver=snd-usb-audio, 480M
> /:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=dwc2/1p, 480M
>
> Now hotpluing of usb device is working on odroid c1+ boards.
unfortunately it's still not working for me :(

all following descriptions are seen when looking at the PCB with the
40-pin connector on the bottom, USB ports on the left, micro USB
connector on the top right.

my test-case is:
- power-cycle the board
- enter u-boot command prompt
- gset GPIOAO_5 out high (or replace high with low)
- measure

I checked the voltage at RT9715EGB (U19) with a volt meter:
GPIOAO_5 HIGH:
- EN pin (bottom, left): 3.3V
- VOUT pin (top right): 5V
GPIOAO_5 LOW:
- EN pin (bottom, left). 0V
- VOUT pin (top right): 5V (not sure why...)

I also checked the voltage at Q5 2N7002W with a volt meter:
- gate (bottom, right): 0V
- source (top, right): 3.3V
- drain (left): 0V
this is always the same, regardless of whether GPIOAO_5 is HIGH or LOW.
however, with Armbian booted (which uses some Amlogic 3.10 kernel
where USB works) I get:
- gate (bottom, right): 0V
- source (top, right): 0V
- drain (left): 3.3V

what do you get on your board?


Regards
Martin

_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic

  parent reply	other threads:[~2019-02-04 13:51 UTC|newest]

Thread overview: 73+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-23 15:12 [RFCv1 0/3] Odroid c1+ usb fixs Anand Moon
2019-01-23 15:12 ` Anand Moon
2019-01-23 15:12 ` Anand Moon
2019-01-23 15:12 ` [RFCv1 1/3] phy: meson8b-usb2: Enable otg phy controller on Meson8b SoCs Anand Moon
2019-01-23 15:12   ` Anand Moon
2019-01-23 15:12   ` Anand Moon
2019-02-04 13:20   ` Martin Blumenstingl
2019-02-04 13:20     ` Martin Blumenstingl
2019-02-04 13:20     ` Martin Blumenstingl
2019-02-04 20:02     ` Anand Moon
2019-02-04 20:02       ` Anand Moon
2019-02-04 20:02       ` Anand Moon
2019-02-04 20:26       ` Martin Blumenstingl
2019-02-04 20:26         ` Martin Blumenstingl
2019-02-04 20:26         ` Martin Blumenstingl
2019-02-05 19:52         ` Anand Moon
2019-02-05 19:52           ` Anand Moon
2019-02-05 19:52           ` Anand Moon
2019-02-06 11:48           ` Martin Blumenstingl
2019-02-06 11:48             ` Martin Blumenstingl
2019-02-06 11:48             ` Martin Blumenstingl
2019-02-07  6:41             ` Anand Moon
2019-02-07  6:41               ` Anand Moon
2019-02-07  6:41               ` Anand Moon
2019-01-23 15:12 ` [RFCv1 2/3] ARM: dts: meson8b: odroidc1: fix USB power supplies for phy Anand Moon
2019-01-23 15:12   ` Anand Moon
2019-01-23 15:12   ` Anand Moon
2019-02-04 13:29   ` Martin Blumenstingl
2019-02-04 13:29     ` Martin Blumenstingl
2019-02-04 13:29     ` Martin Blumenstingl
2019-02-04 20:03     ` Anand Moon
2019-02-04 20:03       ` Anand Moon
2019-02-04 20:03       ` Anand Moon
2019-02-04 20:35       ` Martin Blumenstingl
2019-02-04 20:35         ` Martin Blumenstingl
2019-02-04 20:35         ` Martin Blumenstingl
2019-02-05 19:52         ` Anand Moon
2019-02-05 19:52           ` Anand Moon
2019-02-05 19:52           ` Anand Moon
2019-02-06 11:28           ` Martin Blumenstingl
2019-02-06 11:28             ` Martin Blumenstingl
2019-02-06 11:28             ` Martin Blumenstingl
2019-02-07  6:32             ` Anand Moon
2019-02-07  6:32               ` Anand Moon
2019-02-09  0:36               ` Martin Blumenstingl
2019-02-09  0:36                 ` Martin Blumenstingl
2019-02-09  0:36                 ` Martin Blumenstingl
2019-02-09 17:55                 ` Anand Moon
2019-02-09 17:55                   ` Anand Moon
2019-02-09 17:55                   ` Anand Moon
2019-02-10 22:21                   ` Martin Blumenstingl
2019-02-10 22:21                     ` Martin Blumenstingl
2019-02-11 15:08                     ` Anand Moon
2019-02-11 15:08                       ` Anand Moon
2019-02-11 15:08                       ` Anand Moon
2019-02-17 14:26                       ` Martin Blumenstingl
2019-02-17 14:26                         ` Martin Blumenstingl
2019-02-17 14:26                         ` Martin Blumenstingl
2019-01-23 15:12 ` [RFCv1 3/3] ARM: dts: meson8b: odroidc1: enable the OTG capable USB controller Anand Moon
2019-01-23 15:12   ` Anand Moon
2019-01-23 15:12   ` Anand Moon
2019-02-04 13:51 ` Martin Blumenstingl [this message]
2019-02-04 13:51   ` [RFCv1 0/3] Odroid c1+ usb fixs Martin Blumenstingl
2019-02-04 13:51   ` Martin Blumenstingl
2019-02-04 20:04   ` Anand Moon
2019-02-04 20:04     ` Anand Moon
2019-02-04 20:04     ` Anand Moon
2019-02-04 20:38     ` Martin Blumenstingl
2019-02-04 20:38       ` Martin Blumenstingl
2019-02-04 20:38       ` Martin Blumenstingl
2019-02-05 19:53       ` Anand Moon
2019-02-05 19:53         ` Anand Moon
2019-02-05 19:53         ` Anand Moon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAFBinCC1xjqogcLm94gu+iLS_b_zB8eNEXL+4bYhog==zN0S+A@mail.gmail.com' \
    --to=martin.blumenstingl@googlemail.com \
    --cc=devicetree@vger.kernel.org \
    --cc=khilman@baylibre.com \
    --cc=kishon@ti.com \
    --cc=linux-amlogic@lists.infradead.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux.amoon@gmail.com \
    --cc=robh+dt@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.