mirror of https://lore.kernel.org/linux-amlogic/
 help / color / mirror / Atom feed
From: ingrassia@epigenesys.com (Emiliano Ingrassia)
To: linus-amlogic@lists.infradead.org
Subject: ARM: dts: meson: fixing USB support on Meson8b
Date: Wed, 20 Sep 2017 16:38:55 +0200	[thread overview]
Message-ID: <20170920143855.GA27243@ingrassia.epigenesys.com> (raw)

This patch fixes the Meson8b USB1 dts node, changing the IRQ type
from edge rising to level high.
This avoids errors like "usb 1-1-port1: cannot reset (err = -110)" on
Odroid-C1+ board.

The patch also improves the same node adding the description of the digital
and analog regulators found in DWC2 USB controller.

Signed-off-by: Emiliano Ingrassia <ingrassia@epigenesys.com>
---
 arch/arm/boot/dts/meson8b.dtsi | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/arch/arm/boot/dts/meson8b.dtsi b/arch/arm/boot/dts/meson8b.dtsi
index bc278da7df0d..3306bff3d44d 100644
--- a/arch/arm/boot/dts/meson8b.dtsi
+++ b/arch/arm/boot/dts/meson8b.dtsi
@@ -87,6 +87,22 @@
 		compatible = "arm,cortex-a5-scu";
 		reg = <0xc4300000 0x100>;
 	};
+
+	soc {
+		vusb_d: regulator-vusb_d {
+			compatible = "regulator-fixed";
+			regulator-name = "vusb_d";
+			regulator-min-microvolt = <1200000>;
+			regulator-max-microvolt = <1200000>;
+		};
+
+		vusb_a: regulator-vusb_a {
+			compatible = "regulator-fixed";
+			regulator-name = "vusb_a";
+			regulator-min-microvolt = <1100000>;
+			regulator-max-microvolt = <1100000>;
+		};
+	};
 }; /* end of / */
 
 &aobus {
@@ -214,6 +230,9 @@
 
 &usb1 {
 	compatible = "amlogic,meson8b-usb", "snps,dwc2";
+	interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
+	vusb_d-supply = <&vusb_d>;
+	vusb_a-supply = <&vusb_a>;
 	clocks = <&clkc CLKID_USB1_DDR_BRIDGE>;
 	clock-names = "otg";
 };
-- 
2.14.1

             reply	other threads:[~2017-09-20 14:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-20 14:38 Emiliano Ingrassia [this message]
2017-09-22  6:59 ` Martin Blumenstingl
2017-09-22 12:08   ` Emiliano Ingrassia
2017-09-22 12:41     ` Martin Blumenstingl

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=20170920143855.GA27243@ingrassia.epigenesys.com \
    --to=ingrassia@epigenesys.com \
    --cc=linus-amlogic@lists.infradead.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®