All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lucas Tanure <tanure@linux.com>
To: Neil Armstrong <neil.armstrong@linaro.org>,
	Kevin Hilman <khilman@baylibre.com>,
	Vinod Koul <vkoul@kernel.org>, Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Mathias Nyman <mathias.nyman@intel.com>
Cc: Jerome Brunet <jbrunet@baylibre.com>,
	Martin Blumenstingl <martin.blumenstingl@googlemail.com>,
	Manivannan Sadhasivam <mani@kernel.org>,
	linux-arm-kernel@lists.infradead.org,
	linux-amlogic@lists.infradead.org, linux-phy@lists.infradead.org,
	devicetree@vger.kernel.org, linux-usb@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: [PATCH 6/9] arm64: dts: amlogic: khadas-vim4: enable the USB ports
Date: Sun, 29 Nov 2026 09:28:07 +0000	[thread overview]
Message-ID: <20261129092810.146043-7-tanure@linux.com> (raw)
In-Reply-To: <20261129092810.146043-1-tanure@linux.com>

None of the USB ports of the Khadas VIM4 work. The USB controllers are
not enabled on this board, and the switch that feeds 5V to the two
type-A sockets is never turned on, so a plugged device gets no power.

The type-A sockets are on usb0 (USB 2 PHY 0), behind an on-board hub,
and can only be host. The USB-C port is usb1 (USB 2 PHY 1). It can also
be a device, which is not supported yet. The board takes its power from
that port and does not supply 5V on it, so a device there needs a
powered hub.

Signed-off-by: Lucas Tanure <tanure@linux.com>
---
 .../dts/amlogic/amlogic-t7-a311d2-khadas-vim4.dts  | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/arch/arm64/boot/dts/amlogic/amlogic-t7-a311d2-khadas-vim4.dts b/arch/arm64/boot/dts/amlogic/amlogic-t7-a311d2-khadas-vim4.dts
index 91f81f7949bf..31868a1b4d4f 100644
--- a/arch/arm64/boot/dts/amlogic/amlogic-t7-a311d2-khadas-vim4.dts
+++ b/arch/arm64/boot/dts/amlogic/amlogic-t7-a311d2-khadas-vim4.dts
@@ -475,6 +475,20 @@ &uart_a {
 	clock-names = "xtal", "pclk", "baud";
 };
 
+&usb0 {
+	dr_mode = "host";
+	status = "okay";
+};
+
+&usb1 {
+	dr_mode = "host";
+	status = "okay";
+};
+
+&usb2_phy0 {
+	phy-supply = <&vcc5v0_usb>;
+};
+
 &vpu_thermal {
 	trips {
 		vpu_active: vpu-active {
-- 
2.56.1


WARNING: multiple messages have this Message-ID (diff)
From: Lucas Tanure <tanure@linux.com>
To: Neil Armstrong <neil.armstrong@linaro.org>,
	Kevin Hilman <khilman@baylibre.com>,
	Vinod Koul <vkoul@kernel.org>, Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Mathias Nyman <mathias.nyman@intel.com>
Cc: Jerome Brunet <jbrunet@baylibre.com>,
	Martin Blumenstingl <martin.blumenstingl@googlemail.com>,
	Manivannan Sadhasivam <mani@kernel.org>,
	linux-arm-kernel@lists.infradead.org,
	linux-amlogic@lists.infradead.org, linux-phy@lists.infradead.org,
	devicetree@vger.kernel.org, linux-usb@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: [PATCH 6/9] arm64: dts: amlogic: khadas-vim4: enable the USB ports
Date: Sun, 29 Nov 2026 09:28:07 +0000	[thread overview]
Message-ID: <20261129092810.146043-7-tanure@linux.com> (raw)
In-Reply-To: <20261129092810.146043-1-tanure@linux.com>

None of the USB ports of the Khadas VIM4 work. The USB controllers are
not enabled on this board, and the switch that feeds 5V to the two
type-A sockets is never turned on, so a plugged device gets no power.

The type-A sockets are on usb0 (USB 2 PHY 0), behind an on-board hub,
and can only be host. The USB-C port is usb1 (USB 2 PHY 1). It can also
be a device, which is not supported yet. The board takes its power from
that port and does not supply 5V on it, so a device there needs a
powered hub.

Signed-off-by: Lucas Tanure <tanure@linux.com>
---
 .../dts/amlogic/amlogic-t7-a311d2-khadas-vim4.dts  | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/arch/arm64/boot/dts/amlogic/amlogic-t7-a311d2-khadas-vim4.dts b/arch/arm64/boot/dts/amlogic/amlogic-t7-a311d2-khadas-vim4.dts
index 91f81f7949bf..31868a1b4d4f 100644
--- a/arch/arm64/boot/dts/amlogic/amlogic-t7-a311d2-khadas-vim4.dts
+++ b/arch/arm64/boot/dts/amlogic/amlogic-t7-a311d2-khadas-vim4.dts
@@ -475,6 +475,20 @@ &uart_a {
 	clock-names = "xtal", "pclk", "baud";
 };
 
+&usb0 {
+	dr_mode = "host";
+	status = "okay";
+};
+
+&usb1 {
+	dr_mode = "host";
+	status = "okay";
+};
+
+&usb2_phy0 {
+	phy-supply = <&vcc5v0_usb>;
+};
+
 &vpu_thermal {
 	trips {
 		vpu_active: vpu-active {
-- 
2.56.1


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

WARNING: multiple messages have this Message-ID (diff)
From: Lucas Tanure <tanure@linux.com>
To: Neil Armstrong <neil.armstrong@linaro.org>,
	Kevin Hilman <khilman@baylibre.com>,
	Vinod Koul <vkoul@kernel.org>, Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Mathias Nyman <mathias.nyman@intel.com>
Cc: Jerome Brunet <jbrunet@baylibre.com>,
	Martin Blumenstingl <martin.blumenstingl@googlemail.com>,
	Manivannan Sadhasivam <mani@kernel.org>,
	linux-arm-kernel@lists.infradead.org,
	linux-amlogic@lists.infradead.org, linux-phy@lists.infradead.org,
	devicetree@vger.kernel.org, linux-usb@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: [PATCH 6/9] arm64: dts: amlogic: khadas-vim4: enable the USB ports
Date: Sun, 29 Nov 2026 09:28:07 +0000	[thread overview]
Message-ID: <20261129092810.146043-7-tanure@linux.com> (raw)
In-Reply-To: <20261129092810.146043-1-tanure@linux.com>

None of the USB ports of the Khadas VIM4 work. The USB controllers are
not enabled on this board, and the switch that feeds 5V to the two
type-A sockets is never turned on, so a plugged device gets no power.

The type-A sockets are on usb0 (USB 2 PHY 0), behind an on-board hub,
and can only be host. The USB-C port is usb1 (USB 2 PHY 1). It can also
be a device, which is not supported yet. The board takes its power from
that port and does not supply 5V on it, so a device there needs a
powered hub.

Signed-off-by: Lucas Tanure <tanure@linux.com>
---
 .../dts/amlogic/amlogic-t7-a311d2-khadas-vim4.dts  | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/arch/arm64/boot/dts/amlogic/amlogic-t7-a311d2-khadas-vim4.dts b/arch/arm64/boot/dts/amlogic/amlogic-t7-a311d2-khadas-vim4.dts
index 91f81f7949bf..31868a1b4d4f 100644
--- a/arch/arm64/boot/dts/amlogic/amlogic-t7-a311d2-khadas-vim4.dts
+++ b/arch/arm64/boot/dts/amlogic/amlogic-t7-a311d2-khadas-vim4.dts
@@ -475,6 +475,20 @@ &uart_a {
 	clock-names = "xtal", "pclk", "baud";
 };
 
+&usb0 {
+	dr_mode = "host";
+	status = "okay";
+};
+
+&usb1 {
+	dr_mode = "host";
+	status = "okay";
+};
+
+&usb2_phy0 {
+	phy-supply = <&vcc5v0_usb>;
+};
+
 &vpu_thermal {
 	trips {
 		vpu_active: vpu-active {
-- 
2.56.1


-- 
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy

  parent reply	other threads:[~2026-11-29  9:28 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-29  9:28 [PATCH 0/9] Add USB support for the Amlogic T7 Lucas Tanure
2026-11-29  9:28 ` Lucas Tanure
2026-11-29  9:28 ` Lucas Tanure
2026-11-29  9:28 ` [PATCH 1/9] dt-bindings: phy: amlogic,g12a-usb2-phy: add the T7 compatible Lucas Tanure
2026-11-29  9:28   ` Lucas Tanure
2026-11-29  9:28   ` Lucas Tanure
2026-11-29  9:28 ` [PATCH 2/9] phy: amlogic: phy-meson-g12a-usb2: add T7 support Lucas Tanure
2026-11-29  9:28   ` Lucas Tanure
2026-11-29  9:28   ` Lucas Tanure
2026-11-29  9:28 ` [PATCH 3/9] dt-bindings: usb: add the Amlogic T7 USB controller Lucas Tanure
2026-11-29  9:28   ` Lucas Tanure
2026-11-29  9:28   ` Lucas Tanure
2026-11-29  9:32   ` sashiko-bot
2026-11-29  9:32     ` sashiko-bot
2026-11-29  9:32     ` sashiko-bot
2026-11-29  9:28 ` [PATCH 4/9] usb: host: xhci-plat: add Amlogic T7 support Lucas Tanure
2026-11-29  9:28   ` Lucas Tanure
2026-11-29  9:28   ` Lucas Tanure
2026-11-29  9:28 ` [PATCH 5/9] arm64: dts: amlogic: t7: add the USB controllers Lucas Tanure
2026-11-29  9:28   ` Lucas Tanure
2026-11-29  9:28   ` Lucas Tanure
2026-11-29  9:28 ` Lucas Tanure [this message]
2026-11-29  9:28   ` [PATCH 6/9] arm64: dts: amlogic: khadas-vim4: enable the USB ports Lucas Tanure
2026-11-29  9:28   ` Lucas Tanure
2026-11-29  9:28 ` [PATCH 7/9] dt-bindings: phy: amlogic,g12a-usb3-pcie-phy: add the T7 compatible Lucas Tanure
2026-11-29  9:28   ` Lucas Tanure
2026-11-29  9:28   ` Lucas Tanure
2026-11-29  9:28 ` [PATCH 8/9] phy: amlogic: phy-meson-g12a-usb3-pcie: add T7 support Lucas Tanure
2026-11-29  9:28   ` Lucas Tanure
2026-11-29  9:28   ` Lucas Tanure
2026-11-29  9:28 ` [PATCH 9/9] arm64: dts: amlogic: t7: add the USB3 PHY Lucas Tanure
2026-11-29  9:28   ` Lucas Tanure
2026-11-29  9:28   ` Lucas Tanure
2026-11-29  9:42 ` [PATCH 0/9] Add USB support for the Amlogic T7 sashiko-bot

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=20261129092810.146043-7-tanure@linux.com \
    --to=tanure@linux.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=jbrunet@baylibre.com \
    --cc=khilman@baylibre.com \
    --cc=krzk+dt@kernel.org \
    --cc=linux-amlogic@lists.infradead.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-phy@lists.infradead.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=mani@kernel.org \
    --cc=martin.blumenstingl@googlemail.com \
    --cc=mathias.nyman@intel.com \
    --cc=neil.armstrong@linaro.org \
    --cc=robh@kernel.org \
    --cc=vkoul@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.