From patchwork Wed Sep 20 14:38:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emiliano Ingrassia X-Patchwork-Id: 9961557 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id ABDF960208 for ; Wed, 20 Sep 2017 14:42:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9BCA729035 for ; Wed, 20 Sep 2017 14:42:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 905A429117; Wed, 20 Sep 2017 14:42:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id AABAE29035 for ; Wed, 20 Sep 2017 14:42:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Subject:To:From :Date:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=2Ri1J0KRKAon8de//CE6f1InDKH9Zs0D/eY40gtcu5o=; b=sd361kMJxON2rb C26SLW2ecLfDXw1cQcdHWfPzYj/Fs1cEJzx3c5BPSR+SirdCsUIwec/RA9De3HOP2Iqp0j1F9z+R+ YdfIkyfvF8gur04X/xCsLGoKuz9eC3Oh8N1eeM/rhc33CgTV6Mv05QYmcvOCJN+bBrM52URgBItZj n1Upj7/d92dHHEq8qTucwafpYDZ4FgfHQVy9LgfWlZPzNuGi3rAgc3ZELa0hEAgGZ6BGgLJWG+A3J 5nD2Jyecdm6+qhp6sp4xr5EZko5Teist4UjLI/22vB/R8yZH2vMKQczVSf6Z0jGL2dntwQ6/XO7qA kLxrh0z7yXQN16T0IwZQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dugCy-0003Jv-6a; Wed, 20 Sep 2017 14:42:36 +0000 Received: from mail-wm0-f67.google.com ([74.125.82.67]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dugCq-0003FZ-Tj for linux-amlogic@lists.infradead.org; Wed, 20 Sep 2017 14:42:35 +0000 Received: by mail-wm0-f67.google.com with SMTP id i131so2656958wma.1 for ; Wed, 20 Sep 2017 07:42:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=siNB5XUjqUHvaYiK2GdaGGdGW4eGgh0ytczejCLP5Mo=; b=AsescU4B6DRRsh6JqLiPPHAMDV0fBaZ3OfcU6I4XwZ9s73IismIbvZzWbXaV1ecSKN xRZfv7gXj0tAJXBl9JF9HQOyprLvz+HbKkwLT74I4pEUKFTFi4BmPGQ+FtZjXz0SofBu wonvz3mLMlmg2/6KLNogeWYqqhvCTQXTdEuza7t36TMNkXc18C0TrwUqZ1uUweZ57yZ0 mqsN1u6L6tj+yRtCz+uUx4rMxkQh3VvT1mDDnG5ofq0EFrXRWcdTog8ujJT2G96ZR/Zy Tm0rzOFWDLCkdwfVEkD2AhY+x6oGcO2oYRVW2s6nBhvdBckXzUs4Kjmo9PLfqGIK2iIH z2qg== X-Gm-Message-State: AHPjjUgnWI1fhdKsdMPYaYNLGRRteQYjLGnly6p/11OJjMuSKfcUAPWE H2Qgar3CzvMkN5vD2HOfR7K/4mwp X-Google-Smtp-Source: AOwi7QCIBlz35QJV2iglYhL0vFKNHwSfznikXKoi8NHxXU5zrld76XM59FllUiid448NIKk/Ffw5Og== X-Received: by 10.28.26.15 with SMTP id a15mr4596631wma.16.1505918523619; Wed, 20 Sep 2017 07:42:03 -0700 (PDT) Received: from ingrassia.epigenesys.com (host194-85-static.3-79-b.business.telecomitalia.it. [79.3.85.194]) by smtp.gmail.com with ESMTPSA id v5sm1792701wmb.0.2017.09.20.07.42.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Sep 2017 07:42:02 -0700 (PDT) Date: Wed, 20 Sep 2017 16:38:55 +0200 From: Emiliano Ingrassia To: Carlo Caione , Kevin Hilman , linux-amlogic@lists.infradead.org Subject: ARM: dts: meson: fixing USB support on Meson8b Message-ID: <20170920143855.GA27243@ingrassia.epigenesys.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.8.3 (2017-05-23) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170920_074229_201475_824EDADD X-CRM114-Status: UNSURE ( 8.57 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- 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 = ; + vusb_d-supply = <&vusb_d>; + vusb_a-supply = <&vusb_a>; clocks = <&clkc CLKID_USB1_DDR_BRIDGE>; clock-names = "otg"; };