All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dmitry Osipenko <digetx@gmail.com>
To: Thierry Reding <thierry.reding@gmail.com>
Cc: "Jonathan Hunter" <jonathanh@nvidia.com>,
	"David Heidelberg" <david@ixit.cz>,
	"Svyatoslav Ryhel" <clamor95@gmail.com>,
	"Anton Bambura" <jenneron@protonmail.com>,
	"Antoni Aloy Torrens" <aaloytorrens@gmail.com>,
	"Nikola Milosavljevic" <mnidza@outlook.com>,
	"Ion Agorria" <ion@agorria.com>,
	"Michał Mirosław" <mirq-linux@rere.qmqm.pl>,
	"Ihor Didenko" <tailormoon@rambler.ru>,
	"Andreas Westman Dorcsak" <hedmoo@yahoo.com>,
	"Maxim Schwalm" <maxim.schwalm@gmail.com>,
	"Raffaele Tranquillini" <raffaele.tranquillini@gmail.com>,
	"Jasper Korten" <jja2000@gmail.com>,
	"Thomas Graichen" <thomas.graichen@gmail.com>,
	"Stefan Eichenberger" <stefan.eichenberger@toradex.com>,
	"Stefan Agner" <stefan@agner.ch>,
	"Peter Geis" <pgwipeout@gmail.com>,
	devicetree@vger.kernel.org, linux-tegra@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v6 15/28] ARM: tegra: Add usb-role-switch property to USB OTG ports
Date: Wed, 15 Dec 2021 18:45:32 +0300	[thread overview]
Message-ID: <8c0defff-3348-6f97-6bd4-ddfc6117e707@gmail.com> (raw)
In-Reply-To: <YboGxZSi13OGByUQ@orome>

15.12.2021 18:16, Thierry Reding пишет:
> On Wed, Dec 15, 2021 at 06:04:54PM +0300, Dmitry Osipenko wrote:
>> 15.12.2021 16:14, Thierry Reding пишет:
>>> On Sun, Dec 12, 2021 at 12:13:59AM +0300, Dmitry Osipenko wrote:
>>>> From: Stefan Eichenberger <stefan.eichenberger@toradex.com>
>>>>
>>>> If an USB port is an OTG port, then we should add the usb-role-switch
>>>> property. Otherwise XUSB setup fails and therefore padctl is unable to
>>>> set up the ports. This leads to broken USB and PCIe ports. Add the
>>>> usb-role-switch properties to Tegra124 device-trees to fix the problem.
>>>>
>>>> The error message shown without this patch is e.g:
>>>> usb2-0: usb-role-switch not found for otg mode
>>>>
>>>> [digetx@gmail.com: improved commit message]
>>>> Tested-by: Thomas Graichen <thomas.graichen@gmail.com> # T124 Nyan Big
>>>> Signed-off-by: Stefan Eichenberger <stefan.eichenberger@toradex.com>
>>>> Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
>>>> ---
>>>>  arch/arm/boot/dts/tegra124-apalis-v1.2.dtsi | 1 +
>>>>  arch/arm/boot/dts/tegra124-apalis.dtsi      | 1 +
>>>>  arch/arm/boot/dts/tegra124-nyan.dtsi        | 1 +
>>>>  arch/arm/boot/dts/tegra124-venice2.dts      | 2 +-
>>>>  4 files changed, 4 insertions(+), 1 deletion(-)
>>>
>>> The device tree bindings for the XUSB pad controller say that when this
>>> property is set, then the "connector" subnode should also exist.
>>>
>>> Any chance we can add that? I was planning on making that a dependency
>>> in the json-schema conversion of the binding, in which case it would be
>>> more of a "must" than a "should".
>>
>> I guess it will be harmless if you'll add the connector subnodes. Will
>> you be able to create a separate patch that will add the subnodes on top
>> of this patch?
>>
>> Thomas Graichen says that one USB port on Nyan Big doesn't work without
>> this patch. This is why this patch is needed essentially.
> 
> Okay, I can add "dummy" connector nodes for now. I don't see how we can
> properly set this up because as far as I can tell there's USB ID GPIO on
> Tegra124 (seems like it's a fixed function pin) and the VBUS GPIO is
> already used to enable the VBUS supply. The gpio-usb-b-connector binding
> required at least one of the ID and VBUS GPIOs to be specified.

The ID and VBUS hardware configurations are very board-specific. There
are multiple ways of how it could implemented on Tegra.

> On the other hand, at least Venice2 has a USB type A connector for this,
> so I'm not even sure how that would work. I vaguely recall that the
> Tegra20 Seaboard also had a USB type A and that it was possible to use
> it in device mode, but I don't how that would. Nor would it be correct
> to use the gpio-usb-b-connector compatible for that since, well, it's
> not USB type B.

I'm not sure whether it makes much sense to use OTG for USB type A
connectors, normally they should be fixed to host mode.

> I suspect that Apalis has a micro-B port, much like the Jetson TK1. My
> understanding is that OTG doesn't work on Jetson TK1 (which is why it's
> configured in "host" mode), so it'd be interesting to see if this can be
> made to work on Apalis.

Looks like the default Apalis carrier board has three type A connectors.

https://www.toradex.com/products/carrier-board/ixora-carrier-board

  reply	other threads:[~2021-12-15 16:01 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-11 21:13 [PATCH v6 00/28] NVIDIA Tegra ARM32 device-tree patches for 5.17 (new devices and more) Dmitry Osipenko
2021-12-11 21:13 ` [PATCH v6 01/28] dt-bindings: ARM: tegra: Document ASUS Transformers Dmitry Osipenko
2021-12-11 21:13 ` [PATCH v6 02/28] dt-bindings: ARM: tegra: Document Pegatron Chagall Dmitry Osipenko
2021-12-11 21:13 ` [PATCH v6 03/28] ARM: tegra: Add labels to tegra30.dtsi Dmitry Osipenko
2021-12-11 21:13 ` [PATCH v6 04/28] ARM: tegra: Add labels to tegra114.dtsi Dmitry Osipenko
2021-12-11 21:13 ` [PATCH v6 05/28] ARM: tegra: Add device-tree for ASUS Transformer EeePad TF101 Dmitry Osipenko
2021-12-11 21:13 ` [PATCH v6 06/28] ARM: tegra: Add common device-tree base for Tegra30 ASUS Transformers Dmitry Osipenko
2021-12-11 21:13 ` [PATCH v6 07/28] ARM: tegra: Add common device-tree for LVDS display panels of Tegra30 ASUS tablets Dmitry Osipenko
2021-12-11 21:13 ` [PATCH v6 08/28] ARM: tegra: Add device-tree for ASUS Transformer Prime TF201 Dmitry Osipenko
2021-12-15 13:28   ` Thierry Reding
2021-12-15 14:19     ` Dmitry Osipenko
2021-12-15 15:09       ` Thierry Reding
2021-12-11 21:13 ` [PATCH v6 09/28] ARM: tegra: Add device-tree for ASUS Transformer Pad TF300T Dmitry Osipenko
2021-12-11 21:13 ` [PATCH v6 10/28] ARM: tegra: Add device-tree for ASUS Transformer Pad TF300TG Dmitry Osipenko
2021-12-11 21:13 ` [PATCH v6 11/28] ARM: tegra: Add device-tree for ASUS Transformer Infinity TF700T Dmitry Osipenko
2021-12-15 14:01   ` Thierry Reding
2021-12-15 14:52     ` Dmitry Osipenko
2021-12-15 15:19       ` Thierry Reding
2021-12-15 15:28         ` David Heidelberg
2021-12-11 21:13 ` [PATCH v6 12/28] ARM: tegra: Add device-tree for ASUS Transformer Pad TF701T Dmitry Osipenko
2021-12-11 21:13 ` [PATCH v6 13/28] ARM: tegra: Add device-tree for Pegatron Chagall Dmitry Osipenko
2021-12-11 21:13 ` [PATCH v6 14/28] ARM: tegra: Add device-tree for 1080p version of Nyan Big Dmitry Osipenko
2021-12-11 21:13 ` [PATCH v6 15/28] ARM: tegra: Add usb-role-switch property to USB OTG ports Dmitry Osipenko
2021-12-15 13:14   ` Thierry Reding
2021-12-15 15:04     ` Dmitry Osipenko
2021-12-15 15:16       ` Thierry Reding
2021-12-15 15:45         ` Dmitry Osipenko [this message]
2021-12-15 15:52           ` Thierry Reding
2021-12-15 17:16             ` Dmitry Osipenko
2021-12-11 21:14 ` [PATCH v6 16/28] ARM: tegra: Enable HDMI CEC on Nyan Dmitry Osipenko
2021-12-11 21:14 ` [PATCH v6 17/28] ARM: tegra: Enable CPU DFLL " Dmitry Osipenko
2021-12-11 21:14 ` [PATCH v6 18/28] ARM: tegra: Add CPU thermal zones to Nyan device-tree Dmitry Osipenko
2021-12-11 21:14 ` [PATCH v6 19/28] ARM: tegra: Rename top-level clocks Dmitry Osipenko
2021-12-11 21:14 ` [PATCH v6 20/28] ARM: tegra: Rename top-level regulators Dmitry Osipenko
2021-12-11 21:14 ` [PATCH v6 21/28] ARM: tegra: nexus7: Drop clock-frequency from NFC node Dmitry Osipenko
2021-12-11 21:14 ` [PATCH v6 22/28] ARM: tegra: nexus7: Use common LVDS display device-tree Dmitry Osipenko
2021-12-11 21:14 ` [PATCH v6 23/28] ARM: tegra: Add #reset-cells for Tegra114 MC Dmitry Osipenko
2021-12-11 21:14 ` [PATCH v6 24/28] ARM: tegra: Enable video decoder on Tegra114 Dmitry Osipenko
2021-12-11 21:14 ` [PATCH v6 25/28] ARM: tegra: Remove stray #reset-cells property Dmitry Osipenko
2021-12-11 21:14 ` [PATCH v6 26/28] ARM: tegra: Re-add gpio-ranges properties Dmitry Osipenko
2021-12-11 21:14 ` [PATCH v6 27/28] ARM: tegra_defconfig: Enable drivers wanted by Acer Chromebooks and ASUS tablets Dmitry Osipenko
2021-12-11 21:14 ` [PATCH v6 28/28] ARM: config: multi v7: Enable display drivers used by Tegra devices Dmitry Osipenko

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=8c0defff-3348-6f97-6bd4-ddfc6117e707@gmail.com \
    --to=digetx@gmail.com \
    --cc=aaloytorrens@gmail.com \
    --cc=clamor95@gmail.com \
    --cc=david@ixit.cz \
    --cc=devicetree@vger.kernel.org \
    --cc=hedmoo@yahoo.com \
    --cc=ion@agorria.com \
    --cc=jenneron@protonmail.com \
    --cc=jja2000@gmail.com \
    --cc=jonathanh@nvidia.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-tegra@vger.kernel.org \
    --cc=maxim.schwalm@gmail.com \
    --cc=mirq-linux@rere.qmqm.pl \
    --cc=mnidza@outlook.com \
    --cc=pgwipeout@gmail.com \
    --cc=raffaele.tranquillini@gmail.com \
    --cc=stefan.eichenberger@toradex.com \
    --cc=stefan@agner.ch \
    --cc=tailormoon@rambler.ru \
    --cc=thierry.reding@gmail.com \
    --cc=thomas.graichen@gmail.com \
    /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.